Skip to content

Commit 6e197a5

Browse files
committed
- Roll out reviewer feedback to other files too
- Apply ruff linting Changes to be committed: modified: src/nomad_simulations/schema_packages/atoms_state.py modified: src/nomad_simulations/schema_packages/model_method.py modified: src/nomad_simulations/schema_packages/model_system.py
1 parent 7944d03 commit 6e197a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/nomad_simulations/schema_packages/atoms_state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import TYPE_CHECKING
2-
31
from abc import abstractmethod
42
from functools import cached_property
3+
from typing import TYPE_CHECKING
4+
55
import ase
66
import numpy as np
77
import pint

src/nomad_simulations/schema_packages/model_method.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def resolve_orbital_references(
495495
try:
496496
model_system = model_systems[model_index]
497497
except IndexError:
498-
logger.warning(f'No ModelSystem at index {model_index}.')
498+
logger.warning('No ModelSystem at index %s.', model_index)
499499
return None
500500

501501
# If the system is not representative, bail out of normalization
@@ -534,15 +534,15 @@ def resolve_orbital_references(
534534
for idx in child_sys.particle_indices:
535535
if idx < 0 or idx >= len(model_system.particle_states):
536536
logger.warning(
537-
f'Particle index {idx} out of range for particle_states.'
537+
'Particle index %s out of range for particle_states.', idx
538538
)
539539
continue
540540
active_atom_state = model_system.particle_states[idx]
541541

542542
# If no orbitals_state => skip
543543
if not active_atom_state.electronic_state:
544544
logger.warning(
545-
f'No electronic_state found in particle_states[{idx}].'
545+
'No electronic_state found in particle_states[%s].', idx
546546
)
547547
continue
548548

src/nomad_simulations/schema_packages/model_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def resolve_analyzed_atomic_cell(
533533

534534
mapping = cell_type_map.get(cell_type)
535535
if mapping is None:
536-
logger.error(f'Cell type {cell_type} is not supported.')
536+
logger.error('Cell type %s is not supported.', cell_type)
537537
return None
538538

539539
try:

0 commit comments

Comments
 (0)