Skip to content

Commit 18e2b5e

Browse files
Merge pull request #266 from sci-visus/master
sync
2 parents 4fed105 + c651170 commit 18e2b5e

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Libs/swig/dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def pick_quality_from_size(size, dtype_str, q_max, base_elems_q1=2):
384384
# Assert(quality<=0)
385385
temp_qual=quality
386386
bit_length=len(self.getBitmask().toString())-1
387-
if temp_qual!=0:
387+
if size!=None:
388388
quality = pick_quality_from_size(size, self.getField().dtype.toString(), bit_length)
389389
temp_qual=quality
390390
if temp_qual<=0:
@@ -880,3 +880,4 @@ def read(self, logic_box=None, x=None, y=None, z=None, u=None,v=None, field_name
880880
elif type(z) is not tuple:
881881
data = data[0,:,:]
882882
return data
883+

Libs/swig/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
pass
88

99
# the following line can be replaced automatically by `NewTag` so be careful not to change its format
10-
PROJECT_VERSION="2.2.142"
10+
PROJECT_VERSION="2.2.146"
1111

1212
# I can override by env variable
1313
if "PROJECT_VERSION" in os.environ:
@@ -33,8 +33,8 @@ def DoSetup():
3333
shutil.rmtree('./dist', ignore_errors=True)
3434
shutil.rmtree('./.git', ignore_errors=True)
3535
shutil.rmtree('./tmp', ignore_errors=True)
36-
shutil.rmtree('./{}.egg-info'.format("OpenVisus"), ignore_errors=True)
37-
shutil.rmtree('./{}.egg-info'.format("OpenVisusNoGui"), ignore_errors=True)
36+
shutil.rmtree('./openvisus.egg-info'.format(""), ignore_errors=True)
37+
shutil.rmtree('./openvisusnogui.egg-info'.format(""), ignore_errors=True)
3838
files=[]
3939
for dirpath, __dirnames__, filenames in os.walk("."):
4040
for it in filenames:
@@ -46,11 +46,11 @@ def DoSetup():
4646

4747
# special name for no-gui
4848
# see https://github.com/opencv/opencv-python/blob/master/setup.py
49-
package_name="OpenVisus"
49+
package_name="openvisus"
5050

5151
# special case no gui
5252
if not os.path.isfile(os.path.join(this_dir,"QT_VERSION")):
53-
package_name="OpenVisusNoGui"
53+
package_name="openvisusnogui"
5454

5555
# dependency on numpy removed otherwise I have problems with conda which downgrade numpy for unknown reasons
5656
setuptools.setup(

0 commit comments

Comments
 (0)