Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

remove dataclasses_json#817

Merged
d-perl merged 1 commit into
mainfrom
815_remove_dataclassesjson
Jul 25, 2023
Merged

remove dataclasses_json#817
d-perl merged 1 commit into
mainfrom
815_remove_dataclassesjson

Conversation

@d-perl

@d-perl d-perl commented Jul 19, 2023

Copy link
Copy Markdown
Contributor

Fixes #815

To test:

  1. Run tests

@d-perl
d-perl requested a review from DominicOram July 19, 2023 15:58

@DominicOram DominicOram left a comment

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 to me, thanks. Query in code, take it or leave it as part of this issue


@dataclass
class GridScanWithEdgeDetectParams(DataClassJsonMixin, AbstractExperimentParameterBase):
class GridScanWithEdgeDetectParams(AbstractExperimentParameterBase):

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.

Query: RotationScanParams inherits from BaseModel. Do we have a preference on when to do that and when to use pydantic.dataclass? From a google I think maybe BaseModel gives you more? So I would suggest we standardise on them all using BaseModel? This may be a different ticket...

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, maybe it's better to use models for all of them, I just changed the ones which were still dataclass because it was easier

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.

Cool, I'll make an issue

@DominicOram DominicOram mentioned this pull request Jul 24, 2023
@d-perl
d-perl merged commit 3ea6e6f into main Jul 25, 2023
@d-perl
d-perl deleted the 815_remove_dataclassesjson branch July 25, 2023 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove dataclasses_json (and maybe dataclasses)

2 participants