Skip to content

Fix some warnings in MATLAB code.#83

Merged
arokem merged 3 commits intoarokem:masterfrom
isbadawi:misc-cleanup
Aug 27, 2014
Merged

Fix some warnings in MATLAB code.#83
arokem merged 3 commits intoarokem:masterfrom
isbadawi:misc-cleanup

Conversation

@isbadawi
Copy link
Collaborator

These are just a couple of things I ran into while working on Octave support.

  • The first commit fixes a warning when calling is_function_processor_working -- it was trying to call addpath on a path that doesn't exist. The function still worked because everything under matlab/ is on the path anyway.
  • The second commit fixes some warnings on Octave; Octave gives a warning if the name of the function doesn't match the file name, whereas MATLAB just silently uses the file name.
  • The third commit is a small cleanup -- it seems a little strange to be doing feval(str2func('f'), ...) instead of just directly calling f(...).

The path to test_sum.m was wrong. It still works because run_func works
by adding the directory to the path and then calling the function; the
addpath fails with a warning, but test_sum.m is on the path anyway
because it's under matlab/.
This fixes some warnings on Octave. (Also update the docs for
pymat_eval, which were still describing web_eval).
There's no need for this indirection since we know which function
we're calling.
@arokem
Copy link
Owner

arokem commented Aug 19, 2014

yep - all good.

@isbadawi
Copy link
Collaborator Author

Ping -- can you merge this?

@arokem
Copy link
Owner

arokem commented Aug 27, 2014

Oops. I thought I already did. Thanks for the reminder.

arokem added a commit that referenced this pull request Aug 27, 2014
Fix some warnings in MATLAB code.
@arokem arokem merged commit d65bf2e into arokem:master Aug 27, 2014
@isbadawi isbadawi deleted the misc-cleanup branch August 27, 2014 17:54
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.

2 participants