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

spin_orbit_tilt no longer an output parameter #283

Open
maxbriel opened this issue Mar 22, 2024 · 2 comments
Open

spin_orbit_tilt no longer an output parameter #283

maxbriel opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@maxbriel
Copy link
Collaborator

maxbriel commented Mar 22, 2024

In the default population_params.ini spin_orbit_tilt is one of the default output options.
However with PR #129, this attribute has been removed from the SingleStar and been replaced with:
spin_orbit_tilt_first_SN and spin_orbit_tilt_second_SN

The default should be changed or spin_orbit_tilt option should output both.

What is the preferred behaviour here?

@maxbriel maxbriel added bug Something isn't working help wanted Extra attention is needed labels Mar 22, 2024
@maxbriel
Copy link
Collaborator Author

maxbriel commented Mar 22, 2024

The naming of the attributes are also different in their initialisation compared to their where they're set?

In SingleStar.py:

if not hasattr(self, 'spin_orbit_tilt_first_SN'):
      self.spin_orbit_tilt_SN1 = None
if not hasattr(self, 'spin_orbit_tilt_second_SN'):
      self.spin_orbit_tilt_SN2 = None

In step_SN.py, one of the sets:

binary.star_1.spin_orbit_tilt_first_SN = tilt
binary.star_2.spin_orbit_tilt_first_SN = tilt

Would this be sufficient as a fix? Commit on max_synpop_population branch for: attribute names - 590e440 population_params_default.ini: 2355763

@mpgalleg
Copy link
Contributor

I prefer spin_orbit_tilt option outputting both.

We use S1, S2, CC1, CC2 etc so it is inconsistent to use first_SN and second_SN. If we can reduce that, especially in the output, that would be best I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants