pingmapper 5.2.0__tar.gz → 5.2.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.
Files changed (30) hide show
  1. {pingmapper-5.2.0 → pingmapper-5.2.1}/PKG-INFO +1 -1
  2. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/funcs_common.py +13 -0
  3. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/main_mapSubstrate.py +1 -2
  4. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/main_readFiles.py +1 -3
  5. pingmapper-5.2.1/pingmapper/version.py +1 -0
  6. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper.egg-info/PKG-INFO +1 -1
  7. pingmapper-5.2.0/pingmapper/version.py +0 -1
  8. {pingmapper-5.2.0 → pingmapper-5.2.1}/LICENSE +0 -0
  9. {pingmapper-5.2.0 → pingmapper-5.2.1}/README.md +0 -0
  10. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/__init__.py +0 -0
  11. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/__main__.py +0 -0
  12. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/class_mapSubstrateObj.py +0 -0
  13. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/class_portstarObj.py +0 -0
  14. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/class_rectObj.py +0 -0
  15. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/class_sonObj.py +0 -0
  16. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/class_sonObj_nadirgaptest.py +0 -0
  17. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/default_params.json +0 -0
  18. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/doWork.py +0 -0
  19. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/funcs_model.py +0 -0
  20. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/funcs_rectify.py +0 -0
  21. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/gui_main.py +0 -0
  22. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/main_rectify.py +0 -0
  23. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/test_PINGMapper.py +0 -0
  24. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper/test_time.py +0 -0
  25. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper.egg-info/SOURCES.txt +0 -0
  26. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper.egg-info/dependency_links.txt +0 -0
  27. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper.egg-info/requires.txt +0 -0
  28. {pingmapper-5.2.0 → pingmapper-5.2.1}/pingmapper.egg-info/top_level.txt +0 -0
  29. {pingmapper-5.2.0 → pingmapper-5.2.1}/setup.cfg +0 -0
  30. {pingmapper-5.2.0 → pingmapper-5.2.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingmapper
3
- Version: 5.2.0
3
+ Version: 5.2.1
4
4
  Summary: Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
5
5
  Author: Cameron Bodine, Daniel Buscombe
6
6
  Author-email: bodine.cs@gmail.email
@@ -316,6 +316,19 @@ def downloadSegmentationModelsv1_0(modelDir):
316
316
  return
317
317
 
318
318
 
319
+ # =========================================================
320
+ def get_segmentation_model_dir():
321
+ """
322
+ Return the default local directory for segmentation models.
323
+ Models are stored in the user's home folder to avoid deep environment paths
324
+ that can break zip extraction on Windows.
325
+ """
326
+ home_dir = os.path.expanduser('~')
327
+ return os.path.normpath(
328
+ os.path.join(home_dir, '.pingmapper', 'models', 'PINGMapperv2.0_SegmentationModelsv1.0')
329
+ )
330
+
331
+
319
332
  # # =========================================================
320
333
  # def saveDefaultParams(values):
321
334
 
@@ -124,8 +124,7 @@ def map_master_func(logfilename='',
124
124
  ############
125
125
  # Parameters
126
126
  # modelDir = os.path.join(SCRIPT_DIR, 'models', 'PINGMapperv2.0_SegmentationModelsv1.0')
127
- d = os.environ['CONDA_PREFIX']
128
- modelDir = os.path.join(d, 'pingmapper_config', 'models', 'PINGMapperv2.0_SegmentationModelsv1.0')
127
+ modelDir = get_segmentation_model_dir()
129
128
  flip = False #Flip port/star
130
129
  filter = int(nchunk*0.1) #Filters trackline coordinates for smoothing
131
130
  filterRange = filter #int(nchunk*0.05) #Filters range extent coordinates for smoothing
@@ -300,9 +300,7 @@ def read_master_func(logfilename='',
300
300
 
301
301
  #####################################
302
302
  # Download models if they don't exist
303
- d = os.environ['CONDA_PREFIX']
304
- modelDir = os.path.join(d, 'pingmapper_config', 'models', 'PINGMapperv2.0_SegmentationModelsv1.0')
305
- modelDir = os.path.normpath(modelDir)
303
+ modelDir = get_segmentation_model_dir()
306
304
  if not os.path.exists(modelDir):
307
305
  downloadSegmentationModelsv1_0(modelDir)
308
306
  getSegformer = True
@@ -0,0 +1 @@
1
+ __version__ = '5.2.1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingmapper
3
- Version: 5.2.0
3
+ Version: 5.2.1
4
4
  Summary: Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
5
5
  Author: Cameron Bodine, Daniel Buscombe
6
6
  Author-email: bodine.cs@gmail.email
@@ -1 +0,0 @@
1
- __version__ = '5.2.0'
File without changes
File without changes
File without changes
File without changes