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

Fix warning spam caused by geopandas update #399

Merged

Conversation

irm-codebase
Copy link
Contributor

@irm-codebase irm-codebase commented Jun 11, 2024

Fixes spam caused by geopandas (op was replaced with predicate). Found while debugging something else.

See: https://geopandas.org/en/stable/docs/reference/api/geopandas.sjoin.html

Checklist

Any checks which are not relevant to the PR can be pre-checked by the PR creator. All others should be checked by the reviewer. You can add extra checklist items here if required by the PR.

  • CHANGELOG updated
  • Minimal workflow tests pass
  • Tests added to cover contribution
  • Documentation updated
  • Configuration schema updated

@irm-codebase irm-codebase requested a review from timtroendle June 11, 2024 19:15
@@ -155,7 +155,7 @@ rule hydro_capacities:
rule capacity_factors_hydro:
message: "Generate capacityfactor time series for hydro electricity on {wildcards.resolution} resolution."
input:
capacities = rules.hydro_capacities.output[0],
capacities = rules.hydro_capacities.output.supply,
Copy link
Contributor Author

@irm-codebase irm-codebase Jun 11, 2024

Choose a reason for hiding this comment

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

This is the only case were output[0] was used for a rule with more than one output. Small improvement, for consistency.

@irm-codebase irm-codebase self-assigned this Jun 11, 2024
@timtroendle timtroendle merged commit ebd4bf7 into calliope-project:develop Jun 19, 2024
4 checks passed
@irm-codebase irm-codebase deleted the feature-geopandas-fix branch June 19, 2024 15:29
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.

2 participants