Skip to content

Commit

Permalink
revert: #144 (#149)
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <[email protected]>
  • Loading branch information
Flix6x authored Oct 13, 2023
1 parent 6f3ed82 commit 82bad6f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions timely_beliefs/beliefs/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2211,15 +2211,17 @@ def set_columns_and_indices_for_empty_frame(df, columns, indices, default_types)
def assign_sensor_and_event_resolution(df, sensor, event_resolution):
"""Set the Sensor metadata (including timing properties of the sensor)."""

if not isinstance(sensor, Sensor):
import warnings

warnings.warn(
"'sensor' field needs to be of type 'Sensor'. This constraint will be enforced in an upcoming version.",
FutureWarning,
)

# TODO: raise ValueError(...)
# https://github.com/SeitaBV/timely-beliefs/issues/145
# if not isinstance(sensor, Sensor):
# import warnings
#
# warnings.warn(
# "'sensor' field needs to be of type 'Sensor'. This constraint will be enforced in an upcoming version.",
# FutureWarning,
# # stacklevel=6,
# )
#
# # TODO: raise ValueError(...)

df.sensor = sensor
df.event_resolution = (
Expand Down

0 comments on commit 82bad6f

Please sign in to comment.