Skip to content

Conversation

@NihanPol
Copy link

This pull request ensures psrpoppy2 is able to work with Python 3.x.

This pull request also introduces capability to associate orbital parameters with a Pulsar object, though functionality to use them to calculate the orbital degradation factor still remains to be implemented (ongoing work).

NihanPol and others added 23 commits February 4, 2020 15:09
1. Modify pulsar.py to add orbital degradation factor as an attribute to each pulsar object (orb_degfac).
2. Modify survey.py to record the snr for each pulsar object in its pulsar.snr attribute.
m1 -> mass of psr
m2 -> mass of companion
om -> angle of periastron passage (omper)
inc -> inclination of BNS system
ec -> eccentricity of BNS
pod -> orbital period of BNS
m -> harmonic at which power is computed

Consequently, added functionality for Population object to hold the ranges of the BNS orbital parameters.

populate.generate() now draws uniformly from the range of orbital parameters supplied by the user (as a dictionary).
cannot compare float to NoneType in Python3. changed gpsargs to [-1, -1] from [-1, None] so that condition evaluates to true for default case.
cannot compare floats to NoneType in py3. change gpsfrac to -1 so that default behavior is satisfied.
@devanshkv devanshkv linked an issue Jul 15, 2020 that may be closed by this pull request
@devanshkv devanshkv self-requested a review August 25, 2020 00:26
@devanshkv devanshkv self-assigned this Aug 25, 2020
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.

need a setup.py

3 participants