bifrost-zero-common
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
import { isEqual } from "lodash"; | ||
import { DataFrameSelector } from "./DataFrameSelector.js"; | ||
@@ -265,2 +264,5 @@ import chalk from "chalk"; | ||
} | ||
const isEqual = (a, b) => { | ||
return JSON.stringify(a.sort()) == JSON.stringify(b.sort()); | ||
}; | ||
// check if time array is the same as the baseTime array | ||
@@ -371,5 +373,9 @@ if (!isEqual(frame.time, baseTime)) { | ||
const flagsShape = DataFrame.getValueShape(flags[0]); | ||
if (!isEqual(flagsShape, valuesShape)) { | ||
throw new Error(`Invalid 'flags' shape for DataFrame (${JSON.stringify(flagsShape)}): must be ${JSON.stringify(valuesShape)}`); | ||
} | ||
// if (!isEqual(flagsShape, valuesShape)) { | ||
// throw new Error( | ||
// `Invalid 'flags' shape for DataFrame (${JSON.stringify(flagsShape)}): must be ${JSON.stringify( | ||
// valuesShape | ||
// )}` | ||
// ) | ||
// } | ||
} | ||
@@ -376,0 +382,0 @@ else { |
{ | ||
"name": "bifrost-zero-common", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A library of commonly used functions to interact with BIFROST", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bifrost.siemens.com", |
Sorry, the diff of this file is not supported yet
732865
11493