Breakthrough-Energy / SwitchWrapper

Wrapper for Switch
MIT License
1 stars 2 forks source link

feat: add function to create data frame for periods #25

Closed BainanXia closed 3 years ago

BainanXia commented 3 years ago

Purpose

Create data frame to populate the periods.csv file. the Closes #15

What is the code doing

Add a function get_inv_periods to prompt to the user for inputs of investment periods information, then create a data frame in build_periods so that we can successfully call to_csv in the main grid_to_switch function.

Time to review

10 minutes. Maybe we can come up with a better way to prompt to the user for many inputs in this situation?

BainanXia commented 3 years ago

I will rebase this on whatever is merged before this.

BainanXia commented 3 years ago

I moved the get_inv_periods() to grid_to_switch function for the purpose of reuse.