File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1145,14 +1145,8 @@ def _load_extractor_from_dict(dic) -> "BaseExtractor":
11451145
11461146 assert extractor_class is not None and class_name is not None , "Could not load spikeinterface class"
11471147 is_old_version = not _check_same_version (class_name , dic ["version" ])
1148- if is_old_version :
1149- warnings .warn (
1150- f"Versions are not the same. This might lead to compatibility errors. "
1151- f"Using { class_name .split ('.' )[0 ]} =={ dic ['version' ]} is recommended"
1152- )
1153-
1154- if hasattr (extractor_class , "_handle_backward_compatibility" ):
1155- new_kwargs = extractor_class ._handle_backward_compatibility (new_kwargs , dic )
1148+ if is_old_version and hasattr (extractor_class , "_handle_backward_compatibility" ):
1149+ new_kwargs = extractor_class ._handle_backward_compatibility (new_kwargs , dic )
11561150
11571151 # Initialize the extractor
11581152 extractor = extractor_class (** new_kwargs )
You can’t perform that action at this time.
0 commit comments