Patch for Analytical Line write#666
Conversation
|
This seems to be more of an efficiency edit than a bug fix, correct? I'm failing to see how we would get an error from this write - it just removes some redundant writing that's occurring (please correct if I'm missing something). I think my recommendation would be to either: a) move the write_bil_chunk sections one block up in the loop so that they only happen after the row loop (in which case you can revert to writing the whole chunk, not a section), to reduce disk throttling, or.... I would probably default to a). |
|
I'll confirm once more that this is the root of the issue I was running into. It was clear that the numpy matrix writing into the output @pgbrodrick Digging into the write statement in the AL: The edited block write_bil_chunk(
output_rfl.T,
self.analytical_rfl_file,
r,
(rdn.shape[0], rdn.shape[1], len(self.fm.idx_surf_rfl)),
)attempts to write the entire output_rfl.T chunk at the To your point, a change along the lines of a) makes sense to me as long as I'm understanding correctly. We could move the |
|
I ran three EMIT test cases without this change and they all ran successfully. My guess is the error case I was hitting yesterday was due to an alteration I made. @pgbrodrick is correct on this. With that said, keeping the |
|
Handled via merging #671 |
These two lines were changed with this commit.
I didn't catch the error with my primary testing cube, which continues to write successfully. However, I hit an issue running a different line and was able to reproduce with two additional cubes. The updated syntax is consistent with prior commits (e.g.)