File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/nomad_simulations/schema_packages Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- from typing import TYPE_CHECKING
2-
31from abc import abstractmethod
42from functools import cached_property
3+ from typing import TYPE_CHECKING
4+
55import ase
66import numpy as np
77import pint
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments