-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Goal: unify pool workdir and directory and file name of the HDF file of the storage.
Proposal:
Pass to the Sampler a factory to produce the storage.
Sampler then call this factory with the workdir taken from the SamplingPool.
Basic usage is that the factory is the constructor of the storage, e.g.
class StorageHDF:
def __intit__(filename, options=None, ...)
Sampler(storage=StorageHDF)
storage=fntools.partial(StorgageHDF(options=123)
Sampler(storage=storage)
storage=lambda f: StorgageHDF(f, options=123)
Sampler(storage=storage)
def storage(f:str):
return StorgageHDF(f, options=123)
Sampler(storage=storage)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels