print(sorting.has_recording()) # True
analyzer = sa.create_sorting_analyzer(sorting, recording=sorting._recording)
print(analyzer.sorting.has_recording()) # False
Is this expected or a bug? Not sure why the recording would be unregistered.
I was doing something like curated = sc.remove_redundant_units(analyzer) and found curated suddenly does not have the recording anymore (because remove_redundant_units uses analyzer.sorting internally).