refinery-platform/heatmap-scatter-dash

Name collision warning during tests: 'c1_x' 'c2_x' etc

mccalluc opened this issue · 1 comments

The way we run with fixtures...

python app_runner.py --files ../fixtures/good/data/counts* --diffs ../fixtures/good/data/stats-* --metas ../fixtures/good/data/metadata.*

there are name conflict, and we get errors like...

  File "/Users/chuck/github/refinery-platform/heatmap-scatter-dash/context/app/vis/gene_callbacks.py", line 154, in _update_gene_table
    return self._table_html(self._meta_dataframe.T[selected_conditions]) \
  File "/Users/chuck/anaconda3/envs/heatmap-python3/lib/python3.6/site-packages/pandas/core/frame.py", line 2133, in __getitem__
    return self._getitem_array(key)
  File "/Users/chuck/anaconda3/envs/heatmap-python3/lib/python3.6/site-packages/pandas/core/frame.py", line 2177, in _getitem_array
    indexer = self.loc._convert_to_indexer(key, axis=1)
  File "/Users/chuck/anaconda3/envs/heatmap-python3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1269, in _convert_to_indexer
    .format(mask=objarr[mask]))
KeyError: "['c1_x' 'c2_x' 'c3_x' 'c4_x' 'c1_y' 'c2_y' 'c3_y' 'c4_y'] not in index"

pandas, I think, is making the names unique. I don't think this is causing any failures, but it could be confusing.

#198 duplicated this, and it will be fixed by #213.