Skip to content

Commit

Permalink
Resolve test failures due to NumPy 1.25 (#1152)
Browse files Browse the repository at this point in the history
* Try adding isinstance check

* Fix import name
  • Loading branch information
lbianchi-lbl authored Jun 27, 2023
1 parent d70d4f5 commit ceb1e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foqus_lib/framework/uq/SampleData.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def getInputData(self):
return self.inputData

def setOutputData(self, data):
if data == []:
if not isinstance(data, numpy.ndarray) and data == []:
self.outputData = []
return
temp = numpy.array(data, dtype=float, ndmin=2)
Expand Down

0 comments on commit ceb1e46

Please sign in to comment.