Skip to content

Fix: matlab fails to compile code with 'py.' if no python present#2358

Closed
joshStillerman wants to merge 2 commits intoalphafrom
jas-matlab-nopython
Closed

Fix: matlab fails to compile code with 'py.' if no python present#2358
joshStillerman wants to merge 2 commits intoalphafrom
jas-matlab-nopython

Conversation

@joshStillerman
Copy link
Contributor

This fix allows matlab mdsplus functions to work on computers that do not have a python interpreter.

Moves all references to 'py.' to functions in separate files.

closes #2357

MATLAB fails to compile any code which refers to 'py.' on machines
lacking a python interpreter.

Fix is to move all references to 'py.' to its own routines.
@joshStillerman joshStillerman requested a review from zack-vii July 21, 2021 14:39
@zack-vii
Copy link
Contributor

hm well i assume you tested it .. with MATLAB2021a. looks ok.. One proposal I have though. do you think it makes sense to hide the private functions by moving them into ./matlab/private/ otherwise we may be bound to keep them "as users may relay on them". basically on would only want functions in ./matlab that the user is expected to invoke.
the new files should go in there for sure.. maybe toe from/to and NATIVE functions as they are called by mdsvalue no?

@joshStillerman
Copy link
Contributor Author

joshStillerman commented Jul 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MATLAB 2021a does not work with MDSplus module

2 participants