Skip to content

Commit

Permalink
use correct __file__
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 2, 2024
1 parent 8331dff commit a5bf921
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(__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")
Expand Down

0 comments on commit a5bf921

Please sign in to comment.