-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description
The test recipe cellpack/tests/recipes/v2/test_combined_gradient.json does not run due to incorrect validation. There is a conflict between the validation in interface_objects/gradient_data.py and the recipe level validation.
Expected Behavior
Gradient mode "X" (upper case) should be accepted. Recipe level validation should include the validation from gradient_data and gradient_data should be deprecated in favor of the RecipeGradient object.
Reproduction
pack -r cellpack/tests/recipes/v2/test_combined_gradient.jsonfails with the error
ValueError: Recipe validation failed:
Validation errors found:
Field: gradients -> dict[str,function-after[validate_mode_requirements(), RecipeGradient]] -> X_gradient -> mode
Error: Input should be 'x', 'y', 'z', 'vector', 'radial' or 'surface'
Field: gradients -> dict[str,function-after[validate_mode_requirements(), RecipeGradient]] -> Y_gradient -> mode
Error: Input should be 'x', 'y', 'z', 'vector', 'radial' or 'surface'
Field: gradients -> list[dict[str,any]]
Error: Input should be a valid listReactions are currently unavailable