Menu

#2871 ensureWritable always happens with getDataSet

nextrelease
open
nobody
None
5
2026-07-24
2026-07-24
No

The Jython getDataSet command has a call to ensureWritable, which defeats the new NIO code we use to read IDLSaves without a copy using heap memory.

    at org.das2.qds.ops.Ops.copy(Ops.java:6097)
    at org.autoplot.jythonsupport.Util.ensureWritable(Util.java:199)
    at org.autoplot.jythonsupport.Util.getDataSet(Util.java:280)
    at org.autoplot.jythonsupport.GetDataSetCommand.__call__(GetDataSetCommand.java:205)

I wonder if this could be delayed until the data is modified.

Discussion