Skip to content

Refactoring Branch - #79

Draft
lucas-wilkins wants to merge 1940 commits into
masterfrom
refactor_24
Draft

Refactoring Branch#79
lucas-wilkins wants to merge 1940 commits into
masterfrom
refactor_24

Conversation

@lucas-wilkins

Copy link
Copy Markdown
Contributor

Main branch for the refactoring project

Comment thread sasdata/quantities/_units_base.py Outdated
si_scaling_factor: float,
dimensions: Dimensions):

self.scale = si_scaling_factor

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 there any reason not to call self.scale self.si_scaling_factor as well?

Comment thread sasdata/quantities/units.py Outdated


#
# Units by type

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.

While writing the unit tests for my parser, I had a thought. I think the unit groups should perhaps go into a separate module. To import a unit, we would do

from sasdata.quantities.units import meters. meters_per_second ...'

Which makes sense. But to import a unit group, the import statement would look like this.

from sasdata.quantities.units import speed, acceleration ...'

Which might be a little confusing because we're importing a unit group from the units module. Its a fairly minor change but having a separate unit group module might make this clearer.

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.

Yeah, sounds like a good plan

Comment thread sasdata/transforms/operation.py Outdated
Comment thread sasdata/temp_hdf5_reader.py Outdated
@DrPaulSharp
DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from a16b0a6 to e27d0cc Compare August 11, 2025 15:43
@DrPaulSharp
DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from d4683bd to 3df6e01 Compare November 7, 2025 17:52
@DrPaulSharp
DrPaulSharp force-pushed the refactor_24 branch 2 times, most recently from b32dbfe to 6f3b4af Compare December 9, 2025 12:24
codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

@DrPaulSharp
DrPaulSharp force-pushed the refactor_24 branch 3 times, most recently from 90413d7 to dd691e0 Compare May 18, 2026 17:07
summerhenson and others added 26 commits June 3, 2026 10:50
* Refactors sasmanipulations to use new data objects for input

* Refactors sasmanipulations to use new data objects for output

* Adds new dataset type "angle_dim"

* Uses ordinate property in manipulations code

* Fixes use of "center" quantity value in tests

* Addresses review comments
codescene-delta-analysis[bot]

This comment was marked as outdated.

@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

Absence of Expected Change Pattern

  • sasdata/sasdata/dataloader/readers/red2d_reader.py is usually changed with: sasdata/sasdata/dataloader/readers/ascii_reader.py, sasdata/sasdata/dataloader/readers/tiff_reader.py

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants