Skip to content

Commit

Permalink
Update openmmdlsetup.py
Browse files Browse the repository at this point in the history
fixed save_uploaded_files
  • Loading branch information
talagayev authored Aug 14, 2024
1 parent b8ad678 commit b30e08e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions openmmdl/openmmdl_setup/openmmdlsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def configureFiles():
return showConfigureFiles()
else:
session["spLigName"] = request.form.get("spLigName", "")
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)
elif has_files == "no":
simulation_configurator = SetupOptionsConfigurator(session)
simulation_configurator.configureDefaultAmberOptions()
Expand Down Expand Up @@ -196,22 +196,22 @@ def setAmberOptions():
if rcpType == "protRcp":
if "protFile" not in request.files or request.files["protFile"].filename == "":
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)
elif rcpType == "dnaRcp":
if "dnaFile" not in request.files or request.files["dnaFile"].filename == "":
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)
elif rcpType == "rnaRcp":
if "rnaFile" not in request.files or request.files["rnaFile"].filename == "":
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)
elif rcpType == "carboRcp":
if (
"carboFile" not in request.files
or request.files["carboFile"].filename == ""
):
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)

######## Ligand ########
session["nmLig"] = (
Expand All @@ -226,7 +226,7 @@ def setAmberOptions():
or request.files["nmLigFile"].filename == ""
):
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)

## for special ligand
if session["spLig"]:
Expand All @@ -239,7 +239,7 @@ def setAmberOptions():
or request.files["frcmodFile"].filename == ""
):
showAmberOptions()
FileUploader.save_uploaded_files(request)
FileUploader.save_uploaded_files(uploadedFiles, request)

######## Add Water/Membrane ########

Expand Down

0 comments on commit b30e08e

Please sign in to comment.