Skip to content

Commit

Permalink
remove the env variable for conditional mean data
Browse files Browse the repository at this point in the history
  • Loading branch information
malihass committed Feb 2, 2024
1 parent d50b1d3 commit fd9c6de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions applications/compute_conditional_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from prettyPlot.plotting import plt, pretty_labels

from brd import BRD_COND_MEAN_DATA_DIR
# from brd import BRD_COND_MEAN_DATA_DIR
from brd.postProcess.conditional_mean import (
compute_cond_mean,
save_cond,
Expand All @@ -22,7 +22,7 @@ def main():
metavar="",
required=True,
help="caseFolder to analyze",
default=BRD_COND_MEAN_DATA_DIR,
default="brd/postProcess/data_conditional_mean",
)

parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion brd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
BRD_MESH_DIR, "stir_tank_case_templates"
)
BRD_EARLY_PRED_DATA_DIR = os.path.join(BRD_POST_DIR, "data_early")
BRD_COND_MEAN_DATA_DIR = os.path.join(BRD_POST_DIR, "data_conditional_mean")
# BRD_COND_MEAN_DATA_DIR = os.path.join(BRD_POST_DIR, "data_conditional_mean")
BRD_INV_DIR = os.path.join(BRD_DIR, "inverse_modeling")
10 changes: 3 additions & 7 deletions tests/postProcess/test_cond_mean.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from prettyPlot.plotting import plt, pretty_labels

from brd import BRD_COND_MEAN_DATA_DIR
# from brd import BRD_COND_MEAN_DATA_DIR
from brd.postProcess.conditional_mean import (
compute_cond_mean,
save_cond,
Expand All @@ -11,12 +11,8 @@


def test_compute_cond():
caseFolder = BRD_COND_MEAN_DATA_DIR
if not os.path.exists(caseFolder):
# We are executing the CI
caseFolder = os.path.join(
"brd", "postProcess", "data_conditional_mean"
)
# caseFolder = BRD_COND_MEAN_DATA_DIR
caseFolder = os.path.join("brd", "postProcess", "data_conditional_mean")
fields_list = [
"CO.gas",
"CO.liquid",
Expand Down

0 comments on commit fd9c6de

Please sign in to comment.