Skip to content

How to Implement Data Version Management with MDSplus.Tree.setVersionDate for Nodes Using makeSegment to Insert Data #3058

Description

@CuiMo6

Affiliation
ENN EXL50U

Question
I am currently using MDSplus to implement data version management. At present, I insert data once with the node.putData(np.array([1,2,3])) function, then insert data again with node.putData(np.array([4,5,6])), and I can view data of different versions using MDSplus.Tree.setVersionDate("09-JUN-2026 16:46:00"). However, I have encountered a problem: when I insert data using the node.makeSegment function, close the tree, and then insert data again with node.makeSegment, the new data is appended after the previous data, resulting in two segments of data being inserted. In this case, I cannot use MDSplus.Tree.setVersionDate to view data of different versions. How can I implement version management for segment data?

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions