Skip to content

Commit c69f7b2

Browse files
committed
renamed split to split-records to avoid name clash with meta-data field
1 parent 6820919 commit c69f7b2

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

CHANGES.rst

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Changelog
1515
rather than using an absolute file name
1616
- the bluechannel/grayscale/indexed-png image segmentation readers/writers can use a value other
1717
than 0 now for the background
18+
- `split` filter has been renamed to `split-records`
1819

1920

2021
0.0.2 (2024-06-13)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ filters (30):
7070
label-present, map-labels, max-records, metadata, metadata-from-name,
7171
od-to-ic, od-to-is, passthrough, polygon-discarder,
7272
polygon-simplifier, pyfunc-filter, randomize-records, record-window,
73-
remove-classes, rename, sample, split, strip-annotations, tee,
74-
write-labels
73+
remove-classes, rename, sample, split-records, strip-annotations,
74+
tee, write-labels
7575
writers (14):
7676
to-adams-ic, to-adams-od, to-blue-channel-is, to-coco-od, to-data,
7777
to-grayscale-is, to-indexed-png-is, to-layer-segments-is, to-opex-od,

plugins/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* [remove-classes](remove-classes.md)
4444
* [rename](rename.md)
4545
* [sample](sample.md)
46-
* [split](split.md)
46+
* [split-records](split-records.md)
4747
* [strip-annotations](strip-annotations.md)
4848
* [tee](tee.md)
4949
* [write-labels](write-labels.md)

plugins/split.md plugins/split-records.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# split
1+
# split-records
22

33
* accepts: seppl.AnyData
44
* generates: seppl.AnyData
55

66
Splits the incoming records into the specified split ratios by setting the 'split' meta-data value. Also stores the split names in the current session.
77

88
```
9-
usage: split [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [-N LOGGER_NAME]
10-
[-r SPLIT_RATIOS [SPLIT_RATIOS ...]]
11-
[-n SPLIT_NAMES [SPLIT_NAMES ...]]
9+
usage: split-records [-h] [-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
10+
[-N LOGGER_NAME] [-r SPLIT_RATIOS [SPLIT_RATIOS ...]]
11+
[-n SPLIT_NAMES [SPLIT_NAMES ...]]
1212
1313
Splits the incoming records into the specified split ratios by setting the
1414
'split' meta-data value. Also stores the split names in the current session.

src/idc/filter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from ._remove_classes import RemoveClasses
1818
from ._rename import Rename, RENAME_PLACEHOLDERS, RENAME_PH_NAME, RENAME_PH_COUNT, RENAME_PH_PDIR, RENAME_PH_SAME, RENAME_PH_PDIR_SUFFIX, RENAME_PH_EXT, RENAME_PH_OCCURRENCES, RENAME_PH_HELP
1919
from ._sample import Sample
20-
from ._split import Split
20+
from ._split_records import SplitRecords
2121
from ._strip_annotations import StripAnnotations
2222
from ._tee import Tee
2323
from ._write_labels import WriteLabels

src/idc/filter/_split.py src/idc/filter/_split_records.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
""" the key for storing the split name in the meta-data. """
1111

1212

13-
class Split(Filter):
13+
class SplitRecords(Filter):
1414
"""
1515
Splits the incoming records into the specified split ratios by setting the 'split' meta-data value. Also stores the split names in the current session.
1616
"""
@@ -41,7 +41,7 @@ def name(self) -> str:
4141
:return: the name
4242
:rtype: str
4343
"""
44-
return "split"
44+
return "split-records"
4545

4646
def description(self) -> str:
4747
"""

0 commit comments

Comments
 (0)