Closed martenson closed 5 months ago
True - there should be a better explanation if no RT column is found.
We should allow reading data that has no retention time or retention index because we only need it for some operations. We need to check where the software currently actually fails if no retention index or retention time information is present. We need to define which functions should trigger an exception in which situation and implement unit tests for this.
Basically the tool should:
extracting RI from comment
There is a good course on exception handling: https://app.pluralsight.com/library/courses/core-python-robust-resource-error-handling/table-of-contents
As defined in the method here the value returned can be
None
which will throw an uncaught ValueError when passed as_rt_index
here: https://github.com/RECETOX/RIAssigner/blob/main/RIAssigner/data/PandasData.py#L48