Skip to content

Commit

Permalink
black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Levitsky committed Oct 11, 2024
1 parent ee678ad commit 0e132fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sdrf_pipelines/sdrf/sdrf_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def validate_columns_order(panda_sdrf):
assay_index = cnames.index("assay name")
factor_tag = False
for idx, column in enumerate(cnames):
error_message, error_type = '', None
error_message, error_type = "", None
if idx < assay_index:
if "comment" in column:
error_message = "The column " + column + " cannot be before the assay name"
Expand All @@ -295,10 +295,7 @@ def validate_columns_order(panda_sdrf):
else:
error_type = logging.WARNING
else:
if (
"characteristics" in column
or ("material type" in column and "factor value" not in column)
):
if "characteristics" in column or ("material type" in column and "factor value" not in column):
error_message = "The column " + column + " cannot be after the assay name"
error_type = logging.ERROR
if "technology type" in column and idx > assay_index + 1:
Expand Down

0 comments on commit 0e132fc

Please sign in to comment.