File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,9 @@ def next_instance(self) -> _AnyInstance:
347
347
def get_schema (self ) -> Schema :
348
348
"""Return the schema of the stream."""
349
349
350
- @abstractmethod
351
350
def get_moa_stream (self ) -> Optional [InstanceStream ]:
352
351
"""Get the MOA stream object if it exists."""
352
+ return None
353
353
354
354
@abstractmethod
355
355
def restart (self ):
@@ -557,9 +557,6 @@ def next_instance(self) -> _AnyInstance:
557
557
def get_schema (self ):
558
558
return self .schema
559
559
560
- def get_moa_stream (self ):
561
- raise ValueError ("Not a moa_stream, a numpy read file" )
562
-
563
560
def restart (self ):
564
561
self .current_instance_index = 0
565
562
@@ -927,9 +924,6 @@ def next_instance(self) -> _AnyInstance:
927
924
def get_schema (self ):
928
925
return self .schema
929
926
930
- def get_moa_stream (self ):
931
- raise ValueError ("No moa_stream available, this is a CSV" )
932
-
933
927
def restart (self ):
934
928
self .total_number_of_lines = 0
935
929
self .n_lines_to_skip = 1 if self .skip_header else 0
You can’t perform that action at this time.
0 commit comments