Conversation
There was a problem hiding this comment.
Good, but please also include a small extra unit test in tofu/tests/tests01_geom/tests03_core.py to check that the results from calc_signal() are quantitatively the same for newcalc=False and newcalc=True and for minimize = 'memory', 'call', 'hybrid' and method = 'sum', 'romb', 'simps'.
Test all combinations on a small 1d camera (10 LOS should be enough). You can re-use an already existing camera in the testing class (pick the smallest one).
=> Actually I'll deal with it right now, don't worry
|
I hesitated about doing this but:
|
…03_Rays.test10_calc_signal() for CamLOS1D, all passing
|
You're right, |
|
I am also creating a new tests repository specifically to run tutorials (agree ?) |
…_core.Test03_Rays.test_calc_signal() multi-nested loops for speeding up tests
|
Hello @lasofivec! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2019-11-17 18:50:39 UTC |
Codecov Report
@@ Coverage Diff @@
## devel #249 +/- ##
==========================================
- Coverage 43.91% 43.85% -0.06%
==========================================
Files 70 74 +4
Lines 21294 21462 +168
==========================================
+ Hits 9351 9412 +61
- Misses 11943 12050 +107
Continue to review full report at Codecov.
|
|
Fixes, in devel, Issue #247 |
| print(os.getcwd()) | ||
| print(tf.__version__) | ||
| print(tf.__path__) | ||
|
|
There was a problem hiding this comment.
Not sure why these lines were added. I didn't reviewed the last version of this PR, but if you agree @Didou09 I will revert these lines.
Furthermore, the renaming of the files means that the doc construction will fail, see sphinx-gallery's doc. I'm working on making the necessary changes on another branch
There was a problem hiding this comment.
These lines were added for debugging, I forgot to remove them, yes you can delete them
Found a couple of bugs:
los_get_sample_core_var_res):+instead of*in formula.LOS_calc_signal: forgot to transpose matrix.Additionally, I also took out the file
_fast_sum.cin order to have less "low level" utilities and have a more maintainable code even if we lose a small percentage of optimization...