Skip to content

Commit

Permalink
fictrac: also log version
Browse files Browse the repository at this point in the history
  • Loading branch information
nzjrs committed May 14, 2021
1 parent bc27940 commit f7ee05c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flyvr/fictrac/fictrac_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
SHMEMFicTracState, fictrac_state_to_vec, NUM_FICTRAC_FIELDS


H5_DATA_VERSION = 1


class FicTracDriver(object):
"""
This class drives the tracking of the fly via a separate software called FicTrac. It invokes this process and
Expand Down Expand Up @@ -88,6 +91,9 @@ def run(self, options):
flyvr_shared_state.logger.create("/fictrac/output", shape=[2048, NUM_FICTRAC_FIELDS],
maxshape=[None, NUM_FICTRAC_FIELDS], dtype=np.float64,
chunks=(2048, NUM_FICTRAC_FIELDS))
flyvr_shared_state.logger.log("/fictrac/output",
H5_DATA_VERSION,
attribute_name='__version')

# Start FicTrac
with open(self.console_output_file, "wb") as out:
Expand Down

0 comments on commit f7ee05c

Please sign in to comment.