-
-
Notifications
You must be signed in to change notification settings - Fork 424
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
adding RPacketPlotter to TARDIS #2119
adding RPacketPlotter to TARDIS #2119
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2119 +/- ##
==========================================
+ Coverage 69.25% 69.67% +0.42%
==========================================
Files 179 181 +2
Lines 14262 14468 +206
==========================================
+ Hits 9877 10081 +204
- Misses 4385 4387 +2 ☔ View full report in Codecov by Sentry. |
8cd6d61
to
227197d
Compare
…-mc-packet-visualization
1a80b5c
to
8e4b102
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.
I'll review the code in the module soon. Please start writing unit tests and updating the docs
Yeah, I think before writing tests and docs, I should work on adding some functionalities that are left. Today I am working on the dark theme. |
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 work Jayant. This will be a really nice addition to TARDIS when it's merged. I have a few specific codes that I've left. Generally though I think it would be good to add more comments throughout the code -- comments never hurt. The docstrings are good, but there are some specific bits of code where it's not clear exactly what they're doing. Just adding some comments to explain that will really help
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.
Good to see things finally shaping up - the final plot looks great. Thanks for finishing up animation and adding themes.
I have few minor comments about code n comments
9f1d90d
to
bfdd23a
Compare
Okay, I did the rebase so now it just needs some cleanup to the current code structure. |
@jayantbhakar What is left for us to check/review with this PR? I haven't seen any updates since Andrew's rebasing -- did that resolve the issues you were facing, or is there more work needed? |
I have done the required changes in the RPacket plotter code as per the new restructured code. Still I don't know why docs are failing? |
That's okay, it's because of changes to the workflow on master. There is still one merge conflict. If you merge master into the PR branch you should be able to resolve it. |
@andrewfullard what do you mean by merging the master branch into my PR? I did |
|
docs/io/visualization/tutorial_montecarlo_packet_visualization.ipynb
Outdated
Show resolved
Hide resolved
I think everything is done. |
@jaladh-singhal @sonachitchyan @jamesgillanders @MarkMageeAstro please review the PR. |
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.
Happy for this to now be merged.
Great work Jayant -- thanks for persevering with the PR and for all the recent work getting it to be compatible with the re-structured code base!
I really like how this tool has turned out, and it will certainly be a valuable resource for both demonstrating how the code works to new users, and for investigating potential bugs in certain model set ups.
I hope you're as happy with this tool -- and the code -- as we are!
@andrewfullard You're a GitHub guru, right? Why can't I merge this? |
There are still 2 unaddressed changes that need to be cleared by the reviewers, but I can clear that. |
Changes addressed
Same here! Delighted to see this PR get merged, finally, after around 2 years :) |
And thanks @andrewfullard for clearing up the changes, although they were addressed by me a long time ago, not sure why they were not marked resolved. But yeah, better late than never. |
📝 Description
Type: 🚀
feature
This PR is based on the Montecarlo 2D packet visualization project. It aims to write a module for the RPacketPlotter tool which creates a 2D animated graph of the RPackets or the real packets used in the Montecarlo simulation.
Example code to plot is shown below:
rpacket_plotter = RPacketPlotter.from_simulation(sim, no_of_packets=10)
rpacket_plotter.generate_plot()
Here's how the plot looks like:
Light Theme:
Dark theme:
Also, link issues affected by this pull request by using the keywords:
close
,closes
,closed
,fix
,fixes
,fixed
,resolve
,resolves
orresolved
.📌 Resources
Examples, notebooks, and links to useful references.
🚦 Testing
How did you test these changes?
☑️ Checklist
build_docs
label