From 70f691da25d9700c9fe43892350a84fb047e1124 Mon Sep 17 00:00:00 2001 From: Anthony Onwuli Date: Thu, 9 Jan 2025 15:27:29 +0000 Subject: [PATCH] Run pre-commit --- .github/workflows/ci.yml | 2 +- src/elementembeddings/_base.py | 2 +- src/elementembeddings/core.py | 2 +- src/elementembeddings/plotter.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52b0995..c664840 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12","3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13"] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{matrix.os}} diff --git a/src/elementembeddings/_base.py b/src/elementembeddings/_base.py index b65c3da..6b74712 100644 --- a/src/elementembeddings/_base.py +++ b/src/elementembeddings/_base.py @@ -167,7 +167,7 @@ def standardise(self, inplace: bool = False): embeddings_copy = self.embeddings.copy() embeddings_array = np.array(list(embeddings_copy.values())) embeddings_array = StandardScaler().fit_transform(embeddings_array) - for el, emb in zip(embeddings_copy.keys(), embeddings_array): + for el, emb in zip(embeddings_copy.keys(), embeddings_array, strict=False): embeddings_copy[el] = emb if inplace: self.embeddings = embeddings_copy diff --git a/src/elementembeddings/core.py b/src/elementembeddings/core.py index fea6a51..c665cb5 100644 --- a/src/elementembeddings/core.py +++ b/src/elementembeddings/core.py @@ -255,7 +255,7 @@ def standardise(self, inplace: bool = False): embeddings_copy = self.embeddings.copy() embeddings_array = np.array(list(embeddings_copy.values())) embeddings_array = StandardScaler().fit_transform(embeddings_array) - for el, emb in zip(embeddings_copy.keys(), embeddings_array): + for el, emb in zip(embeddings_copy.keys(), embeddings_array, strict=False): embeddings_copy[el] = emb if inplace: diff --git a/src/elementembeddings/plotter.py b/src/elementembeddings/plotter.py index dc74adf..a242325 100644 --- a/src/elementembeddings/plotter.py +++ b/src/elementembeddings/plotter.py @@ -176,7 +176,7 @@ def dimension_plotter( species_labels = [ rf"$\mathregular{{{element}^{{{abs(charge)}{sign}}}}}$" - for (element, charge), sign in zip(parsed_species, signs) + for (element, charge), sign in zip(parsed_species, signs, strict=False) ] texts = [ax.text(df["x"][i], df["y"][i], species_labels[i], fontsize=12) for i in range(len(df))]