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

Merge branch 'FW_H2_Wrapper' of...

Merge branch 'FW_H2_Wrapper' of https://gitlab.windenergy.dtu.dk/mimc/WindEnergyToolbox into FW_H2_Wrapper
parents ae2b72a1 006e2cb9
No related branches found
No related tags found
No related merge requests found
Pipeline #6883 failed
......@@ -237,6 +237,7 @@ class Hawc2_Simulation(object):
is_good = True
else:
file_obj.written_file = file_obj.original_file
# Now write the HTC file
self.input_files['htc'][0].written_file = os.path.join(self.write_directory, self.source_name)
fout = open_file_in_dir(self.input_files['htc'][0].written_file, 'wb')
......@@ -274,7 +275,7 @@ class Hawc2_Simulation(object):
else:
accompanying_file=os.path.abspath(os.path.realpath(accompanying_file))
if not accompanying_file.startswith(self.source_directory):
raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories')
raise ValueError('The accompanying file must be contained within the directory of the HTC file, or one of the sub-directories. file: {} not found'.format(accompanying_file))
destination=accompanying_file[len(self.source_directory)+1:]
self.accompanying_files.append(accompanying_file)
self.accompanying_destinations.append(destination)
......
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