Commit ab4b6b3224ec87404758bfe75b5419cf6c95e8a0
1 parent
591bda56
correct location of CIF in directory structure
Showing
1 changed file
with
3 additions
and
1 deletions
scripts/cta_root2caldb.py
| @@ -117,11 +117,13 @@ class caldb(): | @@ -117,11 +117,13 @@ class caldb(): | ||
| 117 | 117 | ||
| 118 | # Add path (if required) | 118 | # Add path (if required) |
| 119 | if len(self.path) > 0: | 119 | if len(self.path) > 0: |
| 120 | + self.base_path = self.path+"/"+self.base_dir | ||
| 120 | self.bcf_path = self.path+"/"+self.bcf_dir | 121 | self.bcf_path = self.path+"/"+self.bcf_dir |
| 121 | self.ea_path = self.path+"/"+self.ea_dir | 122 | self.ea_path = self.path+"/"+self.ea_dir |
| 122 | self.psf_path = self.path+"/"+self.psf_dir | 123 | self.psf_path = self.path+"/"+self.psf_dir |
| 123 | self.edisp_path = self.path+"/"+self.edisp_dir | 124 | self.edisp_path = self.path+"/"+self.edisp_dir |
| 124 | else: | 125 | else: |
| 126 | + self.base_path = self.base_dir | ||
| 125 | self.bcf_path = self.bcf_dir | 127 | self.bcf_path = self.bcf_dir |
| 126 | self.ea_path = self.ea_dir | 128 | self.ea_path = self.ea_dir |
| 127 | self.psf_path = self.psf_dir | 129 | self.psf_path = self.psf_dir |
| @@ -148,7 +150,7 @@ class caldb(): | @@ -148,7 +150,7 @@ class caldb(): | ||
| 148 | self.edisp_file = "edisp_"+name+".fits" | 150 | self.edisp_file = "edisp_"+name+".fits" |
| 149 | 151 | ||
| 150 | # Open calibration database index | 152 | # Open calibration database index |
| 151 | - self.cif = GFits(self.bcf_path+"/caldb.indx", True) | 153 | + self.cif = GFits(self.base_path+"/caldb.indx", True) |
| 152 | 154 | ||
| 153 | # If file has no CIF extension than create it now | 155 | # If file has no CIF extension than create it now |
| 154 | try: | 156 | try: |