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
fmodel under the hood before constructing the dataframe. Possibly print warning.
- Error out with a message stating that the
fmodel must be run() before attempting to instantiate the FlascDataFrame.
Description
We would like to provide the ability to instantiate a
FlascDataFramefrom a FLORIS model. This would likely have syntax:where the
FlascDataFrameconstructor would need to detect theFlorisModelinput and handle appropriately; orwhere
.from_FlorisModelwould be a (static) method defined onFlascDataFramethat 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
FlascDataFrameshould instantiate if thefmodelhas not yet beenrun(). Options:fmodelunder the hood before constructing the dataframe. Possibly print warning.fmodelmust berun()before attempting to instantiate theFlascDataFrame.