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

feat: Updates to the alignment entity #298

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Conversation

manasaV3
Copy link
Contributor

@manasaV3 manasaV3 commented Oct 1, 2024

Relates to

Description

Changes to the config schema:

  • Updates the is_canonical -> is_portal_standard
  • Adds the method_type
  • Updates the spelling of volume_dimension

Changes to the configs:

  • Adds migration handler for alignment.method_type in the config. It follows the following conditions:
Everything that is FIDUCIAL is fiducial_based
Everything that mentions AreTomo as reconstruction software is projection matching
If reconstruction_software=IMOD and NON_FIDUCIAL is patch_tracking
Else undefined
  • Removes trailling whitespaces in the configs

S3 Workflows:

  • Adds "files" field to the alignment metadata. This lists all the files associated to this alignment
  • Adds get_name_and_path class method to the AlignmentImporter. This allows the DestinationFilterFinder to reference an existing Alignment.

@manasaV3 manasaV3 changed the title Updates to the alignment entity feat: Updates to the alignment entity Oct 1, 2024
return None
@classmethod
def get_name_and_path(cls, metadata: dict, name: str, path: str, results: dict[str, str]) -> [str, str, dict]:
paths = {filname: filname for filname in metadata.get("files", [])}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: filename vs filname

format: OPTIONAL ENUM (IMOD, ARETOMO)
method_type: OPTIONAL ENUM (fiducial_based, patch_tracking, projection_matching)
is_portal_standard: OPTIONAL, BOOLEAN (DEFAULT FALSE)
offset: OPTIONAL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding these

@@ -34,7 +36,7 @@ def upgrade_config(data: dict[str, Any]) -> dict[str, Any]:


def has_changes(file, config):
with open(file, 'r') as file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think our formatters disagree

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym? 😅

@@ -817,7 +817,7 @@ classes:
offset:
description: *desc_alignment_offset
range: AlignmentOffset
volume_dimesion:
volume_dimension:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Copy link
Contributor

@jgadling jgadling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after the typo is fixed

@manasaV3 manasaV3 merged commit 604635f into main Oct 2, 2024
8 checks passed
@manasaV3 manasaV3 deleted the mvenkatakrishnan/align_updates branch October 2, 2024 17:19
manasaV3 added a commit that referenced this pull request Oct 4, 2024
* Updates to schema and template

* Fixing tests

* Adding files to alignments metadata

* Update the alignment configs method type

* Fixing typo

* Adding undefined alignment_method_type
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.

3 participants