Skip to content

Commit

Permalink
format: black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Jun 20, 2024
1 parent 3bb3140 commit e3e51f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions aeon/dj_pipeline/analysis/block_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ def make(self, key):

block_state_query = acquisition.Environment.BlockState & exp_key & chunk_restriction
block_state_df = fetch_stream(block_state_query)
block_state_df.index = block_state_df.index.round("us") # timestamp precision in DJ is only at microseconds
block_state_df = block_state_df.loc[(block_state_df.index > previous_block_start)
& (block_state_df.index <= chunk_end)]
block_state_df.index = block_state_df.index.round(
"us"
) # timestamp precision in DJ is only at microseconds
block_state_df = block_state_df.loc[
(block_state_df.index > previous_block_start) & (block_state_df.index <= chunk_end)
]

block_ends = block_state_df[block_state_df.pellet_ct == 0]
# account for the double 0s - find any 0s that are within 1 second of each other, remove the 2nd one
Expand Down

0 comments on commit e3e51f2

Please sign in to comment.