Skip to content

Commit

Permalink
update version to 0.1.8
Browse files Browse the repository at this point in the history
fix bug in applying bool arguments
fix bug in checking color arguments
  • Loading branch information
didillysquat committed Jan 12, 2021
1 parent 4e07220 commit 028c89e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions reefmapmaker/reefmapmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
warnings.filterwarnings("ignore", category=DownloadWarning)


__version__ = "v0.1.7"
__version__ = "v0.1.8"


class ReefMapMaker:
Expand Down Expand Up @@ -548,8 +548,9 @@ def _check_color_params(self):
for c_param in ['sea_color', 'land_color', 'reference_reef_color', 'reference_reef_edge_color']:
cl_param_set, config_param_set = self._param_set(param=c_param)
self._set_config_param(param=c_param, cl_param=cl_param_set, config_param=config_param_set)
if not is_color_like(self.config_dict[c_param]):
self._set_default_param(param=c_param)
if c_param in self.config_dict:
if not is_color_like(self.config_dict[c_param]):
self._set_default_param(param=c_param)

def _check_bool_params(self):
for bool_param in [
Expand Down Expand Up @@ -878,7 +879,8 @@ def draw_map(self):
self._put_gridlines_on_large_map_ax()
if self.args.site_sheet:
self._add_user_reefs()
self._add_reference_reefs()
if self.config_dict['plot_reference_reefs']:
self._add_reference_reefs()
self._save_figs()

def _save_figs(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="reefmapmaker",
version='0.1.7',
version='0.1.8',
author="Benjamin C C Hume",
author_email="[email protected]",
description="Script to plot maps with reference coral reefs annotated.",
Expand Down

0 comments on commit 028c89e

Please sign in to comment.