File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,15 @@ def package_versions():
7373 PIL = pil_version ,
7474 Pillow = pillow_version )
7575
76- def check_proj_inv_hammer (segfault_protection_off = False ):
76+ def check_proj_inv_hammer (segfault_protection = True ):
7777 """
7878 Check if the inverse of the hammer projection is supported by installed
7979 version of PROJ4.
8080
81- segfault_protection_off=True - Turns off the protection from a segfault.
82- BE CAREFUL setting this to True.
81+ segfault_protection True (default) - test while protecting from segfault
82+ False - testing that might cause Python to segfault.
83+ BE CAREFUL setting this flag to False!
84+ If it segfaults, this the inverse hammer is not supported.
8385
8486 returns True - inverse hammer is supported
8587 False - inverse hammer is not supported
@@ -91,9 +93,8 @@ def check_proj_inv_hammer(segfault_protection_off=False):
9193 if LooseVersion (proj4_version ()) > LooseVersion ('4.9.2' ):
9294 return True
9395
94- # pyproj_version_tup = version_str_to_tuple(pyproj_version)
9596 if LooseVersion (pyproj_version ) > LooseVersion ('1.9.5.1' ) \
96- or segfault_protection_off is True :
97+ or segfault_protection is False :
9798 from pyproj import Proj
9899 hammer = Proj (proj = 'hammer' )
99100
You can’t perform that action at this time.
0 commit comments