-
Notifications
You must be signed in to change notification settings - Fork 104
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 #1016 from pypeit/staged
Merges develop into master (1.1.0 tag)
- Loading branch information
Showing
331 changed files
with
196,221 additions
and
6,576 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Folders# | ||
.idea/ | ||
.vscode/ | ||
|
||
# Compiled source # | ||
################### | ||
|
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
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,16 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
Check that the installation of python is C enabled. | ||
""" | ||
|
||
import os | ||
from pypeit.display import required_plugins, plugins_available | ||
from pypeit import msgs | ||
|
||
success, report = plugins_available(return_report=True) | ||
if not success: | ||
msgs.error(report) | ||
msgs.info('All required plugins found: {0}'.format(', '.join(required_plugins))) | ||
|
||
|
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,37 @@ | ||
#!/usr/bin/env python | ||
# | ||
# See top-level LICENSE file for Copyright information | ||
# | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
This script cleans up files generated by running PypeIt tests | ||
""" | ||
|
||
import os | ||
import shutil | ||
from pypeit.tests.tstutils import data_path | ||
|
||
def delete_if_exists(fname, f_or_dir): | ||
if f_or_dir == 'file': | ||
if os.path.isfile(fname): | ||
os.remove(fname) | ||
if f_or_dir == 'dir': | ||
if os.path.isdir(fname): | ||
shutil.rmtree(fname) | ||
|
||
if __name__ == '__main__': | ||
flist = ['fitstbl.fits', 'MasterArc_A_01_22.fits', 'tmp.fits', 'tmp_detector.fits', 'tst_pypeitimage.fits', 'shane_kast_blue.calib', 'shane_kast_blue.sorted', 'sensfunc.fits', 'datacube.fits', 'tst_coadd_files-SPAT0175-DET01.fits'] | ||
try: | ||
from pypeit.tests.test_fluxspec import kast_blue_files | ||
f = os.path.basename(kast_blue_files()[1]) | ||
print(f'adding {data_path(f)} to files to delete') | ||
flist.append() | ||
except: | ||
pass | ||
for fname in flist: | ||
delete_if_exists(data_path(fname), 'file') | ||
for dirname in ['setup_files', 'shane_kast_blue_A', 'keck_lris_blue_A']: | ||
delete_if_exists(data_path(dirname), 'dir') | ||
|
||
# TODO: just create new tests/files/out dir and make all tests write to that |
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,11 @@ | ||
#!/usr/bin/env python | ||
|
||
""" | ||
Perform datacube coadds of PypeIt 2D spectra. | ||
""" | ||
|
||
import pypeit.scripts.coadd_datacube as coadd_datacube | ||
|
||
if __name__ == '__main__': | ||
args = coadd_datacube.parser() | ||
coadd_datacube.main(args) |
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,18 @@ | ||
#!/usr/bin/env python | ||
# | ||
# See top-level LICENSE file for Copyright information | ||
# | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
""" | ||
This script runs PypeIt | ||
""" | ||
|
||
from pypeit.scripts import ql_keck_mosfire | ||
import sys | ||
|
||
if __name__ == '__main__': | ||
args = ql_keck_mosfire.parser() | ||
rtval = ql_keck_mosfire.main(args) | ||
sys.exit(rtval) |
Oops, something went wrong.