Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing numpy array with same key as existing pandas object puts both in same directory #13

Open
dotsdl opened this issue Jul 28, 2016 · 0 comments

Comments

@dotsdl
Copy link
Member

dotsdl commented Jul 28, 2016

Storing e.g. a pandas DataFrame with:

import datreant.core as dtr
import datreant.data.attach

t = dtr.Treant('spore')

t.data['a/dataframe'] = pd.DataFrame(pd.np.random.randn(100, 3))

and then storing e.g. a numpy array with the same key

t.data['a/dataframe'] = pd.np.random.randn(100, 3)  

results in two datasets getting stored with the same name, in the same place:

> t.draw()
spore/
 +-- a/
 |   +-- dataframe/
 |       +-- pdData.h5
 |       +-- npData.h5
 +-- Treant.e3bde18c-4eca-4539-8015-9520d5768c12.json

This should not be possible using the datreant.data Limbs.

@dotsdl dotsdl added the bug label Jul 28, 2016
@dotsdl dotsdl added this to the 0.7.0 milestone Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant