Closed asongtoruin closed 1 month ago
OK addressed in latest commit, let me know if it works. By the way none of the new dunder method stuff has been included for 'low_memory=True' as of yet, as it seemed that was never really being used. If you are using that option anywhere let me know and I'll look at including it.
@asongtoruin just tagging so you see, I don't know if you automatically get notifications for issues you're active in.
This seems to run now, closing.
Local variable
out
is only set under certain circumstances (i.e. when the segmentation of twoDVector
objects don't match):https://github.com/Transport-for-the-North/caf.core/blob/f2947fd194c9bfc5db4134bcbff35e14eb8bce0e/src/caf/core/data_structures.py#L632-L636
However, this variable is always references when we have
low_memory=False
, i.e. the default behaviour for the class, and either matching zone systems or a missing zoning system for either object:https://github.com/Transport-for-the-North/caf.core/blob/f2947fd194c9bfc5db4134bcbff35e14eb8bce0e/src/caf/core/data_structures.py#L669-L695
@isaac-tfn, can you take a look? Could it be as simple as changing that first snippet to:
It's also perhaps worth noting that
out
doesn't seem to be referenced at all in thelow_memory
process, which seems odd?