Closed philipstarkey closed 7 years ago
Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).
Good find! There is a patch in pull request #5.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Fixes issue #38
Now check to make sure that global dependencies are only returned by find_dependencies
when the result of the evaluated dependency is also an allowed expansion type (as determined by runmanager.guess_expansion_type
).
→ \<\<cset 327d383fce7e4b224491a046ab9652ddb19255ac>>
Original report (archived issue) by David Meyer (Bitbucket: dihm, GitHub: dihm).
I have a global with a calculated numpy array. When I try to save the size of the array in another global (using darray.size or len(darray)) for further use I get the following traceback.
Doing some digging I've found that my length variable is being added as a dependency of the original array but it is not being populated in the expansions and expansion_types dictionaries, hence the key failure.
I suppose I could just calculate the required length external to runmanager where needed but it would be nice to have it as a global. Am I missing something obvious or is there something more fundamental going on?