Skip to content
Snippets Groups Projects
Commit 3c7cee7d authored by s214735's avatar s214735
Browse files

Merge problems

parent 24a63566
Branches
No related tags found
1 merge request!143Type hints
...@@ -56,7 +56,7 @@ def get_bibtex(doi: str): ...@@ -56,7 +56,7 @@ def get_bibtex(doi: str):
return _log_and_get_text(doi, header) return _log_and_get_text(doi, header)
def cusom_header(doi: str, header: str) -> str: def custom_header(doi: str, header: str) -> str:
"""Allows a custom header to be passed """Allows a custom header to be passed
For example: For example:
......
...@@ -10,10 +10,10 @@ def plot_cc( ...@@ -10,10 +10,10 @@ def plot_cc(
max_cc_to_plot: int = 32, max_cc_to_plot: int = 32,
overlay: np.ndarray = None, overlay: np.ndarray = None,
crop: bool = False, crop: bool = False,
show: bool = True, display_figure: bool = True,
cmap: str = "viridis", color_map: str = "viridis",
vmin: float = None, value_min: float = None,
vmax: float = None, value_max: float = None,
**kwargs, **kwargs,
) -> list[plt.Figure]: ) -> list[plt.Figure]:
""" """
...@@ -75,7 +75,7 @@ def plot_cc( ...@@ -75,7 +75,7 @@ def plot_cc(
cc = connected_components.get_cc(component, crop=False) cc = connected_components.get_cc(component, crop=False)
overlay_crop = np.where(cc == 0, 0, overlay) overlay_crop = np.where(cc == 0, 0, overlay)
fig = qim3d.viz.slices_grid( fig = qim3d.viz.slices_grid(
overlay_crop, show=show, cmap=cmap, vmin=vmin, vmax=vmax, **kwargs overlay_crop, display_figure=display_figure, color_map=color_map, value_min=value_min, value_max=value_max, **kwargs
) )
else: else:
# assigns discrete color map to each connected component if not given # assigns discrete color map to each connected component if not given
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment