Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a basic datacollection simulator #163

Closed
wants to merge 19 commits into from

Conversation

stufisher
Copy link
Contributor

@stufisher stufisher commented Sep 20, 2021

Not as full featured as dc_sim but lets folk outside of dls simulate a data collection and trigger mimas.

@stufisher stufisher requested a review from Anthchirp October 5, 2021 11:10
@stufisher
Copy link
Contributor Author

This should be good to go now

conf/simulate_example.yml Outdated Show resolved Hide resolved
docs/simulate.rst Outdated Show resolved Hide resolved
docs/simulate.rst Outdated Show resolved Hide resolved
docs/simulate.rst Outdated Show resolved Hide resolved
docs/simulate.rst Outdated Show resolved Hide resolved
src/ispyb/simulation/base.py Outdated Show resolved Hide resolved
Comment on lines +78 to +80
@abstractmethod
def run(self, *args, **kwargs):
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need an abstract class for something that only has a single implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is that in future you might want to simulate something other than a data collection. There are plenty of things populated by the acquisition client that are not handled by ispyb-api. For example a RobotAction is not a DataCollection, nor is an XFEFluoresenceSpectrum. Would need a bit of tinkering on the arg parser to select the relevant class but should be flexible enough

src/ispyb/simulation/datacollection.py Outdated Show resolved Hide resolved
src/ispyb/simulation/datacollection.py Outdated Show resolved Hide resolved
src/ispyb/simulation/sqla_helpers.py Outdated Show resolved Hide resolved
@stufisher
Copy link
Contributor Author

Try again...

@stufisher
Copy link
Contributor Author

Ping

@stufisher
Copy link
Contributor Author

Without any further feedback im gonna merge this

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