You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Create getBasicDTypeMap.m
* Update mapType.m
Added docstring
Added arguments block with input validation
Use type map for conversion to MATLAB type for basic dtype
* Update mapType.m
Cleanup/simplify
* Update getBasicDTypeMap.m
Use try/catch for better efficiency
* Use uint->uint8, int->int8 in mapper
* Regenerate core
* Update +file/mapType.m
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Create MapTypeTest.m
* Update types.util.checkDType to perform validation when any dtype is allowed
* Added unit tests for checking dtype=any
* Stricter compound value check plus tests
* Update type generator to add type validation for dtype=any
* Regenerate types
* Fix test assigning invalid data to a VectorData object
cell array of numerics are not supported data for a VectorData, export will fail with error id NWB:MapData:NonCellStr
This test verifying a different error and should not assign invalid data
* Add external link as valid type if any type is allowed
Also suppress function output from validateAnyType
* Fix tests with legacy ragged array assignment to vectordata
* Fix unwrap and rewrap of nested values
* Update checkDtype.m
* Update +types/+util/rewrapValue.m
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update checkDtype.m
Ensure validBasicTypes is a column vector
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
% If dtype and shape keys are not defined for a dataset, set these to
20
-
% 'any' and 'null' respectively. This is done to ensure the class
21
-
% generator will not create validation functions for a dataset using
22
-
% default values and instead, the validation will be handled in the
23
-
% "included" class.
19
+
% If dtype and shape keys are not defined for a dataset, mark these so
20
+
% the class generator will not create validation functions using
21
+
% default values. Validation will instead be handled in the included
22
+
% class when dtype is omitted on the including dataset.
24
23
25
24
if ~isKey(spec, 'dtype')
26
-
spec('dtype') ='any';
25
+
spec('skip_dtype_validation') =true; %#ok<NASGU> spec is a handle object (containers.Map), so this assignment persists even if the variable is not returned.
27
26
end
28
27
if ~isKey(spec, 'shape')
29
28
spec('shape') =nan; %#ok<NASGU> spec is a handle object (containers.Map), so this assignment persists even if the variable is not returned.
0 commit comments