Skip to content
Snippets Groups Projects
Commit e8c8ec8b authored by mimc's avatar mimc
Browse files

Added come comments and removed old debug messages mostly non-functional

parent 55f382ce
No related branches found
No related tags found
No related merge requests found
Pipeline #7091 failed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment