Skip to content

Commit

Permalink
if report sedmlName is null write sedmlId as name attribute in hdf5
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Oct 29, 2024
1 parent 960c84d commit cfbec7f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ else if (data.dataSource instanceof Hdf5SedmlResultsSpatial)
JhdfUtils.putAttribute(dataset, "sedmlRepeatedTaskParameterNames", Arrays.asList(data.dataSource.scanParameterNames));
}
JhdfUtils.putAttribute(dataset, "sedmlId", data.datasetMetadata.sedmlId);
JhdfUtils.putAttribute(dataset, "sedmlName", data.datasetMetadata.sedmlName);
if (data.datasetMetadata.sedmlName != null) {
JhdfUtils.putAttribute(dataset, "sedmlName", data.datasetMetadata.sedmlName);
}else{
JhdfUtils.putAttribute(dataset, "sedmlName", data.datasetMetadata.sedmlId);
}
JhdfUtils.putAttribute(dataset, "uri", groupPath + "/" + data.datasetMetadata.sedmlId);
}
}
Expand Down

0 comments on commit cfbec7f

Please sign in to comment.