Skip to content
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

Refactor Config and ROCrateWriter #18

Merged
merged 9 commits into from
Aug 1, 2024
Merged

Conversation

joshmoore
Copy link
Member

The current resave.py was getting fairly complicated. This PR introduces two new classes to help control that complexity:

  • Config: this encapsulates all the issues regarding reading/writing from local/remote storage for zarr/tensorstore.
  • ROCrateWriter: this is an extension point that we can add to in order to read metadata from other sources. Currently it only takes the 5 known parameters from the command-line.

This branch is currently based on #17 awaiting @dominikl's review.

cc: @sherwoodf @will-moore

The current code was complicated by the need to keep up with
a config, a store, a path and a subpath for both the input &
the output. This combines all four parameters into a single
class so that only two instances need passing. Functionality
has been moved into instance methods where possible to reduce
leakage, though more refactoring could be applied.
@joshmoore
Copy link
Member Author

Merging for 0.0.5

@joshmoore joshmoore merged commit 90225b6 into ome:main Aug 1, 2024
5 checks passed
@joshmoore joshmoore deleted the refactor branch August 1, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant