From 23e8e6b5f746e9877e3eb2744c5d5107040a947c Mon Sep 17 00:00:00 2001 From: Nele Quast Date: Thu, 30 May 2024 20:27:09 +0100 Subject: [PATCH] added empty model files for clean uninstall --- ImmuneBuilder/trained_model/antibody_model_1 | 0 ImmuneBuilder/trained_model/antibody_model_2 | 0 ImmuneBuilder/trained_model/antibody_model_3 | 0 ImmuneBuilder/trained_model/antibody_model_4 | 0 ImmuneBuilder/trained_model/nanobody_model_1 | 0 ImmuneBuilder/trained_model/nanobody_model_2 | 0 ImmuneBuilder/trained_model/nanobody_model_3 | 0 ImmuneBuilder/trained_model/nanobody_model_4 | 0 ImmuneBuilder/trained_model/tcr2_model_1 | 0 ImmuneBuilder/trained_model/tcr2_model_2 | 0 ImmuneBuilder/trained_model/tcr2_model_3 | 0 ImmuneBuilder/trained_model/tcr2_model_4 | 0 ImmuneBuilder/trained_model/tcr_model_1 | 0 ImmuneBuilder/trained_model/tcr_model_2 | 0 ImmuneBuilder/trained_model/tcr_model_3 | 0 ImmuneBuilder/trained_model/tcr_model_4 | 0 ImmuneBuilder/util.py | 2 +- 17 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 ImmuneBuilder/trained_model/antibody_model_1 create mode 100644 ImmuneBuilder/trained_model/antibody_model_2 create mode 100644 ImmuneBuilder/trained_model/antibody_model_3 create mode 100644 ImmuneBuilder/trained_model/antibody_model_4 create mode 100644 ImmuneBuilder/trained_model/nanobody_model_1 create mode 100644 ImmuneBuilder/trained_model/nanobody_model_2 create mode 100644 ImmuneBuilder/trained_model/nanobody_model_3 create mode 100644 ImmuneBuilder/trained_model/nanobody_model_4 create mode 100644 ImmuneBuilder/trained_model/tcr2_model_1 create mode 100644 ImmuneBuilder/trained_model/tcr2_model_2 create mode 100644 ImmuneBuilder/trained_model/tcr2_model_3 create mode 100644 ImmuneBuilder/trained_model/tcr2_model_4 create mode 100644 ImmuneBuilder/trained_model/tcr_model_1 create mode 100644 ImmuneBuilder/trained_model/tcr_model_2 create mode 100644 ImmuneBuilder/trained_model/tcr_model_3 create mode 100644 ImmuneBuilder/trained_model/tcr_model_4 diff --git a/ImmuneBuilder/trained_model/antibody_model_1 b/ImmuneBuilder/trained_model/antibody_model_1 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/antibody_model_2 b/ImmuneBuilder/trained_model/antibody_model_2 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/antibody_model_3 b/ImmuneBuilder/trained_model/antibody_model_3 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/antibody_model_4 b/ImmuneBuilder/trained_model/antibody_model_4 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/nanobody_model_1 b/ImmuneBuilder/trained_model/nanobody_model_1 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/nanobody_model_2 b/ImmuneBuilder/trained_model/nanobody_model_2 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/nanobody_model_3 b/ImmuneBuilder/trained_model/nanobody_model_3 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/nanobody_model_4 b/ImmuneBuilder/trained_model/nanobody_model_4 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr2_model_1 b/ImmuneBuilder/trained_model/tcr2_model_1 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr2_model_2 b/ImmuneBuilder/trained_model/tcr2_model_2 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr2_model_3 b/ImmuneBuilder/trained_model/tcr2_model_3 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr2_model_4 b/ImmuneBuilder/trained_model/tcr2_model_4 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr_model_1 b/ImmuneBuilder/trained_model/tcr_model_1 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr_model_2 b/ImmuneBuilder/trained_model/tcr_model_2 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr_model_3 b/ImmuneBuilder/trained_model/tcr_model_3 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/trained_model/tcr_model_4 b/ImmuneBuilder/trained_model/tcr_model_4 new file mode 100644 index 0000000..e69de29 diff --git a/ImmuneBuilder/util.py b/ImmuneBuilder/util.py index d9d1033..410d744 100644 --- a/ImmuneBuilder/util.py +++ b/ImmuneBuilder/util.py @@ -129,7 +129,7 @@ def add_errors_as_bfactors(filename, errors, header=[]): def are_weights_ready(weights_path): - if not os.path.exists(weights_path): + if not os.path.exists(weights_path) or os.path.getsize(weights_path) == 0: return False with open(weights_path, "rb") as f: filestart = str(f.readline())