Skip to content

Commit 1bd574a

Browse files
authored
Merge pull request #652 from StingraySoftware/abigailstev-docs-update
Docs update for v1
2 parents cde201a + 0947a28 commit 1bd574a

21 files changed

+902
-674
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Changelog
22
=========
33

4-
v1.0beta (2022-02-25)
4+
v1.0 (2022-03-29)
55
---------------------
6-
TL,DR: these things will break your code with v1.0beta:
6+
TL,DR: these things will break your code with v1.0:
77

88
- Python version < 3.8
99
- The ``gtis`` keyword in `pulse/pulsar.py` (it is now ``gti``, without the 's')
@@ -18,7 +18,7 @@ New
1818
- New infrastructure for converting ``EventList`` and ``LightCurve`` objects into Astropy ``TimeSeries``
1919
- New infrastructure for converting most Stingray classes into Astropy ``Table`` objects, Xarray and Pandas data frames.
2020
- Save and load of most Stingray classes to/from many different file formats (``pickle``, ``ECSV``, ``HDF5``, ``FITS``, and all formats compatible with Astropy Table)
21-
- Accept input ``EventList`` in ``DynamicalPowerSpectrum``
21+
- Accept input ``EventList`` in ``DynamicalPowerSpectrum``
2222
- New ``stingray.fourier`` module containing the basic timing products, usable on ``numpy`` arrays, and centralizes fft import
2323
- New methods in ``Crossspectrum`` and ``Powerspectrum`` to load data from specific inputs: ``from_events``, ``from_lightcurve``, ``from_time_array``, ``from_lc_list`` (``from_time_array`` was also tested using memory-mapped event lists as inputs: useful in very large datasets)
2424
- New and improved spectral timing methods: ``ComplexCovarianceSpectrum``, ``CovarianceSpectrum``, ``LagSpectrum``, ``RmsSpectrum``
@@ -52,7 +52,9 @@ Bug fixes
5252

5353
`Full list of changes`__
5454

55-
__ https://github.com/StingraySoftware/stingray/compare/v0.3...v1.0-beta
55+
__ https://github.com/StingraySoftware/stingray/compare/v0.3...v1.0
56+
57+
v1.0beta was released on 2022-02-25.
5658

5759
v0.3 (2021-05-31)
5860
-----------------

CONTRIBUTING.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,33 @@
44

55
> All great things have small beginnings.
66
7-
Hello there! We love and appreciate every small contribution you can make to improve stingray!
8-
We are proudly open source and believe our(yes! yours as well) work will help enhance the quality of research around the world. We want to make contributing to stingray as easy and transparent as possible, whether it's:
7+
Hello there! We love and appreciate every small contribution you can make to
8+
improve Stingray! We are proudly open source and believe our(yes! yours as
9+
well) work will help enhance the quality of research around the world. We
10+
want to make contributing to stingray as easy and transparent as possible,
11+
whether it's:
912

1013
- Reporting a bug
1114
- Discussing the current state of the code
1215
- Submitting a fix
1316
- Proposing new features
1417

15-
A successful project is not just built by amazing programmers but by the combined, unrelenting efforts of coders, testers, reviewers, and documentation writers. There are a few guidelines that we need all contributors to follow so that we can have a chance of keeping on top of things.
18+
A successful project is not just built by amazing programmers but by the
19+
combined, unrelenting efforts of coders, testers, reviewers, and documentation
20+
writers. There are a few guidelines that we need all contributors to follow so
21+
that we can have a chance of keeping on top of things.
1622

1723
## Contribution Guidelines
1824

1925
---
2026

21-
Contributions from everyone, experienced and inexperienced, are welcome! If you don't know where to start, look at the [Open Issues](https://github.com/StingraySoftware/stingray/issues) and/or get involved in our [Slack channel](http://slack-invite.timelabtechnologies.com/) . This code is written in Python 3.8+, but in general we will follow the Astropy/Numpy minimum Python versions. Tests run at each commit during Pull Requests, so it is easy to single out points in the code that break this compatibility.
27+
Contributions from everyone, experienced and inexperienced, are welcome! If
28+
you don't know where to start, look at the
29+
[Open Issues](https://github.com/StingraySoftware/stingray/issues) and/or get
30+
involved in our [Slack channel](http://slack-invite.timelabtechnologies.com/).
31+
This code is written in Python 3.8+, but in general we will follow the Astropy/
32+
Numpy minimum Python versions. Tests run at each commit during Pull Requests,
33+
so it is easy to single out points in the code that break this compatibility.
2234

2335
- **Branches:**
2436
- Don't use your main **branch (forked) for anything. Consider deleting your main** branch.
@@ -36,7 +48,10 @@ Contributions from everyone, experienced and inexperienced, are welcome! If you
3648

3749
### Contribution Workflow
3850

39-
These, conceptually, are the steps you will follow in contributing to stingray. These steps keep work well organized, with readable history. This in turn makes it easier for project maintainers (that might be you) to see what you’ve done, and why you did it:
51+
These, conceptually, are the steps you will follow in contributing to
52+
Stingray. These steps keep work well organized, with readable history. This in
53+
turn makes it easier for project maintainers (that might be you) to see what
54+
you’ve done, and why you did it:
4055

4156
1. Regularly fetch latest stingray development version `stingray/main` from GitHub.
4257
2. Make a new feature branch. **Recommended:** Use virtual environments to work on branch.
@@ -118,7 +133,9 @@ Code Reviews are super-useful: another contributor can review the code, which me
118133

119134
---
120135

121-
The testing framework used by stingray is the pytest framework with tox. To run the tests, you will need to make sure you have the pytest package (version 3.1 or later) as well as the tox tool installed.
136+
The testing framework used by stingray is the pytest framework with tox. To
137+
run the tests, you will need to make sure you have the pytest package (version
138+
3.1 or later) as well as the tox tool installed.
122139

123140
- Execute tests using the ```tox -e <test environment>``` command.
124141
- All tests should be py.test compliant: [http://pytest.org/latest/](http://pytest.org/latest/).
@@ -130,4 +147,4 @@ The testing framework used by stingray is the pytest framework with tox. To run
130147

131148
---
132149

133-
- Please refer [CODE_OF_CONDUCT.md](https://github.com/StingraySoftware/stingray/blob/master/CODE_OF_CONDUCT.md) to read about the Community Guidelines
150+
- Please refer to [CODE_OF_CONDUCT.md](https://github.com/StingraySoftware/stingray/blob/main/CODE_OF_CONDUCT.md) to read about the Community Guidelines

CREDITS.rst

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,44 @@ Stingray Project Coordinators
1414
Contributors
1515
============
1616

17+
* Riccardo Campana
18+
* Meg Davis
19+
* Amogh Desai
20+
* Omar Gamal
21+
* Nitish Garg
22+
* Nick Gorgone
23+
* Anurag Hota
24+
* Ajit Jadhav
25+
* Usman Khan
26+
* Sambhav Kothari
27+
* Sandeep Kumar
28+
* Max Mahlke
29+
* Evandro Martinez Ribeiro
30+
* Himanshu Mishra
31+
* Sashank Mishra
32+
* Stuart Mumford
33+
* paopaofi
34+
* parkma99
35+
* Francesco Pisanu
36+
* Rashmi Raj
37+
* Haroon Rashid
38+
* Achilles Rasquinha
39+
* Saurav Sachidanand
40+
* Parul Sethi
41+
* Swapnil Sharma
42+
* Brigitta Sipocz
43+
* Arfon Smith
44+
* John Swinbank
45+
* Akash Tandon
46+
* tappina
47+
* Mihir Tripathi
48+
* Ricardo Vallés Blanco
49+
* Dhruv Vats
50+
1751
If you have contributed to Stingray and your name is missing,
1852
please send an email to the coordinators, or
19-
`open a pull request for this page <https://github.com/StingraySoftware/stingray/CREDITS.rst>`_
20-
in the `Stingray repository <https://github.com/StingraySoftware/stingray>`_)
53+
`open a pull request for this page <https://github.com/StingraySoftware/stingray/blob/main/CREDITS.rst>`_
54+
in the `Stingray repository <https://github.com/StingraySoftware/stingray>`_.
2155

2256
Acknowledgements
2357
================

docs/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Dynamical Powerspectrum
8888
.. autoclass:: stingray.DynamicalPowerspectrum
8989
:members:
9090
:inherited-members:
91+
92+
----
9193

9294
CrossCorrelation
9395
----------------

docs/citing.rst

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Citing Stingray
33
***************
44

55
Citations are still the main currency of the academic world, and *the* best way to ensure that Stingray continues to be supported and we can continue to work on it.
6-
If you use Stingray in data analysis leading to a publication, we ask that you cite *both* a `DOI <https://www.doi.org>`_ which points to the software itself *and* our papers describing the Stingray project.
6+
If you use Stingray in data analysis leading to a publication, we ask that you cite *both* a `DOI <https://www.doi.org>`_, which points to the software itself, *and* our papers describing the Stingray project.
77

88
DOI
99
===
@@ -74,27 +74,6 @@ Please cite both of the following papers:
7474
document.body.removeChild(el);
7575
}
7676
77-
function copyAsclBib() {
78-
var bibtex = `@MISC{2016ascl.soft08001H,
79-
author = {{Huppenkothen}, Daniela and {Bachetti}, Matteo and {Stevens}, Abigail L. and {Migliari}, Simone and {Balm}, Paul},
80-
title = "{Stingray: Spectral-timing software}",
81-
keywords = {Software},
82-
year = 2016,
83-
month = aug,
84-
eid = {ascl:1608.001},
85-
pages = {ascl:1608.001},
86-
archivePrefix = {ascl},
87-
eprint = {1608.001},
88-
adsurl = {https://ui.adsabs.harvard.edu/abs/2016ascl.soft08001H},
89-
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
90-
}`;
91-
const el = document.createElement('textarea');
92-
el.value = bibtex;
93-
document.body.appendChild(el);
94-
el.select();
95-
document.execCommand('copy');
96-
document.body.removeChild(el);
97-
}
9877
</script>
9978

10079
<ul>

docs/contributing.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ We encourage you to get involved with Stingray in any way you can!
2020
First, read through the `README <https://github.com/StingraySoftware/stingray/blob/master/README.rst>`_.
2121
Then, fork the `stingray <https://github.com/StingraySoftware/stingray>`_ and `notebooks <https://github.com/StingraySoftware/notebooks>`_ repositories (if you need a primer on GitHub and git version control, `look here <https://www.webpagefx.com/blog/web-design/git-tutorials-beginners/>`_) and work your way through the Jupyter notebook tutorials for the main modules.
2222
Once you've familiarized yourself with the basics of Stingray, go to the `Stingray issues page <https://github.com/StingraySoftware/stingray>`_ and try to tackle one!
23-
Other ways to get involved are outlined on the `project ideas <http://timelabtechnologies.com/ideas.html>`_ page, along with some astrophysical background/motivation.
24-
Finally, you can read `these slides <https://speakerdeck.com/abigailstev/stingray-pyastro16>`_ from an early talk on Stingray at the Python in Astronomy 2016 conference.
23+
Finally, you can read `these slides <https://speakerdeck.com/abigailstev/time-series-exploration-with-stingray>`_ from a talk on Stingray in 2021 at the 9th Microquasar Workshop.
2524

2625
For organizing and coordinating the software development, we have a Slack group and a mailing list -- please use `this link <https://stingray-slack.herokuapp.com>`_ for Slack or send `one of us <https://github.com/orgs/StingraySoftware/people>`_ an email to join.

docs/dataexplo.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Data Exploration
2+
****************
3+
4+
These notebook tutorials show some ways to explore data with
5+
Stingray.
6+
7+
A quick look at a NuSTAR observation
8+
====================================
9+
10+
Stingray transparently loads datasets from many HEASOFT-supported missions.
11+
In this Tutorial, we will show an example quicklook of a NuSTAR observation.
12+
13+
.. toctree::
14+
:maxdepth: 2
15+
16+
notebooks/DataQuickLook/Quicklook NuSTAR data with Stingray.ipynb
17+
18+
19+
Spectral timing exploration with NICER
20+
======================================
21+
22+
In this Tutorial, we will show an example spectral timing exploration of a
23+
black hole binary using NICER data.
24+
25+
.. toctree::
26+
:maxdepth: 2
27+
28+
notebooks/Spectral Timing/Spectral Timing Exploration.ipynb

docs/history.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ History
44

55
.. include:: ../CHANGELOG.rst
66

7-
Performance improvements
8-
========================
9-
10-
Version 0.2 introduced a few performance improvements when ``Lightcurve`` objects are created.
11-
Once the user defines either the counts per bin or the count rates, the other quantity will be evaluated _lazily_, the first time it is requested.
12-
Also, we introduce a new ``low_memory`` option in ``Lightcurve``: if selected, and users define e.g. ``counts``, ``countrate`` will be calculated _every_time it is requested, and will not be stored in order to free up RAM.
13-
147
Previous projects merged to Stingray
158
====================================
169

docs/index.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are a number of official software packages for X-ray spectral fitting (XSP
1414
Such a widely used and standard software package does not exist for X-ray timing, so until now it has mainly been the domain of custom, proprietary software.
1515
Stingray originated during the 2016 workshop `The X-ray Spectral-Timing Revolution <http://www.lorentzcenter.nl/lc/web/2016/720/info.php3?wsid=720&venue=Oort/>`_: a group of X-ray astronomers and developers decided to agree on a common platform to develop a new software package.
1616
The goals were to merge existing efforts towards a timing package in Python, following the best guidelines for modern open-source programming, thereby providing the basis for developing spectral-timing analysis tools.
17-
This software provides an easily accessible scripting interface (possibly a GUI) and an API for power users.
17+
This software provides an easily accessible scripting interface, a GUI, and an API for experienced coders.
1818
Stingray's ultimate goal is to provide the community with a package that eases the learning curve for advanced spectral-timing techniques, with a correct statistical framework.
1919

2020
Further spectral-timing functionality, in particularly command line scripts based on the API defined within Stingray, is available in the package `HENDRICS <https://github.com/StingraySoftware/HENDRICS>`_.
@@ -33,9 +33,8 @@ Contents
3333
intro
3434
install
3535
core
36-
quicklook
36+
dataexplo
3737
modeling
38-
spectime
3938
simulator
4039
pulsar
4140
deadtime

docs/install.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ You may need to install tox first::
8888

8989
$ pip install tox
9090

91+
To run a specific test file (e.g., test_io.py), try::
92+
93+
$ cd stingray
94+
$ py.test tests/test_io.py
95+
9196
If you have installed Stingray via pip or conda, the source directory might
9297
not be easily accessible. Once installed, you can also run the tests using::
9398

@@ -104,7 +109,7 @@ Documentation
104109
-------------
105110

106111
The documentation including tutorials is hosted `here <https://docs.stingray.science/>`_.
107-
The documentation uses `sphinx <https://www.sphinx-doc.org/en/stable/>`_ to build and requires the extension sphinx-astropy <https://pypi.org/project/sphinx-astropy/>`_.
112+
The documentation uses `sphinx <https://www.sphinx-doc.org/en/stable/>`_ to build and requires the extensions `sphinx-astropy <https://pypi.org/project/sphinx-astropy/>`_ and `nbsphinx <https://pypi.org/project/nbsphinx/>`_.
108113

109114
You can build the API reference yourself by going into the ``docs`` folder within the ``stingray`` root
110115
directory and running the ``Makefile``: ::
@@ -115,7 +120,7 @@ directory and running the ``Makefile``: ::
115120
If that doesn't work on your system, you can invoke ``sphinx-build`` itself from the stingray source directory: ::
116121

117122
$ cd stingray
118-
$ $ sphinx-build docs docs/_build
123+
$ sphinx-build docs docs/_build
119124

120125
The documentation should be located in ``stingray/docs/_build``. Try opening ``./docs/_build/index.rst`` from
121126
the stingray source directory.

docs/intro.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Current Capabilities
1515

1616
Currently implemented functionality in this library comprises:
1717

18-
* loading event lists from fits files of a few missions (RXTE/PCA, NuSTAR/FPM, XMM-Newton/EPIC)
18+
* loading event lists from fits files of a few missions (RXTE/PCA, NuSTAR/FPM, XMM-Newton/EPIC, NICER/XTI)
1919
* constructing light curves from event data, various operations on light curves (e.g. addition, subtraction, joining, and truncation)
2020
* Good Time Interval operations
2121
* power spectra in Leahy, rms normalization, absolute rms and no normalization
@@ -60,7 +60,8 @@ Presentations
6060

6161
Members of the Stingray team have given a number of presentations which introduce Stingray.
6262
These include:
63-
63+
- `2nd Severo Ochoa School on Statistics, Data Mining, and Machine Learning (2021) <https://github.com/abigailStev/timeseries-tutorial>`_
64+
- `9th Microquasar Workshop (2021) <https://speakerdeck.com/abigailstev/time-series-exploration-with-stingray>`_
6465
- `European Week of Astronomy and Space Science (2018) <http://ascl.net/wordpress/2018/05/24/software-in-astronomy-symposium-presentations-part-3/>`_
6566
- `ADASS (Astronomical Data Analysis Software and Systems; meeting 2017, proceedings 2020) <https://ui.adsabs.harvard.edu/abs/2020ASPC..522..521M/abstract>`_
6667
- `AAS 16th High-Energy Astrophysics Division meeting (2017) <https://speakerdeck.com/abigailstev/stingray-open-source-spectral-timing-software>`_

docs/quicklook.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/spectime.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author = Stingray Developers
44
author_email = [email protected]
55
license = MIT
66
license_file = LICENSE.rst
7-
url = https://stingray.readthedocs.io/
7+
url = https://docs.stingray.science
88
description = Time Series Methods For Astronomical X-ray Data
99
long_description = file: README.rst
1010
long_description_content_type = text/x-rst
@@ -49,6 +49,7 @@ test =
4949
pytest
5050
pytest-astropy
5151
docs =
52+
jinja2<=3.0.0
5253
docutils
5354
sphinx-astropy
5455
nbsphinx>=0.8.3,!=0.8.8

0 commit comments

Comments
 (0)