Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for RECC-ODYM issue #74 based on solution proposed by @CarrerF #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions odym/modules/ODYM_Functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,9 +1427,12 @@ def check_dataset(path,PL_Names,PL_Version,PL_SubFolder,Mylog):

"""
for m in range(len(PL_Names)):
if PL_Names[m]+'_'+PL_Version[m]+'.xlsx' not in os.listdir(path):
if PL_SubFolder[m] == 'default': # thus the default dataset folder and not in a data subfolder
if PL_Names[m]+'_'+PL_Version[m]+'.xlsx' not in os.listdir(path):
Mylog.error(PL_Names[m]+'_'+PL_Version[m]+'.xlsx not in the default dataset folder.')
else: # if a subfolder is specified as data location, checking if the file is there
if PL_Names[m]+'_'+PL_Version[m]+'.xlsx' not in os.listdir(os.path.join(path, PL_SubFolder[m])):
Mylog.error(PL_Names[m]+'_'+PL_Version[m]+'.xlsx not in the dataset.')
Mylog.error(PL_Names[m]+'_'+PL_Version[m]+'.xlsx not in the specified dataset subfolder.')


# The End
Expand Down