Comments (6)
DD doesnt know anything about chunks...
If you cant reproduce a bug with a basic DimArray
or other objects defined here, take the issue to the extending package first, in this case YAXArrays.jl.
The problem is in the internal object, not DD
from dimensionaldata.jl.
This is not a YAXArray issue, because YAXArrays is only used to construct the data and to open the underlying Zarr data. The object that is failing is a normal DimArray with a DiskArray as data.
This seems to rather be an issue with calling copyto!
on a DiskArray but I am wondering why this is not a problem on NetCDF or GDAL files. This call happens in the print_matrix function of DD.
It might be that YAXArrays is constructing a slightly broken zarr file here.
Do you also run into this problem on actual data that you get from somewhere else or is it only a problem when you save the data with YAXArrays?
from dimensionaldata.jl.
Either DiskArrays.jl not working with some base method that works on normal arrays, or YAX constructing something broken. But I assumed it was YAX making a broken disk array.
from dimensionaldata.jl.
julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 12 × Apple M2 Max
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
JULIA_PROJECT = @.
JULIA_EDITOR = vi
(jl_a3hv6U) pkg> st
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_a3hv6U/Project.toml`
[0703355e] DimensionalData v0.26.3
⌅ [3c3547ce] DiskArrays v0.3.23
[90b8fcef] YAXArrayBase v0.6.1
[c21b50f5] YAXArrays v0.5.4
[0a941bbe] Zarr v0.9.2
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`
(jl_a3hv6U) pkg> st --outdated
Status `/private/var/folders/s5/8d629n5d7nsf37f60_91wzr40000gq/T/jl_a3hv6U/Project.toml`
⌅ [3c3547ce] DiskArrays v0.3.23 (<v0.4.1): DiskArrayTools, Zarr
from dimensionaldata.jl.
I guess the only way will be to bring the data into memory first:
E = DimArray(D.data[:,:,:], dims(D))
from dimensionaldata.jl.
I looked into it a bit more and it seems to be an issue DiskArrays not handling the copyto! case when one of the indices is length zero. This happens when the size of the terminal is too small to show something but it still tries to retrieve some data. I will open a DiskArrays.jl issue.
from dimensionaldata.jl.
Related Issues (20)
- Performance of `broadcast_dims` on `DimStack` vs `DimArray` HOT 1
- Remove if VERSION checks HOT 1
- Plotting deprecations in tests
- Reduce number of warnings in tests HOT 1
- How can I create a 2D array using broadcasting? HOT 1
- MethodError: no method matching `copy(::X{LinRange{Float64, Int64}})`
- Selection of multiple surrounding pixels around a position HOT 4
- Add CodeCov upload token to fix codecov HOT 4
- friction in dimension-specific `mean` of a `groupby` HOT 4
- FR: Make `broadcast_dims` work with `DimArray`s and `Dimension`s HOT 3
- `mapslices` on `DimStack` HOT 3
- add `name` etc keywords to `DimArray` `similar` HOT 1
- Support `replace!` for `DimStack`s HOT 3
- typos HOT 6
- Explain difference of Interval and Range for Indexing HOT 1
- Weighted mean from `StatsBase` does not work on DimArray HOT 6
- Invalid assignment to DimArray indexed by DimSelectors HOT 3
- Use of `set` leads to error during display HOT 2
- improve `show`
- `similar` for `DimGroupByArray` should return a `DimArray`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimensionaldata.jl.