Closed mhidas closed 9 years ago
Problem is that type could either be float32 or float64. Will see if I can combine both tests.
@ggalibert Note that check_attribute_type
allows expected_type
to be given as a list.
@mhidas I created a PR https://github.com/aodn/compliance-checker/pull/72 to fix this issue.
Fixed via #72
E.g. for this file we get:
but this is not true:
Looks like the code expects the type of these attributes to be
np.number
, which is incorrect (usually they will benp.float32
ornp.float64
, which are subclasses ofnp.number
)