Skip to content

Commit

Permalink
Add ocean variables file, light code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkstratos committed Feb 1, 2023
1 parent eb09fcd commit 01f2bea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 5 additions & 6 deletions evv4esm/extensions/kso.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,16 @@
import livvkit
import numpy as np
import pandas as pd
from evv4esm import EVVException, human_color_names
from evv4esm.ensembles import e3sm
from evv4esm.ensembles.tools import prob_plot
from evv4esm.utils import bib2html
from livvkit import elements as el
from livvkit.util import functions as fn
from livvkit.util.LIVVDict import LIVVDict
from scipy import stats
from statsmodels.stats import multitest as smm

from evv4esm import EVVException, human_color_names
from evv4esm.ensembles import e3sm
from evv4esm.ensembles.tools import prob_plot
from evv4esm.utils import bib2html


def variable_set(name):
var_sets = fn.read_json(os.path.join(os.path.dirname(__file__), "ocean_vars.json"))
Expand Down Expand Up @@ -154,7 +153,7 @@ def parse_args(args=None):
if args.config:
default_args = parser.parse_args([])

for key, val, in vars(args).items():
for key, val in vars(args).items():
if val != vars(default_args)[key]:
args.config["ks"][key] = val

Expand Down
9 changes: 9 additions & 0 deletions evv4esm/extensions/ocean_vars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"default": [
"activeTracers{}_salinity",
"activeTracers{}_temperature",
"ssh{}",
"velocityMeridional{}",
"velocityZonal{}"
]
}

0 comments on commit 01f2bea

Please sign in to comment.