-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I'm getting an error on validation when I've added a NumpyArray to an existing schema.
File "/allen/programs/celltypes/workgroups/em-connectomics/danielk/conda/rm_production_mod/lib/python2.7/site-packages/argschema/argschema_parser.py", line 171, in __init__
args = utils.smart_merge(jsonargs, argsdict)
File "/allen/programs/celltypes/workgroups/em-connectomics/danielk/conda/rm_production_mod/lib/python2.7/site-packages/argschema/utils.py", line 210, in smart_merge
elif a[key] == b[key]:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
my schema has this new entry:
corner_mask_radii = NumpyArray(
dtype = np.int,
required=False,
default=[0, 0, 0, 0],
missing=[0, 0, 0, 0],
description="radius of image mask corners, "
"order (0, 0), (w, 0), (w, h), (0, h)")
Line 210 in 2874549
| elif a[key] == b[key]: |
Metadata
Metadata
Assignees
Labels
No labels