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

Adding last two FicTrac-v2 columns to get saved into FlyVR #20

Open
davidt0x opened this issue Feb 8, 2022 · 0 comments
Open

Adding last two FicTrac-v2 columns to get saved into FlyVR #20

davidt0x opened this issue Feb 8, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidt0x
Copy link
Contributor

davidt0x commented Feb 8, 2022

Adding last two FicTrac-v2 columns to get saved into FlyVR. FicTrac-v2 outputs a .dat file that has 25 columns, but in flyVR2 .h5 file, the last 2 columns are not being saved.

I can add this feature but it will take a bit more than modifying the Python source code. See the python side of things here: https://github.com/murthylab/fly-vr/blob/master/flyvr/fictrac/shmem_transfer_data.py. FicTrac is a C++ program that is loosely coupled with FlyVR. Essentially, we have modified FicTrac to copy its state (the 23 fields) into a special region of shared memory. FlyVR spins up a process that peeks (protected by a semaphore) at this memory periodically to see if the state has changed. The values you see in the HDF5 file will be the values that were recorded in realtime from fictrac via this shared memory connection. I will need to add a small bit of code to fictrac to copy these additional fields. I will then need to handle the Python side of things so that things don’t break in the FicTrac1 case. This might not be too hard since we are just appending to the data structure. Anyway, the only reason I mention all these details is to explain why it might take me more than a few minutes to add this feature.

@davidt0x davidt0x added the enhancement New feature or request label Feb 8, 2022
@davidt0x davidt0x self-assigned this Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant