Skip to content
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

Revise export ports data #1175

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

GbotemiB
Copy link
Contributor

@GbotemiB GbotemiB commented Nov 7, 2024

Closes # (if applicable).

Changes proposed in this Pull Request

The changes in this PR include

  • use port.csv data as input to add_export script
  • preprocessing steps for ports.csv data in add_export script

Checklist

  • I consent to the release of this PR's code under the AGPLv3 license and non-code contributions under CC0-1.0 and CC-BY-4.0.
  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Newly introduced dependencies are added to envs/environment.yaml and doc/requirements.txt.
  • Changes in configuration options are added in all of config.default.yaml and config.tutorial.yaml.
  • Add a test config or line additions to test/ (note tests are changing the config.tutorial.yaml)
  • Changes in configuration options are also documented in doc/configtables/*.csv and line references are adjusted in doc/configuration.rst and doc/tutorial.rst.
  • A note for the release notes doc/release_notes.rst is amended in the format of previous release notes, including reference to the requested PR.

@GbotemiB GbotemiB marked this pull request as ready for review November 8, 2024 16:57
Copy link
Member

@davide-f davide-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @GbotemiB :)
Thanks for the proposal to address this point.

Currently, the "export_ports" list is expected to be filled by the user; export_ports is indeed a file available in the data folder.
However, I agree that it is unconfortable to be filled manually and this can lead to issues especially when an export potential is requested.

The fact is that not all ports in ports.csv can actually be suitable for exports.
Ideally, the user shall propose either to use the custom value or a file calculated by the workflow.

I believe @hazemakhalek, @energyLS and/or @Eddy-JV may have some insights here.
Feel free to propose something by first writing in here, before coding.

Long-term, we may have prepare_ports to have 2 outputs: 1 ports.csv and 1 export.csv.
Moreover, if relevant for the -sec team, we also keep export.csv and have an option about whether using the export produced by ports or the custom file.

For the short term, we can have the option about either using ports.csv or export.csv

@GbotemiB
Copy link
Contributor Author

Thanks @davide-f. I will await comments from the -sec team on the best suitable approach.

But running the US model, what do you recommend at the moment to solve the model?

@davide-f
Copy link
Member

Thanks @davide-f. I will await comments from the -sec team on the best suitable approach.

But running the US model, what do you recommend at the moment to solve the model?

The simplest approach is copying the ports.csv file and rename it as export_ports.csv, or selecting a subset of such ports; not that it is likely that only large ports can actually be exporting ones so it makes sense to select a subset of them.
To make the model run, the procedure above should work in the meantime

@Eddy-JV
Copy link
Contributor

Eddy-JV commented Nov 14, 2024

Thank you @davide-f for already replying earlier and thank you @GbotemiB for rasing this.

First let me understand the context:

  • Currently the export_ports.csv is kept in data because usually the user has in mind very specific export ports for Hyrdrogen export. That was actually always the case till now, that export countries have already selected certain hydrogen export ports. What I understand, is that you want the model to decide which export port to invest in randomly. Please correct me if am wrong.

I that is the case, then I agree with @davide-f . We should then allow the user to choose in the config file under custom_data as True or False:

  1. Use custom data for export ports (True): which entales using export_ports.csv file that we place in data_custom instead of data folder.
  2. Use wrokflow (False): Then we add another output for prepare_ports.py , where we select export ports to be only "Large" ports for example and then save it in resources folder.

What do you think?

@energyLS
Copy link
Collaborator

Thank you @davide-f for already replying earlier and thank you @GbotemiB for rasing this.

First let me understand the context:

* Currently the `export_ports.csv` is kept in data because usually the user has in mind very specific export ports for Hyrdrogen export. That was actually always the case till now, that export countries have already selected certain hydrogen export ports. What I understand, is that you want the model to decide which export port to invest in randomly. Please correct  me if am wrong.

I that is the case, then I agree with @davide-f . We should then allow the user to choose in the config file under custom_data as True or False:

1. **Use custom data for export ports (True):** which entales using `export_ports.csv` file that we place in `data_custom` instead of `data` folder.

2. **Use wrokflow (False):** Then we add another output for `prepare_ports.py` , where we select export ports to be only "Large" ports for example and then save it in `resources `folder.

What do you think?

@Eddy-JV I support this idea, seems reasonable to me.

@GbotemiB
Copy link
Contributor Author

Thank you @davide-f for already replying earlier and thank you @GbotemiB for rasing this.

First let me understand the context:

  • Currently the export_ports.csv is kept in data because usually the user has in mind very specific export ports for Hyrdrogen export. That was actually always the case till now, that export countries have already selected certain hydrogen export ports. What I understand, is that you want the model to decide which export port to invest in randomly. Please correct me if am wrong.

I that is the case, then I agree with @davide-f . We should then allow the user to choose in the config file under custom_data as True or False:

  1. Use custom data for export ports (True): which entales using export_ports.csv file that we place in data_custom instead of data folder.
  2. Use wrokflow (False): Then we add another output for prepare_ports.py , where we select export ports to be only "Large" ports for example and then save it in resources folder.

What do you think?

Hi @Eddy-JV, Thank you very much for this contribution. I have a clarification question. There is a possibility that not all countries have large ports. Incases like this, we can use the medium ports, and if there is no medium ports we can use small ports. This way every country is covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants