There is currently a test in orsopy.fileio.tests.test_schema that is expected to fail if the units for the first column are set to to the string: "test_fail_unit"
This is a problem, since in principle the Column schema needs to be applied to not just the first two columns ["Qz", "R"], but to any additional columns as well (after the first 4 columns, such as wavelength, incident_angle, etc.) which will not have the units specified manually in the current schema: {"enum": ["1/angstrom", "1/nm", "1", "1/s", None]}
We can address this in a couple ways:
- create a separate schema for additional columns, in which
unit is any string
- change the Column schema so that
unit is any string (which is the schema already defined in the Python code - the JSON schema is being manually modified to make it more restrictive in this spot)
There is currently a test in
orsopy.fileio.tests.test_schemathat is expected to fail if the units for the first column are set to to the string:"test_fail_unit"This is a problem, since in principle the Column schema needs to be applied to not just the first two columns
["Qz", "R"], but to any additional columns as well (after the first 4 columns, such aswavelength,incident_angle, etc.) which will not have the units specified manually in the current schema:{"enum": ["1/angstrom", "1/nm", "1", "1/s", None]}We can address this in a couple ways:
unitis any stringunitis any string (which is the schema already defined in the Python code - the JSON schema is being manually modified to make it more restrictive in this spot)