-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5a093b
commit f4555af
Showing
5 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from pulsar_spectra.catalogues import collect_catalogue_fluxes | ||
from pulsar_spectra.spectral_fit import find_best_spectral_fit | ||
|
||
cat_list = collect_catalogue_fluxes() | ||
pulsar = 'J1453-6413' | ||
freqs, fluxs, flux_errs, refs = cat_list[pulsar] | ||
find_best_spectral_fit(pulsar, freqs, fluxs, flux_errs, refs, plot_best=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Examples | ||
======== | ||
|
||
Simple example | ||
-------------- | ||
|
||
The following can be run to fit J1453-6413 | ||
|
||
.. code-block:: python | ||
from pulsar_spectra.catalogues import collect_catalogue_fluxes | ||
from pulsar_spectra.spectral_fit import find_best_spectral_fit | ||
cat_list = collect_catalogue_fluxes() | ||
pulsar = 'J1453-6413' | ||
freqs, fluxs, flux_errs, refs = cat_list[pulsar] | ||
find_best_spectral_fit(pulsar, freqs, fluxs, flux_errs, refs, plot_best=True) | ||
This will produce J1453-6413_simple_power_law_fit.png | ||
|
||
.. image:: figures/J1453-6413_simple_power_law_fit.png | ||
:width: 800 | ||
|
||
.. code-block:: bash | ||
python setup.py install | ||
or | ||
|
||
.. code-block:: bash | ||
pip install . |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters