Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AntObi committed Jan 9, 2025
1 parent 73d7b72 commit 70f691d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion src/elementembeddings/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/elementembeddings/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/elementembeddings/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down

0 comments on commit 70f691d

Please sign in to comment.