Skip to content

Releases: NickSwainston/pulsar_spectra

Improved plotting features, more publications and error fixing

18 Jan 02:12
Compare
Choose a tag to compare

Version 2.0.4 documentation

Software updates

New features (thanks to @cplee1)

  • The matplotlib plotting options to change the figure, model, and markers are now stored in a config file which is built using build_plotting_config.py.
  • Can now generate a set of unique marker types that can be used to easily create a consistent set of markers for a multi-pulsar plot (example in the docs).

Bug fixes (thanks to @cplee1 and @robotopia)

  • Corrected typo in model equations
  • Plot limits now scale to the freqs/bands/fit_range in the x-axis and the fluxs/flux_errs in the y-axis, which fixes an issue with the plot scaling to the model in the y-axis
  • The legend is now ordered using the Python sort method (catalogue yamls only; not ATNF or Your Work)

Catalogue updates

New publications (thanks to @YuTing-pulsar and @harvey0908)

Updated publications (thanks to @YuTing-pulsar, @cplee1 and @Edgar-Degas)

Thesis version

26 Apr 03:44
06739f6
Compare
Choose a tag to compare

This is the version of pulsar_spectra that was used in Nicholas Swainston's Thesis

More publications

26 Apr 09:42
b468543
Compare
Choose a tag to compare

psrqpy fix

23 Nov 03:38
504f68a
Compare
Choose a tag to compare

Version 2.0.1 documentation

Software updates

  • Using the latest version of psrqpy that allows specific versions of the references to prevent errors.
  • Created a docker container for easier installation

v2.0 Bandwidth Integration

02 Nov 12:49
b5fee83
Compare
Choose a tag to compare

Version 2.0 documentation

Software updates

  • Added the bandwidth of all flux density measurements in the catalogue
  • Now take into account the bandwidth of flux density measurements by integrating the model over the bandwidth to more accurately fit data with large fractional bandwidths
  • Made an executable script, quick_fit.py to do a quick spectra fit
  • No longer use log parabolic spectrum model by default
  • Added some docs on how to add a model and what the _ATNF label means
  • All psrqpy queries will use version 1.68 of the ATNF pulsar catalogue
  • Created tests that use GitHub actions. They test the catalogue to assert pulsar names are consistent with the ATNF, it's correctly formatted, there is no redundant ATNF data, and there ADS links are recorded

Catalogue updates

New publications

Updated publications

  • Rounded McEwen_2020 to one decimal place
  • Renamed Hobbs_2004 as Hobbs_2004a
  • Modified Hobbs_2004a to include the discovery fluxes and not use the fluxes from other papers
  • Changed Lorimer_1995 to Lorimer_1995a, Kramer_2003 to Kramer_2003a and Lorimer_1995 to Lorimer_1995b
  • I believe there was a typo in the Murphy_2017 table, so fixed a frequency value
  • Removed Sieber_1973 and Taylor_1993 because it is full of other publications and has no bandwidth recorded
  • Fixed Johnston_2018 and Qiao_1995. There were typos that caused their uncertainties to be zero

v1.4

05 Aug 01:32
9ff5275
Compare
Choose a tag to compare

Some updates before submitting comment revisions for Lee et al. 2022.

Version 1.4 documentation

Software updates

  • Added a function to calculate the peak frequency for log parabolic spectrum fit (thank you Sammy McSweeney for helping me with the math)
  • Made it so that the high-frequency cut-off fit's cut-off frequency has a maximum of 100 times the data's max frequency
  • Updated the models so the scaling constant is always c
  • Added a ref_markers argument which can override the plot's default data markers
  • Added docs for:
    • Publication-quality plots
    • Custom marker types
    • Secondary model plotting
  • Added the spectral index to the high-frequency cut-off model instead of having it set at -2
  • Implemented a function to perform the emission height calculation.

Catalogue updates

Updated publications

  • Fixed error in Bates_2011 uncertainties

Catalogue coverage compared to ATNF

Source # pulsars
Only ANTF 1640
Both catalogues 650
Only pulsar_spectra 537
Neither catalogues 493

Publication ready

22 May 05:48
d2ceb44
Compare
Choose a tag to compare

This software is now ready to be used by the public and has been published in Swainstion et al. 2022 and Lee et al. 2022.

Version 1.3 documentation

Software updates

  • Added alternate plotting style for publications
  • Added the ability to plot multiple fits to compare spectra before and after adding new data
  • Improved fitting by adjusting model limits and reducing fit tolerance
  • Improved the documentation to include more examples and explanations of the fitting, catalogue and how to add to the catalogue
  • Put all model defaults into a model_settings function so it will be easier to add new models or play with defaults in the future
  • Implemented double broken power-law, but kept it de-activated for now

Catalogue updates

New publications

Updated publications

Catalogue coverage compared to ATNF

Source # pulsars
Only ANTF 1667
Both catalogues 866
Only pulsar_spectra 298
Neither catalogues 488

Simple Documentation

26 Jan 09:34
Compare
Choose a tag to compare

Rewrote how the catalogue data is handled to make it simpler and added an example to the documentation

Quick fix

13 Jan 06:07
Compare
Choose a tag to compare

Made the versioning manual to prevent pip errors

Version 1.0

13 Jan 05:34
54da5b8
Compare
Choose a tag to compare

The repository is now in a reasonable state so releasing the first version.