You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running some code on two separate computers and have experienced an issue where after an update, most approaches to indexing stopped working on one computer, but not the other.
I've narrowed it down to YAXArray datasets that are disk-based.
Just to reiterate, it is only not working on one computer.
Thing is, if I run status YAXArrays on both machines, the version numbers are the same: v0.5.8
# ]add NetCDF YAXArraysusing NetCDF
using YAXArrays
axlist = (
Dim{:v1}(range(1, 3, length=3)),
Dim{:v2}(["x1", "x2", "x3"])
)
test_arr =YAXArray(axlist, rand(3,3))
# All of these work
test_arr[v1=BitVector([true, false, true])]
test_arr[v1=[1, 3]]
test_arr[v2=BitVector([true, false, true])]
test_arr[v2=[1, 3]]
test_arr[v1=At([1, 2])]
test_arr[v2=At(["x1", "x2"])]
test_arr[v1=1:2]
test_arr[v2=2:3]
savecube(test_arr, "test_cube.nc", driver=:netcdf)
# Errors out as `test_arr` is not a dataset, but maybe it should save it as# a dataset with a single entry?# savedataset(test, path="test_dataset.nc", driver=:netcdf)# Open file as disk-based store
ds =open_dataset("test_cube.nc")
disk_arr = ds.layer
# None of these work
disk_arr[v1=BitVector([true, false, true])]
disk_arr[v1=BitVector([true, false, true])]
disk_arr[v1=[1, 3]]
disk_arr[v1=At([1, 2])]
disk_arr[v2=At(["x1", "x2"])]
# But ranges do work for some reason?
disk_arr[v1=1:2]
disk_arr[v2=2:3]
I'm running some code on two separate computers and have experienced an issue where after an update, most approaches to indexing stopped working on one computer, but not the other.
I've narrowed it down to YAXArray datasets that are disk-based.
Just to reiterate, it is only not working on one computer.
Thing is, if I run
status YAXArrays
on both machines, the version numbers are the same: v0.5.8The error is:
The text was updated successfully, but these errors were encountered: