Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring muse_dev up-to-date with version 4.x #106

Open
wants to merge 87 commits into
base: muse_dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
1ddd60a
rm use of MANGADAP_DIR env var
kbwestfall Feb 24, 2022
091c3ca
test import cleanup
kbwestfall Feb 24, 2022
a417121
mv manga-specific env checks into config.defaults
kbwestfall Feb 24, 2022
9b89f7a
example script updates
kbwestfall Feb 24, 2022
e04764f
rm exception_tools
kbwestfall Feb 24, 2022
7277d60
initial commit for config changes
kbwestfall Feb 24, 2022
7f53c53
migrating DRPFits to MaNGAConfig
kbwestfall Feb 25, 2022
3f905c5
mv drpfits
kbwestfall Feb 25, 2022
6b898b4
middle of migration
kbwestfall Feb 25, 2022
81114f7
finished first migration
kbwestfall Feb 25, 2022
a32e495
test fixes; numpy and scipy deprecation fixes
kbwestfall Feb 25, 2022
08f0a2b
add drptype (key) to AnalysisPlan
kbwestfall Feb 25, 2022
877907f
interrupt
kbwestfall Mar 1, 2022
3d8dc90
mv plan
kbwestfall Mar 2, 2022
95c6059
start testing
kbwestfall Mar 2, 2022
621b37e
digging in
kbwestfall Mar 3, 2022
4ac87d8
tests pass
kbwestfall Mar 7, 2022
7ed3beb
ppxf qa script
kbwestfall Mar 8, 2022
24be2f6
spotcheck
kbwestfall Mar 8, 2022
7238792
fit residuals
kbwestfall Mar 8, 2022
61f8c2c
doc update
kbwestfall Mar 8, 2022
56aac93
test fix and CHANGES
kbwestfall Mar 8, 2022
9166496
readthedocs install fix
kbwestfall Mar 8, 2022
fe529e0
update example scripts
kbwestfall Mar 8, 2022
e439ecc
sasuke test tolerance
kbwestfall Mar 8, 2022
47cab02
example update
kbwestfall Mar 8, 2022
fbe0c90
try sasuke test again
kbwestfall Mar 8, 2022
fcb684b
fit_one_spec and docs
kbwestfall Mar 9, 2022
c612ee2
change filename
kbwestfall Mar 9, 2022
1033001
mv get_manga_dap_meta to DataCube
kbwestfall Mar 10, 2022
cc487b5
minor doc change
kbwestfall Mar 10, 2022
142dcdb
setup
kbwestfall Mar 14, 2022
3022043
fit datacube doc
kbwestfall Mar 14, 2022
2f22735
fit datacube doc
kbwestfall Mar 14, 2022
2920784
doc version
kbwestfall Mar 14, 2022
7753b2f
doc update
kbwestfall Mar 14, 2022
5d5461a
rm filter options from ppxf fitting
kbwestfall Mar 15, 2022
c92f9d4
clean defaults
kbwestfall Mar 15, 2022
c295a21
Merge branch 'io' into filter
kbwestfall Mar 15, 2022
66d683a
Merge branch 'io' into plan
kbwestfall Mar 15, 2022
608a99a
Merge branch 'filter' into plan
kbwestfall Mar 15, 2022
52278c3
massive changes for new parameter input scheme
kbwestfall Mar 29, 2022
f813bd4
test fixes
kbwestfall Mar 29, 2022
13e9a28
CHANGES and test fix
kbwestfall Mar 29, 2022
2fe96ad
skip codecov failure
kbwestfall Mar 29, 2022
07ec8a4
Merge pull request #100 from sdss/io
kbwestfall Mar 29, 2022
9065241
Merge branch 'develop' into filter
kbwestfall Mar 29, 2022
2ba8132
Merge pull request #101 from sdss/filter
kbwestfall Mar 29, 2022
894f52b
Merge branch 'develop' into plan
kbwestfall Mar 29, 2022
2140514
doc fixes
kbwestfall Mar 29, 2022
06d494f
cleanup
kbwestfall Mar 29, 2022
1c8a88d
qa script debugging
kbwestfall Mar 30, 2022
b9b4f1b
docs!
kbwestfall Apr 1, 2022
ab47717
Merge pull request #102 from sdss/plan
kbwestfall Apr 1, 2022
535519e
Merge pull request #103 from sdss/develop
kbwestfall Apr 1, 2022
3af32ec
readthedocs hotfix
kbwestfall Apr 1, 2022
be20768
package name hotfix
kbwestfall Apr 1, 2022
19db24a
add tomli dependence
kbwestfall Apr 1, 2022
c8fe520
CHANGES; manga_dap_inspector hotfix
kbwestfall Apr 5, 2022
f225d1d
mv old config files
kbwestfall Apr 5, 2022
dfc86e0
mv etc/ directory to outofdate
kbwestfall Apr 5, 2022
e233a8a
example config files are out of date
kbwestfall Apr 5, 2022
6a17da4
interrupt
kbwestfall Apr 5, 2022
dbe5043
begin rundap testing
kbwestfall Apr 5, 2022
8409156
test exec of rundap successful
kbwestfall Apr 6, 2022
212f201
script fixes
kbwestfall Apr 6, 2022
83bcbf4
doc update
kbwestfall Apr 6, 2022
f5a1ed1
rm mangampl
kbwestfall Apr 6, 2022
b0487ef
more cleanup
kbwestfall Apr 6, 2022
f75ef44
docs + test fixes
kbwestfall Apr 7, 2022
2e27ca4
fix postprocessing scripts
kbwestfall Apr 7, 2022
7ab22da
install doc
kbwestfall Apr 7, 2022
7096b9a
CHANGES
kbwestfall Apr 7, 2022
3a0ea25
cleanup
kbwestfall Apr 7, 2022
02c4fa4
badges
kbwestfall Apr 7, 2022
a9ad4c7
README and doc index.rst
kbwestfall Apr 7, 2022
38acbe7
Merge pull request #104 from sdss/rundap
kbwestfall Apr 11, 2022
c71d40e
pretag CHANGES
kbwestfall Apr 11, 2022
016fe92
codecov test
kbwestfall Apr 11, 2022
d363eb8
codecov fix
kbwestfall Apr 11, 2022
1f524c7
Merge pull request #105 from sdss/develop
kbwestfall Apr 12, 2022
dc2e113
codecov change
kbwestfall Apr 12, 2022
2022b56
Merge branch 'develop'
kbwestfall Apr 12, 2022
99d7a7a
CHANGES
kbwestfall Apr 29, 2022
44a005f
Merge branch 'master' into develop
kbwestfall Apr 29, 2022
dd3545b
Merge branch 'develop' into muse_dev_merge
kbwestfall Apr 29, 2022
8b06da6
bad import
kbwestfall Apr 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Upload coverage to codecov
if: "contains(matrix.toxenv, '-cov')"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV }}
file: ./coverage.xml
fail_ci_if_error: true
# with:
# token: ${{ secrets.CODECOV }}
# file: ./coverage.xml
# fail_ci_if_error: false

os-tests:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
Expand Down
50 changes: 45 additions & 5 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@

3.1.3dev
--------
4.0.3 (29 Apr 2022)
-------------------

- Minor change to `manga_dap_inspector` to change initial spectral plotting
limits to the minimum and maximum of the whole cube instead of just the
center spaxel.
- Deprecated most of the configuration files and directories to the `outofdate/`
directory.
- Fixed survey-level execution script `rundap` and the post-processing scripts
used to create the DAPall file and QA plots.

4.0.2 (1 Apr 2022)
------------------

- tomli dependency hotfix for pip distribution

4.0.1 (1 Apr 2022)
------------------

- Package name hot fix for pip distribution

4.0.0 (1 Apr 2022)
------------------

- Update to custom datacube class implementation. Previous version
required a file within the mangadap/ directory structure; new code
Expand All @@ -14,14 +35,33 @@
- Change scripting protocol
- tox testing CI
- Updated MANIFEST

- Major overhaul of how paths and output files are defined, needed to complete
abstraction and move away from MaNGA-specific code.
- Input paths and file names now defined as part of the DataCube subclass.
For MaNGA, this is done by subclassing the `MaNGADataCube` from the
`mangadap.config.manga.MaNGAConfig` class. For user-defined DataCube
subclasses, these paths can be defined directly.
- Output paths for primary output files now defined by the `AnalysisPlanSet`
object or a relevant subclass. For MaNGA, a subclass is necessary to put
all the files in a subdirectory using the plate and ifu, but likely most
other implementations can use `AnalysisPlanSet` directly. Reference file
names adjusted and defined by each main analysis class.
- Remove all instances of `numpy.float`, `numpy.int`, `numpy.bool`, given
impending numpy deprecation of these types.
- Added documentation for how to fit one spectrum and to fit a (non-MaNGA)
datacube.
- Remove "filtered" fitting from pPXF module
- Major refactor of how module parameters are input and changed.
- Input analysis plan is now provided by a toml file.
- Module parameter definition classes all now have defaults. Altering any
of those defaults is done via the plan toml file.

3.1.2 (29 Jul 2021)
-------------------

- Additional updates to documentation for DR17 release.
- Includes includes of MaNGA IDs used in the construction of the MaStar
HC version 2 library.
- Includes MaNGA IDs used in the construction of the MaStar HC version 2
library.


3.1.1 (1 Mar 2021)
Expand Down
110 changes: 33 additions & 77 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,101 +1,57 @@
# The MaNGA Data Analysis Pipeline

[![Build Status](https://travis-ci.org/sdss/mangadap.svg?branch=master)](https://travis-ci.org/sdss/mangadap)
[![Coverage Status](https://coveralls.io/repos/github/sdss/mangadap/badge.svg?branch=master)](https://coveralls.io/github/sdss/mangadap?branch=master)
[![Build Status](https://github.com/sdss/mangadap/actions/workflows/ci_tests.yml/badge.svg)](https://github.com/sdss/mangadap/actions)
[![Coverage Status](https://codecov.io/gh/sdss/mangadap/branch/master/graph/badge.svg?token=S4veEPJwS1)](https://codecov.io/gh/sdss/mangadap)
[![Doc Status](https://readthedocs.org/projects/sdss-mangadap/badge/?version=latest)](https://sdss-mangadap.readthedocs.io/en/latest/)
[![astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)
[![License](https://img.shields.io/github/license/sdss/mangadap)](https://github.com/sdss/mangadap/blob/master/LICENSE.md)
[![astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)

The MaNGA data-analysis pipeline (MaNGA DAP) is the survey-led software
package that analyzes the data produced by the MaNGA data-reduction
pipeline (MaNGA DRP) to produced physical properties derived from the
MaNGA spectroscopy.

For full documentation, see: https://sdss-mangadap.readthedocs.io/en/latest/

**Note that the version of the DAP used for DR15 is [2.2.1](https://github.com/sdss/mangadap/releases/tag/2.2.1).**

## Citation

If you use the DAP software and/or its output products, please cite the following two papers:

- *Overview*: [Westfall et al. (2019, AJ, 158, 231)](https://ui.adsabs.harvard.edu/abs/2019AJ....158..231W/abstract)
- *Emission-line Modeling*: [Belfiore et al. (2019, AJ, 158, 160)](https://ui.adsabs.harvard.edu/abs/2019AJ....158..160B/abstract)

## Installation

To install, first clone the repository:

`git clone https://github.com/sdss/mangadap.git`

We recommend using the most recent tag:
The MaNGA data-analysis pipeline (MaNGA DAP) is the survey-led software package
that has analyzed all galaxy data produced by the MaNGA data-reduction pipeline
(MaNGA DRP). Its goal is to produce high-level, science-ready data products
derived from MaNGA spectra. The products currently provided are:

```
cd mangadap
./checkout_current_tag
```
- Spatially stacked spectra
- Stellar kinematics
- Nebular emission-line properties: fluxes, equivalent widths, and
kinematics
- Spectral indices: absorption-line (e.g., H-delta) and bandhead/color
(e.g., TiO, D4000) measurements

----
That is, the DAP currently focuses on "model-independent" properties.
Higher-level, model-dependent properties, such as stellar-population parameters,
are outside of the scope of the current pipeline.

To install, run:
**See our full documentation at [sdss-mangadap.readthedocs.io](https://sdss-mangadap.readthedocs.io/en/latest/).**

`python3 setup.py install`

On MacOSX, you may need to add `CC=clang`, i.e.:

`CC=clang python3 setup.py install`
## SDSS Data Release Versions

----
- [SDSS-IV/MaNGA DR15](https://www.sdss.org/dr15/manga/) is based on version 2.2.1

The DAP uses environmental variable to define the paths to specific data
and other repositories. If these are not defined, warnings will be
issued everytime the DAP is installed or imported. The relevant
environmental variables, their default, and their usage are provided
below.
- [SDSS-IV/MaNGA DR17](https://www.sdss.org/dr17/manga/) is based on version
3.1.2. Note that the version of the code that produced the DR17 was version
3.1.0; version 3.1.1 and 3.1.2 only include documentation updates.

| Variable | Default | Comments |
|:------------------------ |:--------------------------------- |:---------------------------------------------- |
| `MANGADRP_VER` | `v2_4_3` | Version of the DRP, used for path construction |
| `MANGA_SPECTRO_REDUX` | `$HOME/MaNGA/redux` | Root path for the reduced data |
| `MANGADAP_VER` | `mangadap.__version__` | Version of the DAP, used for path construction |
| `MANGA_SPECTRO_ANALYSIS` | `$HOME/MaNGA/analysis` | Root path for the analysis data |
| `MANGACORE_VER` | `v1_6_2` | Version of MaNGA core (survey-level meta data) |
| `MANGACORE_DIR` | `$HOME/MaNGA/core/$MANGACORE_VER` | Root path with the MaNGA core repository |

**Notes:**
- `$MANGACORE_VER` and `$MANGACORE_DIR` are only needed to perform the
survey-level execution of the pipeline.
- The DAP expects to find the DRP `LOGCUBE` files in
`$MANGA_SPECTRO_REDUX/$MANGADRP_VER/[plate]/stack`, where `[plate]`
is the desired plate number.
- The DAP expects to find/write data to
`$MANGA_SPECTRO_ANALYSIS/$MANGADRP_VER/$MANGADAP_VER`.
- `$MANGADAP_VER` is only used to set the path names, not to select the
specific version of the pipeline to use
## Citation

These environmental variables can be added to your `.bash_profile` file
in your home directory or be included in a script that is sourced when
you want to run the DAP. The added lines to your `.bash_profile` file
could look something like this:
If you use the DAP software and/or its output products, please cite the
following two papers:

```
export MANGA_SPECTRO_REDUX=/Volumes/MaNGA/redux
export MANGA_SPECTRO_ANALYSIS=/Volumes/MaNGA/analysis
- *Overview*: [Westfall et al. (2019, AJ, 158, 231)](https://ui.adsabs.harvard.edu/abs/2019AJ....158..231W/abstract)
- *Emission-line Modeling*: [Belfiore et al. (2019, AJ, 158, 160)](https://ui.adsabs.harvard.edu/abs/2019AJ....158..160B/abstract)

export MANGADRP_VER=v2_4_3
Additionally, if you use SDSS-IV/MaNGA data, please see:

export MANGADAP_VER=2.2.1
- [How to Cite SDSS](https://www.sdss.org/collaboration/citing-sdss/)
- [SDSS Technical Publications](https://www.sdss.org/science/technical_publications/)

export MANGACORE_VER=v1_6_2
export MANGACORE_DIR=$HOME/MaNGA/core/$MANGACORE_VER
```

**Note**: Some of these variables are also defined by Marvin; see
[here](https://sdss-marvin.readthedocs.io/en/stable/installation.html).
It's possible to have both Marvin and the DAP point to the same
directory, but beware that this may mean that some of the files get
overwritten.
## Installation

`pip install sdss-mangadap`

See https://sdss-mangadap.readthedocs.io/en/latest/installation.html


18 changes: 0 additions & 18 deletions bin/rundap

This file was deleted.

12 changes: 12 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
comment:
after_n_builds: 6

coverage:
status:
project:
default: true
# disable the default status that measures entire project
patch:
default:
target: 30% # new contributions should have a coverage at least equal to target

6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apirst:
python3 ./scripts/write_bitmask_tables.py
python3 ./scripts/write_parset_tables.py
python3 ./scripts/write_datatables.py
python3 ./scripts/write_defaultplan.py
python3 ./scripts/write_script_help.py

html:
Expand All @@ -31,3 +30,8 @@ html:
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

htmlonly:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

8 changes: 8 additions & 0 deletions docs/api/mangadap.config.analysisplan.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mangadap.config.analysisplan module
===================================

.. automodule:: mangadap.config.analysisplan
:members:
:private-members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mangadap.util.drpfits module
mangadap.config.manga module
============================

.. automodule:: mangadap.util.drpfits
.. automodule:: mangadap.config.manga
:members:
:private-members:
:undoc-members:
Expand Down
2 changes: 2 additions & 0 deletions docs/api/mangadap.config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Submodules
.. toctree::
:maxdepth: 4

mangadap.config.analysisplan
mangadap.config.defaults
mangadap.config.manga

Module contents
---------------
Expand Down
8 changes: 0 additions & 8 deletions docs/api/mangadap.par.analysisplan.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/api/mangadap.par.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Submodules
:maxdepth: 4

mangadap.par.absorptionindexdb
mangadap.par.analysisplan
mangadap.par.artifactdb
mangadap.par.bandheadindexdb
mangadap.par.emissionlinedb
Expand Down
1 change: 1 addition & 0 deletions docs/api/mangadap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Submodules
:maxdepth: 4

mangadap.dapfits
mangadap.version

Module contents
---------------
Expand Down
3 changes: 1 addition & 2 deletions docs/api/mangadap.survey.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Submodules
mangadap.survey.dapall
mangadap.survey.drpcomplete
mangadap.survey.manga_dap
mangadap.survey.mangampl
mangadap.survey.util
mangadap.survey.rundap

Module contents
---------------
Expand Down
8 changes: 8 additions & 0 deletions docs/api/mangadap.survey.rundap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mangadap.survey.rundap module
=============================

.. automodule:: mangadap.survey.rundap
:members:
:private-members:
:undoc-members:
:show-inheritance:
8 changes: 0 additions & 8 deletions docs/api/mangadap.survey.util.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mangadap.survey.mangampl module
mangadap.util.drpbitmask module
===============================

.. automodule:: mangadap.survey.mangampl
.. automodule:: mangadap.util.drpbitmask
:members:
:private-members:
:undoc-members:
Expand Down
8 changes: 0 additions & 8 deletions docs/api/mangadap.util.exception_tools.rst

This file was deleted.

8 changes: 8 additions & 0 deletions docs/api/mangadap.util.pkg.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mangadap.util.pkg module
========================

.. automodule:: mangadap.util.pkg
:members:
:private-members:
:undoc-members:
:show-inheritance:
4 changes: 2 additions & 2 deletions docs/api/mangadap.util.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Submodules
mangadap.util.covariance
mangadap.util.dapbitmask
mangadap.util.datatable
mangadap.util.drpfits
mangadap.util.exception_tools
mangadap.util.drpbitmask
mangadap.util.extinction
mangadap.util.fileio
mangadap.util.filter
Expand All @@ -26,6 +25,7 @@ Submodules
mangadap.util.modeling
mangadap.util.parser
mangadap.util.pixelmask
mangadap.util.pkg
mangadap.util.resolution
mangadap.util.sampling
mangadap.util.trace
Expand Down
Loading