gtfierro/ontoenv

OntoEnv state not same b/w instantiations

Opened this issue · 1 comments

majidaldo@695b97d

(for my use case) i noticed that the ontoenv state (represented by the mappings) would change between instantiations despite there being no other changes.

contrived interpreter session:

# clean slate
> OntoEnv(intialize=True).mapping
{{big dictionary}}
> OntoEnv().mapping
{{small dictionary}}

Oh! Did you track this down to me forgetting to run _save() when the mapping was updated?

I agree with the improved placement of the call to _save() at the end of the refresh method in the commit you linked.