nettracer3d 0.9.7__py3-none-any.whl → 0.9.8__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.

@@ -2494,6 +2494,12 @@ class ImageViewerWindow(QMainWindow):
2494
2494
 
2495
2495
  self.update_display(preserve_zoom=(current_xlim, current_ylim))
2496
2496
 
2497
+ if self.pan_mode:
2498
+ self.create_pan_background()
2499
+ current_xlim = self.ax.get_xlim()
2500
+ current_ylim = self.ax.get_ylim()
2501
+ self.update_display_pan_mode(current_xlim, current_ylim)
2502
+
2497
2503
 
2498
2504
  def toggle_zoom_mode(self):
2499
2505
  """Toggle zoom mode on/off."""
@@ -2501,7 +2507,9 @@ class ImageViewerWindow(QMainWindow):
2501
2507
 
2502
2508
  if self.zoom_mode:
2503
2509
  if self.pan_mode:
2504
- self.pan_button.click()
2510
+ self.update_display(preserve_zoom=(self.ax.get_xlim(), self.ax.get_ylim()))
2511
+ self.pan_mode = False
2512
+ self.pan_button.setChecked(False)
2505
2513
 
2506
2514
  self.pen_button.setChecked(False)
2507
2515
  self.brush_mode = False
@@ -2522,11 +2530,6 @@ class ImageViewerWindow(QMainWindow):
2522
2530
  current_xlim = self.ax.get_xlim()
2523
2531
  current_ylim = self.ax.get_ylim()
2524
2532
  self.update_display(preserve_zoom=(current_xlim, current_ylim))
2525
- if self.pan_mode:
2526
- current_xlim = self.ax.get_xlim()
2527
- current_ylim = self.ax.get_ylim()
2528
- self.update_display(preserve_zoom=(current_xlim, current_ylim))
2529
- self.pan_mode = False
2530
2533
 
2531
2534
  else:
2532
2535
  if self.machine_window is None:
@@ -2605,7 +2608,9 @@ class ImageViewerWindow(QMainWindow):
2605
2608
  if self.brush_mode:
2606
2609
 
2607
2610
  if self.pan_mode:
2608
- self.pan_button.click()
2611
+ self.update_display(preserve_zoom=(self.ax.get_xlim(), self.ax.get_ylim()))
2612
+ self.pan_mode = False
2613
+ self.pan_button.setChecked(False)
2609
2614
 
2610
2615
  self.pm = painting.PaintManager(parent = self)
2611
2616
 
@@ -3594,8 +3599,8 @@ class ImageViewerWindow(QMainWindow):
3594
3599
  # Multi-color highlight for machine window
3595
3600
  mask_1 = (highlight_data == 1)
3596
3601
  mask_2 = (highlight_data == 2)
3597
- rgba[mask_1] = [1, 1, 0, 0.5] # Yellow for 1
3598
- rgba[mask_2] = [0, 0.7, 1, 0.5] # Blue for 2
3602
+ rgba[mask_1] = [1, 1, 0, 0.3] # Yellow for 1
3603
+ rgba[mask_2] = [0, 0.7, 1, 0.3] # Blue for 2
3599
3604
 
3600
3605
  return rgba
3601
3606
 
@@ -6088,17 +6093,6 @@ class ImageViewerWindow(QMainWindow):
6088
6093
  pass
6089
6094
  self.static_background = None
6090
6095
 
6091
- # Your existing machine_window logic
6092
- if self.machine_window is None:
6093
- try:
6094
- self.channel_data[4][self.current_slice, :, :] = n3d.overlay_arrays_simple(
6095
- self.channel_data[self.temp_chan][self.current_slice, :, :],
6096
- self.channel_data[4][self.current_slice, :, :])
6097
- self.load_channel(self.temp_chan, self.channel_data[4], data=True, end_paint=True)
6098
- self.channel_data[4] = None
6099
- self.channel_visible[4] = False
6100
- except:
6101
- pass
6102
6096
 
6103
6097
  # Get dimensions
6104
6098
  active_channels = [i for i in range(4) if self.channel_data[i] is not None]
@@ -10991,6 +10985,8 @@ class MachineWindow(QMainWindow):
10991
10985
  def toggle_brush_mode(self):
10992
10986
  """Toggle brush mode on/off"""
10993
10987
  self.parent().brush_mode = self.brush_button.isChecked()
10988
+ if self.parent().pan_mode:
10989
+ self.parent().update_display(preserve_zoom=(self.parent().ax.get_xlim(), self.parent().ax.get_ylim()))
10994
10990
 
10995
10991
  if self.parent().brush_mode:
10996
10992
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nettracer3d
3
- Version: 0.9.7
3
+ Version: 0.9.8
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,7 +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.7 Updates --
113
+ -- Version 0.9.8 Updates --
114
114
 
115
- * Fixed a bug with the segmenter and color images.
116
- * The overlay 2 is now cyan by default.
115
+ * Some minor bug fixes
@@ -6,7 +6,7 @@ nettracer3d/modularity.py,sha256=pborVcDBvICB2-g8lNoSVZbIReIBlfeBmjFbPYmtq7Y,224
6
6
  nettracer3d/morphology.py,sha256=jyDjYzrZ4LvI5jOyw8DLsxmo-i5lpqHsejYpW7Tq7Mo,19786
7
7
  nettracer3d/neighborhoods.py,sha256=iIaHU1COIdRtzRpAuIQKfLGLNKYFK3dL8Vb_EeJIlEA,46459
8
8
  nettracer3d/nettracer.py,sha256=d9Mhz-pHox5OfGGUSTrkTBJzCWCrbQvClTu2ANt-jUE,267943
9
- nettracer3d/nettracer_gui.py,sha256=VsZep2sgES10ZePVJDoUoFGgsg3wGRW-rAp1NMgQQwQ,628409
9
+ nettracer3d/nettracer_gui.py,sha256=2OuTeJ1xnarlZAYjW9R4hvBA4ZiW_Ce0NtfTamqpbWU,628156
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=aOO3PwZ2UeizEIFX7N8midwzTzbEDzgM2jQ7WTdbrUg,7067
17
17
  nettracer3d/segmenter_GPU.py,sha256=OUekQljLKPiC4d4hNZmqrRa9HSVQ6HcCnILiAfHE5Hg,78051
18
18
  nettracer3d/simple_network.py,sha256=dkG4jpc4zzdeuoaQobgGfL3PNo6N8dGKQ5hEEubFIvA,9947
19
19
  nettracer3d/smart_dilate.py,sha256=TvRUh6B4q4zIdCO1BWH-xgTdND5OUNmo99eyxG9oIAU,27145
20
- nettracer3d-0.9.7.dist-info/licenses/LICENSE,sha256=jnNT-yBeIAKAHpYthPvLeqCzJ6nSurgnKmloVnfsjCI,764
21
- nettracer3d-0.9.7.dist-info/METADATA,sha256=oJJZS4YPNc21NZd5sFUY6doxe5vpgzZwdEObUGIwswg,7067
22
- nettracer3d-0.9.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- nettracer3d-0.9.7.dist-info/entry_points.txt,sha256=Nx1rr_0QhJXDBHAQg2vcqCzLMKBzSHfwy3xwGkueVyc,53
24
- nettracer3d-0.9.7.dist-info/top_level.txt,sha256=zsYy9rZwirfCEOubolhee4TyzqBAL5gSUeFMzhFTX8c,12
25
- nettracer3d-0.9.7.dist-info/RECORD,,
20
+ nettracer3d-0.9.8.dist-info/licenses/LICENSE,sha256=jnNT-yBeIAKAHpYthPvLeqCzJ6nSurgnKmloVnfsjCI,764
21
+ nettracer3d-0.9.8.dist-info/METADATA,sha256=h-H4X4k6Yf1n9ZFgVbyYBLmXQDvcpgQncQt5QZfBh6k,6997
22
+ nettracer3d-0.9.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ nettracer3d-0.9.8.dist-info/entry_points.txt,sha256=Nx1rr_0QhJXDBHAQg2vcqCzLMKBzSHfwy3xwGkueVyc,53
24
+ nettracer3d-0.9.8.dist-info/top_level.txt,sha256=zsYy9rZwirfCEOubolhee4TyzqBAL5gSUeFMzhFTX8c,12
25
+ nettracer3d-0.9.8.dist-info/RECORD,,