Skip to content

Commit 4a829db

Browse files
eisenlohrMarDiehl
authored andcommitted
inline deemph
1 parent 0708584 commit 4a829db

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

python/damask/_result.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ def __repr__(self) -> str:
189189
Give short, human-readable summary.
190190
"""
191191
with h5py.File(self.fname,'r') as f:
192-
header = [f'Created by {f.attrs["creator"]}',
193-
f' on {f.attrs["created"]}',
194-
f' executing "{f.attrs["call"]}"']
195-
header = list(map(util.deemph,header))
192+
header = list(map(util.deemph,[
193+
f'Created by {f.attrs["creator"]}',
194+
f' on {f.attrs["created"]}',
195+
f' executing "{f.attrs["call"]}"',
196+
]))
196197
visible_increments = self._visible['increments']
197198

198199
first = self.view(increments=visible_increments[0:1]).list_data()

0 commit comments

Comments
 (0)