-
Notifications
You must be signed in to change notification settings - Fork 0
Split Dataset XML generation #157
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
base: main
Are you sure you want to change the base?
Changes from all commits
914d424
e66d4bf
d8367a4
afa6965
cca9cd9
ada3df0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,7 +163,9 @@ def filter(self): | |
| lb = row['lower_bound'] | ||
| ub = row['upper_bound'] | ||
| if vid == view_id: | ||
| to_process_interval = (lb, ub) | ||
|
|
||
| ub_inclusive = (ub[0]+1, ub[1]+1, ub[2]+1) | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interval needs to use inclusive coordinates for upper bound, so that it is compatible with block_interval coordinates when calling self.contain() |
||
| to_process_interval = (lb, ub_inclusive) | ||
| ips_block = [] | ||
| intensities_block = [] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,11 +23,10 @@ def closest_larger_long_divisible_by(self, a, b): | |
|
|
||
| return int(a + b - (a % b)) | ||
|
|
||
| def find_min_step_size(self): | ||
| def find_min_step_size(self, lowest_resolution=(1.0, 1.0, 1.0)): | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update this to allow for blocks to be created at 1.0 pixel resolution (previously was limited to blocksizes of powers of 64) |
||
| """ | ||
| Compute the minimal integer step size per axis (X,Y,Z) that is compatible with the chosen lowest resolution | ||
| """ | ||
| lowest_resolution=(64.0, 64.0, 64.0) | ||
| min_step_size = [1, 1, 1] | ||
|
|
||
| for d, r in enumerate(lowest_resolution): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -575,9 +575,12 @@ def _norm_id(raw): | |
| outer_timepoints = ch | ||
| break | ||
| if outer_timepoints is None: | ||
| outer_timepoints = ET.Element('Timepoints', {'type': 'pattern'}) | ||
| ip = ET.SubElement(outer_timepoints, 'integerpattern') | ||
| ip.text = "0" | ||
| tps = sorted({int(v['old_view'][0]) for v in self.self_definition if v['old_view'][0] is not None}) | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Determine timepoints integer range from pre-split views |
||
| first_tp = str(tps[0]) if tps else "0" | ||
| last_tp = str(tps[-1]) if tps else "0" | ||
| outer_timepoints = ET.Element('Timepoints', {'type': 'range'}) | ||
| ET.SubElement(outer_timepoints, 'first').text = first_tp | ||
| ET.SubElement(outer_timepoints, 'last').text = last_tp | ||
| # place right after ViewSetups | ||
| children = list(outer_seq) | ||
| insert_idx = children.index(view_setups) + 1 if view_setups in children else len(children) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update parse_image_loader_zarr() to properly handle bigstitcher xml conventions, and channel default when not in filename