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

Modify Pydantic classes for ttsim3d #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mgiammar
Copy link
Collaborator

Overview

This PR adds new pydantic classes Simulator and SimulatorConfig to simplify and standardize input for the ttsim3d program.

The Simulator class does the following:

  • Stores the pixel size and volume shape of the simulation.
  • Stores and loads atoms from a provided PDB file path.
  • Defines additional b-factor and b-factor scaling for a model.
  • Holds intermediate calculation tensors, if requested.
  • Defines run and export_to_mrc methods.

The SimulatorConfig class does the following:

  • Defines parameters for the dose weighting and dqe filters.
  • Holds the requested upsampling for the simulation.
  • Additional configuration attributes for storing intermediate results.

To do before merging

  • Implementing new classes
  • Implement CLI program for simulating 3D structure from PDB
  • Adding tests for validating new classes and associated methods
  • Complete docstrings
  • Add basic documentation (including usage examples)

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.

1 participant