Closed longshuicy closed 10 months ago
Overall looks good, just some minor unused imports that should be removed. Should be good to merge after that.
Overall looks good, just some minor unused imports that should be removed. Should be good to merge after that.
I removed the unused imports and pep8 related issue in the files I touched. But I noticed there might be more. Maybe it's time we start to look into black formatter in the next release? https://black.readthedocs.io/en/stable/
Here is an clowder example of using black and github action to check that https://github.com/clowder-framework/clowder2/blob/main/.github/workflows/black.yml
Overall looks good, just some minor unused imports that should be removed. Should be good to merge after that.
I removed the unused imports and pep8 related issue in the files I touched. But I noticed there might be more. Maybe it's time we start to look into black formatter in the next release? https://black.readthedocs.io/en/stable/
Here is an clowder example of using black and github action to check that https://github.com/clowder-framework/clowder2/blob/main/.github/workflows/black.yml
It might be good to do that after this release and clean things up.
Wrote custom decorator to check "self.client.offline" flag. This allows the flexibility to add to only those methods interact with the services.
To test: You can either try the below one example
you should see an error message
For more comprehensive test, run some of the incore-docs notebooks E.g. in create_earthquake.ipynb change "offline=True" in client, and observe failure. E.g. try session4-building-dmg-recovery-local-data.ipynb, should pass with no issue