pyiron_base icon indicating copy to clipboard operation
pyiron_base copied to clipboard

How to use DataContainer in inspect mode?

Open jan-janssen opened this issue 1 year ago • 2 comments

When a job is loaded using pr.inspect() then the corresponding DataContainer objects are not loaded. In particular, in the case of pyiron tables which by default use the inspect mode, this becomes an issue.

jan-janssen avatar Feb 23 '24 11:02 jan-janssen

See #364 and in particular https://github.com/pyiron/pyiron_base/issues/364#issuecomment-1403760357

pmrv avatar Feb 23 '24 11:02 pmrv

A quick workaround is to use something like this in a table function

dc = job['location/of/datacontainer'].to_object()
dc['my/fancy/values']

The containers are lazy loaded by default, so the overhead should be small.

pmrv avatar Feb 28 '24 13:02 pmrv

By now it's also possible to do

dc = job.content['location/of/datacontainer']
dc['my/fancy/values']

pmrv avatar Aug 09 '24 12:08 pmrv