Skip to content

Test for IronPython before importing numpy #1292

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

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jun 15, 2022

A bare import of numpy in python_optimizers.py would cause failures in
IronPython or AEDT. Use the same logic from elsewhere to avoid.

Fixes #1291

A bare import of numpy in python_optimizers.py would cause failures in
IronPython or AEDT.  Use the same logic from elsewhere to avoid.
@ghost ghost requested review from maxcapodi78 and Samuelopez-ansys June 15, 2022 15:51
Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaxJPRey
Copy link
Collaborator

LGTM.

@codecov
Copy link

codecov bot commented Jun 15, 2022

Codecov Report

Merging #1292 (4cc5d07) into main (1371dcd) will decrease coverage by 0.00%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##             main    #1292      +/-   ##
==========================================
- Coverage   77.78%   77.77%   -0.01%     
==========================================
  Files          96       96              
  Lines       38558    38564       +6     
==========================================
+ Hits        29992    29994       +2     
- Misses       8566     8570       +4     

@maxcapodi78 maxcapodi78 merged commit 8059869 into main Jun 15, 2022
@maxcapodi78 maxcapodi78 deleted the skip-numpy-in-ironpython branch June 15, 2022 17:24
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.

launch_ironpython_server failing on CentOS 7.9
3 participants