Skip to content

Refactor calc#44

Merged
jimnel merged 11 commits intomainfrom
calc_refactor
Apr 9, 2025
Merged

Refactor calc#44
jimnel merged 11 commits intomainfrom
calc_refactor

Conversation

@jimnel
Copy link
Copy Markdown
Contributor

@jimnel jimnel commented Apr 7, 2025

Some refactoring to calc:

  • Moves Signal into its own file
  • Moves calculator error messages into a new file
  • Removes abc.py as this isn't needed
  • Removes some unused imports and commented code

This is part of #46

@jimnel jimnel changed the title refactor Refactor calc Apr 7, 2025
Comment thread qse/calc/signal.py Outdated
Copy link
Copy Markdown
Collaborator

@rajarshitiwari rajarshitiwari left a comment

Choose a reason for hiding this comment

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

Looks good

Comment thread qse/calc/__init__.py

import qse.calc.abc
import qse.calc.calculator

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.

This and content below goes into qse.calc.messages ?

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.

All the Error classes defined in qse/calc/calculator.py go into qse/calc/messages.py

Comment thread qse/__init__.py
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.

looks good

@jimnel jimnel merged commit 1d0fe06 into main Apr 9, 2025
3 checks passed
@jimnel jimnel deleted the calc_refactor branch May 2, 2025 09:47
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