Skip to content

Commit

Permalink
fixed: Count DF was being validated even without count data for score…
Browse files Browse the repository at this point in the history
… set updates
  • Loading branch information
bencap committed Sep 11, 2024
1 parent 3963cf9 commit 42e5520
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/mavedb/routers/score_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,13 @@ async def update_score_set(
scores_data = pd.DataFrame(
variants_to_csv_rows(item.variants, columns=score_columns, dtype="score_data")
).replace("NA", pd.NA)
count_data = pd.DataFrame(
variants_to_csv_rows(item.variants, columns=count_columns, dtype="count_data")
).replace("NA", pd.NA)

if item.dataset_columns["count_columns"]:
count_data = pd.DataFrame(
variants_to_csv_rows(item.variants, columns=count_columns, dtype="count_data")
).replace("NA", pd.NA)
else:
count_data = None

# Although this is also updated within the variant creation job, update it here
# as well so that we can display the proper UI components (queue invocation delay
Expand Down

0 comments on commit 42e5520

Please sign in to comment.