Skip to content

Commit

Permalink
Merge pull request #530 from ptth222/study-assays-messaging
Browse files Browse the repository at this point in the history
Changed messaging on study assays errors
  • Loading branch information
terazus authored Mar 12, 2024
2 parents 7a6ee24 + 9040989 commit 7d5f19f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion isatools/isatab/validate/rules/rules_30xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def check_filenames_present(i_df_dict: dict) -> None:
if filename == '':
spl = "STUDY.{}, STUDY ASSAY.{}".format(s_pos, a_pos)
validator.add_warning.append(message="Missing assay file name", supplemental=spl, code=3005)
log.warning("(W) An assay filename is missing for STUDY ASSAY.{}".format(a_pos))
log.warning("(W) An assay filename is missing for STUDY.{}, STUDY ASSAY.{}".format(s_pos, a_pos))


def check_date_formats(i_df_dict):
Expand Down
6 changes: 3 additions & 3 deletions isatools/isatab/validate/rules/rules_40xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def check_measurement_technology_types(i_df_dict, configs):
lowered_mt = measurement_types[x].lower()
lowered_tt = technology_types[x].lower()
if (lowered_mt, lowered_tt) not in configs.keys():
spl = "Measurement {}/technology {}, STUDY ASSAY.{}"
spl = spl.format(measurement_types[x], technology_types[x], i)
spl = "Measurement {}/technology {}, STUDY.{}, STUDY ASSAY.{}"
spl = spl.format(measurement_types[x], technology_types[x], i, x)
error = ("(E) Could not load configuration for measurement type '{}' and technology type '{}' "
"for STUDY ASSAY.{}'").format(measurement_types[x], technology_types[x], i)
"for STUDY.{}, STUDY ASSAY.{}'").format(measurement_types[x], technology_types[x], i, x)
validator.add_error(message="Measurement/technology type invalid", supplemental=spl, code=4002)
log.error(error)

Expand Down

0 comments on commit 7d5f19f

Please sign in to comment.