コード例 #1
0
ファイル: flex.py プロジェクト: biochem-fan/dials
  def as_h5(self, filename):
    '''
    Write the reflection table as a HDF5 file.

    :param filename: The output filename

    '''
    from dials.util.nexus_old import NexusFile
    handle = NexusFile(filename, 'w')
    handle.set_reflections(self)
    handle.close()
コード例 #2
0
ファイル: flex.py プロジェクト: kek-pf-mx/dials
    def from_h5(filename):
        '''
    Read the reflections table from a HDF5 file.

    :param filename: The hdf5 filename
    :return: The reflection table

    '''
        from dials.util.nexus_old import NexusFile
        handle = NexusFile(filename, 'r')
        self = handle.get_reflections()
        handle.close()
        return self
コード例 #3
0
ファイル: flex.py プロジェクト: biochem-fan/dials
  def from_h5(filename):
    '''
    Read the reflections table from a HDF5 file.

    :param filename: The hdf5 filename
    :return: The reflection table

    '''
    from dials.util.nexus_old import NexusFile
    handle = NexusFile(filename, 'r')
    self = handle.get_reflections()
    handle.close()
    return self
コード例 #4
0
ファイル: flex.py プロジェクト: kek-pf-mx/dials
    def as_h5(self, filename):
        '''
    Write the reflection table as a HDF5 file.

    :param filename: The output filename

    '''
        from dials.util.nexus_old import NexusFile
        handle = NexusFile(filename, 'w')
        handle.set_reflections(self)
        handle.close()
コード例 #5
0
ファイル: flex_ext.py プロジェクト: ndevenish/dials-fork
    def as_h5(self, filename):
        """
        Write the reflection table as a HDF5 file.

        :param filename: The output filename
        """
        from dials.util.nexus_old import NexusFile

        handle = NexusFile(filename, "w")
        # Clean up any removed experiments from the identifiers map
        self.clean_experiment_identifiers_map()
        handle.set_reflections(self)
        handle.close()