pypsa-earth“solve_network”的最后一条规则无法正常工作

问题描述 投票:0回答:1

我希望这条消息对您有好处。作为来自中国的一年级研究生,我目前正在使用 pypsa-earth 从事与电力相关的研究。然而,我在尝试运行该程序时遇到了挑战。

我的目的是在中国使用 pypsa-earth,那里的规则通常是严格执行的。但是,我在该过程的最后一步遇到了困难,该步骤始终在终端中显示“返回非零退出状态 1”,如下面的屏幕截图所示。

(ERROR:snakemake.logging:

Error in rule solve_network:

        jobid: 1
        input: networks/elec_s_10_ec_lcopt_Co2L-3H.nc
        output: results/networks/elec_s_10_ec_lcopt_Co2L-3H.nc
        log: logs\solve_network\elec_s_10_ec_lcopt_Co2L-3H_solver.log, logs/solve_network/elec_s_10_ec_lcopt_Co2L-3H_python.log (check log file(s) for e
    rror details)
    
    RuleException:
    CalledProcessError in file D:\pypsa_earth\pypsa-earth-project\pypsa-earth\Snakefile, line 836:
    Command 'D:/Anaconda3/envs/pypsa-earth/python.exe "D:\pypsa_earth\pypsa-earth-project\pypsa-earth\.snakemake\shadow\tmp5_0pdd_u\.snakemake\scripts\t
    mp06cl0g79.solve_network.py"' returned non-zero exit status 1.
      File "D:\pypsa_earth\pypsa-earth-project\pypsa-earth\Snakefile", line 836, in __rule_solve_network
      File "D:\Anaconda3\envs\pypsa-earth\lib\concurrent\futures\thread.py", line 58, in run
    ERROR:snakemake.logging:RuleException:
    CalledProcessError in file D:\pypsa_earth\pypsa-earth-project\pypsa-earth\Snakefile, line 836:
    Command 'D:/Anaconda3/envs/pypsa-earth/python.exe "D:\pypsa_earth\pypsa-earth-project\pypsa-earth\.snakemake\shadow\tmp5_0pdd_u\.snakemake\scripts\t
    mp06cl0g79.solve_network.py"' returned non-zero exit status 1.
      File "D:\pypsa_earth\pypsa-earth-project\pypsa-earth\Snakefile", line 836, in __rule_solve_network
      File "D:\Anaconda3\envs\pypsa-earth\lib\concurrent\futures\thread.py", line 58, in run
    Shutting down, this might take some time.
    WARNING:snakemake.logging:Shutting down, this might take some time.
    Exiting because a job execution failed. Look above for error message
    ERROR:snakemake.logging:Exiting because a job execution failed. Look above for error message
    Complete log: .snakemake\log\2024-02-25T181828.761216.snakemake.log
    WARNING:snakemake.logging:Complete log: .snakemake\log\2024-02-25T181828.761216.snakemake.log)

值得注意的是,我正在通过 PyCharm 执行 Snakemake,我所做的唯一更改与调整配置文件中的国家/地区代码和启用“build_cutouts”规则有关。

我将非常感谢有关此问题的任何见解或帮助。非常感谢您的时间和考虑。

python pycharm pypsa
1个回答
0
投票

玛丽亚! 今天我遇到了类似的问题!

我在配置文件中更改了以下行:

  • [solving]:[options]:[max_iterations] = 60000(没有什么大逻辑,只是随机的大数字)
  • [求解]:[选项]:[n小时] = 1(也许没有必要)。

最后,pypsa 成功完成。 希望,会有用

致以诚挚的问候

© www.soinside.com 2019 - 2024. All rights reserved.