Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions mph/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,14 +856,8 @@ def get(
value = java.getDoubleMatrix(name)
if len(value) == 0:
rows = []
elif len(value) == 1:
rows = [array(value[0])]
elif len(value) == 2:
rows = [array(value[0]), array(value[1])]
else:
error = 'Cannot convert double-row matrix with more than two rows.'
log.error(error)
raise TypeError(error)
rows = [array(row) for row in value]
return array(rows, dtype=object)
elif datatype == 'File':
return Path(str(java.getString(name)))
Expand Down
Loading