Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIO file support #3438

Closed
tifuchs opened this issue Apr 9, 2021 · 3 comments
Closed

FIO file support #3438

tifuchs opened this issue Apr 9, 2021 · 3 comments
Assignees

Comments

@tifuchs
Copy link
Contributor

tifuchs commented Apr 9, 2021

Hi everybody,

The *.fio file format is a default data recorder in the Sardana controls project, which is used by many synchrotrons (ALBA, DESY, MaxIV, Solaris and ESRF according to their web page). The fio file serves a similar role as the Nexus or Spec file. I.e. it is mainly used to save 1d data like motor positions and counter values during a measurement.
Neither silx nor pymca seem to support reading these files.

I am not sure about the scope of this library. Are you interested in enabling the support for this filetype?

I already wrote a fio -> NEXUS converter based on your spech5.py implementation for specfiles.
Reading the files and converting multiple fio files into one master hdf5 file (using silx convert) works already nicely with the files I have:
silxview_fio
You can find my silx fork here.

Fio seems to be a very open file "standard". For example, I wasn't able to find any proper documentation about the file specification. This might be a problem with any fio converter implementation. My current version is based on the fio file writer of Spock/Sardana.

Cheers,
tifuchs

@vallsv
Copy link
Contributor

vallsv commented Apr 12, 2021

Hi, I can't answer for @t20100 but at least your patch looks fine.

Anyway, to be merged there is probably a lack of tests, with a kind of fio file for reference.

@t20100
Copy link
Member

t20100 commented Apr 19, 2021

Hi,

You are welcome to make a PR for it!
AFAIK, we have no need for *.fio support, but since it is a synchrotron related file format it can well fit in the silx package!

As @vallsv already said, some tests would be needed.
Also, it will probably be hard for us to maintain the support of this file format since we are not used to it, so help on the maintenance of this particular feature is also welcomed!

@tifuchs
Copy link
Contributor Author

tifuchs commented Apr 24, 2021

I have a beamtime the next two weeks at DESY, where I'll use the code in the field.
After that experience I'll add some test code and make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants