Skip to content

Bypass proxy loading with a store.load_full_object method #671

Description

@dwhswenson

The standard loading of complex objects (e.g., Trajectory) from a store loads proxy objects. And sometimes those proxies have other proxies within them (snapshot proxies have kinetics/statics proxies).

This is usually what we want: only load what you need when you need it. However, there may be cases when you really want the whole object, with no proxies. For example, loading an initial trajectory from a file, and the closing that file. If you do that with only proxies loaded, you'll get a NetCDF error if you need the actual objects later.

After discussion with @jhprinz today, we decided that it makes sense to have something like a load_full_object. I would propose that this would work like this:

storage.trajectories.load_full_object(0)

That makes it convenient, but unlikely to be confused with the default behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions