Skip to content

Conversation

@mmagnuski
Copy link
Collaborator

@mmagnuski mmagnuski commented Jun 4, 2025

When using pylabianca.utils.find_cells it may seem intuitive to use cell name as here, assuming we have a frate xarray:

import pylabianca as pln

pln.utils.find_cells(frate, cell=['cell001', 'cell002', 'cell012'])

but this will currently fail, even when, as expected, frate contains a 'cell' coordinate. This is because, when creating a pandas.DataFrame cellinfo out of xarray.DataArray frates, the cell dimention is not added (only the coords "nested" in given dimention are added) . This PR aims to solve it while not breaking other things. This will probabaly require adding a keyword arg to function creating a dataframe from xarray dimention coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants