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

Resurrect fake daq, fix DAQReader time conversion #37

Merged
merged 7 commits into from
Jan 9, 2020

Conversation

JelleAalbers
Copy link
Contributor

This resurrects the fake_daq script, used to mimic the DAQ on a regular computer. You must point it to a folder with raw_records data and tell it which run to read; it will then create "live records", if desired at a specific write rate.

Perhaps more importantly, this fixes a bug in the DAQReader's absolute time conversion (#17). A bare 1e9 was used, but that gives a float. Our times are 64-bit integers, so doing float math with them leads to inaccuracies. In this case, it led to records with fractional-sample times, which caused strange crashes later in strax.

(I also remove some unused old straxen contexts)

@JelleAalbers
Copy link
Contributor Author

Merging to help onsite work. The build failure also affects master and is due to tensorflow/keras changes upstream; will look into this soon.

@JelleAalbers JelleAalbers merged commit 108c397 into master Jan 9, 2020
@JelleAalbers JelleAalbers deleted the resurrect_fake_daq branch January 9, 2020 16:11
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

Successfully merging this pull request may close these issues.

1 participant