Skip to content

Commit

Permalink
replace emc with mec
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMortier committed Oct 30, 2024
1 parent 5c62cca commit 16c8b42
Show file tree
Hide file tree
Showing 10 changed files with 2,105 additions and 94 deletions.
2 changes: 1 addition & 1 deletion aprofiles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Some scripts to be run when aprofiles is loaded

from . import aeronet, profiles, rayleigh, reader, size_distribution, emc, utils
from . import aeronet, mec, profiles, rayleigh, reader, size_distribution, utils
from .detection import clouds, foc, pbl
from .io import read_aeronet, read_eprofile, write_profiles
from .plot import image, profile
Expand Down
10 changes: 5 additions & 5 deletions aprofiles/cli/utils/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def workflow(path, instruments_types, base_dir, CFG, verbose=False):
method = "forward"
apriori = {
"lr": 50,
"emc": False,
"mec": False,
"use_cfg": False
}
# 2. if exist, overwrite with CFG["parameters"]
Expand All @@ -58,8 +58,8 @@ def workflow(path, instruments_types, base_dir, CFG, verbose=False):
"path": cfg_path
}
}
if aer_ifs[station_id]["emc"]:
apriori["emc"] = aer_ifs[station_id]["emc"]
if aer_ifs[station_id]["mec"]:
apriori["mec"] = aer_ifs[station_id]["mec"]
else:
apriori = {
var_apriori: aer_ifs["attributes"]["default"][var_apriori],
Expand All @@ -70,8 +70,8 @@ def workflow(path, instruments_types, base_dir, CFG, verbose=False):
"path": cfg_path
}
}
if aer_ifs["attributes"]["default"]["emc"]:
apriori["emc"] = aer_ifs["attributes"]["default"]["emc"]
if aer_ifs["attributes"]["default"]["mec"]:
apriori["mec"] = aer_ifs["attributes"]["default"]["mec"]

if "inversion" in CFG["parameters"][profiles.data.instrument_type]:
if "method" in CFG["parameters"][profiles.data.instrument_type]["inversion"]:
Expand Down
Loading

0 comments on commit 16c8b42

Please sign in to comment.