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

[refactor] brkraw api and update for future version #167

Merged
merged 15 commits into from
Apr 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[patch] slicepack helper num_slices_each_pack duplication in legacy
dvm-shlee committed Apr 24, 2024
commit 1a2171823fc7dd6e71e75e7064d725e47c696369
10 changes: 0 additions & 10 deletions brkraw/api/helper/slicepack.py
Original file line number Diff line number Diff line change
@@ -71,16 +71,6 @@ def _parse_legacy(self, visu_pars, fg_info):
num_slices_each_pack = [int(shape[slice_fid]/num_slice_packs) for _ in range(num_slice_packs)]
else:
num_slices_each_pack = [shape[slice_fid]]

slice_fg = [fg for fg in fg_info['id'] if 'slice' in fg.lower()]
if len(slice_fg):
if num_slice_packs > 1:
num_slices_each_pack.extend(
int(shape[0] / num_slice_packs)
for _ in range(num_slice_packs)
)
else:
num_slices_each_pack.append(shape[0])
slice_distances_each_pack = [visu_pars["VisuCoreFrameThickness"] for _ in range(num_slice_packs)]
return num_slice_packs, num_slices_each_pack, slice_distances_each_pack