Skip to content

Commit

Permalink
Merge branch 'main' into enums/gridid
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Sep 26, 2024
2 parents 1640e6c + 9045f46 commit dbc6df7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ jobs:
ls -lh dist/
- name: Publish to Test PyPI
uses: pypa/[email protected].1
uses: pypa/[email protected].2
with:
repository-url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected].1
uses: pypa/[email protected].2
1 change: 1 addition & 0 deletions pygmt/helpers/tempfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def tempfile_from_geojson(geojson):
if dtype in {"int", "int64"}:
overflow = geojson[col].abs().max() > 2**31 - 1
schema["properties"][col] = "float" if overflow else "int32"
geojson[col] = geojson[col].astype(schema["properties"][col])
ogrgmt_kwargs["schema"] = schema
else: # GeoPandas v1.x.
# The default engine "pyogrio" doesn't support the 'schema' parameter
Expand Down

0 comments on commit dbc6df7

Please sign in to comment.