@@ -583,18 +583,18 @@ def list_data(self) -> list[str]:
583583 msg = []
584584 with h5py .File (self .fname ,'r' ) as f :
585585 for inc in self ._visible ['increments' ]:
586- msg += [ f'\n { inc } ({ self ._times [int (inc .split ("_" )[1 ])]} s)' ]
586+ msg . append ( f'\n { inc } ({ self ._times [int (inc .split ("_" )[1 ])]} s)' )
587587 for ty in ['phase' ,'homogenization' ]:
588- msg += [ f' { ty } ' ]
588+ msg . append ( f' { ty } ' )
589589 for label in self ._visible [ty + 's' ]:
590- msg += [ f' { label } ' ]
590+ msg . append ( f' { label } ' )
591591 for field in _match (self ._visible ['fields' ],f ['/' .join ([inc ,ty ,label ])].keys ()):
592- msg += [ f' { field } ' ]
592+ msg . append ( f' { field } ' )
593593 for d in f ['/' .join ([inc ,ty ,label ,field ])].keys ():
594594 dataset = f ['/' .join ([inc ,ty ,label ,field ,d ])]
595595 unit = dataset .attrs ["unit" ]
596596 description = dataset .attrs ['description' ]
597- msg += [ f' { d } / { unit } : { description } ' ]
597+ msg . append ( f' { d } / { unit } : { description } ' )
598598
599599 return msg
600600
@@ -1991,7 +1991,7 @@ def export_VTK(self,
19911991 with h5py .File (self .fname ,'r' ) as f :
19921992 creator = f .attrs ['creator' ]
19931993 created = f .attrs ['created' ]
1994- v .comments += [ f'{ creator } ({ created } )' ]
1994+ v .comments . append ( f'{ creator } ({ created } )' )
19951995
19961996 for inc in util .show_progress (self ._visible ['increments' ]):
19971997
0 commit comments