Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Generate coverage badge
if: matrix.python-version == '3.12'
run: |
coverage-badge -o build/reports/coverage.svg -f
anybadge --value="$(coverage report --format=total)" --file=build/reports/coverage.svg --overwrite coverage

- name: Check if badge changed or is new
if: matrix.python-version == '3.12'
Expand Down
18 changes: 10 additions & 8 deletions build/reports/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions physXAI/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,11 @@ def __init__(self, inputs: list[str], output: Union[str, list[str]], label_width
self.features: list[str] = (inputs + self.output +
[f for f in self.init_features if f not in inputs and f not in self.output])
self.column_indices: dict[str, int] = {name: i for i, name in enumerate(self.features)}
self.warmup_columns_input: list[str] = list(set(self.init_features) & set(inputs))
self.warmup_columns_labels: list[str] = list(set(self.init_features) - set(inputs))
# The order of these lists defines the column order of the warmup sequence.
# It has to be derived from the init_features list, since the iteration order
# of a set is not stable across processes.
self.warmup_columns_input: list[str] = [f for f in self.init_features if f in inputs]
self.warmup_columns_labels: list[str] = [f for f in self.init_features if f not in inputs]
Comment thread
PatrickHenkel1 marked this conversation as resolved.
Resolved

self.label_width: int = label_width
self.warmup_width: int = warmup_width
Expand Down Expand Up @@ -491,6 +494,8 @@ def get_config(self) -> dict:
'overlapping_sequences': self.overlapping_sequences,
'batch_size': self.batch_size,
'init_features': self.init_features,
'warmup_columns_input': self.warmup_columns_input,
'warmup_columns_labels': self.warmup_columns_labels,
'shift': self.shift,
Comment thread
PatrickHenkel1 marked this conversation as resolved.
Resolved
'test_size': self.test_size,
'val_size': self.val_size,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dynamic = ["version"]
dev = [
"pytest>=8.4.1",
"pytest-cov>=6.2.1",
"coverage-badge>=1.1.2"
"anybadge>=1.16.0"
]
gh-pages = [
"mkdocs-material>=9.6.15",
Expand Down