Skip to content
Snippets Groups Projects
Commit 572d0491 authored by Reto Tschannen's avatar Reto Tschannen
Browse files

chore:try4 fixing flake8 errors

parent f4e7047a
No related branches found
No related tags found
1 merge request!13feat: add function to calculate mean and variance
Pipeline #13857 failed
...@@ -26,9 +26,8 @@ def mean_variance(filepath: str, output_dir: str = os.getcwd()+'/') -> str: ...@@ -26,9 +26,8 @@ def mean_variance(filepath: str, output_dir: str = os.getcwd()+'/') -> str:
ValueError: If there are no files in directory ValueError: If there are no files in directory
""" """
# Open each file in the input directory, raises error if no file is found
files = [file for file in glob(filepath)] files = [file for file in glob(filepath)]
# Open each file in the input directory, raises error if no file is found
if len(files) == 0: if len(files) == 0:
raise ValueError('No files in directory:', filepath) raise ValueError('No files in directory:', filepath)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment