From 8f7e889e56cba6f6339d4e85659921e0626612c2 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Wed, 6 Jul 2022 09:09:16 -0400 Subject: [PATCH] Be more consistent in source class name attribute assignment. --- sources/deepzoom/large_image_source_deepzoom/__init__.py | 2 +- sources/gdal/large_image_source_gdal/__init__.py | 2 +- sources/mapnik/large_image_source_mapnik/__init__.py | 2 +- sources/multi/large_image_source_multi/__init__.py | 2 +- sources/nd2/large_image_source_nd2/__init__.py | 2 +- sources/ometiff/large_image_source_ometiff/__init__.py | 2 +- sources/openjpeg/large_image_source_openjpeg/__init__.py | 2 +- sources/openslide/large_image_source_openslide/__init__.py | 2 +- sources/pil/large_image_source_pil/__init__.py | 2 +- sources/tiff/large_image_source_tiff/__init__.py | 2 +- sources/vips/large_image_source_vips/__init__.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sources/deepzoom/large_image_source_deepzoom/__init__.py b/sources/deepzoom/large_image_source_deepzoom/__init__.py index 5d96748e8..5bee17a85 100644 --- a/sources/deepzoom/large_image_source_deepzoom/__init__.py +++ b/sources/deepzoom/large_image_source_deepzoom/__init__.py @@ -20,7 +20,7 @@ class DeepzoomFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'deepzoomfile' + name = 'deepzoom' extensions = { None: SourcePriority.LOW, 'dzi': SourcePriority.HIGH, diff --git a/sources/gdal/large_image_source_gdal/__init__.py b/sources/gdal/large_image_source_gdal/__init__.py index c7618720d..c3aa721b0 100644 --- a/sources/gdal/large_image_source_gdal/__init__.py +++ b/sources/gdal/large_image_source_gdal/__init__.py @@ -98,7 +98,7 @@ class GDALFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'gdalfile' + name = 'gdal' extensions = { None: SourcePriority.MEDIUM, 'geotiff': SourcePriority.PREFERRED, diff --git a/sources/mapnik/large_image_source_mapnik/__init__.py b/sources/mapnik/large_image_source_mapnik/__init__.py index 42f90dfe9..5a382d672 100644 --- a/sources/mapnik/large_image_source_mapnik/__init__.py +++ b/sources/mapnik/large_image_source_mapnik/__init__.py @@ -54,7 +54,7 @@ class MapnikFileTileSource(GDALFileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'mapnikfile' + name = 'mapnik' extensions = { None: SourcePriority.MEDIUM, 'nc': SourcePriority.PREFERRED, # netcdf diff --git a/sources/multi/large_image_source_multi/__init__.py b/sources/multi/large_image_source_multi/__init__.py index 92f133426..391f1cc1e 100644 --- a/sources/multi/large_image_source_multi/__init__.py +++ b/sources/multi/large_image_source_multi/__init__.py @@ -322,7 +322,7 @@ class MultiFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'multifile' + name = 'multi' extensions = { None: SourcePriority.MEDIUM, 'json': SourcePriority.PREFERRED, diff --git a/sources/nd2/large_image_source_nd2/__init__.py b/sources/nd2/large_image_source_nd2/__init__.py index 2ec505b05..44a35130e 100644 --- a/sources/nd2/large_image_source_nd2/__init__.py +++ b/sources/nd2/large_image_source_nd2/__init__.py @@ -104,7 +104,7 @@ class ND2FileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'nd2file' + name = 'nd2' extensions = { None: SourcePriority.LOW, 'nd2': SourcePriority.PREFERRED, diff --git a/sources/ometiff/large_image_source_ometiff/__init__.py b/sources/ometiff/large_image_source_ometiff/__init__.py index 83c4e8bdc..111e6e563 100644 --- a/sources/ometiff/large_image_source_ometiff/__init__.py +++ b/sources/ometiff/large_image_source_ometiff/__init__.py @@ -76,7 +76,7 @@ class OMETiffFileTileSource(TiffFileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'ometifffile' + name = 'ometiff' extensions = { None: SourcePriority.LOW, 'tif': SourcePriority.MEDIUM, diff --git a/sources/openjpeg/large_image_source_openjpeg/__init__.py b/sources/openjpeg/large_image_source_openjpeg/__init__.py index 1b2878b33..d04efcdfd 100644 --- a/sources/openjpeg/large_image_source_openjpeg/__init__.py +++ b/sources/openjpeg/large_image_source_openjpeg/__init__.py @@ -55,7 +55,7 @@ class OpenjpegFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'openjpegfile' + name = 'openjpeg' extensions = { None: SourcePriority.MEDIUM, 'jp2': SourcePriority.PREFERRED, diff --git a/sources/openslide/large_image_source_openslide/__init__.py b/sources/openslide/large_image_source_openslide/__init__.py index 1e5b77698..d89ceb40f 100644 --- a/sources/openslide/large_image_source_openslide/__init__.py +++ b/sources/openslide/large_image_source_openslide/__init__.py @@ -52,7 +52,7 @@ class OpenslideFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'openslidefile' + name = 'openslide' extensions = { None: SourcePriority.MEDIUM, 'bif': SourcePriority.LOW, # Ventana diff --git a/sources/pil/large_image_source_pil/__init__.py b/sources/pil/large_image_source_pil/__init__.py index 004c62d5f..970e1e309 100644 --- a/sources/pil/large_image_source_pil/__init__.py +++ b/sources/pil/large_image_source_pil/__init__.py @@ -72,7 +72,7 @@ class PILFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'pilfile' + name = 'pil' # Although PIL is always a fallback source, prefer it to other fallback # sources diff --git a/sources/tiff/large_image_source_tiff/__init__.py b/sources/tiff/large_image_source_tiff/__init__.py index d9ad6c9ef..22fe68376 100644 --- a/sources/tiff/large_image_source_tiff/__init__.py +++ b/sources/tiff/large_image_source_tiff/__init__.py @@ -54,7 +54,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'tifffile' + name = 'tiff' extensions = { None: SourcePriority.MEDIUM, 'tif': SourcePriority.HIGH, diff --git a/sources/vips/large_image_source_vips/__init__.py b/sources/vips/large_image_source_vips/__init__.py index d3a24d046..59fd77090 100644 --- a/sources/vips/large_image_source_vips/__init__.py +++ b/sources/vips/large_image_source_vips/__init__.py @@ -30,7 +30,7 @@ class VipsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass): """ cacheName = 'tilesource' - name = 'vipsfile' + name = 'vips' extensions = { None: SourcePriority.LOW, }