Skip to content

Commit

Permalink
Require 3 minutes of data to check temperatures instead of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Oct 8, 2024
1 parent 6e409ab commit ae1d835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lvmcryo/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def validate_fill(
ln2_temp = data.select(polars.col.time, polars.col("^temp_[rbz][1-3]_ln2$"))
ln2_temp = ln2_temp.sort(polars.col.time)

# Check that the last point was taken at least 5 minutes after the fill.
# Check that the last point was taken at least 3 minutes after the fill.
max_time = ln2_temp["time"].max()
extra_time = (max_time - event_times.end_time).total_seconds() # type: ignore
if extra_time < 5 * 60:
if extra_time < 3 * 60:
log_p(
"Not enough data collected after the fill "
"to check the LN2 temperature difference.",
Expand Down

0 comments on commit ae1d835

Please sign in to comment.