-
Notifications
You must be signed in to change notification settings - Fork 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
fix: Remove circular imports and add missing import #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments por favor
dacapo/experiments/tasks/post_processors/argmax_post_processor.py
Outdated
Show resolved
Hide resolved
dacapo/experiments/tasks/post_processors/watershed_post_processor.py
Outdated
Show resolved
Hide resolved
@@ -2,7 +2,6 @@ | |||
from dacapo.blockwise.scheduler import run_blockwise | |||
from dacapo.compute_context import ComputeContext, LocalTorch | |||
from dacapo.experiments.datasplits.datasets.arrays.zarr_array import ZarrArray | |||
from dacapo.store.array_store import LocalArrayIdentifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to still be included
There appear to be some python formatting errors in e42012f. This pull request uses the [psf/black](https://github.com/psf/black) formatter to fix these issues.
One of the files was using `LocalArrayIdentifier`, so in order to remove the circular import entirely we had to empty `store.__init__`. This means that from this point on, all of the `create_*_store` calls need to refer directly to `dacapo.store.create_store`
dacapo/train.py
Outdated
create_weights_store, | ||
) | ||
from dacapo.experiments import Run | ||
from dacapo.compute_context import LocalTorch, ComputeContext | ||
from .validate import validate_run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make this absolute?
dacapo/experiments/tasks/post_processors/watershed_post_processor.py
Outdated
Show resolved
Hide resolved
dacapo/experiments/tasks/post_processors/watershed_post_processor.py
Outdated
Show resolved
Hide resolved
Make it pass tests please! :) |
Note that this still does not pass tests.