amaazetools 0.2.5__tar.gz → 0.2.6__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.
Files changed (26) hide show
  1. {amaazetools-0.2.5/amaazetools.egg-info → amaazetools-0.2.6}/PKG-INFO +1 -1
  2. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/dicom.py +10 -2
  3. {amaazetools-0.2.5 → amaazetools-0.2.6/amaazetools.egg-info}/PKG-INFO +1 -1
  4. {amaazetools-0.2.5 → amaazetools-0.2.6}/pyproject.toml +1 -1
  5. {amaazetools-0.2.5 → amaazetools-0.2.6}/LICENSE +0 -0
  6. {amaazetools-0.2.5 → amaazetools-0.2.6}/MANIFEST.in +0 -0
  7. {amaazetools-0.2.5 → amaazetools-0.2.6}/README.md +0 -0
  8. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/__init__.py +0 -0
  9. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/edge_detection.py +0 -0
  10. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/mesh_segmentation.py +0 -0
  11. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/svi.py +0 -0
  12. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools/trimesh.py +0 -0
  13. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/SOURCES.txt +0 -0
  14. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/dependency_links.txt +0 -0
  15. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/requires.txt +0 -0
  16. {amaazetools-0.2.5 → amaazetools-0.2.6}/amaazetools.egg-info/top_level.txt +0 -0
  17. {amaazetools-0.2.5 → amaazetools-0.2.6}/setup.cfg +0 -0
  18. {amaazetools-0.2.5 → amaazetools-0.2.6}/setup.py +0 -0
  19. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/cextensions.c +0 -0
  20. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/memory_allocation.c +0 -0
  21. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/memory_allocation.h +0 -0
  22. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/mesh_operations.c +0 -0
  23. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/mesh_operations.h +0 -0
  24. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/svi_computations.c +0 -0
  25. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/svi_computations.h +0 -0
  26. {amaazetools-0.2.5 → amaazetools-0.2.6}/src/vector_operations.h +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amaazetools
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Python package for mesh processing tools developed by AMAAZE
5
5
  Author-email: Jeff Calder <jwcalder@umn.edu>
6
6
  License: MIT
@@ -1,5 +1,6 @@
1
1
  #Utilities for processing dicom volumes
2
2
  import pandas as pd, numpy as np
3
+ import datetime
3
4
  import matplotlib.pyplot as plt
4
5
  import pydicom as dicom
5
6
  import scipy.ndimage as ndimage
@@ -382,7 +383,11 @@ def surface_bones(directory, iso=2500, write_gif=False, mirror=False):
382
383
  mesh.flip_normals()
383
384
 
384
385
  #Write to ply file
385
- mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
386
+ #mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
387
+ date_time = datetime.now().strftime("%Y%m%d_%H%M")
388
+ basename = os.path.splitext(filename)[0] # If we are ever concerned about varying filing extension lengths
389
+ mesh_filename = os.path.join(directory, basename + '_iso%d' % iso_level + '_original_' + date_time)
390
+
386
391
  print('Saving mesh to '+mesh_filename+'...')
387
392
  mesh.to_ply(mesh_filename+'.ply')
388
393
 
@@ -898,7 +903,10 @@ def surfacing_subproc(filename,directory,iso_level,write_gif=False,mirror=False)
898
903
  mesh.flip_normals()
899
904
 
900
905
  #Write to ply file
901
- mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level)
906
+ #mesh_filename = os.path.join(directory,filename[:-4]+'_iso%d'%iso_level) #This is the old one
907
+ date_time = datetime.now().strftime("%Y%m%d_%H%M")
908
+ basename = os.path.splitext(filename)[0] # If we are ever concerned about varying filing extension lengths
909
+ mesh_filename = os.path.join(directory, basename + '_iso%d' % iso_level + '_original_' + date_time)
902
910
  print('Saving mesh to '+mesh_filename+'...')
903
911
  mesh.to_ply(mesh_filename+'.ply')
904
912
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amaazetools
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Summary: Python package for mesh processing tools developed by AMAAZE
5
5
  Author-email: Jeff Calder <jwcalder@umn.edu>
6
6
  License: MIT
@@ -9,7 +9,7 @@ packages = ['amaazetools']
9
9
 
10
10
  [project]
11
11
  name = "amaazetools"
12
- version = "0.2.5"
12
+ version = "0.2.6"
13
13
  authors = [
14
14
  { name="Jeff Calder", email="jwcalder@umn.edu" },
15
15
  ]
File without changes
File without changes
File without changes
File without changes
File without changes