-
Notifications
You must be signed in to change notification settings - Fork 26
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
1 parent
edc3a17
commit 4af7eab
Showing
4 changed files
with
142 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python | ||
"""Make a lightcurve""" | ||
import sys | ||
import numpy as np | ||
import enrico.scan as scan | ||
from enrico.config import get_config | ||
from enrico import Loggin | ||
mes = Loggin.Message() | ||
try: | ||
infile = sys.argv[1] | ||
except: | ||
print('Usage: '+sys.argv[0]+' <config file name>') | ||
mes.error('Config file not found.') | ||
|
||
if len(sys.argv)==2 : | ||
#read an config file alone. If not working, try to read an ascii file with different conf file | ||
try : | ||
liste = np.genfromtxt(sys.argv[1],dtype="str",unpack=True) | ||
for inf in liste: | ||
mes.info("work on the config file "+inf) | ||
config = get_config(inf) | ||
scan.Scan(config) | ||
except : | ||
config = get_config(infile) | ||
scan.Contour(config) | ||
else: | ||
for inf in sys.argv[1:]: | ||
mes.info("work on the config file "+inf) | ||
config = get_config(inf) | ||
scan.Scan(config) |
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