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):
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
For example:
......
......@@ -10,10 +10,10 @@ def plot_cc(
max_cc_to_plot: int = 32,
overlay: np.ndarray = None,
crop: bool = False,
show: bool = True,
cmap: str = "viridis",
vmin: float = None,
vmax: float = None,
display_figure: bool = True,
color_map: str = "viridis",
value_min: float = None,
value_max: float = None,
**kwargs,
) -> list[plt.Figure]:
"""
......@@ -75,7 +75,7 @@ def plot_cc(
cc = connected_components.get_cc(component, crop=False)
overlay_crop = np.where(cc == 0, 0, overlay)
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:
# 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