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

make a slice_index to slice_value convertor #51

Open
shimwell opened this issue Feb 23, 2023 · 0 comments
Open

make a slice_index to slice_value convertor #51

shimwell opened this issue Feb 23, 2023 · 0 comments

Comments

@shimwell
Copy link
Member

need to be able to convert from slice index to the axis value (slice value)

lower_left and upper_right should give the axis range then we can relate index and a view direction and dimension into a slice value

index_val = {'x': 0,  'y':1,'z': }
vd_to_width = upper_right[index_val] - lower_left[index_val]
value = lower_left[index_val] + vd_to_width / mesh.dimension[index_val]+1  #check this part
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