bmtool 0.3.8__py3-none-any.whl → 0.3.9__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.
bmtool/bmplot.py CHANGED
@@ -483,13 +483,17 @@ def cell_rotation_3d(**kwargs):
483
483
  uvw = pd.DataFrame([U,V,W]).T
484
484
  init_vector = init_vector.split(',')
485
485
  init_vector = np.repeat([init_vector],len(X),axis=0)
486
+
486
487
  # To get the final cell orientation after rotation,
487
488
  # you need to use function Rotaion.apply(init_vec),
488
489
  # where init_vec is a vector of the initial orientation of a cell
489
- rots = R.from_euler('xyz', uvw).apply(init_vector.astype(float))
490
- rots = R.from_euler('xyz', pd.DataFrame([rots[:,0],rots[:,1],rots[:,2]]).T).as_rotvec().T
490
+ #rots = R.from_euler('xyz', uvw).apply(init_vector.astype(float))
491
+ #rots = R.from_euler('xyz', pd.DataFrame([rots[:,0],rots[:,1],rots[:,2]]).T).as_rotvec().T
491
492
 
493
+ rots = R.from_euler('zyx', uvw).apply(init_vector.astype(float)).T
492
494
  h = ax.quiver(X, Y, Z, rots[0],rots[1],rots[2],color=color,label=group_name, arrow_length_ratio = arrow_length_ratio, length=quiver_length)
495
+
496
+ #h = ax.quiver(X, Y, Z, rots[0],rots[1],rots[2],color=color,label=group_name, arrow_length_ratio = arrow_length_ratio, length=quiver_length)
493
497
  ax.scatter(X,Y,Z,color=color,label=group_name)
494
498
  handles.append(h)
495
499
  if not handles:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bmtool
3
- Version: 0.3.8
3
+ Version: 0.3.9
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/tjbanks/bmtool
6
6
  Download-URL:
@@ -1,6 +1,6 @@
1
1
  bmtool/__init__.py,sha256=FrcSFNlD5lhNIWDYrX0kZiBYS_lDSK5rBkSXMuDoEWg,141
2
2
  bmtool/__main__.py,sha256=61s3Dd4-brkJt_amGpGapdIoV-3QNPbjRvIVQHlfZZI,676
3
- bmtool/bmplot.py,sha256=_TU3cVTM5sFygZeZ8_4oiuYNypfACEnH3fn--MiNmQU,29471
3
+ bmtool/bmplot.py,sha256=pf7TKzjHAEIqRCQiEdzJho3IXCBhr2-VDopRIP54EzQ,29723
4
4
  bmtool/manage.py,sha256=ALYltiBaljm1pBtz-0ifvrkrzlPNDiIu7Lr5q3-_oFU,688
5
5
  bmtool/plot.py,sha256=C1novNnisc_7IuQbY4p4ZbYcgj11UttUIqnHtpqHoJs,25374
6
6
  bmtool/plot_commands.py,sha256=U3up0PLZN8drcjyLsbrhsA4mVh9iXX-5dt0NsXgfjxI,12528
@@ -30,9 +30,9 @@ bmtools/cli/plugins/util/commands.py,sha256=7BRj6PEm5XCQaYk4EhIGvqXNcsCbykw3I9l9
30
30
  bmtools/cli/plugins/util/util.py,sha256=ir7omOJgAMO3RxIKI39ZpIzI6to9LqToI6Dck4wkLyw,50126
31
31
  bmtools/cli/plugins/util/neuron/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  bmtools/cli/plugins/util/neuron/celltuner.py,sha256=d3WTbEq4WW6koHc5TdiUGGm2JWJU3LuPeiAFtUiaMgM,89264
33
- bmtool-0.3.8.dist-info/LICENSE,sha256=eOgqgvoeIS9FFSJjHbxCyfHyXdHUhk2YHLqQlWWzdXk,1089
34
- bmtool-0.3.8.dist-info/METADATA,sha256=zbdjrysnGgg3p7Rpcwc_mYX42RKsuocuORBO4UleHP8,17987
35
- bmtool-0.3.8.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
36
- bmtool-0.3.8.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
37
- bmtool-0.3.8.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
38
- bmtool-0.3.8.dist-info/RECORD,,
33
+ bmtool-0.3.9.dist-info/LICENSE,sha256=eOgqgvoeIS9FFSJjHbxCyfHyXdHUhk2YHLqQlWWzdXk,1089
34
+ bmtool-0.3.9.dist-info/METADATA,sha256=c5iCJrjQ193_4LcJ1maVtBkBz3hF8y2GwmMlzN4CGIc,17987
35
+ bmtool-0.3.9.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
36
+ bmtool-0.3.9.dist-info/entry_points.txt,sha256=0-BHZ6nUnh0twWw9SXNTiRmKjDnb1VO2DfG_-oprhAc,45
37
+ bmtool-0.3.9.dist-info/top_level.txt,sha256=gpd2Sj-L9tWbuJEd5E8C8S8XkNm5yUE76klUYcM-eWM,7
38
+ bmtool-0.3.9.dist-info/RECORD,,
File without changes