From fc2b61a056c517792c4e5bff3ac4acf51f77c778 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Fri, 13 Oct 2023 17:47:01 +0200 Subject: [PATCH] revert: #144 Signed-off-by: F.N. Claessen --- timely_beliefs/beliefs/classes.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/timely_beliefs/beliefs/classes.py b/timely_beliefs/beliefs/classes.py index 1c028220..34d9a6c5 100644 --- a/timely_beliefs/beliefs/classes.py +++ b/timely_beliefs/beliefs/classes.py @@ -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 = (