Skip to content

Commit

Permalink
keep increasing robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 9, 2024
1 parent f6bd476 commit c81da68
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public class TensorSpecV05 implements TensorSpec {
*/
protected TensorSpecV05(Map<String, Object> tensorSpecMap, boolean input)
{
id = (String) tensorSpecMap.get("name");
if (tensorSpecMap.get("id") == null)
id = (String) tensorSpecMap.get("name");
else
id = (String) tensorSpecMap.get("id");
if (tensorSpecMap.get("axes") == null || !(tensorSpecMap.get("axes") instanceof List))
throw new IllegalArgumentException("Invalid tensor specifications for '" + id
+ "'. The axes are incorrectly specified. For more info, visit the Bioimage.io docs.");
Expand Down

0 comments on commit c81da68

Please sign in to comment.