src/pys5p/icm_io.py
def close(self):
        """
        Before closing the product, we make sure that the output product
        describes what has been altered by the S/W. To keep any change
        traceable.

        as attributes of this group, we write:
         - dateStamp ('now')
         - Git-version of S/W
         - list of patched datasets
         - auxiliary datasets used by patch-routines
        """
        if self.fid is None:
            return

        self.bands = None
        if self.__patched_msm:
            # pylint: disable=no-member
            sgrp = self.fid.require_group("METADATA/SRON_METADATA")
            sgrp.attrs['dateStamp'] = datetime.utcnow().isoformat()
            sgrp.attrs['git_tag'] = get_version(root='..',
                                                relative_to=__file__)
            if 'patched_datasets' not in sgrp:
                dtype = h5py.special_dtype(vlen=str)
                dset = sgrp.create_dataset('patched_datasets',
                                           (len(self.__patched_msm),),
                                           maxshape=(None,), dtype=dtype)
                dset[:] = np.asarray(self.__patched_msm)
            else:
                dset = sgrp['patched_datasets']
                dset.resize(dset.shape[0] + len(self.__patched_msm), axis=0)
                dset[dset.shape[0]-1:] = np.asarray(self.__patched_msm)

        self.fid.close()
        self.fid = None

        Before closing the product, we make sure that the output product
        describes what has been altered by the S/W. To keep any change
        traceable.

        as attributes of this group, we write:
         - dateStamp ('now')
         - Git-version of S/W
         - list of patched datasets
         - auxiliary datasets used by patch-routines
        
Before closing the product, we make sure that the output product
describes what has been altered by the S/W. To keep any change
traceable.

as attributes of this group, we write:
dateStamp ('now')
Git-version of S/W
list of patched datasets
auxiliary datasets used by patch-routines
Before closing the product we make sure that the output product describes what has been altered by the S / W . To keep any change traceable . as attributes of this group we write : dateStamp ( ' now ' ) Git - version of S / W list of patched datasets auxiliary datasets used by patch - routines
def close(self):
        if self.fid is None:
            return
        self.bands = None
        if self.__patched_msm:
            sgrp = self.fid.require_group("METADATA/SRON_METADATA")
            sgrp.attrs['dateStamp'] = datetime.utcnow().isoformat()
            sgrp.attrs['git_tag'] = get_version(root='..',
                                                relative_to=__file__)
            if 'patched_datasets' not in sgrp:
                dtype = h5py.special_dtype(vlen=str)
                dset = sgrp.create_dataset('patched_datasets',
                                           (len(self.__patched_msm),),
                                           maxshape=(None,), dtype=dtype)
                dset[:] = np.asarray(self.__patched_msm)
            else:
                dset = sgrp['patched_datasets']
                dset.resize(dset.shape[0] + len(self.__patched_msm), axis=0)
                dset[dset.shape[0]-1:] = np.asarray(self.__patched_msm)
        self.fid.close()
        self.fid = None
def close ( self ) : if self . fid is None : return self . bands = None if self . __patched_msm : sgrp = self . fid . require_group ( "METADATA/SRON_METADATA" ) sgrp . attrs [ 'dateStamp' ] = datetime . utcnow ( ) . isoformat ( ) sgrp . attrs [ 'git_tag' ] = get_version ( root = '..' , relative_to = __file__ ) if 'patched_datasets' not in sgrp : dtype = h5py . special_dtype ( vlen = str ) dset = sgrp . create_dataset ( 'patched_datasets' , ( len ( self . __patched_msm ) , ) , maxshape = ( None , ) , dtype = dtype ) dset [ : ] = np . asarray ( self . __patched_msm ) else : dset = sgrp [ 'patched_datasets' ] dset . resize ( dset . shape [ 0 ] + len ( self . __patched_msm ) , axis = 0 ) dset [ dset . shape [ 0 ] - 1 : ] = np . asarray ( self . __patched_msm ) self . fid . close ( ) self . fid = None
Before closing the product, we make sure that the output product
describes what has been altered by the S/W.
Before closing the product we make sure that the output product describes what has been altered by the S / W .
"""
        Before closing the product, we make sure that the output product
        describes what has been altered by the S/W. To keep any change
        traceable.

        as attributes of this group, we write:
         - dateStamp ('now')
         - Git-version of S/W
         - list of patched datasets
         - auxiliary datasets used by patch-routines
        """ # pylint: disable=no-member
self