From 874ed3b4b394a4de8d8395e99cc7d07ea9ccfa4c Mon Sep 17 00:00:00 2001 From: OsHCuellar Date: Mon, 11 Sep 2023 11:08:35 +0200 Subject: [PATCH] Ad link to repository, fix typo --- Dockerfile | 3 +-- compute/pages.py | 6 ++---- user_templates/how_to_cite.html | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd9f387..0f9ea8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ FROM materialscloud/tools-barebone:1.3.0 -LABEL maintainer="Osvaldo Hernandez-Cuellar , Liam O. Marsh , and Ruben Laplaza " +LABEL maintainer="Osvaldo Hernandez-Cuellar , Liam O. Marsh , and Ruben Laplaza " # Python requirements COPY ./requirements.txt /home/app/code/requirements.txt # Run this as sudo to replace the version of pip - RUN pip3 install -U 'pip>=10' setuptools wheel # install packages as normal user (app, provided by passenger) diff --git a/compute/pages.py b/compute/pages.py index 30db5c4..5d719e6 100644 --- a/compute/pages.py +++ b/compute/pages.py @@ -239,7 +239,7 @@ def process_structure_view(): jmol_list_species =species_list(cell) else: - raise ValueError("plz") + raise ValueError("Please wait until cell2info finishes.") #output.extend([f"Please, wait until cell2info has finished for this input. Could not find {token.info_path}."]) #token.remove() @@ -248,10 +248,8 @@ def process_structure_view(): output_lines=output, infodata=infodata.strip(), celldata=celldata, - #xsfdata=xsf, ucellparams=ucellparams, compound_data=compound_data, - #xyzdata=xyzdata, xyzdata=xyzdata, labels=labels, pos=pos, @@ -261,7 +259,7 @@ def process_structure_view(): jmol_list_species = jmol_list_species, jmolCon = jmolCon, totmol = len(cell.moleclist), - enumerate=enumerate, len=len, zip=zip, # why TF is this needed????? + enumerate=enumerate, len=len, zip=zip, # needed #token_path=tkn_path.replace('/','_'), #blueprint.url_for('process_structure','analysis', token=tkn_path.replace('/','_')), struct_name=token.refcode, )) diff --git a/user_templates/how_to_cite.html b/user_templates/how_to_cite.html index 5aeafb0..1ad5228 100644 --- a/user_templates/how_to_cite.html +++ b/user_templates/how_to_cite.html @@ -9,7 +9,7 @@ Note: if you want to use the code on your computer, you can download the cell2mol python library from the cell2mol GitHub repository -. You can also find pre-build Docker images for this web app on +. You can also find pre-built Docker images for this web app on GitHub .