Skip to content

Commit

Permalink
Merge pull request #195 from openghg/194-config_file-in-run_hbmcmcpy-…
Browse files Browse the repository at this point in the history
…is-of-type-_str_-but-should-be-of-type-_posixpath_

Resolve small bugs described in issues #194, #196 and #197.
  • Loading branch information
alexdanjou authored Aug 20, 2024
2 parents 027524d + 939f0f7 commit a484a52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openghg_inversions/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def pblh_inlet_diff(
filt = pblh_da > inlet_height + diff_threshold
drop = not keep_missing

return dataset.where(filt, drop=drop)
return dataset.where(filt.compute(), drop=drop)


@register_filter
Expand Down
2 changes: 2 additions & 0 deletions openghg_inversions/get_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ def data_processing_surface_notracer(
store=footprint_store,
species=fp_species,
)
if get_fps.data.time.size==0:
raise SearchError
except SearchError:
print(
f"\nNo footprint data found for {site} with inlet/height {fp_height[i]}, model {fp_model}, and domain {domain}.",
Expand Down
3 changes: 2 additions & 1 deletion openghg_inversions/hbmcmc/run_hbmcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import json
import sys
import argparse
from pathlib import Path
from shutil import copyfile
from collections.abc import Callable

Expand Down Expand Up @@ -191,7 +192,7 @@ def hbmcmc_extract_param(

args = parser.parse_args()

config_file = args.config
config_file = Path(args.config)
command_line_args = {}
if args.start:
command_line_args["start_date"] = args.start
Expand Down

0 comments on commit a484a52

Please sign in to comment.