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

Allow encoding/decoding multiple geometries #526

Merged
merged 13 commits into from
Jul 17, 2024
Merged

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Jul 1, 2024

This needs

  • updated docstrings
  • adding GeometryNames to api.rst
  • loot more tests
  • typing fixes

but it works with all xvec examples!

"coordinates": f"{self.coordinates_x} {self.coordinates_y}",
}

def coords(self, *, dim: str, x, y, crdX, crdY) -> dict[str, xr.DataArray]:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: save dim as self.core_dim? This is the core dimension for the decoded shapely geometries.

@dcherian dcherian merged commit 3217aaf into main Jul 17, 2024
10 checks passed
@dcherian dcherian deleted the multiple-geometries branch July 17, 2024 10:01
@dcherian
Copy link
Contributor Author

Could use more tests but I'm unlikely to get to it soon

dcherian added a commit that referenced this pull request Jul 24, 2024
* main: (35 commits)
  Add release.yml
  Allow encoding/decoding multiple geometries (#526)
  Rewrite unit formatter for pint 0.24 and earlier (#523)
  [pre-commit.ci] pre-commit autoupdate (#527)
  Add grid_mapping for geometries if possible (#521)
  Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 (#524)
  Bump codecov/codecov-action from 4.4.1 to 4.5.0 (#525)
  Add geometry encoding and decoding functions. (#517)
  Bump links to CF-1.11 (#519)
  Docs cleanup (#518)
  Bump codecov/codecov-action from 4.3.0 to 4.4.1 (#514)
  [pre-commit.ci] pre-commit autoupdate (#510)
  Bump pypa/gh-action-pypi-publish from 1.8.12 to 1.8.14 (#509)
  Add docs about converting between shapely and cf (#512)
  Bump codecov/codecov-action from 4.1.0 to 4.3.0 (#511)
  Fix scheduled nightly upstream test
  Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.12 (#503)
  Bump codecov/codecov-action from 4.0.0 to 4.1.0 (#504)
  numpy 2 compat (#505)
  ruff settings: move 'ignore' to 'lint' section (#506)
  ...
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.

1 participant