Skip to content

Commit

Permalink
Remove extra print statement and fix neutrino time validation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvasel committed Aug 16, 2024
1 parent 870d8c1 commit 11a1729
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion snews/models/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def _set_tier(cls, values):
values['tier'] = Tier.COINCIDENCE_TIER
return values

@field_validator("neutrino_time_utc")
@field_validator("neutrino_time_utc", mode="before")
def _validate_neutrino_time_format(cls, v: str):
return convert_timestamp_to_ns_precision(v)

Expand Down
1 change: 0 additions & 1 deletion snews/models/timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def _validate_and_cast_timestamp(cls, v):
v = v.replace(tzinfo=None)

if not isinstance(v, np.datetime64):
print(v)
v = np.datetime64(v)

return v
Expand Down

0 comments on commit 11a1729

Please sign in to comment.