-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix preprocessing API initialization #44
Conversation
@@ -44,13 +43,13 @@ def __init__( | |||
# check if data file exists | |||
if os.path.isfile(data_path): | |||
try: | |||
if data_source == "EnergyPlus": | |||
if data_source.lower() == "energyplus": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No point in doing a case sensitive check.
# Use CSVReader to parse EnergyPlus timestamps | ||
data = CSVReader(csv_file=data_path).getseries() | ||
data = DateTimeEP(data, 2000).transform() | ||
data.drop("Date/Time", inplace=True, axis=1) | ||
|
||
elif data_source == "Other": | ||
elif data_source.lower() == "bms": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Other" seemed to synonymous with an "else" statement, the intent here is to deal with data from BMS.
assert len(dp.data.columns) == 106 | ||
assert isinstance(dp.data.index, pandas.DatetimeIndex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure that we're getting the expected full dataset.
No description provided.