Closed ebhills closed 1 year ago
@cerdamario13 Please remove this from extract.py:
# Check that attribute_type is correct
attributes_type_list = ["angle","area","current","force","length","power","pressure","electric potential","volume","mass"]
if type != None and type.lower() not in attributes_type_list: raise ValueError(f'"{type}" is not a valid attribute_type value.')
The server side code should validate that the inputs are acceptable and send back appropriate errors. The client side code should deal with the status responses that the server sends back.
@thomasstvr Please check this is consistent for the schema and wrangles.io
We probably don't want a full list as some are very obscure, but we should allow all to pass through. I'll check in with you to discuss finding any omitted.
Website and schema have been updated.
When using extract.attributes, some of those listed in our docs don't work and others are missing from wrangles.io.
For example 'charge' and 'luminous flux' are found in this description but can't be accessed directly.
Example: