mortonne/aperture

load_job fails to update changes to patterns

GoogleCodeExporter opened this issue · 2 comments

What steps will reproduce the problem?
1. Create patterns
2. Use create_power_pattern through apply_to_subj (async=1) to overwrite the 
existing patterns
3. Load the job using load_job to attempt to update the exp struct

What is the expected output? What do you see instead?
Should update the existing pattern objects with the new dimensions, file 
references, etc.  Instead, the patterns don't get updated at all.

Workaround:
Use rmobj to remove the original pattern objects before running load_job, e.g.
exp.subj = apply_to_subj(exp.subj, @rmobj, {'pat', 'my_pat_name'});
exp = load_job(exp, job);

Original issue reported on code.google.com by morto...@gmail.com on 12 Jul 2011 at 6:46

I think this is a fundamental limitation of the method; when two jobs change an 
object in conflicting ways, the user must specify how to resolve the conflict.  
A useful fix might be to let the user specify the path of the object to load 
from the modified subject.

Original comment by morto...@gmail.com on 19 Aug 2011 at 10:48

Resolved this issue by adding an optional obj_path input.

Original comment by morto...@gmail.com on 27 Jun 2012 at 5:22

  • Changed state: Fixed