Stemming from a PR review #249 the check that a UserError and ValueError are raised introduced to pgfinder/pgio.py (line 174)...
# Check that all structures are followed by "|n" where n is one or more digits
if not theo_masses_df["Inferred structure"].str.contains(r"\|\d+$").all():
raise UserError(
Isn't tested according to CodeCov.
Should be relatively straight-forward to construct a test for this (and other checks if they're not already covered) by having a simple CSV without the |[1|2] construct and using the...
Stemming from a PR review #249 the check that a
UserError
andValueError
are raised introduced topgfinder/pgio.py
(line 174)...Isn't tested according to CodeCov.
Should be relatively straight-forward to construct a test for this (and other checks if they're not already covered) by having a simple CSV without the
|[1|2]
construct and using the...(or similar, bit of a rough hack/guess at the code).
_Originally posted by @ns-rse in https://github.com/Mesnage-Org/pgfinder/pull/249#discussion_r1360562172_