From ac3107f55a9958605dbae165561aed84d475490a Mon Sep 17 00:00:00 2001 From: cmos <cmos@dtu.dk> Date: Thu, 10 Jan 2019 13:27:19 +0100 Subject: [PATCH] Made some changes to the hawc2.py --- wetb/hawc2/hawc2_simulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wetb/hawc2/hawc2_simulation.py b/wetb/hawc2/hawc2_simulation.py index 820b1a2..6b704b9 100644 --- a/wetb/hawc2/hawc2_simulation.py +++ b/wetb/hawc2/hawc2_simulation.py @@ -247,11 +247,11 @@ class Hawc2_Simulation(object): if not os.path.isfile(accompanying_file) and not os.path.isdir(accompanying_file): accompanying_file=os.path.join(self.source_directory,accompanying_file) if not os.path.isfile(accompanying_file) and not os.path.isdir(accompanying_file): - 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)) 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) -- GitLab