Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2025
1 parent a9e7df5 commit 329bc35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/aiida/orm/nodes/data/array/xy.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_y(self) -> list[tuple[str, 'ndarray', str]]:
y_units = self.base.attributes.get('y_units')
except (KeyError, AttributeError):
raise NotExistent('No y units has been set yet!')

y_arrays = [self.get_array(f'y_array_{i}') for i in range(len(y_names))]
return list(zip(y_names, y_arrays, y_units))

Expand All @@ -191,4 +191,4 @@ def get_y_arraynames(self) -> list[str]:
if y_names is None:
raise KeyError
except (KeyError, AttributeError):
raise NotExistent(f'No y names been set yet!')
raise NotExistent('No y names been set yet!')
1 change: 0 additions & 1 deletion src/aiida/transports/plugins/ssh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
Expand Down

0 comments on commit 329bc35

Please sign in to comment.