Skip to content

Commit

Permalink
updated errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalluri committed Feb 9, 2024
1 parent 5b4e4b6 commit d6fe57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spras/analysis/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def summarize_networks(file_paths: Iterable[Union[str, PathLike]]) -> pd.DataFra
if concated_df.empty:
raise ValueError("ML post-processing cannot proceed because the summarize network dataFrame is empty.\nWe suggest setting ml's include: true in the configuration file to false to avoid this error.")
if min(concated_df.shape) <= 1:
raise ValueError (f"ML post-processing cannot proceed as the available number of pathways is insufficient. The process requires more than one sample, but currently, there are only {min(concated_df.shape)} pathways.")
raise ValueError (f"ML post-processing cannot proceed because the available number of pathways is insufficient. The ml post processing requires more than one pathway, but currently, there are only {min(concated_df.shape)} pathways.")

return concated_df

Expand Down

0 comments on commit d6fe57a

Please sign in to comment.