Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 3D pencil tomo #260

Open
CJ-Wright opened this issue Mar 11, 2019 · 0 comments
Open

Handle 3D pencil tomo #260

CJ-Wright opened this issue Mar 11, 2019 · 0 comments

Comments

@CJ-Wright
Copy link
Member

Currently our pencil tomo is 2D (x, th). We'll need 3D tomo though, which is a stack of 2D tomo reconstructions. This means we need some logic which accumulates over Z but updates over all other variables.

def acc(old, new):
    oldz, oldtomo = old
    newz, newtomo = new
    if oldz == newz:
        oldtomo[..., -1] = newtomo
    else:
        oldtomo = np.concatinate(oldtomo, newtomo)
    return newz, oldtomo

We may need some initialization logic to make sure it looks 3D. I'm not sure how mayavi is going to act when it gets an (n, n, 1) array but we can figure it out.
We will also need to modify the metadata to tell us what the z motor is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant