Skip to content

Enforce saving fit data to expected filename #24

@duetosymmetry

Description

@duetosymmetry

In base class SurFinBH, a model named with name <name> is expected to be loaded from fit_<name>.h5:

h5file = h5py.File('%s/fit_%s.h5'%(DataPath(), name), 'r')

But when fetching in DownloadData, the destination filename is just taken from the URL:

print('Downloading %s data'%name)
data_url = fits_collection[name].data_url
filename = data_url.split('/')[-1]

Maybe we should save to fit_<name>.h5 so that data_url isn't restricted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions