Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwinkel-dev opened this issue Aug 6, 2024 · 0 comments
Labels
bug An unexpected problem or unintended behavior

Comments

@mwinkel-dev
Copy link
Contributor

mwinkel-dev commented Aug 6, 2024

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 mwinkel-dev added the bug An unexpected problem or unintended behavior label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant