From 2e4b61217950736c05dcdfbb72024a049d525e2a Mon Sep 17 00:00:00 2001 From: Domagoj Fijan Date: Sun, 21 Apr 2024 22:08:45 -0400 Subject: [PATCH] fix tests --- ConservedWaterSearch/water_clustering.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ConservedWaterSearch/water_clustering.py b/ConservedWaterSearch/water_clustering.py index 039ae09..0b3fc49 100644 --- a/ConservedWaterSearch/water_clustering.py +++ b/ConservedWaterSearch/water_clustering.py @@ -513,10 +513,10 @@ def read_and_set_water_clust_options(self, file_name: str) -> None: lines: list[str] = f.read().splitlines() self.nsnaps = int(lines[0].strip()) self.clustering_algorithm = lines[1].strip(" ") - self.water_types_to_find = [i for i in lines[2].split(" ")] + self.water_types_to_find = tuple([i for i in lines[2].split(" ")]) self.restart_after_find = lines[3] == "True" self.min_samples = [int(i) for i in lines[4].split(" ")] - self.xis = [float(i) for i in lines[5].split(" ")] + self.xis = tuple([float(i) for i in lines[5].split(" ")]) self.numbpct_oxygen = float(lines[6]) self.normalize_orientations = lines[7] == "True" self.numbpct_hyd_orient_analysis = float(lines[8]) @@ -529,9 +529,9 @@ def read_and_set_water_clust_options(self, file_name: str) -> None: self.halfcon_angstd_cutoff = float(lines[15]) self.weakly_angstd_cutoff = float(lines[16]) self.weakly_explained = float(lines[17]) - self.xiFCW = [float(i) for i in lines[18].split(" ")] - self.xiHCW = [float(i) for i in lines[19].split(" ")] - self.xiWCW = [float(i) for i in lines[20].split(" ")] + self.xiFCW = tuple([float(i) for i in lines[18].split(" ")]) + self.xiHCW = tuple([float(i) for i in lines[19].split(" ")]) + self.xiWCW = tuple([float(i) for i in lines[20].split(" ")]) self.njobs = int(lines[21]) self.verbose = int(lines[22]) self.debugO = int(lines[23])