-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
Add tests to SDEC plotter module #1752
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1752 +/- ##
==========================================
+ Coverage 57.65% 62.12% +4.46%
==========================================
Files 66 66
Lines 6809 6809
==========================================
+ Hits 3926 4230 +304
+ Misses 2883 2579 -304
Continue to review full report at Codecov.
|
8383575
to
92c3513
Compare
92c3513
to
f6be332
Compare
ec9b2f2
to
4064a23
Compare
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.
This is some really impressive work @atharva-2001 🎉
I guess only 2 things are left:
- testing
generate_plot_mpl
- pushing up test data to tardis-refdata (I guess this is the reason test pipeline is failing?)
4064a23
to
1ee1d42
Compare
211ada4
to
d2c92be
Compare
9208be0
to
4bad25a
Compare
Before a pull request is accepted, it must meet the following criteria:
|
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.
Excellent work @atharva-2001 - the comments are very helpful for readability and thanks for adding docstrings.
It's ready to be merged once test pipeline passes. We need to debug why ref-data can't be found in pipeline. Meanwhile can you post output of your local tests run?
Also the black pipeline fails - can you please fix that @atharva-2001? |
/azp run update-refdata |
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.
Thanks @atharva-2001 - pipelines pass now!
@@ -277,7 +279,7 @@ def montecarlo_main_loop( | |||
continue | |||
v_packets_energy_hist[idx] += vpackets_energy[j] | |||
|
|||
if montecarlo_configuration.VPACKET_LOGGING: | |||
if virtual_packet_logging: | |||
for vpacket_collection in vpacket_collections: |
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.
I believe this requires rebasing?
and move functions
… names, skip tests when refdata is egenerated
5f82d0a
to
eddc6b2
Compare
/azp run compare-refdata |
Azure Pipelines successfully started running 1 pipeline(s). |
Build succeeded 0a1922e |
name=subgroup_name, | ||
) | ||
|
||
self.hdf_file.create_carray( |
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.
This looks like it could be a loop
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.
yes, you're right
Adds tests for SDEC plots
Motivation and context
Currently there are no tests for
sdec_plot.py
due to which we have to rerun notebook to test if plots look ok whenever a change affecting SDEC plots is made.How has this been tested?
Examples
Type of change
Checklist