data_models/data_model_helpers.py
def export_pointingtable_to_hdf5(pt: PointingTable, filename):
    """ Export a PointingTable to HDF5 format

    :param pt:
    :param filename:
    :return:
    """
    
    if not isinstance(pt, collections.Iterable):
        pt = [pt]
    with h5py.File(filename, 'w') as f:
        f.attrs['number_data_models'] = len(pt)
        for i, g in enumerate(pt):
            assert isinstance(g, PointingTable)
            gf = f.create_group('PointingTable%d' % i)
            convert_pointingtable_to_hdf(g, gf)
        f.flush()
 Export a PointingTable to HDF5 format

    :param pt:
    :param filename:
    :return:
    
Export a PointingTable to HDF5 format
Export a PointingTable to HDF5 format
def export_pointingtable_to_hdf5(pt: PointingTable, filename):
    if not isinstance(pt, collections.Iterable):
        pt = [pt]
    with h5py.File(filename, 'w') as f:
        f.attrs['number_data_models'] = len(pt)
        for i, g in enumerate(pt):
            assert isinstance(g, PointingTable)
            gf = f.create_group('PointingTable%d' % i)
            convert_pointingtable_to_hdf(g, gf)
        f.flush()
def export_pointingtable_to_hdf5 ( pt : PointingTable , filename ) : if not isinstance ( pt , collections . Iterable ) : pt = [ pt ] with h5py . File ( filename , 'w' ) as f : f . attrs [ 'number_data_models' ] = len ( pt ) for i , g in enumerate ( pt ) : assert isinstance ( g , PointingTable ) gf = f . create_group ( 'PointingTable%d' % i ) convert_pointingtable_to_hdf ( g , gf ) f . flush ( )
Export a PointingTable to HDF5 format
Export a PointingTable to HDF5 format
""" Export a PointingTable to HDF5 format

    :param pt:
    :param filename:
    :return:
    """
None
pt
PointingTable
None
filename
None