Skip to content

Commit

Permalink
Fix tests - pass boxed point instead of raw point.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Nov 8, 2024
1 parent 5fb1900 commit a251937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datacube_ows/feature_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def feature_info(args: dict[str, str]) -> FlaskResponse:
stacker = DataStacker(params.layer, geo_point_geobox, params.times)
# --- Begin code section requiring datacube.
cfg = get_config()
all_time_datasets = stacker.datasets_all_time(point=geo_point)
all_time_datasets = stacker.datasets_all_time(point=geo_point_geobox.extent)

# Taking the data as a single point so our indexes into the data should be 0,0
h_coord = cast(str, cfg.published_CRSs[params.crsid]["horizontal_coord"])
Expand All @@ -176,7 +176,7 @@ def feature_info(args: dict[str, str]) -> FlaskResponse:
global_info_written = False
feature_json["data"] = []
fi_date_index: dict[datetime, RAW_CFG] = {}
time_datasets = stacker.datasets(all_flag_bands=True, point=geo_point)
time_datasets = stacker.datasets(all_flag_bands=True, point=geo_point_geobox.extent)
data = stacker.data(time_datasets, skip_corrections=True)
if data is not None:
for dt in data.time.values:
Expand Down

0 comments on commit a251937

Please sign in to comment.