Skip to content

Minor updates for devel compatibility#10

Merged
michael-petersen merged 5 commits intomainfrom
develcompatibility
Dec 10, 2025
Merged

Minor updates for devel compatibility#10
michael-petersen merged 5 commits intomainfrom
develcompatibility

Conversation

@The9Cat
Copy link
Copy Markdown
Member

@The9Cat The9Cat commented Dec 5, 2025

  • changed two config files
  • added a Pythons script for visualizing results

Might be nice to add more visualization scripts moving forward.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Nbody/plotOrbit.py Outdated
Comment thread Binary/README.md Outdated
Comment thread Nbody/plotOrbit.py Outdated
Comment on lines +7 to +10
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).
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

Suggested change
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).

Copilot uses AI. Check for mistakes.
Comment thread Nbody/plotOrbit.py Outdated
Martin D. Weinberg and others added 4 commits December 5, 2025 15:43
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>
Copy link
Copy Markdown
Member

@michael-petersen michael-petersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes look straightforward -- happy to merge this in.

@michael-petersen michael-petersen merged commit b7323a2 into main Dec 10, 2025
@michael-petersen michael-petersen deleted the develcompatibility branch April 8, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants