-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add sim and path config yaml files #16
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
=======================================
Coverage 96.62% 96.62%
=======================================
Files 4 4
Lines 118 118
=======================================
Hits 114 114
Misses 4 4 Continue to review full report at Codecov.
|
temp_workspace/input/sim_config.yaml
Outdated
@@ -0,0 +1,37 @@ | |||
molecular_model: | |||
voxel_size: 0.1 # [nm] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these string paths ever read by the TEM simulator? Or do we have freedom to change their names?
e.g. voxel_size
to pixel_size_ang
. If these are the "expected fields" to the TEM simulator, then I'm thinking we can have another layer above where standard params that are shared between different simulation routines are converted into "tem simulator" specific ones (units, etc).
@@ -0,0 +1,5 @@ | |||
pdb_dir: '../temp_workspace/input/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were going to get rid of a working directory... if it's something that only exists for the length of the simulation, perhaps it could be created and deleted with the os
module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This particular working directory exists only for demonstration purposes - this path would be changed out by the user. temp_workspace/ should not be in the PR - I'll look into addressing this after work today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
- having the pdb data in a
data/
orpdb_structures/
directory insidesimSPI/simSPI
- having the config files at the root of the
simSPI/simSPI
repo
would be more intuitive?
We do not need to tell the users how to organize their workspace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the user can call the simulator by providing a path output_dir
to tell it where to store the output of the simulation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good ideas, thank you!
I've edited the folder structure - temp_workspace is gone (as I mentioned earlier it's best not left in the main branch anyhow) and the config files now sit in the "root" simSPI/ directory. The PDBs are stored in simSPI/data as you suggested.
For now, I think simSPI/output/ makes sense as a default output directory and the user can change it in the config file if desired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks for doing the effort of splitting the work into block! 🙌 See my comment about the temp_workspace.
Add sim and path config yaml files for the simulator to use.
Code to receive and parse these yamls will be added in a future PR (soon).
@calhep @thisTyler @arjunsingh3600