Minor updates for devel compatibility#10
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the repository with visualization capabilities and updates configuration files for compatibility with the development branch. The changes focus on making simulation results more accessible through plotting tools.
- Adds Python visualization scripts for plotting orbital trajectories
- Updates configuration parameters in DiskHalo and Binary examples
- Enhances README documentation with instructions for visualizing results
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Nbody/plotOrbit.py | New visualization script for plotting multiple disk orbit trajectories from ORBTRACE output |
| Binary/plotOrbit.py | New visualization script for plotting binary star system orbits |
| Nbody/README.md | Added section documenting how to use the plotOrbit.py script |
| Binary/README.md | Enhanced documentation with sections on running examples and viewing results |
| DiskHalo/config.yml | Updated cylinder force parameters (nmaxfid→lmaxfid, added sech2 flag, increased grid resolution) |
| Binary/logpot.yml | Reduced VERBOSE level from 4 to 1 for cleaner output |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Plots two orbital trajectories given a list of 3D positions. | ||
|
|
||
| Parameters: | ||
| positions: A list of 3d particle trajectories (x, y, z) positions for N times both trajectories as an list of M ndarrays of shape (N, 6). |
There was a problem hiding this comment.
The docstring says "Plots two orbital trajectories" but the function actually plots any number of trajectories (as many as are in the positions list). Consider changing to "Plots multiple orbital trajectories" or "Plots orbital trajectories".
| Plots two orbital trajectories given a list of 3D positions. | |
| Parameters: | |
| positions: A list of 3d particle trajectories (x, y, z) positions for N times both trajectories as an list of M ndarrays of shape (N, 6). | |
| Plots orbital trajectories given a list of 3D positions. | |
| Parameters: | |
| positions: A list of 3d particle trajectories (x, y, z) positions for N times, as a list of M ndarrays of shape (N, 6). |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
michael-petersen
left a comment
There was a problem hiding this comment.
All changes look straightforward -- happy to merge this in.
Might be nice to add more visualization scripts moving forward.