Skip to content

Commit 51ba471

Browse files
authored
Merge pull request #769 from DavidT3/docs/readyForRelease
Docs/ready for release
2 parents 0f6c1a3 + 8e4b4a3 commit 51ba471

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+199
-175
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Documentation Status](https://readthedocs.org/projects/xga/badge/?version=latest)](https://xga.readthedocs.io/en/latest/?badge=latest)
66
[![Coverage Percentage](https://raw.githubusercontent.com/DavidT3/XGA/master/tests/coverage_badge.svg)](https://raw.githubusercontent.com/DavidT3/XGA/master/tests/coverage_badge.svg)
77

8-
# What is XMM: Generate and Analyse (XGA)?
8+
# What is X-ray: Generate and Analyse (XGA)?
99

1010
XGA is a Python module designed to make it easy to analyse X-ray sources that have been observed by the XMM-Newton Space telescope. It is based around declaring different types of source and sample objects which correspond to real X-ray sources, finding all available data, and then insulating the user from the tedious generation and basic analysis of X-ray data products.
1111

@@ -17,6 +17,16 @@ This module also supports more complex analyses for specific object types; the e
1717
This is a slightly more complex installation than many Python modules, but shouldn't be too difficult. If you're
1818
having issues feel free to contact me.
1919

20+
## Data Required to use XGA
21+
### Cleaned Event Lists
22+
**This is very important** - Currently, to make use of this module, you **must** have access to cleaned XMM-Newton
23+
event lists, as XGA is not yet capable of producing them itself.
24+
25+
### Region Files
26+
It will be beneficial if you have region files available, as it will allow XGA to remove interloper sources. If you
27+
wish to use existing region files, then they must be in a DS9 compatible format, **point sources** must be **red** and
28+
**extended sources** must be **green**.
29+
2030
## The Module
2131
XGA has been uploaded to PyPi, so you can simply run:
2232
```shell script
@@ -34,8 +44,7 @@ python setup.py install
3444
XGA depends on two non-Python pieces of software:
3545
* XMM's Science Analysis System (SAS) - Version 17.0.0, but other versions should be largely compatible with the
3646
software. SAS version 14.0.0 however, does not support features that PSF correction of images depends on.
37-
* HEASoft's XSPEC - Version 12.10.1, **I can't guarantee later versions will work.**
38-
* HEASoft's XSPEC - Version 12.10.1, **I can't guarantee later versions will work.**
47+
* HEASoft's XSPEC - Version 12.10.1, but other versions should be largely compatible even if I have not tested them.
3948

4049
All required Python modules can be found in requirements.txt, and should be added to your system during the
4150
installation of XGA.

docs/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2+
# Last modified by David J Turner (david.turner@sussex.ac.uk) 02/02/2022, 11:37. Copyright (c) The Contributors
3+
14
# Configuration file for the Sphinx documentation builder.
25
#
36
# This file only contains a selection of the most common options. For a full
@@ -58,8 +61,8 @@
5861

5962
# -- Project information -----------------------------------------------------
6063

61-
project = 'XMM: Generate and Analyse (XGA)'
62-
copyright = '2021, David J Turner'
64+
project = 'X-ray: Generate and Analyse (XGA)'
65+
copyright = '2022, David J Turner'
6366
author = 'David J Turner'
6467

6568
# The full version, including alpha/beta/rc tags

docs/source/future.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Planned XGA Features
1111

1212
* **Ability to save ScalingRelation objects** - The ability to save ScalingRelation objects to disk in some way, so that code to generate them doesn't need to be run multiple times.
1313

14-
* **Support for other X-ray telescopes** - Support for generation and analysis of data products from other telescopes (I guess than XGA will come to mean 'X-ray: Generate and Analyse', rather than 'XMM: Generate and Analyse').
14+
* **Support for other X-ray telescopes** - Support for generation and analysis of data products from other telescopes.
1515

1616
* **Creating a Docker image for users to download** - Creating a Docker environment with SAS and HEASoft already installed, for ease of use.
1717

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. XMM: Generate and Analyse (XGA) documentation master file, created by
1+
.. X-ray: Generate and Analyse (XGA) documentation master file, created by
22
sphinx-quickstart on Thu Dec 17 12:18:33 2020.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to XMM: Generate and Analyse (XGA)'s documentation!
6+
Welcome to X-ray: Generate and Analyse (XGA)'s documentation!
77
===========================================================
88
.. toctree::
99
:maxdepth: 2

docs/source/intro.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Introduction to XGA
22
===================
33

4-
XMM: Generate and Analyse (XGA) is a Python module designed to make it easy to analyse X-ray sources that have been
4+
X-ray: Generate and Analyse (XGA) is a Python module designed to make it easy to analyse X-ray sources that have been
55
observed by the XMM-Newton Space telescope. It is based around declaring different types of source and sample
66
objects which correspond to real X-ray sources, finding all available data, and then insulating the user from the
77
tedious generation and basic analysis of X-ray data products (though with the option to get stuck into the data
@@ -21,9 +21,7 @@ to investigate how properties change radially with distance from the centre, and
2121
masses of clusters.
2222

2323
While XGA is a piece of open source software, I would appreciate it if any work that makes use of it would cite the
24-
Journal of Open Source Software paper that will accompany this package. It is in preparation, but has not yet been
25-
submitted, so if you are going to use this module in a piece of work please get in touch with me so we can work
26-
something out.
24+
paper accompanying this package, which can be found in the :doc:`publications` section.
2725

2826
If wish to contribute to XGA, have feature suggestions, or any comments at all, then please go to the
2927
"Getting Support" section and submit an issue on GitHub/send me an email, I'll be happy to hear from you!

docs/source/notebooks/advanced_tutorials/annular_spectra.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,4 +810,4 @@
810810
},
811811
"nbformat": 4,
812812
"nbformat_minor": 4
813-
}
813+
}

docs/source/publications.rst

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@ using XGA please cite the XGA software paper, which is the first entry in this t
66
your work to this page.
77

88
.. list-table::
9-
:widths: 20 15 20 15 30
9+
:widths: 20 15 10 15 40
1010
:header-rows: 1
1111

1212
* - Lead Author
1313
- Year
14-
- DOI
15-
- NASA/ADS
14+
- ADS
15+
- Code
1616
- Notes
1717
* - `D. J. Turner <https://orcid.org/0000-0001-9658-1396>`_
18-
- In Prep
19-
-
18+
- 2022
2019
-
20+
- `Repo <https://github.com/DavidT3/XGA>`_
2121
- XGA Software Paper
2222
* - `D. J. Turner <https://orcid.org/0000-0001-9658-1396>`_
2323
- 2021
24-
-
2524
- `ADS <https://ui.adsabs.harvard.edu/abs/2021arXiv210911807T/abstract>`_
26-
- eFEDS-XCS Cluster Comparison
25+
- `Repo <https://github.com/DavidT3/eFEDS-XCS-Paper>`_
26+
- eFEDS-XCS Cluster Analysis
2727
* - `D. S. Pillay <https://orcid.org/0000-0002-1602-4168>`_
2828
- 2021
29-
- `MDPI Galaxies <https://doi.org/10.3390/galaxies9040097>`_
3029
- `ADS <https://ui.adsabs.harvard.edu/abs/2021arXiv211104340P/abstract>`_
31-
- ACTCL J0019.6+0336 Follow-up
30+
-
31+
- ACTCLJ0019.6+0336 Analysis
32+
* - `C. J. Burke <https://orcid.org/0000-0001-9947-6911>`_
33+
- 2021
34+
- `ADS <https://ui.adsabs.harvard.edu/abs/2021arXiv211103079B/abstract>`_
35+
- `Repo <https://github.com/DavidT3/XCS-DES-AGN-Prelim>`_
36+
- DES AGN Confirmation

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

3-
# This code is a part of XMM: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
4-
# Last modified by David J Turner (david.turner@sussex.ac.uk) 10/03/2021, 16:22. Copyright (c) David J Turner
3+
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
4+
# Last modified by David J Turner (david.turner@sussex.ac.uk) 02/02/2022, 11:37. Copyright (c) The Contributors
55

66
from os import path
77

tests/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# This code is a part of XMM: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2-
# Last modified by David J Turner (david.turner@sussex.ac.uk) 12/10/2021, 10:53. Copyright (c) David J Turner
1+
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2+
# Last modified by David J Turner (david.turner@sussex.ac.uk) 02/02/2022, 11:37. Copyright (c) The Contributors
33

4-
import sys
54
import os
5+
import sys
66

77
from astropy.units import Quantity
88

tests/all_test_and_badge.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
#
2+
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
3+
# Last modified by David J Turner (david.turner@sussex.ac.uk) 02/02/2022, 11:37. Copyright (c) The Contributors
4+
#
5+
16
pytest --cov
27
coverage-badge -o coverage_badge.svg

0 commit comments

Comments
 (0)