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 | 117 | |
| 118 | 118 | # Add path (if required) |
| 119 | 119 | if len(self.path) > 0: |
| 120 | + self.base_path = self.path+"/"+self.base_dir | |
| 120 | 121 | self.bcf_path = self.path+"/"+self.bcf_dir |
| 121 | 122 | self.ea_path = self.path+"/"+self.ea_dir |
| 122 | 123 | self.psf_path = self.path+"/"+self.psf_dir |
| 123 | 124 | self.edisp_path = self.path+"/"+self.edisp_dir |
| 124 | 125 | else: |
| 126 | + self.base_path = self.base_dir | |
| 125 | 127 | self.bcf_path = self.bcf_dir |
| 126 | 128 | self.ea_path = self.ea_dir |
| 127 | 129 | self.psf_path = self.psf_dir |
| ... | ... | @@ -148,7 +150,7 @@ class caldb(): |
| 148 | 150 | self.edisp_file = "edisp_"+name+".fits" |
| 149 | 151 | |
| 150 | 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 | 155 | # If file has no CIF extension than create it now |
| 154 | 156 | try: | ... | ... |