Skip to content

Commit

Permalink
Use random name when centre column is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaragomes committed Aug 30, 2023
1 parent 4866b8e commit f8e4888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v6_healthai_dashboard_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def master(
# Collecting results
info('Obtaining results')
results = client.get_results(task_id=task.get('id'))
info(f'Results: {results}')

# Organising partial results, we do not perform aggregations as we need
# the data per centre for the dashboard
Expand All @@ -87,6 +88,7 @@ def master(
if not result['organisation']:
result['organisation'] = f'Centre {i}'
final_results.append(result)
info(f'Results: {results}')

return final_results

Expand Down Expand Up @@ -117,6 +119,7 @@ def RPC_statistics_partial(data, cutoff, delta):
centre = data[column].unique()[0]
results['organisation'] = centre
else:
results['organisation'] = None
results['logs'] += f'Column {column} not found in the data\n'

info('Counting number of unique ids')
Expand Down

0 comments on commit f8e4888

Please sign in to comment.