From 38906e59e772a1175d197ca32aac738e127edccb Mon Sep 17 00:00:00 2001 From: Giorgio Scorzelli Date: Thu, 9 Oct 2025 06:57:54 +0200 Subject: [PATCH 1/6] New tag (2.2.143) --- Libs/swig/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/swig/setup.py b/Libs/swig/setup.py index 96ec5c0f..072ba335 100644 --- a/Libs/swig/setup.py +++ b/Libs/swig/setup.py @@ -7,7 +7,7 @@ pass # the following line can be replaced automatically by `NewTag` so be careful not to change its format -PROJECT_VERSION="2.2.142" +PROJECT_VERSION="2.2.143" # I can override by env variable if "PROJECT_VERSION" in os.environ: From 4af935dc2ce5aadbe9daa7a7b3f9f51938e211be Mon Sep 17 00:00:00 2001 From: Giorgio Scorzelli Date: Thu, 9 Oct 2025 07:22:51 +0200 Subject: [PATCH 2/6] New tag (2.2.144) --- Libs/swig/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/swig/setup.py b/Libs/swig/setup.py index 072ba335..63be87d5 100644 --- a/Libs/swig/setup.py +++ b/Libs/swig/setup.py @@ -7,7 +7,7 @@ pass # the following line can be replaced automatically by `NewTag` so be careful not to change its format -PROJECT_VERSION="2.2.143" +PROJECT_VERSION="2.2.144" # I can override by env variable if "PROJECT_VERSION" in os.environ: From 73b6b6fbb68a71239e9d53a42cae1dd8eaa0b7f2 Mon Sep 17 00:00:00 2001 From: Giorgio Scorzelli Date: Thu, 9 Oct 2025 08:48:43 +0200 Subject: [PATCH 3/6] Fixing lowercase name for pypi --- Libs/swig/setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libs/swig/setup.py b/Libs/swig/setup.py index 63be87d5..0ba1db83 100644 --- a/Libs/swig/setup.py +++ b/Libs/swig/setup.py @@ -33,8 +33,8 @@ def DoSetup(): shutil.rmtree('./dist', ignore_errors=True) shutil.rmtree('./.git', ignore_errors=True) shutil.rmtree('./tmp', ignore_errors=True) - shutil.rmtree('./{}.egg-info'.format("OpenVisus"), ignore_errors=True) - shutil.rmtree('./{}.egg-info'.format("OpenVisusNoGui"), ignore_errors=True) + shutil.rmtree('./openvisus.egg-info'.format(""), ignore_errors=True) + shutil.rmtree('./openvisusnogui.egg-info'.format(""), ignore_errors=True) files=[] for dirpath, __dirnames__, filenames in os.walk("."): for it in filenames: @@ -46,11 +46,11 @@ def DoSetup(): # special name for no-gui # see https://github.com/opencv/opencv-python/blob/master/setup.py - package_name="OpenVisus" + package_name="openvisus" # special case no gui if not os.path.isfile(os.path.join(this_dir,"QT_VERSION")): - package_name="OpenVisusNoGui" + package_name="openvisusnogui" # dependency on numpy removed otherwise I have problems with conda which downgrade numpy for unknown reasons setuptools.setup( From c4c2ccbb86f5e51c35e3b596697a79f6e6726e4f Mon Sep 17 00:00:00 2001 From: Giorgio Scorzelli Date: Thu, 9 Oct 2025 08:48:57 +0200 Subject: [PATCH 4/6] New tag (2.2.145) --- Libs/swig/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/swig/setup.py b/Libs/swig/setup.py index 0ba1db83..68c61ad4 100644 --- a/Libs/swig/setup.py +++ b/Libs/swig/setup.py @@ -7,7 +7,7 @@ pass # the following line can be replaced automatically by `NewTag` so be careful not to change its format -PROJECT_VERSION="2.2.144" +PROJECT_VERSION="2.2.145" # I can override by env variable if "PROJECT_VERSION" in os.environ: From 99d85c5aaa1b96c3cc70879498d42e6cef930c83 Mon Sep 17 00:00:00 2001 From: Giorgio Scorzelli Date: Thu, 9 Oct 2025 08:50:25 +0200 Subject: [PATCH 5/6] New tag (2.2.146) --- Libs/swig/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libs/swig/setup.py b/Libs/swig/setup.py index 68c61ad4..7dced713 100644 --- a/Libs/swig/setup.py +++ b/Libs/swig/setup.py @@ -7,7 +7,7 @@ pass # the following line can be replaced automatically by `NewTag` so be careful not to change its format -PROJECT_VERSION="2.2.145" +PROJECT_VERSION="2.2.146" # I can override by env variable if "PROJECT_VERSION" in os.environ: From c65117067f4b28057c1981a94a30785e60f56238 Mon Sep 17 00:00:00 2001 From: Aashish Panta <55815492+aashishpanta0@users.noreply.github.com> Date: Thu, 9 Oct 2025 01:06:58 -0600 Subject: [PATCH 6/6] fix bug with quality param --- Libs/swig/dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libs/swig/dataset.py b/Libs/swig/dataset.py index 7a98c133..f16039ce 100644 --- a/Libs/swig/dataset.py +++ b/Libs/swig/dataset.py @@ -384,7 +384,7 @@ def pick_quality_from_size(size, dtype_str, q_max, base_elems_q1=2): # Assert(quality<=0) temp_qual=quality bit_length=len(self.getBitmask().toString())-1 - if temp_qual!=0: + if size!=None: quality = pick_quality_from_size(size, self.getField().dtype.toString(), bit_length) temp_qual=quality 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 elif type(z) is not tuple: data = data[0,:,:] return data +