nettracer3d 0.9.2__py3-none-any.whl → 0.9.3__py3-none-any.whl

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.

Potentially problematic release.


This version of nettracer3d might be problematic. Click here for more details.

nettracer3d/nettracer.py CHANGED
@@ -5585,7 +5585,10 @@ class Network_3D:
5585
5585
  if self.communities is not None and label == 2:
5586
5586
  neighbor_group = {}
5587
5587
  for node, com in self.communities.items():
5588
- neighbor_group[com] = neighbors[node]
5588
+ try:
5589
+ neighbor_group[com] = neighbors[node]
5590
+ except:
5591
+ neighbor_group[com] = 0
5589
5592
  neighborhoods.visualize_cluster_composition_umap(umap_dict, id_set, neighborhoods = neighbor_group)
5590
5593
  elif label == 1:
5591
5594
  neighborhoods.visualize_cluster_composition_umap(umap_dict, id_set, label = True)
@@ -4542,6 +4542,10 @@ class ImageViewerWindow(QMainWindow):
4542
4542
  if not self.confirm_calcbranch_dialog("Use of this feature will require additional use of the Nodes and Overlay 2 channels. Please save any data and return, or proceed if you do not need those channels' data"):
4543
4543
  return
4544
4544
 
4545
+ if my_network.edges is None and my_network.nodes is not None:
4546
+ self.load_channel(1, my_network.nodes, data = True)
4547
+ self.delete_channel(0, False)
4548
+
4545
4549
  my_network.id_overlay = my_network.edges.copy()
4546
4550
 
4547
4551
  self.show_gennodes_dialog()
@@ -4574,6 +4578,10 @@ class ImageViewerWindow(QMainWindow):
4574
4578
  if not self.confirm_calcbranch_dialog("Use of this feature will require additional use of the Nodes and Overlay 2 channels. Please save any data and return, or proceed if you do not need those channels' data"):
4575
4579
  return
4576
4580
 
4581
+ if my_network.edges is None and my_network.nodes is not None:
4582
+ self.load_channel(1, my_network.nodes, data = True)
4583
+ self.delete_channel(0, False)
4584
+
4577
4585
  self.show_branch_dialog(called = True)
4578
4586
 
4579
4587
  self.load_channel(0, my_network.edges, data = True)
@@ -12453,6 +12461,10 @@ class GenNodesDialog(QDialog):
12453
12461
  def run_gennodes(self):
12454
12462
 
12455
12463
  try:
12464
+
12465
+ if my_network.edges is None and my_network.nodes is not None:
12466
+ self.parent().load_channel(1, my_network.nodes, data = True)
12467
+ self.parent().delete_channel(0, True)
12456
12468
  # Get directory (None if empty)
12457
12469
  #directory = self.directory.text() if self.directory.text() else None
12458
12470
 
@@ -12682,6 +12694,10 @@ class BranchDialog(QDialog):
12682
12694
  fix_val = float(self.fix_val.text()) if self.fix_val.text() else None
12683
12695
  seed = int(self.seed.text()) if self.seed.text() else None
12684
12696
 
12697
+ if my_network.edges is None and my_network.nodes is not None:
12698
+ self.parent().load_channel(1, my_network.nodes, data = True)
12699
+ self.parent().delete_channel(0, True)
12700
+
12685
12701
  original_shape = my_network.edges.shape
12686
12702
  original_array = copy.deepcopy(my_network.edges)
12687
12703
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nettracer3d
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
5
5
  Author-email: Liam McLaughlin <liamm@wustl.edu>
6
6
  Project-URL: Documentation, https://nettracer3d.readthedocs.io/en/latest/
@@ -110,8 +110,6 @@ McLaughlin, L., Zhang, B., Sharma, S. et al. Three dimensional multiscalar neuro
110
110
 
111
111
  NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
112
112
 
113
- -- Version 0.9.2 Updates --
114
- * Image viewer canvas window can now be popped out into a separate window.
115
- * Image pyramid calculation is more dynamic instead of using arbitrary size thresholds.
116
- * Adjusted pan mode
117
- * Some bug fixes.
113
+ -- Version 0.9.3 Updates --
114
+
115
+ * Some minor bug fixes.
@@ -5,8 +5,8 @@ nettracer3d/excelotron.py,sha256=X9v_mte8gJBPNGdj6NJNUYja0Z6eorVoKAFx4nHiMnU,720
5
5
  nettracer3d/modularity.py,sha256=pborVcDBvICB2-g8lNoSVZbIReIBlfeBmjFbPYmtq7Y,22443
6
6
  nettracer3d/morphology.py,sha256=jyDjYzrZ4LvI5jOyw8DLsxmo-i5lpqHsejYpW7Tq7Mo,19786
7
7
  nettracer3d/neighborhoods.py,sha256=iIaHU1COIdRtzRpAuIQKfLGLNKYFK3dL8Vb_EeJIlEA,46459
8
- nettracer3d/nettracer.py,sha256=PBlvgCI65pwhMjTBuDl5CnHtv7unU8PMkyGt3Mz_a30,264443
9
- nettracer3d/nettracer_gui.py,sha256=RBmt--IhiUWlHy0CI_DK6GEXEREWZyQcF7FNdrUK2WA,600327
8
+ nettracer3d/nettracer.py,sha256=KTVodpVpu2mfzdRR-ZucZlTQCZc1pqgH4jAI26vWAgY,264551
9
+ nettracer3d/nettracer_gui.py,sha256=eZuO9v9szm-pj_-Bl71Lyg0mw80u_HJragARR2muVLo,601133
10
10
  nettracer3d/network_analysis.py,sha256=kBzsVaq4dZkMe0k-VGvQIUvM-tK0ZZ8bvb-wtsugZRQ,46150
11
11
  nettracer3d/network_draw.py,sha256=F7fw6Pcf4qWOhdKwLmhwqWdschbDlHzwCVolQC9imeU,14117
12
12
  nettracer3d/node_draw.py,sha256=kZcR1PekLg0riioNeGcALIXQyZ5PtHA_9MT6z7Zovdk,10401
@@ -17,9 +17,9 @@ nettracer3d/segmenter.py,sha256=-Llkhp3TlAIBXZNhcfMFQRdg0vec1xtlOm0c4_bSU9U,7576
17
17
  nettracer3d/segmenter_GPU.py,sha256=optCZ_zLIfe99rgqmyKWUZlWW5TF5jEC_C3keu1m7VQ,77771
18
18
  nettracer3d/simple_network.py,sha256=dkG4jpc4zzdeuoaQobgGfL3PNo6N8dGKQ5hEEubFIvA,9947
19
19
  nettracer3d/smart_dilate.py,sha256=TvRUh6B4q4zIdCO1BWH-xgTdND5OUNmo99eyxG9oIAU,27145
20
- nettracer3d-0.9.2.dist-info/licenses/LICENSE,sha256=jnNT-yBeIAKAHpYthPvLeqCzJ6nSurgnKmloVnfsjCI,764
21
- nettracer3d-0.9.2.dist-info/METADATA,sha256=4lxrFb_E22_2wXMY7mW32K2VvG8OJS2l5s2kJeHOd6w,7179
22
- nettracer3d-0.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- nettracer3d-0.9.2.dist-info/entry_points.txt,sha256=Nx1rr_0QhJXDBHAQg2vcqCzLMKBzSHfwy3xwGkueVyc,53
24
- nettracer3d-0.9.2.dist-info/top_level.txt,sha256=zsYy9rZwirfCEOubolhee4TyzqBAL5gSUeFMzhFTX8c,12
25
- nettracer3d-0.9.2.dist-info/RECORD,,
20
+ nettracer3d-0.9.3.dist-info/licenses/LICENSE,sha256=jnNT-yBeIAKAHpYthPvLeqCzJ6nSurgnKmloVnfsjCI,764
21
+ nettracer3d-0.9.3.dist-info/METADATA,sha256=lfHt7f_M_votMYdihCuZWBmL4jUCV6YXrN7PFu7iEkQ,6998
22
+ nettracer3d-0.9.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ nettracer3d-0.9.3.dist-info/entry_points.txt,sha256=Nx1rr_0QhJXDBHAQg2vcqCzLMKBzSHfwy3xwGkueVyc,53
24
+ nettracer3d-0.9.3.dist-info/top_level.txt,sha256=zsYy9rZwirfCEOubolhee4TyzqBAL5gSUeFMzhFTX8c,12
25
+ nettracer3d-0.9.3.dist-info/RECORD,,