Skip to content

Commit

Permalink
add point_all arg
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjwilson committed Jun 6, 2024
1 parent c1f2dc2 commit 44b2cce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ecoval/matchall.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def matchup(
n_check = None,
everything = False,
overwrite = True,
point_all = [],
**kwargs,
):
"""
Expand Down Expand Up @@ -451,6 +452,8 @@ def matchup(
In general each directory will only have a small number of files. Only set n_check if there are many files.
everything : bool
If True, all possible variables are matched up. Default is False.
point_all : list
List of all point variables to matchup for all depths. Default is [].
kwargs: dict
Additional arguments
Expand Down Expand Up @@ -689,7 +692,12 @@ def write_report(x):
all_df = pd.read_csv(mapping)

# create lists for working out which variables are needed for point matchups
point_all = []
# change point_all to list if str
if isinstance(point_all, str):
point_all = [point_all]
# check point_all is a list
if not isinstance(point_all, list):
raise ValueError("point_all must be a list")
if mld:
point_all = ["temperature"]
point_bottom = []
Expand Down

0 comments on commit 44b2cce

Please sign in to comment.