mdsplus icon indicating copy to clipboard operation
mdsplus copied to clipboard

Existing MATLAB scripts are broken by changes in class/type caused by APD changes.

Open mwinkel-dev opened this issue 6 months ago • 0 comments

Affiliation Tokamak Energy

Version(s) Affected Found in stable-7-142-80. However, also in alpha-7-139-50 and newer.

Platform(s) RHEL?

Installation Method(s) From mdsplus.org or GitHub releases? (Did not compile from source.)

Describe the bug The bug report filed on Discord follows.

Vadim — 07/02/2024 7:32 AM
Hi MDSplus team, a quick question if I may. 

I've updated MDSplus version 7.131-6 to 7.142-80 and my matlab interface givens a different output, 
preserving apparently MDSplus native variable class/type. This new behaviour breaks some of our 
code that read, write and manipulate data in MDSplus nodes recursively / automatically.

For example, mdsvalue('$shot') returns 'int32' value instead of matlab's native "double"

Is there a flag that I can put somewhere to revert back to older behaviour ? I already have 
this set MDSplus_legacy_behavior=yes

Thanks in advance

image

To Reproduce n/a

Expected behavior Suggests a flag to revert back to previous types / classes

Screenshots n/a

Additional context On 2-Jul-2024, Stephen investigated and found that the changes were caused by PR #2737 for the Array of Pointers to Descriptors (aka APD) that allows structures to be passed.

mwinkel-dev avatar Aug 06 '24 16:08 mwinkel-dev