Ejemplo n.º 1
0
            "           Astropy " + astropy_version + "\n")

# --------------------------------
# ---- START OF SoFiA PIPELINE ---
# --------------------------------

t0 = time()

# ---------------------------------
# ---- READ DEFAULT PARAMETERS ----
# ---------------------------------

err.print_progress_message("Reading default parameters", t0)
default_file = os.getenv("SOFIA_PIPELINE_PATH").replace(
    "sofia_pipeline.py", "SoFiA_default_input.txt")
Parameters = readoptions.readPipelineOptions(default_file)

# ------------------------------
# ---- READ USER PARAMETERS ----
# ------------------------------

err.print_progress_message("Reading user parameters", t0)

# This reads in a file with parameters and creates a dictionary:
parameter_file = sys.argv[1]
err.message("Parameters extracted from: " + str(parameter_file))
User_Parameters = readoptions.readPipelineOptions(parameter_file)
if not User_Parameters:
    err.error("No valid parameter settings found in parameter file.",
              fatal=True)
Ejemplo n.º 2
0
# --------------------------------
# ---- START OF SoFiA PIPELINE ---
# --------------------------------

t0 = time()



# ---------------------------------
# ---- READ DEFAULT PARAMETERS ----
# ---------------------------------

err.print_progress_message("Reading default parameters", t0)
default_file = os.getenv("SOFIA_PIPELINE_PATH").replace("sofia_pipeline.py", "SoFiA_default_input.txt")
Parameters = readoptions.readPipelineOptions(default_file)



# ------------------------------
# ---- READ USER PARAMETERS ----
# ------------------------------

err.print_progress_message("Reading user parameters", t0)

# This reads in a file with parameters and creates a dictionary:
parameter_file = sys.argv[1]
err.message("Parameters extracted from: " + str(parameter_file))
User_Parameters = readoptions.readPipelineOptions(parameter_file)
if not User_Parameters: err.error("No valid parameter settings found in parameter file.", fatal=True)