Skip to content

Commit

Permalink
added import utils
Browse files Browse the repository at this point in the history
  • Loading branch information
cparcerisas committed Jan 20, 2025
1 parent 654d012 commit df42de7
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pbp/meta_gen/gen_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import pandas as pd

import utils


class MetadataGeneratorAbstract(object):
def __init__(
Expand Down Expand Up @@ -48,20 +50,6 @@ def __init__(
except Exception as e:
raise e

if type(start) is datetime:
if start.hour == 0 and start.minute == 0 and start.second == 0:
pass
else:
raise ValueError("Start must be of type datetime.date or a datetime.datetime object at 00:00:00. "
"Otherwise that would be the start of the HMD computation.")

if type(end) is datetime:
if end.hour == 0 and end.minute == 0 and end.second == 0:
pass
else:
raise ValueError("End must be of type datetime.date or a datetime.datetime object at 00:00:00. "
"Otherwise that would be the start of the HMD computation.")

@property
def seconds_per_file(self):
return self._seconds_per_file
Expand Down

0 comments on commit df42de7

Please sign in to comment.