data_models/data_model_helpers.py
def import_pointingtable_from_hdf5(filename):
    """Import PointingTable(s) from HDF5 format

    :param filename:
    :return: single pointingtable or list of pointingtables
    """
    
    with h5py.File(filename, 'r') as f:
        nptlist = f.attrs['number_data_models']
        ptlist = [convert_hdf_to_pointingtable(f['PointingTable%d' % i]) for i in range(nptlist)]
        if nptlist == 1:
            return ptlist[0]
        else:
            return ptlist
Import PointingTable(s) from HDF5 format

    :param filename:
    :return: single pointingtable or list of pointingtables
    
Import PointingTable(s) from HDF5 format
Import PointingTable ( s ) from HDF5 format
def import_pointingtable_from_hdf5(filename):
    with h5py.File(filename, 'r') as f:
        nptlist = f.attrs['number_data_models']
        ptlist = [convert_hdf_to_pointingtable(f['PointingTable%d' % i]) for i in range(nptlist)]
        if nptlist == 1:
            return ptlist[0]
        else:
            return ptlist
def import_pointingtable_from_hdf5 ( filename ) : with h5py . File ( filename , 'r' ) as f : nptlist = f . attrs [ 'number_data_models' ] ptlist = [ convert_hdf_to_pointingtable ( f [ 'PointingTable%d' % i ] ) for i in range ( nptlist ) ] if nptlist == 1 : return ptlist [ 0 ] else : return ptlist
Import PointingTable(s) from HDF5 format
Import PointingTable ( s ) from HDF5 format
"""Import PointingTable(s) from HDF5 format

    :param filename:
    :return: single pointingtable or list of pointingtables
    """
single pointingtable or list of pointingtables
single pointingtable or list of pointingtables
filename
None