Skip to content
Snippets Groups Projects
Commit fe64b7a1 authored by Wachter, Christoph's avatar Wachter, Christoph
Browse files

(CW) replaced deprecated np.NAN with np.nan

parent 456dffff
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ class ConfigurationSet:
True if this property is set for each configuration and none of the values is None or np.Nan
"""
for value in self.sample_project.getProperty(self, property_key):
if value is None or value is np.NAN:
if value is None or value is np.nan:
return False
return True
......@@ -388,7 +388,7 @@ class ConfigurationSet:
# for h,p in zip(other_configuration_set, other_configuration_set.properties()):
# attention: zip_longest is necessary bc. properties can be empty
for h, p in zip_longest(other_configuration_set, other_configuration_set.properties(),
fillvalue=np.NAN):
fillvalue=np.nan):
new_set.add(h, p)
return new_set
......@@ -403,7 +403,7 @@ class ConfigurationSet:
hash_set_other = set(other_configuration_set.hashes())
for h, p in zip_longest(self,
self.properties(),
fillvalue=np.NAN):
fillvalue=np.nan):
if h not in hash_set_other:
new_set.add(h, p)
return new_set
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment