mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-18 12:20:12 +08:00
MAINT: Add validator to validate_column.
Who validates the validators?
This commit is contained in:
@@ -229,6 +229,7 @@ class Pipeline(object):
|
||||
raise AssertionError("Unknown graph format %r." % format)
|
||||
|
||||
@staticmethod
|
||||
@expect_types(term=Term, column_name=str)
|
||||
def validate_column(column_name, term):
|
||||
if term.ndim == 1:
|
||||
raise UnsupportedPipelineOutput(column_name=column_name, term=term)
|
||||
|
||||
Reference in New Issue
Block a user