Skip to content

refactor(ALab-Schema): modernized alab schema to be in sync with thei… - #2118

Open
bfoley12 wants to merge 3 commits into
masterfrom
alab-schema-update
Open

refactor(ALab-Schema): modernized alab schema to be in sync with thei…#2118
bfoley12 wants to merge 3 commits into
masterfrom
alab-schema-update

Conversation

@bfoley12

Copy link
Copy Markdown
Collaborator

…r new data format

Summary

Worked with Lauren Walters to update A Lab's model schema to be in-sync with their data.

@bfoley12
bfoley12 requested a review from minhsueh July 31, 2026 23:35
Comment thread mpcontribs-lux/mpcontribs/lux/projects/alab/schemas/experiments.py
@@ -72,136 +58,131 @@ class Experiment(BaseModel, extra="forbid"):
default=None, description="Optional notes about the experiment"
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We also need

precursorPowders: list[str] | None = Field(
        default=None,
        description="List of precursor powder names used in the experiment",
    )

Or, based on the discussion with Lauren, we would probably have

precursorPowders: list[PowderDose] 

But in this case, PowderDose and ExperimentElement should not have rgNumber. While TemperatureLogEntry and XRDDataPoint would have correspondingrgNumber

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Resolved, but leaving comment open for if we decide to move to list[PowderDose] after talking with Lauren

Comment thread mpcontribs-lux/mpcontribs/lux/projects/alab/schemas/experiments.py Outdated
last_updated: datetime = Field(description="Last modification timestamp")
lastUpdated: datetime = Field(description="Last modification timestamp")

status: Literal["completed", "error", "active", "unknown"] = Field(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Their data is capitalized, "Completed".

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Do you know if this applies to their WorkflowTask.status?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am not sure; let's clarify with her tmr!

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