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
# Assign to the analysis outputsforkey, valueinzip(('cl', 'cdp', 'cdv', 'cp_x', 'cp'), results):
# TODO see issue analysis.output_values[key] =value
Results in:
analysis-fa8f9ad9-8c01-4709-8e46-54ee8aada52d ERROR 2020-10-06 22:52:29,699 runner 1 140199177582336 array([0.25859084]) is not of type 'array'
Failed validating 'type' in schema['properties']['cl']:
{'description': 'Output cl values corresponding to input alpha values',
'items': {'type': 'number'},
'title': 'cl',
'type': 'array'}
On instance['cl']:
array([0.25859084])
It's fixed by manually casting the numpy arrays to lists:
# Assign to the analysis outputsforkey, valueinzip(('cl', 'cdp', 'cdv', 'cp_x', 'cp'), results):
# TODO see issueanalysis.output_values[key] =value.tolist()
Clearly, the output isn't getting correctly passed through the encoder
The text was updated successfully, but these errors were encountered:
In the yuriyfoil demo, the following code:
Results in:
It's fixed by manually casting the numpy arrays to lists:
Clearly, the output isn't getting correctly passed through the encoder
The text was updated successfully, but these errors were encountered: