Skip to content

Commit

Permalink
fixed mcmicro convention issues and seg mask dropdown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegert committed Jan 26, 2023
1 parent 5c79ee1 commit 701e254
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions minerva_analysis/server/routes/import_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def upload_file_page():
labelFile = PurePath(directory, 'segmentation', labelFolder)

# get csv file from user specified path
csvName = 'unmicst-' + mcmicroDirName + '_' + labelName + '.csv' # could use labelName to have dynamic csv but usually only cell available.
csvName = mcmicroDirName + '--unmicst_' + labelName + '.csv' # could use labelName to have dynamic csv but usually only cell available.
csvPath = str(PurePath(directory, 'quantification', csvName))

# get channel file from user specified path
Expand Down Expand Up @@ -505,6 +505,7 @@ def save_config():
def list_tif_files_in_dir():
# return all seg files found in the seg subfolder (mc micro specific)
files = []
files.append('')

#path and type information from upload
post_data = json.loads(request.data)
Expand Down Expand Up @@ -538,7 +539,8 @@ def check_mc_csv_file_existence():
mcmicroDirName = pathsSplit[len(pathsSplit) - 1]

# check if csv file exists
csvName = 'unmicst-' + mcmicroDirName + '_' + mask + '.csv'
# csvName = 'nmicst-' + mcmicroDirName + '_' + mask + '.csv'
csvName = mcmicroDirName + '--unmicst_' + mask + '.csv'
csvPath = Path(directory, 'quantification', csvName)

if csvPath.is_file():
Expand Down

0 comments on commit 701e254

Please sign in to comment.