Skip to content

Commit c87559e

Browse files
authored
Merge pull request #2082 from girder/typos
Fix some typos in schema descriptions
2 parents b8a0a25 + 509e1fd commit c87559e

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- In Girder, by default include Updated in lists; do not show controls in dialog lists ([#2078](../../pull/2078))
88

9+
### Bug Fixes
10+
11+
- Fixed a typo in the word "description" in the multi-source and annotation schemas ([#2082](../../pull/2082))
12+
913
## 1.34.2
1014

1115
### Improvements

girder_annotation/girder_large_image_annotation/models/annotation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ class AnnotationSchema:
278278
'fillColor': colorSchema,
279279
'pattern': patternSchema,
280280
},
281-
'decription': 'normal is the positive z-axis unless otherwise '
282-
'specified',
281+
'description': 'normal is the positive z-axis unless otherwise '
282+
'specified',
283283
'required': ['type', 'center', 'width', 'height'],
284284
})
285285

@@ -498,7 +498,7 @@ class AnnotationSchema:
498498
'description': {
499499
'type': 'string',
500500
'description': 'A more detailed explanation of the '
501-
'meaining of this category.',
501+
'meaning of this category.',
502502
},
503503
},
504504
'required': ['fillColor'],

large_image/tilesource/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ def getPaletteColors(value: str | list[str | float | tuple[float, ...]]) -> np.n
699699
else:
700700
cmap = (mpl.colormaps.get_cmap(str(value)) if hasattr(getattr(
701701
mpl, 'colormaps', None), 'get_cmap') else
702-
mpl.cm.get_cmap(str(value)))
702+
mpl.cm.get_cmap(str(value))) # type: ignore
703703
palette = _mpl_lsc_to_palette(cmap) # type: ignore
704704
if palette is None:
705705
raise ValueError('cannot be used as a color palette.: %r.' % value)

sources/multi/large_image_source_multi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _lazyImportSkimageTransform():
6767
'name': {'type': 'string'},
6868
'description': {'type': 'string'},
6969
'path': {
70-
'decription':
70+
'description':
7171
'The relative path, including file name if pathPattern is not '
7272
'specified. The relative path excluding file name if '
7373
'pathPattern is specified. Or, girder://id for Girder '
@@ -417,7 +417,7 @@ def _lazyImportSkimageTransform():
417417
'items': {'type': 'number'},
418418
},
419419
'basePath': {
420-
'decription':
420+
'description':
421421
'A relative path that is used as a base for all paths in '
422422
'sources. Defaults to the directory of the main file.',
423423
'type': 'string',

0 commit comments

Comments
 (0)