Skip to content

Commit

Permalink
Merge pull request #884 from girder/source-name-consistency
Browse files Browse the repository at this point in the history
Be more consistent in source class name attribute assignment.
  • Loading branch information
manthey authored Jul 6, 2022
2 parents 959f50d + 8f7e889 commit d6888be
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion sources/deepzoom/large_image_source_deepzoom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DeepzoomFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'deepzoomfile'
name = 'deepzoom'
extensions = {
None: SourcePriority.LOW,
'dzi': SourcePriority.HIGH,
Expand Down
2 changes: 1 addition & 1 deletion sources/gdal/large_image_source_gdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class GDALFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'gdalfile'
name = 'gdal'
extensions = {
None: SourcePriority.MEDIUM,
'geotiff': SourcePriority.PREFERRED,
Expand Down
2 changes: 1 addition & 1 deletion sources/mapnik/large_image_source_mapnik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class MapnikFileTileSource(GDALFileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'mapnikfile'
name = 'mapnik'
extensions = {
None: SourcePriority.MEDIUM,
'nc': SourcePriority.PREFERRED, # netcdf
Expand Down
2 changes: 1 addition & 1 deletion sources/multi/large_image_source_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class MultiFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'multifile'
name = 'multi'
extensions = {
None: SourcePriority.MEDIUM,
'json': SourcePriority.PREFERRED,
Expand Down
2 changes: 1 addition & 1 deletion sources/nd2/large_image_source_nd2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ND2FileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'nd2file'
name = 'nd2'
extensions = {
None: SourcePriority.LOW,
'nd2': SourcePriority.PREFERRED,
Expand Down
2 changes: 1 addition & 1 deletion sources/ometiff/large_image_source_ometiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class OMETiffFileTileSource(TiffFileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'ometifffile'
name = 'ometiff'
extensions = {
None: SourcePriority.LOW,
'tif': SourcePriority.MEDIUM,
Expand Down
2 changes: 1 addition & 1 deletion sources/openjpeg/large_image_source_openjpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class OpenjpegFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'openjpegfile'
name = 'openjpeg'
extensions = {
None: SourcePriority.MEDIUM,
'jp2': SourcePriority.PREFERRED,
Expand Down
2 changes: 1 addition & 1 deletion sources/openslide/large_image_source_openslide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class OpenslideFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'openslidefile'
name = 'openslide'
extensions = {
None: SourcePriority.MEDIUM,
'bif': SourcePriority.LOW, # Ventana
Expand Down
2 changes: 1 addition & 1 deletion sources/pil/large_image_source_pil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sources/tiff/large_image_source_tiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'tifffile'
name = 'tiff'
extensions = {
None: SourcePriority.MEDIUM,
'tif': SourcePriority.HIGH,
Expand Down
2 changes: 1 addition & 1 deletion sources/vips/large_image_source_vips/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class VipsFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
"""

cacheName = 'tilesource'
name = 'vipsfile'
name = 'vips'
extensions = {
None: SourcePriority.LOW,
}
Expand Down

0 comments on commit d6888be

Please sign in to comment.