Skip to content

Problems with smoke3d to_global() #75

@Sokdenumeros

Description

@Sokdenumeros

Hi, I've been getting some error messages when loading smoke3d data.

Here's what I got and what I think may be the issue from looking at the to_global() code in smoke3d.py:

1 ----
LINE: (214) subsmoke_data = np.concatenate((subsmoke_data, temp_data[dim][tuple(temp_data_slices)]), axis=axis + 1)
ERROR MESSAGE: ValueError: all the input array dimensions except for the concatenation axis must match exactly, but along dimension 3, the array at index 0 has size 40 and the array at index 1 has size 21.
POTENTIAL PROBEM: here it is trying to concatenate temp_data, which was calculated at line 188 and subsmoke_data which was modified at line 204. Moving the block of code between lines 195 and 206 before line 179 seems to fix that issue for me.

2 ----
LINE: (200): n_repeat = max(int(round(
POTENTIAL PROBLEM: I think the two lines before that one were removed by mistake in the last commit "for axis in (0, 1, 2):" and "dim = ('x', 'y', 'z')[axis]" without those, this block of code is inside the "if masked" condition above which I don't think it's intended.

Finally, that's a non issue but I think the variables global_max and coord_max are the same, so one is probably redundant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions