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 SolarResource, WindResource, HPCWindData and HPCSolarData - resource data is (or attempted to be) downloaded or loaded and formatted within the class initialization. In the case of the HPC resource data - this prevents testing of other functions due to errors raised when the file cannot be loaded (which is the case with any local testing). (Note - these classes live in hopp/simulation/technologies/resource/)
Another add-in that may be relevant here is to add the ability to save wind and solar resource data loaded from HPC datasets to a user-specified location (option to save it externally from the .h5 datasets hosted on HPCs - in a place like /scratch/user/resource_files/).
Proposed solution
add optional input to SiteInfo and Resource classes to download/load data or not
split some functionality from __init__() methods in these Resource classes into functions (ex: create_filepath(self))
Alternatives considered
Additional context
This is being requested based on conversations in PR #414
The text was updated successfully, but these errors were encountered:
Resource data initialization flexibility
in
SolarResource
,WindResource
,HPCWindData
andHPCSolarData
- resource data is (or attempted to be) downloaded or loaded and formatted within the class initialization. In the case of the HPC resource data - this prevents testing of other functions due to errors raised when the file cannot be loaded (which is the case with any local testing). (Note - these classes live in hopp/simulation/technologies/resource/)Another add-in that may be relevant here is to add the ability to save wind and solar resource data loaded from HPC datasets to a user-specified location (option to save it externally from the .h5 datasets hosted on HPCs - in a place like /scratch/user/resource_files/).
Proposed solution
SiteInfo
andResource
classes to download/load data or not__init__()
methods in theseResource classes
into functions (ex:create_filepath(self)
)Alternatives considered
Additional context
This is being requested based on conversations in PR #414
The text was updated successfully, but these errors were encountered: