Skip to content

Rename get_node for PyTables 3.x dependency#7

Open
daviddao wants to merge 1 commit intoopenai:masterfrom
daviddao:patch-1
Open

Rename get_node for PyTables 3.x dependency#7
daviddao wants to merge 1 commit intoopenai:masterfrom
daviddao:patch-1

Conversation

@daviddao
Copy link

@daviddao daviddao commented May 16, 2017

Running the script in train phase will give me following error:

File "[localpath]/imitation/policyopt/nn.py", line 393, in write_snapshot
self.f.getNode(snapshot_root)._v_attrs.hash = model.savehash()
AttributeError: 'File' object has no attribute 'getNode'

That's because PyTables changed some of its API for 3.x

Renaming File.getNode into File.get_node will fix the issue.

PyTable 3.x renamed `File.getNode` into `File.get_node`
Copy link

@rexionmars rexionmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

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