@@ -302,6 +302,9 @@ def w_kinavg(self):
302302 self .output_file .replace_dataset ('target_flux_evolution' , data = rate_evol , shuffle = True , compression = 9 )
303303
304304 def go (self ):
305+ # Have class inherit user-provided self.output_filename as self.kinetics_filename
306+ self .kinetics_filename = self .output_filename
307+
305308 pi = self .progress .indicator
306309 with pi :
307310 self .w_kinavg ()
@@ -474,6 +477,9 @@ def w_stateprobs(self):
474477 self .output_file .replace_dataset (name = 'state_pop_evolution' , data = pop_evol , shuffle = True , compression = 9 )
475478
476479 def go (self ):
480+ # Have class inherit user-provided self.output_filename as self.kinetics_filename
481+ self .kinetics_filename = self .output_filename
482+
477483 pi = self .progress .indicator
478484 with pi :
479485 self .w_stateprobs ()
@@ -498,8 +504,9 @@ class DAll(DStateProbs, DKinAvg, DKinetics):
498504'''
499505
500506 def go (self ):
501- # One minor issue; as this stands now, since it's inheriting from all the other classes, it needs
502- # a kinetics file to instantiate the other attributes. We'll need to modify how the loading works, there.
507+ # Have class inherit user-provided self.output_filename as self.kinetics_filename
508+ self .kinetics_filename = self .output_filename
509+
503510 pi = self .progress .indicator
504511 with pi :
505512 self .w_kinetics ()
@@ -526,6 +533,9 @@ class DAverage(DStateProbs, DKinAvg):
526533'''
527534
528535 def go (self ):
536+ # Have class inherit user-provided self.output_filename as self.kinetics_filename
537+ self .kinetics_filename = self .output_filename
538+
529539 pi = self .progress .indicator
530540 with pi :
531541 self .w_kinavg ()
0 commit comments