FaradayInstitution / BPX

BPX schema in pydantic and JSON schema format, and parsers
MIT License
25 stars 12 forks source link

Support arbitrary JSON hierarchy under User-defined #46

Open rtimms opened 11 months ago

rtimms commented 11 months ago

Currently, the "User-defined" section requires that all fields are floats, strings or dicts of the form {"x": x_data, "y": y_data}, which then get converted into FloatFunctionTable objects. We should allow users add their own JSON structure within this field, so long as the final fields are of type FloatFunctionTable. This requires more carefully defining what is and is not an InterpolatedTable.