[PyPSA-EARTH] Taiwan in "13 power systems around the world"

105 views
Skip to first unread message

BO-BIN XIAO

unread,
Feb 20, 2023, 7:40:08 AM2/20/23
to pypsa
Hi PyPSA-Earth team,

I've noticed that PyPSA-Earth released the Taiwan power system, Brilliant Work!, and I've tried this model but it seems not work.

Here's my steps:
- "conda activate PyPSA-Earth"
- Replace in the config ["Africa"] by ["TA"]
- Run "snakemake -j 1 solve_all_networks"

And the snalemake's log shows:
------------------------------------------------------------------------------------------------
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job                         count    min threads    max threads
------------------------  -------  -------------  -------------
add_electricity                 1              1              1
add_extra_components            1              1              1
base_network                    1              1              1
build_bus_regions               1              1              1
build_demand_profiles           1              1              1
build_osm_network               1              1              1
build_powerplants               1              1              1
build_renewable_profiles        5              1              1
clean_osm_data                  1              1              1
cluster_network                 1              1              1
download_osm_data               1              1              1
prepare_network                 1              1              1
simplify_network                1              1              1
solve_all_networks              1              1              1
solve_network                   1              1              1
total                          19              1              1

Select jobs to execute...

[Mon Feb 20 19:43:14 2023]
rule download_osm_data:
    output: resources/osm/raw/all_raw_cables.geojson, resources/osm/raw/all_raw_generators.geojson, resources/osm/raw/all_raw_generators.csv, resources/osm/raw/all_raw_lines.geojson, resources/osm/raw/all_raw_substations.geojson
    log: logs/download_osm_data.log
    jobid: 15
    benchmark: benchmarks/download_osm_data
    reason: Missing output files: resources/osm/raw/all_raw_lines.geojson, resources/osm/raw/all_raw_generators.geojson, resources/osm/raw/all_raw_cables.geojson, resources/osm/raw/all_raw_substations.geojson
    resources: tmpdir=/tmp

[Mon Feb 20 19:43:14 2023]
Error in rule download_osm_data:
    jobid: 15
    output: resources/osm/raw/all_raw_cables.geojson, resources/osm/raw/all_raw_generators.geojson, resources/osm/raw/all_raw_generators.csv, resources/osm/raw/all_raw_lines.geojson, resources/osm/raw/all_raw_substations.geojson
    log: logs/download_osm_data.log (check log file(s) for error details)

Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
Complete log: .snakemake/log/2023-02-20T194311.563127.snakemake.log
-------------------------------------------------------------------------------------

I am willing and passionate about helping to test and correct data for the Taiwan power system. However, I am currently familiarizing myself with the program structure of pypsa-earth. And I would like to know how I can contribute to the Taiwan system.

Many Thanks.

Xiao, Bo-Bin

Max Parzen

unread,
Feb 21, 2023, 7:20:44 AM2/21/23
to pypsa
Hi Xiao,

We are happy to support you! I just want to make you aware that there is Barton Chen aiming to do the same.
I think you both should team up. One way to reach out is to contact him over LinkedIn: https://www.linkedin.com/in/bartonchen/
I would prefer talking on Discord where we also have developer meetings: https://discord.gg/AnuJBk23FU (there on the support channel you can also raise issues/questions)

There are a couple of things we need to know to help you with your issue:
- Did you run the Nigeria tutorial successfully?
- Are you using the default configuration and made there the changes and renamed it to config.yaml? Can you share your config.yaml?
- which earth-osm version are you using? (type `conda list`)

Best wishes,

Max

BO-BIN XIAO

unread,
Feb 22, 2023, 10:33:00 PM2/22/23
to pypsa
Hi Max,

I've contacted with Barton Chen, and I'm willing to  team up with him to refine the PyPSA-Taiwan model.
Here's some test results about the tutorial:
1. No, I ran the Nigeria tutorial but it seems not work. 
2. Yes, I've used the default configuration and remaned it as config.yaml. The config.yaml and snakemake.log are attached.
3. The earth-osm version is 0.0.9.

Thanks for your kind assistance.

Xiao, Bo-Bin

Max Parzen 在 2023年2月21日 星期二晚上8:20:44 [UTC+8] 的信中寫道:
2023-02-23T112120.471210.snakemake.log
config.yaml

Max Parzen

unread,
Feb 23, 2023, 10:40:17 AM2/23/23
to BO-BIN XIAO, pypsa
Hi Xiao,

It is probably a local setup problem because all CI (tests) are passing. You path looks also weird `/home/bruce/pypsa-earth/pypsa-earth/pypsa-earth/Snakefile`.

I would recommend you following:
- Clean the local installation with `snakemake -j1 clean`
- Try to rerun with `snakemake -j1 solve_all_networks`

If this does not work, delete your folder and start from scratch:
- installation: https://pypsa-earth.readthedocs.io/en/latest/installation.html

Make sure everything works for Nigeria before testing another region and read this/ play around with it:

Best wishes,

Max


--

Maximilian Parzen
PhD Candidate in Energy System Modelling | Energy Storage

Director of PyPSA meets Earth – A Global Open Energy System Model Initiative

School of Engineering | University of Edinburgh

Tel: +49 (0)176 70889068Add me on LinkedIn | Skype: max.parzen

Image preview

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.


--
You received this message because you are subscribed to a topic in the Google Groups "pypsa" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pypsa/FWKry1gjKyo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pypsa+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pypsa/ea6525c7-7ee1-49c2-80c0-cf9885f27436n%40googlegroups.com.

BO-BIN XIAO

unread,
Mar 15, 2023, 11:17:51 AM3/15/23
to pypsa
Hi Max,

I've successfully completed the Nigeria tutorial, as well as the simulation of the Taiwan model. I am pleased to report that the simulation data can now be downloaded without any issues.
With these tasks finished, I would like to inquire about any additional work related to the Taiwan model that may require my attention. Please kindly let me know if there are other tasks or areas where my assistance would be helpful.

By the way, I've read in the PyPSA documentation about generators that in the LOPF, the output limits for a generator are set by "p_nom * p_max_pu" and "p_nom * p_min_pu", i.e., by limits defined per unit of the nominal power p_nom. I would like to ask how to limit the maximum output of a generator in the case of purely solving power flow analysis using network.pf().
Many thanks.

Best wishes,

Bo-Bin, Xiao





Max Parzen 在 2023年2月23日 星期四晚上11:40:17 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages