Skip to content

Fix some deprecation warnings#872

Merged
ReimarBauer merged 1 commit intodevelopfrom
issue863-partly
Apr 30, 2021
Merged

Fix some deprecation warnings#872
ReimarBauer merged 1 commit intodevelopfrom
issue863-partly

Conversation

@joernu76
Copy link
Member

See issue #863

@joernu76 joernu76 requested a review from ReimarBauer April 30, 2021 09:48
Copy link
Member

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

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

please add in a comment the deprecation fixed

import imp
import importlib
import importlib.machinery
import os
Copy link
Member

Choose a reason for hiding this comment

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

nice

Fixed
* conftest.py:30: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
* mslib/msui/mscolab_project.py:486: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
* mslib/msui/mscolab_project.py:647: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
* mslib/msui/topview.py:354: DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to be interpreted as an index

See issue #863
@joernu76
Copy link
Member Author

Updated commit message with list of fixed issues. Lots of stuff left, but probably nothing that will fail our code in the near future.

@joernu76
Copy link
Member Author

please add in a comment the deprecation fixed

Done.

Copy link
Member

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

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

Thx

@ReimarBauer ReimarBauer merged commit 201e95e into develop Apr 30, 2021
@ReimarBauer ReimarBauer linked an issue May 1, 2021 that may be closed by this pull request
@joernu76 joernu76 deleted the issue863-partly branch May 3, 2021 12:25
@joernu76 joernu76 restored the issue863-partly branch June 23, 2022 11:15
@joernu76 joernu76 deleted the issue863-partly branch June 23, 2022 11:16
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.

Fix DeprecationWarnings

2 participants