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
Compatibility with file format version 1.1 #198
Conversation
Thanks! Is this specific name hardcoded in the DAQ? There's no chance that we'd hit something similar with other names? |
To record the answer to my question: yes, this name is quite distinctly hardcoded into the machinery that writes the file: We're waiting to get official word of whether this is deliberate before we merge this and release. |
I'll keep this MR around until we see the new |
I'm wondering if we'll want to merge it anyway, so that the files created in the meantime can be opened. It should be harmless for the other files. |
Maybe, I did not consider the files already written. We can hope though that it did not extend beyond some test files during deployment testing, and simply pretend this never happened. Otherwise, it might even be useful to bump the format version number again to sort out the "broken" |
babb6f8
to
71697cc
Compare
I've changed the wording and added a warning when the validation flag is used. I've also added basic compatibility with |
LGTM 👍 |
71697cc
to
b64f5bb
Compare
Thanks for the review! When we implement some API for the |
As learned during a deployment test of the new pclayer version, it now writes an additional row in the beginning of
METADATA/dataSources
datasets, namely:METADATA/dataSources/root
Karabo_TimerServer
inMETADATA/dataSources/dataSourceId
andMETADATA/dataSources/deviceId
As the entry in
METADATA/dataSources/dataSourceId
contains no valid prefix (eitherCONTROL
orINSTRUMENT
), it breaks any and all reading code. This PR makesFileAccess._read_data_sources
ignore this entry, checked successfully against data taken during the deployment test.As far as I can see, we do not read data from this group anywhere else.
EDIT: Now with format version 1.2 deployed, I've changed this PR to limited compatibility with 1.1, see below.