Skip to content

Commit

Permalink
FIX: get_circuit_info fails sometimes if default tel freq is changed (#…
Browse files Browse the repository at this point in the history
…455)

(cherry picked from commit dbd92a6)
  • Loading branch information
theOehrly committed Feb 9, 2024
1 parent 397b6c5 commit b6fe07d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastf1/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def slice_by_time(
end_time + self.session.t0_date)
},
session=self.session).__finalize__(self)
d = self.merge_channels(edges)
d = self.merge_channels(edges, frequency='original')

else:
d = self.copy() # TODO no copy?
Expand Down Expand Up @@ -625,7 +625,8 @@ def resample_channels(
new_tel.loc[:, 'Date'] = new_date_ref

combined_tel = self.merge_channels(
Telemetry({'Date': new_date_ref}).__finalize__(self)
Telemetry({'Date': new_date_ref}).__finalize__(self),
frequency='original'
)

mask = combined_tel['Date'].isin(new_date_ref)
Expand Down

0 comments on commit b6fe07d

Please sign in to comment.