From c213634cde72062ed7e8577b22a84f32204fccfe Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 14 Jul 2021 17:56:05 +0200 Subject: [PATCH] Use ; to separate phases instead of , --- doc/source/users/reference_manual/comobsbin.rst | 2 +- modules/comscripts/comobsbin.par | 2 +- modules/comscripts/comobsbin.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/users/reference_manual/comobsbin.rst b/doc/source/users/reference_manual/comobsbin.rst index 5344d7a..926b287 100755 --- a/doc/source/users/reference_manual/comobsbin.rst +++ b/doc/source/users/reference_manual/comobsbin.rst @@ -34,7 +34,7 @@ General parameters Maximum energy (MeV). ``phase [string]`` - Phase expression in the format phasemin0-phasemax0,phasemin1-phasemax1,... + Phase expression in the format phasemin0-phasemax0;phasemin1-phasemax1;... ``phase0 [time]`` Date of Phase 0 (UTC string, JD, MJD or MET in seconds). diff --git a/modules/comscripts/comobsbin.par b/modules/comscripts/comobsbin.par index 037e697..e7f96ea 100644 --- a/modules/comscripts/comobsbin.par +++ b/modules/comscripts/comobsbin.par @@ -26,7 +26,7 @@ outfolder, s, a, $COMDATASTORE,,, "Output folder for files" ebinalg, s, a, FILE,FILE|LIN|LOG,, "Algorithm for defining energy bins" emin, r, a, 0.75,0.05,50.0, "Minimum energy (MeV)" emax, r, a, 30.0,0.05,50.0, "Maximum energy (MeV)" -phase, s, a, NONE,,, "Phase expression in the format phasemin0-phasemax0,phasemin1-phasemax1,..." +phase, s, a, NONE,,, "Phase expression in the format phasemin0-phasemax0;phasemin1-phasemax1;..." phase0, t, a, JD 2451943.09,,, "Date of Phase 0 (UTC string, JD, MJD or MET in seconds)" period, r, a, 3.90603,,, "Period (days)" enumbins, i, a, 1,1,20, "Number of energy bins" diff --git a/modules/comscripts/comobsbin.py b/modules/comscripts/comobsbin.py index 49a1b3e..5869de2 100755 --- a/modules/comscripts/comobsbin.py +++ b/modules/comscripts/comobsbin.py @@ -113,7 +113,7 @@ class comobsbin(ctools.csobservation): if gammalib.toupper(self['phase'].string()) != 'NONE': # Get phases and split them - phases = self['phase'].string().split(',') + phases = self['phase'].string().split(';') # Loop over phases for phase in phases: @@ -191,8 +191,8 @@ class comobsbin(ctools.csobservation): # Set suffix phases = self['phase'].string() - self._suffix = '_phases'+phases.replace(',', '_') - self._dre_suffix = '_phases'+phases.replace(',', '_') + self._suffix = '_phases'+phases.replace(';', '_') + self._dre_suffix = '_phases'+phases.replace(';', '_') # If PSD interval differs from standard interval then set the interval if self['psdmin'].integer() != 0 or self['psdmin'].integer() != 110: -- libgit2 0.21.4