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

H.FD has 'keys()' but is not subscriptable #30

Open
jfburkhart opened this issue Mar 28, 2018 · 0 comments
Open

H.FD has 'keys()' but is not subscriptable #30

jfburkhart opened this issue Mar 28, 2018 · 0 comments

Comments

@jfburkhart
Copy link
Member

In [92]: fd.keys()
Out[92]:
['data_cube',
'gridfile',
'itime',
'timestamp',
'species',
'rel_i',
'spec_i',
'dry',
'wet',
'slabs',
'shape',
'max',
'min']

In [93]: fd['timestamp']

TypeError Traceback (most recent call last)
in ()
----> 1 fd['timestamp']

TypeError: 'FDC' object is not subscriptable

In [94]: del(fd)

In [95]: fd = H.FD[(0, '20070121100000')]

In [96]: fd['timestamp']

TypeError Traceback (most recent call last)
in ()
----> 1 fd['timestamp']

TypeError: 'FDC' object is not subscriptable

In [97]: fd.timestamp
Out[97]: datetime.datetime(2007, 1, 21, 10, 0)

In [98]:

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

No branches or pull requests

1 participant