@@ -154,7 +154,12 @@ class CellTallies:
154154 h5m_filename
155155 """
156156
157- def __init__ (self , tally_types , targets = [None ], materials = None , h5m_filename = None ):
157+ def __init__ (
158+ self ,
159+ tally_types ,
160+ targets = [None ],
161+ materials = None ,
162+ h5m_filename = None ):
158163 self .tallies = []
159164 self .tally_types = tally_types
160165 self .targets = targets
@@ -171,8 +176,10 @@ def __init__(self, tally_types, targets=[None], materials=None, h5m_filename=Non
171176 for score in self .tally_types :
172177 for target in all_targets :
173178 self .tallies .append (
174- CellTally (tally_type = score , target = target , materials = materials )
175- )
179+ CellTally (
180+ tally_type = score ,
181+ target = target ,
182+ materials = materials ))
176183
177184
178185class TetMeshTally (Tally ):
@@ -224,13 +231,22 @@ def __init__(self, tally_types, filenames):
224231 self .tally_types = tally_types
225232 for score in self .tally_types :
226233 for filename in filenames :
227- self .tallies .append (TetMeshTally (tally_type = score , filename = filename ))
234+ self .tallies .append (
235+ TetMeshTally (
236+ tally_type = score ,
237+ filename = filename ))
228238
229239
230240class MeshTally3D (Tally ):
231241 def __init__ (
232- self , tally_type , mesh_resolution = (100 , 100 , 100 ), bounding_box = None , ** kwargs
233- ):
242+ self ,
243+ tally_type ,
244+ mesh_resolution = (
245+ 100 ,
246+ 100 ,
247+ 100 ),
248+ bounding_box = None ,
249+ ** kwargs ):
234250 self .tally_type = tally_type
235251 self .mesh_resolution = mesh_resolution
236252 super ().__init__ (tally_type , ** kwargs )
@@ -455,7 +471,9 @@ def compute_filters(tally_type):
455471 energy_function_filter_n = openmc .EnergyFunctionFilter (
456472 energy_bins_n , dose_coeffs_n
457473 )
458- additional_filters = [neutron_particle_filter , energy_function_filter_n ]
474+ additional_filters = [
475+ neutron_particle_filter ,
476+ energy_function_filter_n ]
459477 elif tally_type == "photon_effective_dose" :
460478 energy_function_filter_p = openmc .EnergyFunctionFilter (
461479 energy_bins_p , dose_coeffs_p
0 commit comments