diff --git a/dascore/constants.py b/dascore/constants.py index a4409251..3d1d1ced 100644 --- a/dascore/constants.py +++ b/dascore/constants.py @@ -139,19 +139,19 @@ def map(self, func, iterables, **kwargs): dascore_styles = dict( np_array_threshold=100, # max number of elements to show in array patch_history_array_threshold=10, # max elements of array in hist str. - dc_blue="#002868", - dc_red="#cf0029", - dc_yellow="#ffc934", - default_coord="bold white", + dc_blue="blue", + dc_red="red", + dc_yellow="yellow", + default_coord="bold", coord_range="bold green", - coord_array="bold #cd0000", - coord_monotonic="bold #d64806", - coord_degenerate="bold #d40000", - units="#cca3e1", - dtypes="#a2bf48", - keys="#a2bf48", - # these are for formatting datetimes - ymd="#e96baa", - hms="#e96baa", - dec="#e96baa", + coord_monotonic="bold grey", + coord_array="bold orange", + coord_degenerate="bold red", + units="bright blue", + dtypes="bright black", + keys="grey50", + # these are for formatting date times + ymd="blue", + hms="green", + dec="green", ) diff --git a/dascore/core/coordmanager.py b/dascore/core/coordmanager.py index 87d050da..28175654 100644 --- a/dascore/core/coordmanager.py +++ b/dascore/core/coordmanager.py @@ -611,7 +611,7 @@ def __rich__(self) -> str: coord = self.coord_map[name] coord_dims = self.dim_map[name] if name in self.dims: - base = Text.assemble("\n * ", Text(name, style="bold"), ": ") + base = Text.assemble("\n *", Text(name, style="bold"), ": ") else: base = Text(f"\n {name} {coord_dims}: ") text = Text.assemble(base, coord.__rich__()) diff --git a/dascore/core/coords.py b/dascore/core/coords.py index afacbf8b..7529b590 100644 --- a/dascore/core/coords.py +++ b/dascore/core/coords.py @@ -249,7 +249,7 @@ def __len__(self): def __rich__(self): key_style = dascore_styles["keys"] - base = Text("", "default") + base = Text("") base += Text(self.__class__.__name__, style=self._rich_style) base += Text("(") if not pd.isnull(self.min()): diff --git a/docs/tutorial/patch.qmd b/docs/tutorial/patch.qmd index 656865c9..f0995771 100644 --- a/docs/tutorial/patch.qmd +++ b/docs/tutorial/patch.qmd @@ -140,6 +140,7 @@ time_step = coords.step("time") Coords also have a useful string representation: + ```{python} print(coords) ```