AusClimateService / plotting_maps

Standardising hazard maps for ACS
4 stars 1 forks source link

Logo path cannot be read remotely #6

Closed xenct closed 2 months ago

xenct commented 2 months ago

The plotting script cannot read the ACS logo unless you are working within the plotting maps directory. The logo's path needs to be updated so the script reads the absolute path of the logo file. Until this is fixed, the whole module will not load if you're not in the plotting_maps directory.

stellema commented 2 months ago

This can be fixed using:

from pathlib import Path
logo = image.imread(Path(__file__).parent / "ACS_Logo_Blue_on_white_Stacked.png")
xenct commented 2 months ago

Thanks @stellema I have incorporated your fix and closed this issue