FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Comparing main...dim-labels · apposed/appose-python · GitHub

Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apposed/appose-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Could not load branches
Nothing to show
{{ refName }}
...
head repository: apposed/appose-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dim-labels
Choose a head ref
Could not load branches
Nothing to show
{{ refName }}
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Apr 3, 2026

  1. WIP: dim labels

    src/appose/shm.py
    
    - NDArray.__init__: Added optional dims: list[str] | None = None parameter with validation that its length matches shape
    - NDArray.__str__: Shows dims when present
    - NDArray.xarray(): New method — returns an xarray.DataArray wrapping the same shared memory, with dims preserved. Requires numpy + xarray.
    - Encoder (_encode_ndarray): Emits dims only when non-None (keeps wire format compact for the common no-dims case)
    - Decoder: Uses m.get("dims") so missing dims field decodes as None (backward compat with older senders)
    
    tests/util/test_message.py
    
    - test_encode_with_dims / test_decode_with_dims: Round-trip encoding/decoding with dims
    - test_decode_ignores_unknown_fields: Explicit backward-compat test — verifies unknown fields don't cause errors
    
    tests/test_shm.py
    
    - test_ndarray_dims: Integration test — dims survive the wire protocol across processes
    - test_ndarray_dims_none: Backward compat — no dims → None
    - test_ndarray_dims_length_mismatch: Validation error
    - test_ndarray_xarray / test_ndarray_xarray_no_dims: xarray conversion (skipped when numpy/xarray unavailable)
    ctrueden committed Apr 3, 2026
    Configuration menu
    Copy the full SHA
    eda4e7b View commit details
    Browse the repository at this point in the history
Loading

Back | FazBrowse Home | New Git URL