Skip to content

Commit

Permalink
Handle id field
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwarchol committed Jun 8, 2023
1 parent 3156786 commit 9904dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minerva_analysis/server/models/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ def get_neighborhood_stats(datasource_name, indices, np_df, cluster_cells=None,
time_neighborhood_stats = time.time()
if indices.dtype.kind != 'i':
indices = indices.astype(int)
if 'useCellID' in config[datasource_name]['featureData'][0]:
if 'useCellID' in config[datasource_name]['featureData'][0] or config[datasource_name]['featureData'][0]['idField'] == 'CellID':
default_fields.append('CellID')

column_indices = get_column_indices(default_fields)
Expand Down

0 comments on commit 9904dfe

Please sign in to comment.