wolfhece 2.1.32__py3-none-any.whl → 2.1.33__py3-none-any.whl
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.
- wolfhece/apps/version.py +1 -1
- wolfhece/opengl/py3d.py +19 -14
- wolfhece/shaders/quad_geom_shader.glsl +2 -1
- wolfhece/wolf_array.py +14 -5
- wolfhece/wolf_texture.py +1 -1
- {wolfhece-2.1.32.dist-info → wolfhece-2.1.33.dist-info}/METADATA +1 -1
- {wolfhece-2.1.32.dist-info → wolfhece-2.1.33.dist-info}/RECORD +10 -10
- {wolfhece-2.1.32.dist-info → wolfhece-2.1.33.dist-info}/WHEEL +0 -0
- {wolfhece-2.1.32.dist-info → wolfhece-2.1.33.dist-info}/entry_points.txt +0 -0
- {wolfhece-2.1.32.dist-info → wolfhece-2.1.33.dist-info}/top_level.txt +0 -0
wolfhece/apps/version.py
CHANGED
wolfhece/opengl/py3d.py
CHANGED
@@ -1220,22 +1220,25 @@ class CanvasOGL(glcanvas.GLCanvas):
|
|
1220
1220
|
|
1221
1221
|
x,y,idx,alpha = self.picker[locx, locy]
|
1222
1222
|
|
1223
|
-
|
1224
|
-
|
1225
|
-
r,g,b = self.colors[locx, locy]
|
1226
|
-
logging.info('color: {} - {} - {}'.format(r,g,b))
|
1223
|
+
# r,g,b = self.colors[locx, locy]
|
1224
|
+
# logging.info('color: {} - {} - {}'.format(r,g,b))
|
1227
1225
|
|
1228
1226
|
self.drawposition = not self.drawposition
|
1229
1227
|
|
1230
1228
|
curarray = self.arrays[list(self.arrays.keys())[int(idx)-1]]
|
1231
|
-
i = int(x
|
1232
|
-
j = int(y
|
1233
|
-
|
1234
|
-
|
1229
|
+
i = int(x)
|
1230
|
+
j = int(y)
|
1231
|
+
|
1232
|
+
if i > 0 and i < curarray.ztexture.shape[0] and j > 0 and j < curarray.ztexture.shape[1]:
|
1233
|
+
z = curarray.ztexture[i, j]
|
1235
1234
|
|
1236
|
-
|
1235
|
+
logging.info('coords: {} - {} - {}'.format(x,y,z))
|
1237
1236
|
|
1238
|
-
|
1237
|
+
# xyz = self.mvp_glm * vec4(x, y, z, 1.)
|
1238
|
+
|
1239
|
+
# self.textTodraw.append(Text_Image_Texture('{z:.3f}', self.parent, Text_Infos(Font_Priority.FONTSIZE, colour=(255,255,255,255)), None, x, y))
|
1240
|
+
|
1241
|
+
# self.Refresh()
|
1239
1242
|
|
1240
1243
|
def OnRightUp(self, event:wx.MouseEvent):
|
1241
1244
|
""" Called when the right mouse button is released."""
|
@@ -1702,10 +1705,10 @@ class CanvasOGL(glcanvas.GLCanvas):
|
|
1702
1705
|
|
1703
1706
|
glFinish()
|
1704
1707
|
|
1705
|
-
glBindTexture(GL_TEXTURE_2D, self._textureout)
|
1706
|
-
self.colors = np.zeros((self.height, self.width, 3), dtype=np.uint8)
|
1707
|
-
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, self.colors, np.uint8)
|
1708
|
-
self.colors = self.colors.swapaxes(0, 1)
|
1708
|
+
# glBindTexture(GL_TEXTURE_2D, self._textureout)
|
1709
|
+
# self.colors = np.zeros((self.height, self.width, 3), dtype=np.uint8)
|
1710
|
+
# glGetTexImage(GL_TEXTURE_2D, 0, GL_RGB, GL_UNSIGNED_BYTE, self.colors, np.uint8)
|
1711
|
+
# self.colors = self.colors.swapaxes(0, 1)
|
1709
1712
|
|
1710
1713
|
glBindTexture(GL_TEXTURE_2D, self._posout)
|
1711
1714
|
self.picker = np.zeros((self.height, self.width, 4), dtype=np.float32)
|
@@ -1754,6 +1757,8 @@ class Wolf_Viewer3D(wx.Frame):
|
|
1754
1757
|
|
1755
1758
|
super(Wolf_Viewer3D, self).__init__(parent, title=title, size=(640, 480))
|
1756
1759
|
self.canvas = CanvasOGL(self)
|
1760
|
+
self.sx = 1.
|
1761
|
+
self.sy = 1.
|
1757
1762
|
self.Show()
|
1758
1763
|
|
1759
1764
|
@property
|
@@ -56,7 +56,8 @@ float get_value(sampler2DRect tex, vec2 pos) {
|
|
56
56
|
float posx = (pos.x - origx) / dx;
|
57
57
|
float posy = (pos.y - origy) / dy;
|
58
58
|
|
59
|
-
vec2 texCoord = vec2(posx, posy);
|
59
|
+
//vec2 texCoord = vec2(posx, posy);
|
60
|
+
vec2 texCoord = vec2(posy, posx);
|
60
61
|
|
61
62
|
float zValue = texture(tex, texCoord).r * zScale;
|
62
63
|
return zValue;
|
wolfhece/wolf_array.py
CHANGED
@@ -46,9 +46,10 @@ try:
|
|
46
46
|
except:
|
47
47
|
msg=_('Error importing wolfogl.pyd')
|
48
48
|
msg+=_(' Python version : ' + sys.version)
|
49
|
-
msg+=_(' If your Python version is not 3.
|
50
|
-
msg+=_('
|
49
|
+
msg+=_(' If your Python version is not 3.10.x, you need to get an adapted library in wolfhece library path libs')
|
50
|
+
msg+=_(' Please contact us or launch *python compile_wcython.py build_ext --inplace* in :')
|
51
51
|
msg+=' ' + os.path.dirname(__file__)
|
52
|
+
msg+=_(' if you have the source files of the Cython modules.')
|
52
53
|
|
53
54
|
raise Exception(msg)
|
54
55
|
|
@@ -4437,7 +4438,10 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
4437
4438
|
return
|
4438
4439
|
|
4439
4440
|
self._quads = self.get_centers()
|
4440
|
-
ztext = np.require(self.array.data, dtype=np.float32, requirements=['
|
4441
|
+
ztext = np.require(self.array.data.copy(), dtype=np.float32, requirements=['C'])
|
4442
|
+
|
4443
|
+
assert ztext.flags.c_contiguous, _('ztext is not C-contiguous')
|
4444
|
+
|
4441
4445
|
ztext[self.array.mask] = self.array.min()
|
4442
4446
|
self._array3d = WolfArray_plot3D(self._quads,
|
4443
4447
|
self.dx, self.dy,
|
@@ -5018,11 +5022,16 @@ class WolfArray(Element_To_Draw, header_wolf):
|
|
5018
5022
|
try:
|
5019
5023
|
if geotr[5] <0.:
|
5020
5024
|
self.origy = geotr[3]+geotr[5]*self.nby
|
5021
|
-
|
5025
|
+
tmp_array = np.transpose(np.flipud(band.ReadAsArray()))
|
5022
5026
|
else:
|
5023
5027
|
self.origy = geotr[3]
|
5024
|
-
|
5028
|
+
tmp_array = np.transpose(band.ReadAsArray())
|
5029
|
+
|
5030
|
+
self.array = np.ma.asarray(tmp_array.copy())
|
5031
|
+
|
5032
|
+
assert self.array.iscontiguous(), _('Array is not contiguous')
|
5025
5033
|
|
5034
|
+
del tmp_array
|
5026
5035
|
|
5027
5036
|
if self.array.dtype == np.float64:
|
5028
5037
|
self.wolftype = WOLF_ARRAY_FULL_DOUBLE
|
wolfhece/wolf_texture.py
CHANGED
@@ -402,7 +402,7 @@ class Text_Image_Texture(genericImagetexture):
|
|
402
402
|
self.oldview = [self.xmin, self.xmax, self.ymin, self.ymax, self.width, self.height]
|
403
403
|
|
404
404
|
def findscale(self):
|
405
|
-
|
405
|
+
|
406
406
|
self.proptext.setscale(self.mapviewer.sx, self.mapviewer.sy)
|
407
407
|
|
408
408
|
def load(self, imageFile=""):
|
@@ -48,9 +48,9 @@ wolfhece/rain_SPWMI.py,sha256=YqsF-yFro3y_a6MfVRFfr-Rxi7NR1gl_i8VX7scmzes,13548
|
|
48
48
|
wolfhece/test_Results2DGPU.py,sha256=NOJ_hFXrcLSQXS1dtsqXRQltqIZtDSHMz_EgAJ2_FHU,307
|
49
49
|
wolfhece/textpillow.py,sha256=zEfLrKhfCDyMaVuQOUjHqz6MGKeQ4aewMxOsWi5-wKI,13832
|
50
50
|
wolfhece/tools_mpl.py,sha256=q8Yc4aukPPiUcEzREvZRM_em67XqXaahdoaNt0DETfE,266
|
51
|
-
wolfhece/wolf_array.py,sha256=
|
51
|
+
wolfhece/wolf_array.py,sha256=u-mgO65i-6Cv7ZyTwVehHeRV-j0AApeNa-UwSR82eEE,355967
|
52
52
|
wolfhece/wolf_hist.py,sha256=JpRXvzJLUP-RkSkvth3DQWglgTMFI2ZEUDb4RYOfeeI,3284
|
53
|
-
wolfhece/wolf_texture.py,sha256=
|
53
|
+
wolfhece/wolf_texture.py,sha256=KAzrA86Sl2HSkATXKDG8AEL0rEL560XTAl_HZw7VBos,16278
|
54
54
|
wolfhece/wolf_tiles.py,sha256=F2JsJHdAP8fIffNJdG_J26bonCIRtIwMmxKFqdSCRDA,10088
|
55
55
|
wolfhece/wolf_vrt.py,sha256=un5CKzAUmzSsjLXK7YLnQEWz8FLoafXJs8oqUvS_-h0,10271
|
56
56
|
wolfhece/wolf_zi_db.py,sha256=Ok0MxQYZMMLRJN1QY-HSplLhUzzb6gkXgBQ3ihhLQHk,12669
|
@@ -72,7 +72,7 @@ wolfhece/apps/check_install.py,sha256=jrKR-njqnpIh6ZJqvP6KbDUPVCfwTNQj4glQhcyzs9
|
|
72
72
|
wolfhece/apps/curvedigitizer.py,sha256=avWERHuVxPnJBOD_ibczwW_XG4vAenqWS8W1zjhBox8,4898
|
73
73
|
wolfhece/apps/isocurrent.py,sha256=4XnNWPa8mYUK7V4zdDRFrHFIXNG2AN2og3TqWKKcqjY,3811
|
74
74
|
wolfhece/apps/splashscreen.py,sha256=EjEjZGuWV-8ZfHhnFH4XLrrtB-YpzPDVhFzRrjgFUzI,2624
|
75
|
-
wolfhece/apps/version.py,sha256=
|
75
|
+
wolfhece/apps/version.py,sha256=T0LmEbb20s-W-mCYSeft4TW97CGnPrEnRHM-RvHocZM,388
|
76
76
|
wolfhece/apps/wolf.py,sha256=gqfm-ZaUJqNsfCzmdtemSeqLw-GVdSVix-evg5WArJI,293
|
77
77
|
wolfhece/apps/wolf2D.py,sha256=gWD9ee2-1pw_nUxjgRaJMuSe4kUT-RWhOeoTt_Lh1mM,267
|
78
78
|
wolfhece/apps/wolf_logo.bmp,sha256=ruJ4MA51CpGO_AYUp_dB4SWKHelvhOvd7Q8NrVOjDJk,3126
|
@@ -241,7 +241,7 @@ wolfhece/models/waterdepths.pal,sha256=8rcQfuZOeLKzYv5sARPkhpvZYc1OToj3ZukcbuRUg
|
|
241
241
|
wolfhece/models/white_black.pal,sha256=BKjVN1kuk1OtJB9S3uM5fxteWbggI3Pb8p9WdDptT4c,51
|
242
242
|
wolfhece/opengl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
243
243
|
wolfhece/opengl/gl_utils.py,sha256=-eH2WAWdLFr6mzEwN8XdfJfM8U2rgvRryCAqjH-zeys,66136
|
244
|
-
wolfhece/opengl/py3d.py,sha256=
|
244
|
+
wolfhece/opengl/py3d.py,sha256=oSxkGW3om3jHAy3C-4XQhpWicvkRBIHk26iiKsiZxR4,66623
|
245
245
|
wolfhece/opengl/tile_packer.py,sha256=0B1-Q-Jm-lKIXrw2lFbrrVL9gbtbl50jeWl67ymYbsc,15841
|
246
246
|
wolfhece/pythonfortran/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
247
247
|
wolfhece/pythonfortran/example_makendarray.py,sha256=FNPp6lsU9Mv0O8VLN3JHWk5Qn1zZxUSCPeDyUI1-x48,2718
|
@@ -263,7 +263,7 @@ wolfhece/scenario/update_void.py,sha256=MmiDiwWHvuk0mpXOlMeB2ImY-d1Wi3Wfmg9hrDTA
|
|
263
263
|
wolfhece/shaders/fragment_shader_texture.glsl,sha256=w6h8d5mJqFaGbao0LGmjRcFFdcEQ3ICIl9JpuT71K5k,177
|
264
264
|
wolfhece/shaders/geom_grid.glsl,sha256=7eAkutCrwoeJpIdF69Ar7K18YyClvVG8ArJJARcmC-Q,742
|
265
265
|
wolfhece/shaders/quad_frag_shader.glsl,sha256=GYGg9q4vFXiMuLK-pxSLz7crAE3dvlzJ7-e7PMfwSq0,1227
|
266
|
-
wolfhece/shaders/quad_geom_shader.glsl,sha256=
|
266
|
+
wolfhece/shaders/quad_geom_shader.glsl,sha256=rgj86_Vwq4_mFhttTQhykcvHKYwxPfjGnPRZwxOuhRc,9324
|
267
267
|
wolfhece/shaders/quadpos_frag_shader.glsl,sha256=0wwkMAg34VX2UrUsSp5lBcJ7x1cT03jZ6f31E2d43yo,152
|
268
268
|
wolfhece/shaders/quadpos_geom_shader.glsl,sha256=3yoG50qKvNX1Gga8vNOX1OfVWTnXmbur--OmfQaqvNo,2272
|
269
269
|
wolfhece/shaders/simple_fragment_shader.glsl,sha256=3CpRsdReYwHC-rM5YJLZJFHbUbfA-4jxiGX-AS34Gpo,173
|
@@ -280,8 +280,8 @@ wolfhece/ui/wolf_multiselection_collapsiblepane.py,sha256=yGbU_JsF56jsmms0gh7mxa
|
|
280
280
|
wolfhece/ui/wolf_times_selection_comparison_models.py,sha256=wCxGRnE3kzEkWlWA6-3X8ADOFux_B0a5QWJ2GnXTgJw,4709
|
281
281
|
wolfhece/wintab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
282
282
|
wolfhece/wintab/wintab.py,sha256=8A-JNONV6ujgsgG3lM5Uw-pVgglPATwKs86oBzzljoc,7179
|
283
|
-
wolfhece-2.1.
|
284
|
-
wolfhece-2.1.
|
285
|
-
wolfhece-2.1.
|
286
|
-
wolfhece-2.1.
|
287
|
-
wolfhece-2.1.
|
283
|
+
wolfhece-2.1.33.dist-info/METADATA,sha256=UyiiBEQYpkHue3QRTDuWbtuZBkMf5iS12_pM2oQe85E,2356
|
284
|
+
wolfhece-2.1.33.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
285
|
+
wolfhece-2.1.33.dist-info/entry_points.txt,sha256=MAG6NrF64fcxiVNb2g1JPYPGcn9C0HWtqqNurB83oX0,330
|
286
|
+
wolfhece-2.1.33.dist-info/top_level.txt,sha256=EfqZXMVCn7eILUzx9xsEu2oBbSo9liWPFWjIHik0iCI,9
|
287
|
+
wolfhece-2.1.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|