Rename ImageTool provenance API module#380
Draft
kmnhan wants to merge 1 commit into
Draft
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
=======================================
Coverage 89.09% 89.09%
=======================================
Files 145 145
Lines 47811 47813 +2
Branches 7624 7624
=======================================
+ Hits 42595 42597 +2
Misses 3232 3232
Partials 1984 1984 ☔ View full report in Codecov by Sentry. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Rename the ImageTool provenance API to
erlab.interactive.imagetool.provenanceand make it the single public import path for framework helpers and concrete operations.Details
provenance_framework.pyto private_provenance_framework.py.provenance_operations.pyto publicprovenance.py.provenance.provenancemodule withoutprovoropsshorthand aliases.erlab.interactive.imagetool.provenanceand parsing operation-backed serialized specs.state["filter_operation"]and restores through the standalone ImageTool path.Validation
uv run pytest tests/interactive/imagetool/test_provenance.py tests/interactive/imagetool/test_replay_graph.pyuv run pytest tests/interactive/imagetool/test_imagetool.py -k "filter_operation or filter_state or saved_filtered_file_data or itool_save_preserves_filter"uv run pytest tests/interactive/imagetool/manager/test_provenance.pyuv run pytest tests/interactive/imagetool/manager/test_console.py::test_tool_namespace_set_filtered_data_item_updates_child_provenance tests/interactive/imagetool/manager/test_console.py::test_manager_console_bare_expression_opens_provenance_root tests/interactive/imagetool/manager/test_console.py::test_manager_reload_script_inputs_reuses_shared_recorded_file_prefix tests/interactive/imagetool/manager/test_console.py::test_manager_console_replacement_updates_provenance_and_descendantsuv run pytest tests/interactive/test_derivative.py tests/interactive/test_kspace.py tests/interactive/test_fermiedge.py tests/interactive/test_utils.py -k provenanceuv run ruff check .uv run ruff format --check .uv run mypy srcuv run python -m scripts.ci_test_groups --check-partition