-
Notifications
You must be signed in to change notification settings - Fork 152
639 allow the user to define input and output file names #734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmutic
wants to merge
12
commits into
develop
Choose a base branch
from
639-allow-the-user-to-define-input-and-output-file-names
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8786cc8
Users can now add filenames in input_settings.yml
0f3a182
Added additional example file
bb6ec24
Added DuckDB to load_data_from_file()
68b1c7d
Added write_output_file to take in parquet and json filetypes
83a8612
Added write_output_file to all results
f177553
Code cleanup
0ca09b6
Minor changes
436f815
Added error message to configure_settings
36565ce
rebasing
e957f69
Added multistage input file names
43874e9
Minor edits, file cleanup
11fc473
Clean up after rebase
lbonaldo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #default_location: default/path/to/data | ||
| # system | ||
| #system_location: path/to/data | ||
| demand: "Demand_data.csv" | ||
| fuel: "Fuels_data.csv" | ||
| generators: "Generators_variability.csv" | ||
|
|
||
| # policies | ||
| #policies_location: /path/to/data | ||
| #co2_cap: file_or_table_name | ||
| #minimum_capacity: file_or_table_name | ||
|
|
||
| # resources | ||
|
|
||
| # policy assignments |
14 changes: 14 additions & 0 deletions
14
example_systems/1_three_zones/settings/results_settings.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| capacity: "Capacity_test.csv" | ||
| capacity_factor: "capacityfactor.csv" | ||
| charge: "charge.csv" | ||
| charging_cost: "ChargingCost.csv" | ||
| co2_prices: "CO2_prices_and_penalties.csv" | ||
| commit: "commit.parquet" | ||
| costs: "costs.parquet" | ||
| curtail: "curtail.csv.gz" | ||
| emissions_plant: "emissions_plant" | ||
| nse: "nse.csv" | ||
| power_balance: "power_balance.csv" | ||
|
|
||
|
|
||
|
|
4 changes: 2 additions & 2 deletions
4
example_systems/6_three_zones_w_multistage/settings/highs_settings.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
example_systems/6_three_zones_w_multistage/settings/input_settings.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| inputs_p1: | ||
| resources_location: "inputs/inputs_p1/resources" | ||
| resources: "Resource_multistage_data.csv" | ||
| storage: "Storage.csv" | ||
| thermal: "Thermal.csv" | ||
| vre: "Vre.csv" | ||
| policies_location: "inputs/inputs_p1/policies" | ||
| co2_cap: "CO2_cap.csv" | ||
| system_location: "inputs/inputs_p1/system" | ||
| demand: "Demand_data.csv" | ||
| fuel: "Fuels_data.csv" | ||
| generators: "Generators_variability1.csv" | ||
| network: "Network1.csv" | ||
|
|
||
| inputs_p2: | ||
| resources_location: "inputs/inputs_p1/resources" | ||
| resources: "Resource_multistage_data.csv" | ||
| storage: "Storage.csv" | ||
| thermal: "Thermal.csv" | ||
| vre: "Vre.csv" | ||
| policies_location: "inputs/inputs_p2/policies" | ||
| co2_cap: "CO2_cap.csv" | ||
| system_location: "inputs/inputs_p2/system" | ||
| demand: "Demand_data.csv" | ||
| fuel: "Fuels_data.csv" | ||
| generators: "Generators_variability.csv" | ||
| network: "Network.csv" | ||
|
|
||
| inputs_p3: | ||
| resources_location: "inputs/inputs_p1/resources" | ||
| resources: "Resource_multistage_data.csv" | ||
| storage: "Storage.csv" | ||
| thermal: "Thermal.csv" | ||
| vre: "Vre.csv" | ||
| policies_location: "inputs/inputs_p3/policies" | ||
| co2_cap: "CO2_cap.csv" | ||
| system_location: "inputs/inputs_p3/system" | ||
| demand: "Demand_data.csv" | ||
| fuel: "Fuels_data.csv" | ||
| generators: "Generators_variability.csv" | ||
| network: "Network.csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #default_location: default/path/to/data | ||
| # system | ||
| system_location: path/to/data | ||
| demand: "Demand_data.csv" | ||
| fuel: "Fuels_data.csv" | ||
| generators: "Generators_variability.csv" | ||
|
|
||
| # policies | ||
| #policies_location: /path/to/data | ||
| #co2_name: file_or_table_name | ||
| #minimum_capacity_name: file_or_table_name | ||
|
|
||
| # resources | ||
|
|
||
|
|
||
| # policy assignments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| capacity: "Capacity_test.csv" | ||
| capacity_factor: "capacityfactor.csv" | ||
| charge: "charge.csv" | ||
| charging_cost: "ChargingCost.csv" | ||
| co2_prices: "CO2_prices_and_penalties.csv" | ||
| commit: "commit.parquet" | ||
| costs: "costs.parquet" | ||
| curtail: "curtail.csv.gz" | ||
| emissions_plant: "emissions_plant" | ||
| nse: "nse.csv" | ||
| power_balance: "power_balance.csv" | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.