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

ImageTool hangs on opening some non-uniform data #94

Open
5 tasks done
kmnhan opened this issue Feb 12, 2025 · 0 comments
Open
5 tasks done

ImageTool hangs on opening some non-uniform data #94

kmnhan opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kmnhan
Copy link
Owner

kmnhan commented Feb 12, 2025

Description

ImageTool hangs on opening data that includes a non-uniform coord with int64 dtype.

Expected behavior

Should behave the same way as float64

Minimal Complete Verifiable Example

import numpy as np
import xarray as xr
import erlab

xr.DataArray(
    np.random.rand(5, 5),
    coords=dict(
        x=np.arange(5, dtype=np.float64),
        y=np.array([1.0, 2.0, 6.0, 7.0, 9.0], dtype=np.int64),
    ),
).qshow()

MVCE confirmation

  • Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue.
  • Complete example — the example is self-contained, including all data and the text of any traceback.
  • Verifiable example — the example copy & pastes into an IPython prompt, returning the result.
  • New issue — a search of GitHub Issues suggests this is not a duplicate.
  • Recent environment — the issue occurs with the latest version of erlab and its dependencies.

Additional context

No response

@kmnhan kmnhan added the bug Something isn't working label Feb 12, 2025
@kmnhan kmnhan self-assigned this Feb 12, 2025
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

No branches or pull requests

1 participant