Skip to content

Add Abscissa class - #220

Open
DrPaulSharp wants to merge 5 commits into
refactor_24from
refactor_24_abscissae
Open

Add Abscissa class#220
DrPaulSharp wants to merge 5 commits into
refactor_24from
refactor_24_abscissae

Conversation

@DrPaulSharp

@DrPaulSharp DrPaulSharp commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This PR introduces the Abscissa class, which is able to determine the abscissa for given data types.

This PR also has the benefit of reducing the need to look at the _data_contents of a SasMeasurement, as discussed in #207, in favour of looking at abscissae/ordinates. This improves the code we have to ensure a greater element of duck-typing.

@DrPaulSharp
DrPaulSharp changed the base branch from master to refactor_24 June 29, 2026 13:28
@DrPaulSharp DrPaulSharp changed the title Refactor 24 abscissae Add Abscissa class Jun 29, 2026

@codescene-delta-analysis codescene-delta-analysis 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 force-pushed the refactor_24_abscissae branch from 6ba4d18 to 1d2d3f5 Compare August 7, 2026 11:00
codescene-access[bot]

This comment was marked as outdated.

@DrPaulSharp
DrPaulSharp force-pushed the refactor_24_abscissae branch from 1d2d3f5 to 5cdb04d Compare August 11, 2026 15:35

@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 marked this pull request as ready for review August 11, 2026 15:44

@jamescrake-merani jamescrake-merani 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.

I think this all looks good. Definitely better than the Spiderman film! I just had one small comment regarding tests, but if you think they're good then I'm approving this anyway so you can just merge.



def test_1d(basic_metadata):
q = [1, 2, 3, 4, 5]

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.

For these tests: do you think it would be worth introducing some more test data?

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