Closed Didou09 closed 1 week ago
Hello @Didou09! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
tofu/imas2tofu/_core.py
:Line 376:80: E501 line too long (83 > 79 characters) Line 1500:71: E231 missing whitespace after ',' Line 1500:80: E501 line too long (83 > 79 characters)
tofu/imas2tofu/_mat2ids2calc.py
:Line 208:16: W292 no newline at end of file
Main changes:
New strategy for int/ float type checks
And always run
isinstance()
Because the behaviour of
np.int
,np.int_
ornp.integer
is too dependent on the version of numpy and on the plateform Also shows different results depending is usingtype()
ordtype
orisinstance()
isintance()
allows multiple types and subclassesIssues:
Fixes, in devel, issue #983