Skip to content

Commit

Permalink
use __file__
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 2, 2024
1 parent 6ab1846 commit 8331dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion india_forecast_app/models/pvnet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(dest_nwp_path)
dest_nwp_dir = os.path.dirname(__file__)

# regrid data
ds = regrid_nwp_data(ds, f"{dest_nwp_dir}/mo_global/india_coords.nc")
Expand Down

0 comments on commit 8331dff

Please sign in to comment.