-
Notifications
You must be signed in to change notification settings - Fork 28
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
VDIF frameset header consistency checker #117
Comments
Concretely, I guess this might be implemented as a new A bit more abstract: the frame set should not have to know which parts of an header are meant to be invariable for a given But fine also to start with just checking the invariant part of the header only in |
I'd be happy to take a crack at this, but I'd need to know more about what you're wanting to achieve. As per the VDIF spec, several fields should be invariant within a DataThread but everything except the header length is allowed to vary within a DataStream. Even EDV, though why they allowed that I am not sure. So are you imagining a solution here that would:
Where 1 and 2 enforce stricter rules than the spec but may be useful for people who expect their header fields to match based on knowing the pipeline that produced the data. |
@TheMartianLife - thanks so much for offering to help! I have not thought about this issue for quite a while, but I think consistency with the specification would be first. I guess most logical would be to give Note that in the years since this issue was raised, I've not really had a case where having strict verification would really have made a difference, while I did encounter files where setting strict verification would lead to failure... So, if, e.g., you have particular data files that do not read, or read poorly, definitely go for that instead! (I was intrigued to see from your github page that you work on satellite tracking; if |
Currently only the first header of each VDIF frameset is used by stream readers, though the others are read into memory. It might be useful to check that all headers of the frameset are consistent (ie. only differ by
thread_id
) and throw a warning if it is not the case.The text was updated successfully, but these errors were encountered: