diff --git a/caom2/caom2/obs_reader_writer.py b/caom2/caom2/obs_reader_writer.py index 87ddb227..ffb38aaa 100644 --- a/caom2/caom2/obs_reader_writer.py +++ b/caom2/caom2/obs_reader_writer.py @@ -2675,10 +2675,7 @@ def _add_element(self, name, value, parent): if isinstance(value, str): element.text = value else: - if isinstance(value, float): - element.text = repr(value) - else: - element.text = str(value) + element.text = str(value) def _add_boolean_element(self, name, value, parent): if value is None: diff --git a/caom2/setup.cfg b/caom2/setup.cfg index b9911882..0d349833 100644 --- a/caom2/setup.cfg +++ b/caom2/setup.cfg @@ -36,7 +36,7 @@ url = http://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2 edit_on_github = False github_project = opencadc/caom2tools # version should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386) -version = 2.6.1 +version = 2.6.2 [options] install_requires = diff --git a/caom2utils/caom2utils/wcs_parsers.py b/caom2utils/caom2utils/wcs_parsers.py index 33d956d3..ed02fa26 100644 --- a/caom2utils/caom2utils/wcs_parsers.py +++ b/caom2utils/caom2utils/wcs_parsers.py @@ -317,10 +317,7 @@ def augment_custom(self, chunk): ref_coord = self._get_ref_coord(custom_axis_index) if delta and ref_coord: naxis.function = CoordFunction1D(custom_axis_length, delta, ref_coord) - if not chunk.custom: - chunk.custom = CustomWCS(naxis) - else: - chunk.custom.axis = naxis + chunk.custom = CustomWCS(naxis) self.logger.debug('End Custom WCS augmentation.') diff --git a/caom2utils/setup.cfg b/caom2utils/setup.cfg index fc6813bb..a18ac79a 100644 --- a/caom2utils/setup.cfg +++ b/caom2utils/setup.cfg @@ -33,7 +33,7 @@ url = https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2 edit_on_github = False github_project = opencadc/caom2tools # version should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386) -version = 1.7.2 +version = 1.7.3 [options] install_requires =