Commit 8ce72dac authored by Francesco Amadori's avatar Francesco Amadori
Browse files

bug in get target info resolved

parent 6306da9c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -162,3 +162,5 @@ dmypy.json
/DataReductionGIANOB/Files/Configuration_Path/*
/DataReductionGIANOB/Files/Configuration_Path/
!/DataReductionGIANOB/Files/Configuration_Path/.gitkeep
/DataReductionGIANOB/test_new_phase_njd.py
/data_out/
+6 −4
Original line number Diff line number Diff line
@@ -1772,8 +1772,9 @@ class Frame_Gofio:

    def wcal_auto(self):
        target = self.chosen_target_var.get()
        _, _, _, _, _, _, _, _, _, _, vsys, _, _, _, _, stellar_teff, _, _, _, _, _, _, _, _, _ = DataInterface.get_target_info(
            self.path_target, target)
        _, _, _, _, _, _, _, _, _, _, vsys, _, _, _, _, stellar_teff, _, _, _, _, _, _, _, _, _, _, _ = DataInterface.get_target_info(
            self.path_target, target
        )
        instrument = self.chosen_instrument_var_post.get()
        with open(str(Path(self.path_default, "DataReductionGIANOB", "Instruments", instrument + ".yaml")), "r") as f:
            yaml_file = yaml.safe_load(f)
@@ -1858,8 +1859,9 @@ class Frame_Gofio:

    def test_wlen_calib(self):
        target = self.chosen_target_var.get()
        _, _, _, _, _, _, _, _, _, _, vsys, _, _, _, _, stellar_teff, _, _, _, _, _, _, _, _, _ = DataInterface.get_target_info(
            self.path_target, target)
        _, _, _, _, _, _, _, _, _, _, vsys, _, _, _, _, stellar_teff, _, _, _, _, _, _, _, _, _, _, _ = DataInterface.get_target_info(
            self.path_target, target
        )
        instrument = self.chosen_instrument_var_post.get()
        path_instrument = str(
            Path(self.path_target, target, "HR_Instruments", self.chosen_rad_mode_var_post.get(), instrument))
+1 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ class ImageAnalysis:
        hdul = fits.open(file_image)
        # Extract the data array from the FITS extension specified in the YAML configuration
        # This contains the raw spectral flux values organized by order and pixel
        print(file_image)
        if yaml_file["index_data"] != "None":
            data_fits = hdul[yaml_file["index_data"]].data
            # ======================== DATA AND SNR EXTRACTION ========================