iiasa / message-ix-buildings

Apache License 2.0
2 stars 3 forks source link

Add data inputs as arguments into function #28

Open byersiiasa opened 2 months ago

byersiiasa commented 2 months ago

Similarly here, wouldn't it make sense to add the cumulative emissions, quantiles and Energy Intensity files as input arguments to the function? https://github.com/iiasa/message-ix-buildings/blob/6cde97dc75f962e8f61b08dccd11d7b870e7f4c3/message_ix_buildings/chilled/functions/regression.py#L58

https://github.com/iiasa/message-ix-buildings/blob/6cde97dc75f962e8f61b08dccd11d7b870e7f4c3/message_ix_buildings/chilled/functions/regression.py#L75-L77

Further down, the scenario names could be automatically inferred i.e. scenarios = engage_cumCO2.scenario.unique()

https://github.com/iiasa/message-ix-buildings/blob/6cde97dc75f962e8f61b08dccd11d7b870e7f4c3/message_ix_buildings/chilled/functions/regression.py#L66

@measrainsey