diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index ab3937eb85ced41803afad968861e39d6c25da99..50e8f3de7996daf8c7dda2800d21f31ceb7ee94a 100644 --- a/wetb/hawc2/hawc2_simulation.py +++ b/wetb/hawc2/hawc2_simulation.py @@ -152,6 +152,7 @@ class Hawc2_Simulation(object): else: self.scale_sensors() + # This will normalize the sensors to the nun-dimensional lengths def normalize_sensors(self, blade_scale = None): if not self.htcf is None: if blade_scale is None: @@ -161,6 +162,7 @@ class Hawc2_Simulation(object): if isinstance(obj, HTCSensor) and not isinstance(obj, HTCSensorAtTime): obj.normalize_sensor(blade_scale) + # This will scale the sensors back to the dimensional point def scale_sensors(self, blade_scale = None): if not self.htcf is None: if blade_scale is None: @@ -254,7 +256,8 @@ class Hawc2_Simulation(object): # This will set the write directory def set_write_directory(self, write_directory): self.write_directory = os.path.abspath(os.path.realpath(write_directory)) - + + # Add a file that must also accompanying the simulation when a new simulation is writen def add_accompanying_file(self, accompanying_file): # If we have a list of files @@ -374,8 +377,6 @@ class Hawc2_Simulation(object): os.makedirs(self.write_directory) os.chdir(self.write_directory) - # This is the point where you would specify that a file is running - print('Now the code would execute the model') # These values allow for some second attempts at running HAWC2 (occasionally it crashed right away with wine) exec_str = self.exec_command+' '+self.input_files['htc'][0].written_file exec_str = exec_str.split()