simpeg / aurora

software for processing natural source electromagnetic data
MIT License
13 stars 2 forks source link

Handle KernelDataset empty dataframe #274

Closed kkappler closed 1 year ago

kkappler commented 1 year ago

If the local and remote station share no simultaneous intervals the line self._add_duration_column() raises AttributeError: 'DataFrame' object has no attribute 'end'

kkappler commented 1 year ago
if len(self.df) == 0:
            print("No Overlap between local and remote station data streams")
            print("Remote reference processing not a valid option")
        else:
            self._add_duration_column()