Skip to content

Commit

Permalink
config file import logic updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi0395 committed Aug 15, 2024
1 parent 7c8cf09 commit af8dc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qsoabsfind/parallel_convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from multiprocessing import Pool
from .absfinder import read_single_spectrum_and_find_absorber
from .io import save_results_to_fits
from .config import load_constants
from .utils import read_nqso_from_header, get_package_versions, parse_qso_sequence

def run_convolution_method_absorber_finder_QSO_spectra(fits_file, spec_index, absorber, kwargs):
Expand Down Expand Up @@ -112,6 +111,7 @@ def main():

print(f"INFO: QSO_CONSTANTS_FILE: {os.environ['QSO_CONSTANTS_FILE']}")
# set the new constants
from .config import load_constants
constants = load_constants()

# Prepare headers
Expand Down

0 comments on commit af8dc40

Please sign in to comment.