From 17366f6bec07524ae144b50853e45afd9279f46f Mon Sep 17 00:00:00 2001 From: Andreas Specovius Date: Tue, 16 Jun 2020 11:41:13 +0200 Subject: [PATCH] Added members _reg_width, _reg_height, _reg_posang to csphagen class. Adjusted get_state and set_state methods. --- cscripts/csphagen.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cscripts/csphagen.py b/cscripts/csphagen.py index d8d9425..6a10efa 100755 --- a/cscripts/csphagen.py +++ b/cscripts/csphagen.py @@ -54,6 +54,9 @@ class csphagen(ctools.csobservation): self._has_exclusion = False self._srcshape = '' self._rad = 0.0 + self._reg_width = 0.0 + self._reg_height = 0.0 + self._reg_posang = 0.0 self._nthreads = 0 # Return @@ -82,6 +85,9 @@ class csphagen(ctools.csobservation): 'has_exclusion' : self._has_exclusion, 'srcshape' : self._srcshape, 'rad' : self._rad, + 'reg_width' : self._reg_width, + 'reg_height' : self._reg_height, + 'reg_posang' : self._reg_posang, 'nthreads' : self._nthreads} # Return pickled dictionary @@ -108,6 +114,9 @@ class csphagen(ctools.csobservation): self._has_exclusion = state['has_exclusion'] self._srcshape = state['srcshape'] self._rad = state['rad'] + self._reg_width = state['reg_width'] + self._reg_height = state['reg_height'] + self._reg_posang = state['reg_posang'] self._nthreads = state['nthreads'] # Return @@ -830,7 +839,7 @@ class csphagen(ctools.csobservation): return def save(self): - """ + """ Save data """ # Write header -- libgit2 0.21.4