Skip to content
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

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Conversation

lymereJ
Copy link
Collaborator

@lymereJ lymereJ commented Jul 19, 2024

No description provided.

@lymereJ lymereJ requested a review from leijerry888 July 19, 2024 05:06
@@ -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":
Copy link
Collaborator Author

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":
Copy link
Collaborator Author

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.

Comment on lines +85 to +86
assert len(dp.data.columns) == 106
assert isinstance(dp.data.index, pandas.DatetimeIndex)
Copy link
Collaborator Author

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.

@leijerry888 leijerry888 merged commit 5f738b7 into develop Jul 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants