Skip to content

Simple interface for the config to generate small data files #290

Description

@gadorlhiac

@fredericpoitevin @apeck12

Maybe we should provide a simplified interface to create the "driver" files needed to produce the small data hdf5 files. (See some limited documentation here: https://confluence.slac.stanford.edu/display/PSDM/1.+Generation+of+the+small+data+hdf5+files)

A rough example driver can be seen here: /cds/group/psdm/sw/tools/smalldata_tools/smalldata_tools/producers/smd_producer.py . This Python file defines what is saved by smalldata_tools.

One idea could be a script to populate the producer/driver from the btx configuration yaml?

We should also explore how to simplify the overall setup process for the smalldata generation, since if I understand correctly, the workflow right now seems to be:

  1. The code is cloned/copied for the experiment at hand
  2. The driver/producer file is edited for saving the appropriate data
  3. The driver is used by ARP to save this data into hdf5 files every run.
  4. Different data can be saved on a run-by-run basis, but that logic needs to be coded into the driver file, or a new driver needs to be created, and then submitted through the pipeline again.

This may be error-prone for people who are less familiar with the set of tools.

I could also be wrong on the workflow, since I've just started looking into it. In any case, we probably want to limit the total number of configurations needed to be done. (E.g. don't want to expect people to configure btx, smalldata etc)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions