Skip to content
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

plot_structure function in Star.py not working #14

Open
nr1118 opened this issue Oct 11, 2023 · 3 comments
Open

plot_structure function in Star.py not working #14

nr1118 opened this issue Oct 11, 2023 · 3 comments

Comments

@nr1118
Copy link
Collaborator

nr1118 commented Oct 11, 2023

Not critical to NEoST's functionality, but should be working if it is there in the file.

@svisak
Copy link
Collaborator

svisak commented Jul 8, 2024

What's the issue with it?

@nr1118
Copy link
Collaborator Author

nr1118 commented Jul 9, 2024

Let me remind myself on that haha

@nr1118
Copy link
Collaborator Author

nr1118 commented Jul 9, 2024

Ahh yes, this is the problem:

    ax[0].plot(self.radius_grid_baryon, self.mass_dist_baryon,
               c='#005ABD', lw=2.5, label='Baryonic')
    ax[1].plot(self.radius_grid_baryon, self.pres_dist_baryon, c='#005ABD',
               lw=2.5, label='Baryonic')

None of these arrays are actually defined, thus it will not work when you attempt to plot it. I think I have it fixed locally. If I don't, I will have it fixed. Note, this will require changes to the TOV solvers and Star.py.

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

No branches or pull requests

2 participants