You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a suggestion for improving a collection management. For now, it seems impossible to update global and variable metadata once a collection is created. It would be a great addition if we could update or edit the attributes of a variable or the global attributes
Below is a snippet that I think can help illustrate what we want to achieve
print(f'Global attributes before update: {collection.load().attrs}')
print(f'Variable attribute before update: {collection.load()["var1"].attrs}')
>>Globalattributesbeforeupdate: (Attribute('attr', 1),)
>>Variableattributebeforeupdate: (Attribute('attr', 1),)
# These would be the new methods. Eventually they could be called from the# collection instanceupdate_global_attributes(collection, [Attribute('attr', 2), Attribute('foo', 'bar')])
update_variable_attributes(collection, [Attribute('attr', 3), Attribute('fooz', 'baz')])
print(f'Global attributes after update: {collection.load().attrs}')
print(f'Variable attribute after update: {collection.load()["var1"].attrs}')
>>Globalattributesafterupdate: (Attribute('attr', 2), Attribute('foo', 'bar'))
>>Variableattributeafterupdate: (Attribute('attr', 3), Attribute('fooz', 'baz'))
The text was updated successfully, but these errors were encountered:
Hello, I have a suggestion for improving a collection management. For now, it seems impossible to update global and variable metadata once a collection is created. It would be a great addition if we could update or edit the attributes of a variable or the global attributes
Code for collection creation
Below is a snippet that I think can help illustrate what we want to achieve
The text was updated successfully, but these errors were encountered: