-
Notifications
You must be signed in to change notification settings - Fork 94
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
Method update_ids won't "update" ids to the same name (raises incorrect error) #633
Comments
That's an odd one... thanks for finding it! On Sun, May 31, 2015 at 4:09 PM, Yoshiki Vázquez Baeza <
|
@ElDeveloper, did you try setting |
I hit this error yesterday and it went away when I passed |
...to add, I don't believe it is that the IDs are the same by value, but that the IDs you're using in your example are the same by reference. The confusion here is that the way >>> a = 'foo'
>>> b = 'foo'
>>> a is b
True |
@josenavas, this is not directly related to the @wasade, that makes sense, but the message is still very misleading. On (Jun-03-15|10:18), Daniel McDonald wrote:
|
For this case, yes. Issuing a PR to add clarity |
@ElDeveloper, can you review #634 please? |
When using
update_ids
, you need to provide new identifiers, otherwise the method will raise a spurious error. The example below shows how using the example table you can reproduce the error by creating a dictionary where all key and value pairs are equal:The error indicates that the mapping for
S1
was not provided, even though it is in theid_map
dictionary. This error goes away as soon as you change the mapping so the values of the dictionary are different from the keys:The text was updated successfully, but these errors were encountered: