.. _install: Installation ============ .. Note:: Requires: Python >=3.8 Tested on: * macOS Monterey (12.6.4) - Ventura (13.2.1) How to Install -------------- The GDT-RXTE package can be installed from PyPI using: .. code-block:: sh pip install astro-gdt-rxte gdt-data init .. _download_test_data: Downloading RXTE Data ---------------------- To download the data files that can be used with this package you need to run the ``gdt-data`` script after installation. The downloader script is designed so that you can download data from specific missions, or download all of the test/tutorial data. To see the list of available missions .. code-block:: sh gdt-data --help .. Note:: This package is accompanied by a `special data release `_. The download is 1.6 GB and unpacks to 5.7 GB. If you want to download the RXTE data: .. code-block:: sh gdt-data download rxte-asm This downloads the data release, and to unpack the data, run: .. code-block:: sh unpack-rxte-asm The data are downloaded and unpacked to a default directory. To access the data from the GDT, there is a variable at the main level that stores the path dictionary for each mission. To access the RXTE ASM data directory: >>> from gdt.core import data_path >>> rxte_path = data_path.joinpath('rxte-asm') Once you are done using the data, you can delete the data files with the following command: .. code-block:: sh gdt-data clean rxte-asm ---- Quickstart ---------- To load the GDT-RXTE package within your python environment, simply:: >>> import gdt.missions.rxte as rxte How to Uninstall ---------------- To uninstall: .. code-block:: sh gdt-data clean gdt-rxte pip uninstall astro-gdt-rxte There are also a number of files for the tools that are copied into your ``$HOME/.gammaray_data_tools`` directory. You can delete these files if you wish. Known Issues ------------ * **There appears to be some differences arising between installations on Mac ARM processors (M1 and M2 chips) and other Mac or Linux processors.** As of now, this only shows up when using some of the minimizers provided through scipy.optimize.minimize for spectral fitting. Users can test for the presence of these differences by running the unit tests. The known failures on Mac ARM processors are: * test_fitting.py::TestSpectralFitterOne::test_hessian * test_fitting.py::TestSpectralFitterOne::test_jacobian * test_fitting.py::TestSpectralFitterOne::test_residuals The current understanding is that differences arise in spectral fit values above machine precision, but represent < 1% relative errors on the fit values themselves. The exact origin of these differences is unclear, but may be related to the underlying C or FORTRAN libraries and compilers that are used to compile scipy. Further investigation is ongoing. * **The virtual environment is using your system ipython (or other package) install.** This can sometimes happen if you didn't install ipython (or other package) in the virtual environment. Try installing ipython (or other package) and restart your virtual environment. * **You observe the following error**:: ImportError: No module named '_tkinter' This is a situation where Matplotlib is using the ``tkinter`` backend for plotting. You would see this error if you don't have ``tkinter`` installed. You don't need to install ``tkinter`` if you don't want to; instead, you can create a file named `matplotlibrc` in your working directory that contains the following:: backend : Agg