-
Notifications
You must be signed in to change notification settings - Fork 51
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
Create virtual 4C tool #378
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.
nice!
Couple q's:
- would it make sense to add an option to smooth via
cooltools/cooltools/lib/numutils.py
Line 994 in 51cc542
def smooth(y, box_pts): - should this go through sandbox first? or have a test?
Can try to see what smoothing does to this! But I'm not sure there really is a reason to smooth this, idk... Don't mind putting into sandbox first! |
For sandbox, is there a way to make the CLI accessible somehow?.. Instead of sandbox, add a note to the docstring that this is new and experimental |
And is there an example how to use the |
For CLI tests to pass I had to add an empty |
Exit codes seems like a serious issue, e.g. see here (exit_code==1, but not 0 for no reason): cooltools/tests/test_insulation.py Line 23 in a86fbec
This is dangerous for the tests, because if it's actual mistake it can also naturally have exit_code 1 and it will be never captured by our tests. One of the ways to debug it is to output stderr and stdout alongside with exit_code while creating tests: pallets/click#737 |
I think in this case it's not an issue, since with an empty return statement at the end the code is 0. And I assume if there is an actual error it won't get to the return statement and will give an error-y code. So perhaps this should be a broader discussion in a separate issue? @agalitsyna |
@gfudenberg added a note that it's new and experimental, do you think it's enough? |
sounds good! one question though: would these functions make more sense as part of cooler, if they don't modify/process in any way other than querying/balancing ? |
It's also averaging bins within the viewpoint... |
indeed! |
@gfudenberg any more comments? |
nope! |
Ok to merge? |
fine by me! |
API and CLI for virtual 4C.
No support for expected (for now?).