@cornerstonejs/adapters 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,9 @@ function _createMultiframeSegmentationFromReferencedImages(images, metadata, opt
23
23
  });
24
24
  });
25
25
  var multiframe = Normalizer.normalizeToDataset(datasets);
26
+ if (!multiframe) {
27
+ throw new Error("Failed to normalize the multiframe dataset, the data is not multi-frame.");
28
+ }
26
29
  return new SegmentationDerivation([multiframe], options);
27
30
  }
28
31
 
@@ -5200,6 +5200,9 @@
5200
5200
  });
5201
5201
  });
5202
5202
  var multiframe = Normalizer.normalizeToDataset(datasets);
5203
+ if (!multiframe) {
5204
+ throw new Error("Failed to normalize the multiframe dataset, the data is not multi-frame.");
5205
+ }
5203
5206
  return new SegmentationDerivation([multiframe], options);
5204
5207
  }
5205
5208