This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from spacetelescope/loaders
Enable units for cos and stis loaders
- Loading branch information
Showing
17 changed files
with
86 additions
and
629 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: specviz | ||
channels: | ||
- http://ssb.stsci.edu/astroconda | ||
dependencies: | ||
- pyyaml | ||
- cython | ||
- numpy | ||
- scipy | ||
- astropy | ||
- specutils | ||
- pyqtgraph | ||
- pip: | ||
- sphinx_automodapi | ||
- sphinx_rtd_theme |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
python: | ||
setup_py_install: true | ||
|
||
conda: | ||
file: docs/environment.yml |
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--index-url https://pypi.python.org/simple/ | ||
-index-url https://pypi.python.org/simple/ | ||
|
||
pyyaml | ||
cython | ||
numpy | ||
scipy | ||
astropy | ||
sphinx_automodapi | ||
sphinx_automodapi | ||
sphinx_rtd_theme | ||
git+https://github.com/nmearl/specutils.git | ||
git+https://github.com/nmearl/pyqtgraph.git | ||
-e . |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
[build_sphinx] | ||
source-dir = docs | ||
source-dir = docs/source | ||
build-dir = docs/_build | ||
all_files = 1 | ||
|
||
[upload_docs] | ||
upload-dir = docs/_build/html | ||
show-response = 1 | ||
|
||
[pytest] | ||
[tool:pytest] | ||
minversion = 2.2 | ||
norecursedirs = build docs/_build | ||
doctest_plus = enabled | ||
doctest_plus = disabled | ||
|
||
[ah_bootstrap] | ||
auto_use = True | ||
|
||
[metadata] | ||
package_name = specviz | ||
description = An interactive astronomical analysis tool. | ||
description = An interactive astronomical analysis tool. | ||
long_description = SpecViz is a tool for 1-D spectral visualization and analysis of astronomical spectrograms. | ||
author = Nicholas Earl, Ivo Busko, Pey Lian Lim | ||
author_email = [email protected] | ||
|
Empty file.
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,15 @@ | ||
import numpy as np | ||
|
||
from ..statistics import stats | ||
|
||
def test_simple_stats(): | ||
a = np.ones(10) | ||
truth = {'mean': 1, | ||
'median': 1, | ||
'stddev': 0, | ||
'total': 9, | ||
'npoints': 10} | ||
|
||
calc = stats(a) | ||
|
||
assert calc == truth, "Crazy wrong stats" |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.