viewtif 0.2.2__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: viewtif
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Lightweight GeoTIFF, NetCDF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with optional shapefile overlay. NetCDF and cartopy support available via pip install viewtif[netcdf].
5
5
  Project-URL: Homepage, https://github.com/nkeikon/tifviewer
6
6
  Project-URL: Source, https://github.com/nkeikon/tifviewer
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "viewtif"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "Lightweight GeoTIFF, NetCDF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with optional shapefile overlay. NetCDF and cartopy support available via pip install viewtif[netcdf]."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -210,6 +210,9 @@ class TiffViewer(QMainWindow):
210
210
  self.tif_path = self.tif_path or (os.path.commonprefix([red, green, blue]) or red)
211
211
 
212
212
  elif tif_path:
213
+ # --- Warn for large files before loading ---
214
+ warn_if_large(tif_path, scale=self._scale_arg)
215
+
213
216
  # --------------------- Detect NetCDF --------------------- #
214
217
  if tif_path and tif_path.lower().endswith((".nc", ".netcdf")):
215
218
  try:
@@ -377,8 +380,8 @@ class TiffViewer(QMainWindow):
377
380
  print(f"[WARN] Could not inspect FileGDB: {e}")
378
381
  sys.exit(0)
379
382
 
380
- # --- Universal size check before loading ---
381
- warn_if_large(tif_path, scale=self._scale_arg)
383
+ # # --- Universal size check before loading ---
384
+ # warn_if_large(tif_path, scale=self._scale_arg)
382
385
 
383
386
  if False: # Placeholder for previous if condition
384
387
  pass
File without changes
File without changes
File without changes