-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,173 changed files
with
23,840 additions
and
12,353 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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,10 @@ | ||
include *.md | ||
include setup.cfg | ||
|
||
recursive-include mangadap/data *.fits* | ||
recursive-include mangadap/data *.par | ||
recursive-include mangadap/data README | ||
recursive-include python/mangadap/config *.ini | ||
|
||
global-exclude *.pyc *.o | ||
|
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,65 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
from __future__ import division | ||
from __future__ import absolute_import | ||
from __future__ import unicode_literals | ||
|
||
import os | ||
import time | ||
|
||
from argparse import ArgumentParser | ||
|
||
import numpy | ||
|
||
from mangadap.util.log import init_DAP_logging, module_logging | ||
from mangadap.par.analysisplan import AnalysisPlanSet | ||
from mangadap.survey.dapall import DAPall | ||
|
||
#----------------------------------------------------------------------------- | ||
|
||
#----------------------------------------------------------------------------- | ||
from mangadap.scripts import construct_dapall | ||
|
||
if __name__ == '__main__': | ||
t = time.perf_counter() | ||
|
||
parser = ArgumentParser() | ||
|
||
parser.add_argument('plan', type=str, help='SDSS parameter file with analysis plan') | ||
|
||
parser.add_argument('--drpver', type=str, help='DRP version', default=None) | ||
parser.add_argument('-r', '--redux_path', type=str, | ||
help='Top-level directory with the DRP products; defaults to ' | ||
'$MANGA_SPECTRO_REDUX/$MANGADRP_VER', default=None) | ||
parser.add_argument('--dapver', type=str, help='DAP version', default=None) | ||
parser.add_argument('-s', '--dap_src', type=str, | ||
help='Top-level directory with the DAP source code; defaults to ' | ||
'$MANGADAP_DIR', default=None) | ||
parser.add_argument('-a', '--analysis_path', type=str, | ||
help='Top-level output directory for the DAP results; defaults to ' | ||
'$MANGA_SPECTRO_ANALYSIS/$MANGADRP_VER/$MANGADAP_VER', default=None) | ||
parser.add_argument('-m', '--methods', type=str, nargs='+', default=None, | ||
help='Only include output from this DAP method designation in the output') | ||
parser.add_argument('-v', '--verbose', action='count', | ||
help='Set verbosity level; can be omitted and set up to -vv', default=0) | ||
parser.add_argument('--quiet', action='store_true', default=False, | ||
help='suppress all terminal output') | ||
parser.add_argument('--double', dest='single_precision', action='store_false', default=True, | ||
help='Output the floating-point data in double precision ' | ||
'(default is single precision)') | ||
|
||
arg = parser.parse_args() | ||
analysisplan = AnalysisPlanSet.from_par_file(arg.plan) | ||
|
||
# Initialize the logging objects and start the log | ||
init_DAP_logging(None)#, simple_warnings=False) | ||
loggers = module_logging(__name__, arg.verbose) | ||
|
||
DAPall(analysisplan, methods=arg.methods, drpver=arg.drpver, redux_path=arg.redux_path, | ||
dapver=arg.dapver, dapsrc=arg.dap_src, analysis_path=arg.analysis_path, | ||
loggers=loggers, quiet=arg.quiet, single_precision=arg.single_precision) | ||
|
||
print('Elapsed time: {0} seconds'.format(time.perf_counter() - t)) | ||
|
||
|
||
construct_dapall.main(construct_dapall.parse_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,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from mangadap.scripts import calculate_covariance | ||
|
||
if __name__ == '__main__': | ||
calculate_covariance.main(calculate_covariance.parse_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,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from mangadap.scripts import find_repeat_observations | ||
|
||
if __name__ == '__main__': | ||
find_repeat_observations.main(find_repeat_observations.parse_args()) |
Oops, something went wrong.