ibest / ARC

Assembly by Reduced Complexity (ARC)
Apache License 2.0
41 stars 5 forks source link

Refactor code for passing params #8

Closed samhunter closed 11 years ago

samhunter commented 11 years ago

Instead of passing a list of certain params from class to class, pass all params (and delete those which aren't necessary i.e. read_dict for the assemblers). This will make future additions/enhancements to the code much easier to implement and also require less maintenance.

samhunter commented 11 years ago

This has been implemented. The full set of params is now copied to a new memory location using copy.deepcopy() which ensures that there is no crosstalk between processes (this behavior was observed when the params were copied with "="). Additional params are then added, and in the case of large param sets, deleted before the new class is instantiated.