LineageTree 1.6.0__tar.gz → 1.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: LineageTree
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: Lineage tree structure
5
5
  Home-page: https://github.com/leoguignard/LineageTree
6
6
  Author: Léo Guignard
@@ -10,7 +10,7 @@ profile = "black"
10
10
  line_length = 79
11
11
 
12
12
  [tool.bumpver]
13
- current_version = "1.6.0"
13
+ current_version = "1.6.1"
14
14
  version_pattern = "MAJOR.MINOR.PATCH[-TAG]"
15
15
  commit_message = "bump version {old_version} -> {new_version}"
16
16
  commit = true
@@ -1,4 +1,4 @@
1
- __version__ = "1.6.0"
1
+ __version__ = "1.6.1"
2
2
  from .lineageTree import lineageTree
3
3
  from .lineageTreeManager import lineageTreeManager
4
4
 
@@ -1775,16 +1775,17 @@ class lineageTree(lineageTreeLoaders):
1775
1775
  selected_cells=None,
1776
1776
  color="magenta",
1777
1777
  ax=None,
1778
+ figure=None,
1778
1779
  **kwargs,
1779
1780
  ):
1780
1781
  if selected_cells is None:
1781
1782
  selected_cells = []
1782
1783
  if ax is None:
1783
- _, ax = plt.subplots()
1784
+ figure, ax = plt.subplots()
1784
1785
  else:
1785
1786
  ax.clear()
1786
-
1787
- selected_cells = set(selected_cells)
1787
+ if not isinstance(selected_cells, set):
1788
+ selected_cells = set(selected_cells)
1788
1789
  hier_unselected = {
1789
1790
  k: v for k, v in hier.items() if k not in selected_cells
1790
1791
  }
@@ -1826,7 +1827,7 @@ class lineageTree(lineageTreeLoaders):
1826
1827
  )
1827
1828
  ax.get_yaxis().set_visible(False)
1828
1829
  ax.get_xaxis().set_visible(False)
1829
- return ax
1830
+ return figure, ax
1830
1831
 
1831
1832
  def to_simple_graph(self, node=None, start_time: int = None):
1832
1833
  """Generates a dictionary of graphs where the keys are the index of the graph and
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: LineageTree
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: Lineage tree structure
5
5
  Home-page: https://github.com/leoguignard/LineageTree
6
6
  Author: Léo Guignard
File without changes
File without changes
File without changes