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

Parameter "infile" duplicated on command line. #105

Open
blazar716 opened this issue Apr 17, 2017 · 9 comments
Open

Parameter "infile" duplicated on command line. #105

blazar716 opened this issue Apr 17, 2017 · 9 comments

Comments

@blazar716
Copy link

Hello,

When I try to run 'enrico_sed myanalysis.conf' or 'enrico_lc myanalysis.conf', it gives the following errors.

Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at hoops_ape.cxx: 435)

I would appreciate any help.

@davidsanchez
Copy link
Member

Hi
I would need the full output please
best
david

@blazar716
Copy link
Author

Here is the full output.


user@machine:/gbdata/3C279_enrico$ enrico_sed Myconfig.conf
Plotter is MatPlotlib

************************************************************

*** SUMMARY: ***

************************************************************

Source = 3C 279
RA = 194.041 degrees
Dec = -5.7912 degrees
Start = 455932803.0 MET (s)
Stop = 456192003.0 MET (s)
ROI = 10.0 degrees
E min = 100.0 MeV
E max = 300000.0 MeV
IRFs = CALDB
evclass = 128
evtype = 3
Corresponding IRFs = ('P8R2_SOURCE_V6', ['BACK', 'FRONT'])

************************************************************

*** 1 gtselect --- Select data from library, coarse cut

************************************************************

time -p /gbdata/ScienceTools/x86_64-unknown-linux-gnu-libc2.19-10/bin/gtselect infile=PH.fits outfile=/gbdata/3C279_enrico/3C 279_LAT_Analysis_EvtCoarse.fits ra=194.041 dec=-5.7912 rad=10.0 tmin=455932803.0 tmax=456192003.0 emin=100.0 emax=300000.0 zmin=0.0 zmax=90.0 evclass=128 evclsmin=0 evclsmax=10 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at hoops_ape.cxx: 435)
Traceback (most recent call last):
File "/gbdata/enrico/bin/enrico_sed", line 58, in
sed(config,infile)
File "/gbdata/enrico/bin/enrico_sed", line 13, in sed
run(infile)
File "/gbdata/enrico/enrico/RunGTlike.py", line 178, in run
FitRunner,Fit = GenAnalysisObjects(config)
File "/gbdata/enrico/enrico/RunGTlike.py", line 158, in GenAnalysisObjects
FitRunner = Analysis(folder, config, tag="", verbose = verbose)
File "/gbdata/enrico/enrico/RunGTlike.py", line 20, in Analysis
FitRunner.FirstSelection(configgeneric) #Generates fits files for the coarse selection
File "/gbdata/enrico/enrico/fitmaker.py", line 51, in FirstSelection
self.obs.FirstCut()
File "/gbdata/enrico/enrico/gtfunction.py", line 225, in FirstCut
filter.run()
File "/gbdata/ScienceTools/x86_64-unknown-linux-gnu-libc2.19-10/lib/python/GtApp.py", line 72, in run
raise RuntimeError, self.appName + " execution failed"
RuntimeError: gtselect execution failed

@mireianievas
Copy link
Contributor

What version of the ScienceTools are you using?

I wonder if the issue is related to this one in the Heasoft package:
https://heasarc.gsfc.nasa.gov/ftools/ftools_bugs611.html

@ajaykhoj
Copy link

ajaykhoj commented May 2, 2022

hello,

I also getting errors

************************************************************

*** SUMMARY: FRONTBACK ***

************************************************************

Source = S5 0716+714
RA = 110.47270123 degrees
Dec = 71.3434344 degrees
Start = 239557417.0 MET (s)
Stop = 247506217.0 MET (s)
ROI = 10.0 degrees
E min = 100.0 MeV
E max = 300000.0 MeV
E min ext = 50.11872336272722 MeV
E max ext = 598578.6944906638 MeV
IRFs = P8R3_SOURCE_V3
evclass = 128
evtype = 3

************************************************************

*** 1 gtselect --- Select data from library, coarse cut

************************************************************

time -p gtselect infile=~/myanalysis/Data.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs5_0716+714_EvtCoarse.fits ra=110.47270123 dec=71.3434344 rad=10.0 tmin=239557417.0 tmax=247506217.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)

@davidsanchez
Copy link
Member

check that Data.list is ok without duplicate line

@ajaykhoj
Copy link

ajaykhoj commented May 2, 2022

I have checked but still getting the same error. When i started the analysis of a new source , this error has occurred.

************************************************************

*** SUMMARY: FRONTBACK ***

************************************************************

Source = S5 0716+714
RA = 110.473 degrees
Dec = 71.3434 degrees
Start = 239557417.0 MET (s)
Stop = 255455018.0 MET (s)
ROI = 10.0 degrees
E min = 100.0 MeV
E max = 300000.0 MeV
E min ext = 100.0 MeV
E max ext = 300000.0 MeV
IRFs = P8R3_SOURCE_V3
evclass = 128
evtype = 3

************************************************************

*** 1 gtselect --- Select data from library, coarse cut

************************************************************

time -p gtselect infile=/home/ajay/myanalysis/S5_0716+714.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs50716+714_EvtCoarse.fits ra=110.473 dec=71.3434 rad=10.0 tmin=239557417.0 tmax=255455018.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)
[Message] Warning: An error ocurred, retrying ...
time -p gtselect infile=/home/ajay/myanalysis/S5_0716+714.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs50716+714_EvtCoarse.fits ra=110.473 dec=71.3434 rad=10.0 tmin=239557417.0 tmax=255455018.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)
[Message] Warning: An error ocurred, retrying ...
time -p gtselect infile=/home/ajay/myanalysis/S5_0716+714.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs50716+714_EvtCoarse.fits ra=110.473 dec=71.3434 rad=10.0 tmin=239557417.0 tmax=255455018.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)
[Message] Warning: An error ocurred, retrying ...
time -p gtselect infile=/home/ajay/myanalysis/S5_0716+714.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs50716+714_EvtCoarse.fits ra=110.473 dec=71.3434 rad=10.0 tmin=239557417.0 tmax=255455018.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)
[Message] Warning: An error ocurred, retrying ...
time -p gtselect infile=/home/ajay/myanalysis/S5_0716+714.list outfile=/home/ajay/myanalysis/S5 0716+714_Testofs50716+714_EvtCoarse.fits ra=110.473 dec=71.3434 rad=10.0 tmin=239557417.0 tmax=255455018.0 emin=0.0 emax=10000000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Parameter "infile" duplicated on command line.
Parameter "infile" duplicated on command line.
Caught N5hoops12ApeExceptionE at the top level: Cannot open parameter file for gtselect; Ape exception code 19 (at /usr/share/miniconda/conda-bld/fermitools_1611158415999/work/hoops/build/debianstretch/sid-x86_64-64bit-gcc75-Optimized/src/hoops_ape.cxx: 435)
[Message] Warning: An error ocurred, retrying ...

*** Error [Message]: An error ocurred and could not be recovered. Exiting! ***

@davidsanchez
Copy link
Member

Could you test without space in the source name and if this does not fix it send me the conf file

@ajaykhoj
Copy link

ajaykhoj commented May 2, 2022

Still getting the same error after renaming the source. so i have attached the conf file here. Please find the same from below.

myanalysis.txt

@davidsanchez
Copy link
Member

Hi
in the name name = "J0721.9+7120 "
you have a space and this is change the name of the out files e.g. the XML file
cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants