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

endpoints edits for v3 #401

Merged
merged 5 commits into from
Jan 10, 2023
Merged

endpoints edits for v3 #401

merged 5 commits into from
Jan 10, 2023

Conversation

indu-manogaran
Copy link
Collaborator

Edit endpoints to create a working v3 version

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2023

CLA assistant check
All committers have signed the CLA.

These should cover all load_type variables
By calling /dev/sim... which calls the http.jl endpoint, we include testing
of type parsing and conversions that django does before calling http.jl endpoint
/simulated_load endpoint returns the annual_kwh and uses the Julia functions
from http.jl so it's more in sync with REopt.jl
Copy link
Collaborator

@Bill-Becker Bill-Becker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@indu-manogaran I added some type-conversion code which replaced some of the stuff you added, but this should handle all load_types (heating and cooling too).

Also, I removed the /annual_kwh endpoint from reoviews because you can instead use the /simulated_load endpoint to get annual_kwh. That endpoint was still calling the python commercial reference building code anyway, so it would become out-of-sync eventually.

@indu-manogaran
Copy link
Collaborator Author

Thanks, Bill. I'll update the UI code to reflect the removal of /annual_kwh.

@indu-manogaran indu-manogaran merged commit 666b979 into develop Jan 10, 2023
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.

3 participants