Skip to content

[WIP] Unproxy objects using .unproxy()#786

Open
jhprinz wants to merge 1 commit intoopenpathsampling:masterfrom
jhprinz:load-full-object
Open

[WIP] Unproxy objects using .unproxy()#786
jhprinz wants to merge 1 commit intoopenpathsampling:masterfrom
jhprinz:load-full-object

Conversation

@jhprinz
Copy link
Contributor

@jhprinz jhprinz commented Jun 21, 2018

Implements / Resolves #671

This was not so difficult. There is now a method

StorableObject.unproxy()

which will convert recursively all existing LoaderProxies into real objects to avoid the problem of loading an object and have it implicitly requiring an open file where the object was loaded from.

There are specific implementations for Trajectory and SampleSet

There was also a little bug when getting delayed attributes which lead to returning the Proxy and not the full object. The user should not see the LoaderProxies unless specifically asking for it.

@jhprinz jhprinz changed the title allow conversion of LoaderProxies into real objects using .proxy() [WIP] Unproxy objects using .unproxy() Jun 21, 2018
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.

1 participant