You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In __set_production of the RooftopPvParser we add the values of the profiles of the ports like this:
self.production = sum((asset.port[0].profile[0].value for asset in assets_generator))
However, when a profile is referenced like in the InfluxDBProfile object, there is no direct attribute value.
We should find another way to get this value. As we cannot access the db from our app, the profile needs to be supplied to our API. Plan is to:
Create a new field in the API for profiles
Store the intermediate profiles in a new object/class
Mock the current implementation of the InfluxDBProfile object to reference our new profile objects.
Think of what to do (or tell the user) when the profile was not supplied
For now I added a mocked method that returns 0 as a value when a profile was not found, so that the files at least make it through the API. We should change that according to the description of this issue.
In
__set_production
of theRooftopPvParser
we add the values of the profiles of the ports like this:However, when a profile is referenced like in the
InfluxDBProfile
object, there is no direct attributevalue
.We should find another way to get this value. As we cannot access the db from our app, the profile needs to be supplied to our API. Plan is to:
InfluxDBProfile
object to reference our new profile objects.Part of #82
The text was updated successfully, but these errors were encountered: