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

Change Crop Volume BBOX for a json #1096

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AlexVCaron
Copy link
Collaborator

Quick description

Pickles are path bound and unsafe. A json file is way easier to use and doesn't pose code injection problems.

...

Type of change

Check the relevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Provide data, screenshots, command line to test (if relevant)

pytest scripts/tests/test_colume_crop.py

Checklist

  • My code follows the style guidelines of this project (run autopep8)
  • I added relevant citations to scripts, modules and functions docstrings and descriptions
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I moved all functions from the script file (except the argparser and main) to scilpy modules
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@pep8speaks
Copy link

pep8speaks commented Dec 12, 2024

Hello @AlexVCaron, Thank you for updating !

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-12-12 19:35:21 UTC

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.47%. Comparing base (e256482) to head (59d7b7f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1096      +/-   ##
==========================================
+ Coverage   69.46%   69.47%   +0.01%     
==========================================
  Files         447      447              
  Lines       24052    24060       +8     
  Branches     3291     3291              
==========================================
+ Hits        16708    16716       +8     
  Misses       5946     5946              
  Partials     1398     1398              
Components Coverage Δ
Scripts 70.26% <100.00%> (-0.01%) ⬇️
Library 68.42% <100.00%> (+0.02%) ⬆️

Copy link
Contributor

@EmmaRenauld EmmaRenauld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

But should we add an argument like --use_deprecated_pickle in case someone wants to use one that was already computed, with some warning that eventually we will delete the code for pickles, or not necessary? @arnaudbore

If not, LGTM

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.

3 participants