Skip to content

Commit 94f5460

Browse files
committed
Make times from remote-access be "well-behaved" by copying
1 parent 2eabdb5 commit 94f5460

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cheta/fetch.py

+6
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,12 @@ def get_time_data_from_server(h5_slice, filename):
863863
times_all_ok = np.all(times_ok)
864864
if not times_all_ok:
865865
times = times[times_ok]
866+
elif remote_access.access_remotely:
867+
# This is really to prevent an issue in MATLAB tools where the times
868+
# array is not "well-behaved" and causes issues in the MATLAB interface
869+
# layer. But since remote access is almost always done with MATLAB and
870+
# is slow, we'll just copy the array to be safe.
871+
times = times.copy()
866872

867873
times_cache.update(
868874
dict(key=cache_key, val=times, ok=times_ok, all_ok=times_all_ok)

0 commit comments

Comments
 (0)