-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
new-featureA new featureA new feature
Description
Description
We would like to provide the ability to instantiate a FlascDataFrame from a FLORIS model. This would likely have syntax:
fmodel = FlorisModel("input.yaml")
fmodel.set(...)
fmodel.run()
df = FlascDataFrame(fmodel)where the FlascDataFrame constructor would need to detect the FlorisModel input and handle appropriately; or
fmodel = FlorisModel("input.yaml")
fmodel.set(...)
fmodel.run()
df = FlascDataFrame.from_FlorisModel(fmodel)where .from_FlorisModel would be a (static) method defined on FlascDataFrame that would return an instantiated object.
This would allow users to quickly format their Floris output data as a FLASC dataframe.
An open question is how FlascDataFrame should instantiate if the fmodel has not yet been run(). Options:
- Instantiate without power columns (only wind direction, wind speed, TI columns). Print warning.
- Run the
fmodelunder the hood before constructing the dataframe. Possibly print warning. - Error out with a message stating that the
fmodelmust berun()before attempting to instantiate theFlascDataFrame.
Metadata
Metadata
Assignees
Labels
new-featureA new featureA new feature