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

Do not call mlab.figure() if mayavi_figure_args=None #273

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

johnomotani
Copy link
Collaborator

On a headless machine (e.g. a CI server), calling mlab.figure() causes mayavi to error. This change allows plot3d() to run with mayavi without calling mlab.figure().

On a headless machine (e.g. a CI server), calling mlab.figure() causes
mayavi to error. This change allows plot3d() to run with mayavi without
calling mlab.figure().
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2023

Codecov Report

Merging #273 (5c45278) into master (4e4857f) will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #273      +/-   ##
==========================================
+ Coverage   68.99%   69.01%   +0.02%     
==========================================
  Files          15       15              
  Lines        3209     3208       -1     
  Branches      790      790              
==========================================
  Hits         2214     2214              
+ Misses        733      732       -1     
  Partials      262      262              
Impacted Files Coverage Δ
xbout/plotting/plotfuncs.py 18.40% <0.00%> (+0.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@johnomotani johnomotani merged commit 2b3caf4 into master Jan 10, 2023
@johnomotani johnomotani deleted the mayavi-ci-compat branch January 10, 2023 11:40
@johnomotani
Copy link
Collaborator Author

I thought this PR was required for boutproject/xBOUT-examples#16, but that test seems to be working with the released version of xBOUT, so apparently this change was not necessary. It should not hurt anyway, so does not seem worth reverting.

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