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

MissingOutputException in rule prepare_gas_network #323

Closed
2 tasks done
doneachh opened this issue May 31, 2024 · 3 comments · Fixed by #324
Closed
2 tasks done

MissingOutputException in rule prepare_gas_network #323

doneachh opened this issue May 31, 2024 · 3 comments · Fixed by #324
Assignees
Labels
bug Something isn't working

Comments

@doneachh
Copy link
Collaborator

doneachh commented May 31, 2024

Checklist

  • I am using the current main branch or the latest release. Please indicate.
  • I am running on an up-to-date pypsa-africa environment. Update via conda env update -f envs/environment.yaml.

Describe the Bug

We don't create those pngs when running in the following block:
else:
print(
"The following countries have no existing Natural Gas network between the chosen bus regions:\n"
+ ", ".join(bus_regions_onshore.country.unique().tolist())
)

    # Create an empty DataFrame with the specified column names
    pipelines = {"bus0": [], "bus1": [], "capacity": [], "length": [], "GWKm": []}

    pipelines = pd.DataFrame(pipelines)
    pipelines.to_csv(snakemake.output.clustered_gas_network, index=False)

Error Message

Waiting at most 5 seconds for missing files.
MissingOutputException in rule prepare_gas_network in file /mnt/l/Git/Namibia/pypsa-earth-sec/Snakefile, line 148:
Job 25  completed successfully, but some output files are missing. Missing files after 5 seconds. This might be due to filesystem latency. If that is the case, consider to increase the wait time with --latency-wait:
resources/gas_networks/existing_gas_pipelines__10.png
resources/gas_networks/clustered_gas_pipelines__10.png
Removing output files of failed job prepare_gas_network since they might be corrupted:
resources/gas_networks/gas_network_elec_s_10.csv
@doneachh doneachh added the bug Something isn't working label May 31, 2024
@doneachh doneachh self-assigned this May 31, 2024
@doneachh doneachh linked a pull request May 31, 2024 that will close this issue
6 tasks
@davide-f
Copy link
Member

davide-f commented Jun 5, 2024

Personally, as mentioned in the PR, I'd recommend to keep the workflow consistent and keep the plotting functions as separate rules.
What do all think about it?
@energyLS @hazemakhalek @Eddy-JV

P.S. @doneachh I really recommend you to attend a meeting as we are discussing the merge and I believe it is relevant for you

@doneachh
Copy link
Collaborator Author

doneachh commented Jun 6, 2024

@davide-f sounds like a good solution. Sadly i can not join today as i have another meeting at the same time, but keep me updated what the others say to this issue and I'll adjust this PR afterwards :)

@energyLS
Copy link
Collaborator

energyLS commented Jun 6, 2024

Personally, as mentioned in the PR, I'd recommend to keep the workflow consistent and keep the plotting functions as separate rules. What do all think about it? @energyLS @hazemakhalek @Eddy-JV

P.S. @doneachh I really recommend you to attend a meeting as we are discussing the merge and I believe it is relevant for you

Totally agree here, plotting/analysis should be separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants