@@ -277,7 +277,7 @@ def to_hdf5(self, group):
277277
278278 """
279279
280- group .attrs ['type' ] = np .string_ ('maxwell' )
280+ group .attrs ['type' ] = np .bytes_ ('maxwell' )
281281 group .attrs ['u' ] = self .u
282282 self .theta .to_hdf5 (group , 'theta' )
283283
@@ -410,7 +410,7 @@ def to_hdf5(self, group):
410410
411411 """
412412
413- group .attrs ['type' ] = np .string_ ('evaporation' )
413+ group .attrs ['type' ] = np .bytes_ ('evaporation' )
414414 group .attrs ['u' ] = self .u
415415 self .theta .to_hdf5 (group , 'theta' )
416416
@@ -556,7 +556,7 @@ def to_hdf5(self, group):
556556
557557 """
558558
559- group .attrs ['type' ] = np .string_ ('watt' )
559+ group .attrs ['type' ] = np .bytes_ ('watt' )
560560 group .attrs ['u' ] = self .u
561561 self .a .to_hdf5 (group , 'a' )
562562 self .b .to_hdf5 (group , 'b' )
@@ -728,7 +728,7 @@ def to_hdf5(self, group):
728728
729729 """
730730
731- group .attrs ['type' ] = np .string_ ('madland-nix' )
731+ group .attrs ['type' ] = np .bytes_ ('madland-nix' )
732732 group .attrs ['efl' ] = self .efl
733733 group .attrs ['efh' ] = self .efh
734734 self .tm .to_hdf5 (group )
@@ -846,7 +846,7 @@ def to_hdf5(self, group):
846846
847847 """
848848
849- group .attrs ['type' ] = np .string_ ('discrete_photon' )
849+ group .attrs ['type' ] = np .bytes_ ('discrete_photon' )
850850 group .attrs ['primary_flag' ] = self .primary_flag
851851 group .attrs ['energy' ] = self .energy
852852 group .attrs ['atomic_weight_ratio' ] = self .atomic_weight_ratio
@@ -945,7 +945,7 @@ def to_hdf5(self, group):
945945
946946 """
947947
948- group .attrs ['type' ] = np .string_ ('level' )
948+ group .attrs ['type' ] = np .bytes_ ('level' )
949949 group .attrs ['threshold' ] = self .threshold
950950 group .attrs ['mass_ratio' ] = self .mass_ratio
951951
@@ -1074,7 +1074,7 @@ def to_hdf5(self, group):
10741074
10751075 """
10761076
1077- group .attrs ['type' ] = np .string_ ('continuous' )
1077+ group .attrs ['type' ] = np .bytes_ ('continuous' )
10781078
10791079 dset = group .create_dataset ('energy' , data = self .energy )
10801080 dset .attrs ['interpolation' ] = np .vstack ((self .breakpoints ,
0 commit comments