Skip to content

Refactor 24 magnetic metadata - #245

Open
jamescrake-merani wants to merge 9 commits into
refactor_24from
refactor_24_magnetic_metadata
Open

jamescrake-merani wants to merge 9 commits into
refactor_24from
refactor_24_magnetic_metadata

Conversation

@jamescrake-merani

Copy link
Copy Markdown
Contributor

Adds data structures for magnetic metadata.

codescene-access[bot]

This comment was marked as outdated.

@DrPaulSharp
DrPaulSharp self-requested a review September 23, 2026 11:17

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No quality gates enabled for this code.

See analysis details in CodeScene

Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@DrPaulSharp DrPaulSharp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good, just one point to consider.

Comment thread sasdata/metadata.py
saturation_magnetization: Quantity[float] | None
demagnetizing_field: Quantity[float] | None

def single_line_desc(self):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this method exist for other metadata classes, and if not, should it be added?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it required alongside summary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. Process is one such example. Whether its required, or not is a good question. I only put it there because other classes seem to implement it, but this goes back to the issue I raised in #244 because its not really clear which methods need to be implemented.

This branch has not been deployed

No deployments
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