radiasoft / sirepo

Sirepo is a framework for scientific cloud computing. Try it out!
https://sirepo.com
Apache License 2.0
63 stars 31 forks source link

silas splitter has numpy issue #6610

Open moellep opened 7 months ago

moellep commented 7 months ago

Running the silas example "100TW amplifier with 3 crystals" is failing on the Amplifier tab after the splitter element:

Object dtype dtype('O') has no native HDF5 equivalent 0

moellep commented 7 months ago

This is a transient error which happens when the h5 is read when it has been partially written. The template.silas code is already handling a BlockingIOError when reading the file, but should probably verify that data was read as well before calling template_comon.h5_to_dict()

  sirepo/template/template_common.py line 354, in write_dict_to_h5
    f.create_dataset(p, data=d[i])
KeyError: 0