-
Notifications
You must be signed in to change notification settings - Fork 4
Release v1.2.0 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Copyright (c) European Space Agency, 2025. | ||
| # | ||
| # This file is subject to the terms and conditions defined in file 'LICENCE.txt', which | ||
| # is part of this source code package. No part of the package, including | ||
| # this file, may be copied, modified, propagated, or distributed except according to | ||
| # the terms contained in the file 'LICENCE.txt'. | ||
| name: Dead Code Detection | ||
|
|
||
| on: [pull_request] | ||
|
|
||
| jobs: | ||
| vulture-strict: | ||
| name: Vulture (100% confidence - blocking) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.11" | ||
| - name: Install vulture | ||
| run: pip install vulture>=2.10 | ||
| - name: Run vulture (100% confidence) | ||
| run: | | ||
| echo "Running vulture dead code detection (100% confidence - blocking)..." | ||
| vulture anomaly_match/ .vulture_whitelist.py --min-confidence 100 | ||
|
|
||
| vulture-warnings: | ||
| name: Vulture (60% confidence - not required) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.11" | ||
| - name: Install vulture | ||
| run: pip install vulture>=2.10 | ||
| - name: Run vulture (60% confidence) | ||
| run: | | ||
| echo "Running vulture dead code detection (60% confidence)..." | ||
| echo "This check fails if potential dead code is found, but is not required to pass." | ||
| echo "" | ||
| vulture anomaly_match/ .vulture_whitelist.py --min-confidence 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # Copyright (c) European Space Agency, 2025. | ||
| # | ||
| # This file is subject to the terms and conditions defined in file 'LICENCE.txt', which | ||
| # is part of this source code package. No part of the package, including | ||
| # this file, may be copied, modified, propagated, or distributed except according to | ||
| # the terms contained in the file 'LICENCE.txt'. | ||
| """ | ||
| Vulture whitelist file. | ||
|
|
||
| Add entries here for code that vulture incorrectly identifies as unused. | ||
| Format: function_name # noqa - comment explaining why it's used | ||
| """ | ||
|
|
||
| # SessionIOHandler methods - public API used in tests | ||
| save_model_checkpoint # noqa - Used in test_session_io_handler.py, test_model_io_integration.py | ||
| load_model_checkpoint # noqa - Used in test_model_io_integration.py | ||
| list_sessions # noqa - Used in test_session_io_handler.py | ||
| save_run # noqa - Used in test_run_label_migration.py | ||
| save_labels_to_output_dir # noqa - Used in test_run_label_migration.py | ||
|
|
||
| # FixMatch class attributes | ||
| requires_grad # noqa - PyTorch tensor property set to disable gradient for EMA model | ||
|
|
||
| # AnomalyDetectionDataset methods used in tests (tests/dataset_test.py) | ||
| _read_and_resize_image # noqa - Used in test_read_and_resize_different_formats | ||
| unlabeled_filepaths # noqa - Used in test_anomaly_detection_dataset_properties | ||
| save_as_hdf5 # noqa - Used in test_anomaly_detection_dataset_hdf5 | ||
| load_from_hdf5 # noqa - Used in test_anomaly_detection_dataset_hdf5 | ||
|
|
||
| # Transform functions used in paper_scripts/ | ||
| get_strong_transforms # noqa - Used in paper_scripts/get_example_images.py | ||
|
|
||
| # File I/O utility functions - public API | ||
| get_image_paths_from_folder # noqa - Companion to get_image_names_from_folder, tested | ||
|
|
||
| # Session class public API | ||
| start_UI # noqa - Public API - used in StarterNotebook.ipynb | ||
|
|
||
| # Widget methods - public API | ||
| update_image_display # noqa - Public API method for updating image display | ||
|
|
||
| # ipywidgets style/layout attributes - used by ipywidgets framework | ||
| _.style # noqa - Widget.py: progress_bar.style for visual feedback | ||
| _.button_color # noqa - ipywidgets button styling | ||
| _.font_size # noqa - ipywidgets widget styling | ||
| _.width # noqa - ipywidgets layout attribute | ||
| _.height # noqa - ipywidgets layout attribute | ||
|
|
||
| # Learning rate scheduler utility - tested in tests/utils_test.py | ||
| get_cosine_schedule_with_warmup # noqa - Used in tests and available for external use | ||
|
|
||
| # Configuration attributes - validated and documented | ||
| bn_momentum # noqa - Part of default config for batch normalization momentum | ||
| N_batch_prediction # noqa - Used in prediction scripts for batch size | ||
|
|
||
| # Seed utility function - used in paper_scripts/paper_benchmark.py and tests | ||
| set_seeds # noqa - Used for reproducibility in benchmarks and testing | ||
|
|
||
| # PyTorch CUDA attribute - set in set_seeds.py for deterministic/performance mode | ||
| _.benchmark # noqa - torch.backends.cudnn.benchmark attribute | ||
|
|
||
| # Image processing functions used in prediction scripts (root level, excluded from scan) | ||
| process_single_wrapper # noqa - Used in prediction_process_hdf5.py, prediction_process_zarr.py | ||
| _.n_expected_channels # noqa - fitsbolt config attribute set dynamically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.