From a5bf921254062f8ed6320051ba449d0a6ae73be1 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Mon, 2 Dec 2024 15:49:45 +0000 Subject: [PATCH] use correct __file__ --- india_forecast_app/models/pvnet/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/india_forecast_app/models/pvnet/utils.py b/india_forecast_app/models/pvnet/utils.py index 08db8c8..47ba38b 100644 --- a/india_forecast_app/models/pvnet/utils.py +++ b/india_forecast_app/models/pvnet/utils.py @@ -161,7 +161,7 @@ def process_and_cache_nwp(nwp_config: NWPProcessAndCacheConfig): ds = ds.sel(variable=nwp_channels) # get directory of file - dest_nwp_dir = os.path.dirname(__file__) + dest_nwp_dir = os.path.dirname(regrid_nwp_data.__file__) # regrid data ds = regrid_nwp_data(ds, f"{dest_nwp_dir}/mo_global/india_coords.nc")