diff --git a/Dockerfile b/Dockerfile
index 7c0a3256..07deef82 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,8 @@
FROM python:3.10-slim-bookworm AS build
-RUN mkdir -p /binaries/
+RUN mkdir -p /calcus/binaries/
COPY scripts /calcus/scripts
-COPY bin /binaries/xtb
+COPY bin /calcus/binaries/xtb
RUN python /calcus/scripts/extract_xtb.py
RUN apt update && apt install build-essential gcc libxm4 libgl1 libmagic1 -y
@@ -16,7 +16,7 @@ RUN pip install -r /calcus/requirements.txt
FROM python:3.10-slim-bookworm AS calcus_user
-COPY --from=0 /binaries/ /binaries/
+COPY --from=0 /calcus/binaries/ /calcus/binaries/
ARG CALCUS_VERSION_HASH
ENV CALCUS_VERSION_HASH=${CALCUS_VERSION_HASH}
@@ -26,14 +26,14 @@ ENV CALCUS_KEY_HOME "/calcus/keys"
ENV CALCUS_TEST_SCR_HOME "/calcus/scratch/scr"
ENV CALCUS_TEST_KEY_HOME "/calcus/scratch/keys"
-ENV EBROOTORCA "/binaries/orca"
-ENV GAUSS_EXEDIR "/binaries/g16"
-ENV XTB4STDAHOME "/binaries/xtb"
-ENV XTBPATH "/binaries/xtb/xtb:$XTB4STDAHOME"
-ENV STDAHOME "/binaries/xtb"
+ENV EBROOTORCA "/calcus/binaries/orca"
+ENV GAUSS_EXEDIR "/calcus/binaries/g16"
+ENV XTB4STDAHOME "/calcus/binaries/xtb"
+ENV XTBPATH "/calcus/binaries/xtb/xtb:$XTB4STDAHOME"
+ENV STDAHOME "/calcus/binaries/xtb"
ENV PATH=$PATH:$XTB4STDAHOME/xtb/bin:$XTB4STDAHOME:$EBROOTORCA:$GAUSS_EXEDIR
-ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/binaries/orca:/usr/lib/openmpi/
+ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/calcus/binaries/orca:/usr/lib/openmpi/
ENV PYTHONUNBUFFERED 1
diff --git a/cloud-compose.yml b/cloud-compose.yml
index aea2170a..1a370752 100644
--- a/cloud-compose.yml
+++ b/cloud-compose.yml
@@ -1,5 +1,3 @@
-version: "3.4"
-
services:
redis:
image: redis:latest
diff --git a/dev-compose.yml b/dev-compose.yml
index 97161909..ed93b4f9 100644
--- a/dev-compose.yml
+++ b/dev-compose.yml
@@ -1,5 +1,3 @@
-version: "3.4"
-
services:
redis:
image: redis:latest
diff --git a/docker-compose.yml b/docker-compose.yml
index 49a417e6..3bcd4b0c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,5 +1,3 @@
-version: "3.4"
-
services:
redis:
image: redis:latest
diff --git a/docker/slurm/Dockerfile b/docker/slurm/Dockerfile
index a109e2af..4a9c899e 100644
--- a/docker/slurm/Dockerfile
+++ b/docker/slurm/Dockerfile
@@ -11,11 +11,11 @@ RUN yes "clustertest" | passwd slurm
ENV EBROOTORCA "/home/slurm/orca"
ENV GAUSS_EXEDIR "/home/slurm/g16"
-ENV XTB4STDAHOME "/binaries/xtb/"
+ENV XTB4STDAHOME "/calcus/binaries/xtb/"
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/home/slurm/orca"
ENV PATH=$PATH:"/home/slurm/xtb:/home/slurm/g16:/home/slurm/orca:/home/slurm/other:/home/slurm/openmpi"
-ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/binaries/orca:/usr/lib/openmpi/
+ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/calcus/binaries/orca:/usr/lib/openmpi/
ADD slurm.conf /etc/slurm-llnl/
ADD cgroup.conf /etc/slurm-llnl/
diff --git a/frontend/calculation_unittest.py b/frontend/calculation_unittest.py
index 1bc21aea..b05f2da3 100644
--- a/frontend/calculation_unittest.py
+++ b/frontend/calculation_unittest.py
@@ -7,8 +7,8 @@
from django.core.management import call_command
from frontend import tasks
-from .libxyz import *
-from .models import *
+from .libxyz import get_angle, parse_xyz_from_text
+from .models import np
from .gen_calc import gen_calc
from .tasks import run_calc
from .calcusliveserver import SCR_DIR
diff --git a/frontend/calcusliveserver.py b/frontend/calcusliveserver.py
index 53326ab4..ce433c6a 100644
--- a/frontend/calcusliveserver.py
+++ b/frontend/calcusliveserver.py
@@ -39,10 +39,18 @@
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from django.core.management import call_command
-from django.contrib.auth.models import User
-from .models import *
-from .environment_variables import *
+from .models import (
+ Calculation,
+ CalculationOrder,
+ Ensemble,
+ Molecule,
+ Project,
+ ResearchGroup,
+ settings,
+ User,
+)
+from .environment_variables import CALCUS_KEY_HOME, CALCUS_SCR_HOME
tests_dir = os.path.join("/".join(__file__.split("/")[:-1]), "tests/")
dir_path = os.path.dirname(os.path.realpath(__file__))
@@ -1773,7 +1781,7 @@ def get_name_presets(self):
def select_preset(self, name):
self.wait_for_ajax()
- element = WebDriverWait(self.driver, 2).until(
+ WebDriverWait(self.driver, 2).until(
EC.presence_of_element_located(
(By.XPATH, f"//*[@id='presets']/option[text()='{name}']")
)
@@ -2173,7 +2181,7 @@ def subscribe(self, plan, email, card_number, length="month"):
if length == "year":
switch = WebDriverWait(self.driver, 5).until(
EC.presence_of_element_located(
- (By.CSS_SELECTOR, f"[for=sub_length_switch]")
+ (By.CSS_SELECTOR, "[for=sub_length_switch]")
)
)
switch.click()
diff --git a/frontend/cloud_job.py b/frontend/cloud_job.py
index 9caa1c1f..2c3392c7 100644
--- a/frontend/cloud_job.py
+++ b/frontend/cloud_job.py
@@ -4,7 +4,7 @@
from django.conf import settings
-from .environment_variables import *
+from .environment_variables import IS_TEST
from .helpers import job_triage
if settings.IS_CLOUD:
diff --git a/frontend/cluster_daemon.py b/frontend/cluster_daemon.py
index be4090ea..67ecf694 100644
--- a/frontend/cluster_daemon.py
+++ b/frontend/cluster_daemon.py
@@ -79,8 +79,8 @@ class ConnectionCodes:
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "calcus.settings")
django.setup()
-from frontend.models import *
-from frontend.environment_variables import *
+from frontend.models import Calculation, ClusterAccess, ErrorCodes
+from frontend.environment_variables import CALCUS_KEY_HOME, CALCUS_SCR_HOME
from frontend import tasks
diff --git a/frontend/context.py b/frontend/context.py
index d070f7b7..a4a6cafb 100644
--- a/frontend/context.py
+++ b/frontend/context.py
@@ -29,6 +29,6 @@ def default(request):
try:
d["SUBSCRIPTION_DATA"] = constants.SUBSCRIPTION_DATA[version]
except (NameError, AttributeError):
- logger.error(f"Could not get subscription data")
+ logger.error("Could not get subscription data")
return d
diff --git a/frontend/decorators.py b/frontend/decorators.py
index bc8ec52d..78c07b27 100644
--- a/frontend/decorators.py
+++ b/frontend/decorators.py
@@ -17,7 +17,7 @@
along with this program. If not, see