We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 184f1a6 commit a3a45d2Copy full SHA for a3a45d2
src/ess/reflectometry/gui.py
@@ -650,6 +650,9 @@ def sync_custom_reduction_table(self):
650
651
def display_results(self):
652
df = self.get_selected_rows()
653
+ if len(df) == 0:
654
+ self.log('There was nothing to display')
655
+ return
656
try:
657
results = [
658
next(v for (m, _), v in self.results.items() if m == key)
@@ -770,6 +773,7 @@ def get_selected_rows(self):
770
773
for table in (self.reduction_table, self.custom_reduction_table)
771
774
for s in table.selections
772
775
]
776
+ # Select everything if nothing is selected
777
if len(chunks) == 0:
778
chunks = [self.reduction_table.data, self.custom_reduction_table.data]
779
return pd.concat(chunks)
0 commit comments