-
Notifications
You must be signed in to change notification settings - Fork 26
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
Problems with enrico_lc #159
Comments
Hi |
It is as follows 441763203 446860803 |
With the # ? not sur this is well read. |
Without the # signs, only the 2 columns with the first the start time and the second the end time |
ok. I'll have a deeper look asap |
Thank you so much |
Could you give me the full config file please? |
Could you try the fix I made ?thanks |
Default config and validation file for Enrico.Besides providing default options it is also usedto check the user config file.Options without default options here must bespecified in the user config fileFolder where the output will be storedout = /home/erick/Escritorio/Mkn421_intt/datos verbosityverbose = yes [target] [space] [file] [time] [energy] [event] [analysis] [environ] [fitting] [model] [Spectrum] [UpperLimit] [LightCurve] [BayesianBlocks] [FoldedLC] [AppLC] [Ebin] [TSMap] [findsrc] [srcprob] [Contours] [ComponentAnalysis] |
|
I made a push . could you update your enrico? |
Hi, I had a similar issue but the new version is fine. |
great. |
thank you so much, everything works very well |
Hi
I try to generate the Mrk421 light curve with time intervals in a text file, but when executing enrico_lc with the configuration file, I get the following error:
['/home/erick/enrico/bin/enrico_lc', 'mrk421.conf']
[Message]: work on the config file mrk421.conf
{'out': '/home/erick/Escritorio/Mkn421_intt/datos', 'verbose': 'yes', 'clobber': 'yes', 'Submit': 'no', 'target': {'name': 'Mrk421', 'ra': 166.113808, 'dec': 38.20883287, 'redshift': 0.031, 'ebl_model': 4, 'spectrum': 'PowerLaw', 'fit_tau': 'no'}, 'space': {'xref': 166.113808, 'yref': 38.20883287, 'rad': 15.0, 'binsz': 0.1, 'coordsys': 'CEL', 'proj': 'AIT', 'phibins': 0}, 'file': {'spacecraft': 'sc.fits', 'event': 'fotones.dat', 'xml': '/home/erick/Escritorio/Mkn421_intt/datos/Mrk421_PowerLaw_model.xml', 'tag': 'LAT_Analysis', 'parent_config': ''}, 'time': {'tmin': 0.0, 'tmax': 0.0, 'file': '/home/erick/Escritorio/Mkn421_intt/tiempo.dat', 'type': 'MET'}, 'energy': {'emin': 100.0, 'emax': 300000.0, 'enumbins_per_decade': 10, 'decorrelation_energy': 'no'}, 'event': {'irfs': 'CALDB', 'evclass': 128, 'evtype': 3}, 'analysis': {'zmax': 90.0, 'likelihood': 'binned', 'EnergyDispersion': 'yes', 'ComputeDiffrsp': 'yes', 'roicut': 'no', 'evtroicuts': 'yes', 'evttimecuts': 'yes', 'filter': '(DATA_QUAL>0)&&(LAT_CONFIG==1)', 'keep_all_srcmaps': 'no'}, 'environ': {'FERMI_DATA_DIR': '', 'FERMI_CATALOG_DIR': '', 'FERMI_CATALOG': '', 'FERMI_DIFFUSE_DIR': '', 'FERMI_PREPROCESSED_DIR': ''}, 'fitting': {'optimizer': 'MINUIT', 'ftol': 1e-06, 'min_source_TS': 1.0}, 'model': {'diffuse_gal_dir': '', 'diffuse_iso_dir': '', 'diffuse_gal': '', 'diffuse_iso': '', 'min_significance_catalog': 4.0, 'min_significance_free': 25.0, 'max_radius': 5.0, 'max_roi': 10.0, 'parameters_noise': 0.0}, 'Spectrum': {'FitsGeneration': 'yes', 'ResultPlots': 'yes', 'ResultParentPlots': 'no', 'FrozenSpectralIndex': 0.0}, 'UpperLimit': {'SpectralIndex': 2.0, 'Method': 'Profile', 'envelope': 'no', 'TSlimit': 25.0, 'cl': 0.95}, 'LightCurve': {'FitsGeneration': 'yes', 'NLCbin': 1, 'SpectralIndex': 2.0, 'MakeConfFile': 'yes', 'BayesianBlocks': 'no', 'ComputeVarIndex': 'yes', 'TSLightCurve': 9.0, 'DiagnosticPlots': 'yes', 'DiagnosticParentPlots': 'no'}, 'BayesianBlocks': {'FitsGeneration': 'yes', 'p0': 0.01, 'SpectralIndex': 1.8, 'MakeConfFile': 'yes', 'TSLightCurve': 9.0, 'DiagnosticPlots': 'yes', 'DiagnosticParentPlots': 'no'}, 'FoldedLC': {'NLCbin': 10, 'epoch': 0.0, 'Period': 0.0}, 'AppLC': {'FitsGeneration': 'yes', 'index': 2.0, 'rad': 1.0, 'NLCbin': 10, 'binsFromData': 'no', 'emin': -1.0, 'emax': -1.0}, 'Ebin': {'FitsGeneration': 'yes', 'NumEnergyBins': 0, 'TSEnergyBins': 9.0, 'DistEbins': 'logE'}, 'TSMap': {'Re-Fit': 'no', 'npix': 10, 'RemoveTarget': 'yes', 'method': 'row'}, 'findsrc': {'FitsGeneration': 'yes', 'Refit': 'yes'}, 'srcprob': {'FitsGeneration': 'yes', 'rad': 1.0, 'srclist': '', 'numberPhoton': 10}, 'Contours': {'parname1': 'Prefactor', 'parname2': 'Index'}, 'ComponentAnalysis': {'EUnBinned': -1.0, 'FrontBack': 'no', 'PSF': 'no', 'EDISP': 'no', 'FGL4': 'no'}}
reusing /home/erick/Escritorio/Mkn421_intt/datos/Mrk421_LAT_Analysis_EvtCoarse.fits as event file to speed-up the analysis
use /home/erick/Escritorio/Mkn421_intt/tiempo.dat
[LightCurve]: Running LC with 9.0 bins
Traceback (most recent call last):
File "/home/erick/enrico/bin/enrico_lc", line 26, in
liste = np.genfromtxt(sys.argv[1],dtype="str",unpack=True)
File "/home/erick/anaconda3/envs/fermi/lib/python3.7/site-packages/numpy/lib/npyio.py", line 2122, in genfromtxt
raise ValueError(errmsg)
ValueError: Some errors were detected !
Line #9 (got 1 columns instead of 3)
Line #20 (got 1 columns instead of 3)
Line #29 (got 1 columns instead of 3)
Line #37 (got 1 columns instead of 3)
Line #43 (got 1 columns instead of 3)
Line #49 (got 1 columns instead of 3)
Line #54 (got 1 columns instead of 3)
Line #70 (got 1 columns instead of 3)
Line #79 (got 1 columns instead of 3)
Line #85 (got 1 columns instead of 3)
Line #101 (got 1 columns instead of 3)
Line #111 (got 1 columns instead of 3)
Line #123 (got 1 columns instead of 3)
Line #142 (got 1 columns instead of 3)
Line #158 (got 1 columns instead of 3)
Line #166 (got 1 columns instead of 3)
Line #181 (got 1 columns instead of 3)
Line #195 (got 1 columns instead of 3)
Line #206 (got 1 columns instead of 3)
Line #212 (got 1 columns instead of 3)
Line #222 (got 1 columns instead of 3)
Line #226 (got 1 columns instead of 3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/erick/enrico/bin/enrico_lc", line 32, in
run_over_conffile(sys.argv[1])
File "/home/erick/enrico/bin/enrico_lc", line 20, in run_over_conffile
lc.MakeLC()
File "/home/erick/enrico/enrico/lightcurve.py", line 225, in MakeLC
self._MakeTimeBins()
File "/home/erick/enrico/enrico/lightcurve.py", line 119, in _MakeTimeBins
for i in range(self.Nbin):
TypeError: 'float' object cannot be interpreted as an integer
##################################################################################################################################################################################################################################################################################################################
I have the following in my config file:
[time]
tmin = 441763203
tmax = 454809603
file = "/home/erick/Escritorio/Mkn421_intt/tiempo.dat"
type = MET
[LightCurve]
#Generates fits files or not?
FitsGeneration = yes
#Number of points for the LC
NLCbin = 1
#Index for the power law. Left free to vary if 0
SpectralIndex = 2.0
MakeConfFile = yes
#Bayesian blocks
BayesianBlocks = no
#Compute Variability index as in the 2FGL.
ComputeVarIndex = yes
#Compute an UL if the TS of the sources is <TSLightCurve
TSLightCurve = 9.0
#Generates control plots
DiagnosticPlots = yes
# Plot (update) the parent config related plots during time bin production
DiagnosticParentPlots = no
The text was updated successfully, but these errors were encountered: