Skip to content

Conversation

blowekamp
Copy link
Collaborator

Refactor the dm_convert pipeline.

Create a function to convert mrc to tiff files with newstack

Replace dm->jpeg step with newstack function.

Move separate "conditional" tasks into one function.

Addresses (eg: #1)

Depends on (eg: #1)

Changes

  • List of changes
  • Breaking changes
  • Changes to configurations

This PR doesn't introduce any:

  • Binary files
  • Temporary files, auto-generated files
  • Secret keys
  • Local debugging print statements
  • Unwanted comments (e.g: # Gets user from environment for code os.environ['user'] )

This PR contains valid:

  • tests

@blowekamp blowekamp requested a review from philipmac November 5, 2024 14:29
@blowekamp blowekamp changed the title WIP WIP - DM convert refactor Nov 5, 2024
@blowekamp blowekamp force-pushed the dm_convert_refactor branch 5 times, most recently from be87cf7 to 8147f05 Compare April 25, 2025 17:25
@blowekamp blowekamp force-pushed the dm_convert_refactor branch from 8147f05 to 604062d Compare April 25, 2025 18:09
@blowekamp blowekamp marked this pull request as ready for review April 25, 2025 20:05
@blowekamp blowekamp changed the title WIP - DM convert refactor DM convert refactor Apr 25, 2025
blowekamp added 12 commits May 30, 2025 18:41
Create a function to convert mrc to tiff files with newstack

Replace dm->jpeg step with newstack function.

Move separate "conditional" tasks into one function.
Also avoid repeated declaration of the same valued variable.
Additionally update all callback results in one task aswell.
This directly run SimpleITK in the python process. It reads and loads
the image once, but writes it twice at different resolutions. Thus it
is more efficient.
Further reduces the number of tasks in flow.
By taking the max size of the dimensions, the output size will match
that of for the required large image. Therefore resizing can be
skipped with the newstack output.
@philipmac philipmac force-pushed the dm_convert_refactor branch from e242bf2 to 1962104 Compare June 2, 2025 15:41
@philipmac philipmac merged commit 1da0c8b into main Jun 2, 2025
1 check passed
@philipmac philipmac deleted the dm_convert_refactor branch June 2, 2025 15:50
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

Successfully merging this pull request may close these issues.

2 participants