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
New hoomd example #14
Conversation
I really like this example! |
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.
Okay so the only other thing that might be worth adding, is to store the run_steps
in the job document, that way we could introduce the concept that if you need to run the simulation longer, you just need to bump run_steps
in the job doc. Maybe that is for a different tutorial, but it is one of the first things that people run into, they want to run their simulation longer since it hasn't equilibrated yet, but if they want to run it longer, they run into issues since it will mess up the state points.
I agree that it's good to encourage this as a default - I'll change it and add a note as to why we store it in the job doc. |
Co-authored-by: Mike Henry <mikehenry@boisestate.edu>
…nac-examples into new_hoomd_example
@atravitz I believe this is ready for another round of review? If yes, could you request that? Besides that, it appears that there are some build issues, any idea what might be going on? |
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.
@atravitz The style of the README has to follow a particular format. The continuous integration I added in #17 (and which used to be enabled long ago) parses the README and runs the commands it finds in code blocks beneath the heading # Usage
. The updated text is definitely useful but the list formatting will need to look more like the previous. If you want help or an example, let me know.
Also should status.txt
be removed (and added to .gitignore
)?
Would breaking the commands into code blocks be sufficient? Should we have |
@atravitz I think so. You can refer to the other examples. The CI will run I don't think we need |
@bdice let me know if this looks good to you |
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.
Thanks for the revisions @atravitz. I have some suggestions below.
|
||
@MyProject.operation | ||
@MyProject.pre(initialized) | ||
@MyProject.pre.isfile("init.gsd") |
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.
Would it be better to use after
?
@MyProject.pre.isfile("init.gsd") | |
@MyProject.pre.after(initialize) |
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.
Personally I like using isfile
here because it seems like the most explicit way of showing how pre/post conditions work.
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
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.
Looks great! Thanks @atravitz.
I'm going to go ahead and merge this. The PR been stalled for a long time and it is a significant improvement over the existing tutorial. |
For a while we've been needing to update some of these examples. Here's a proposed update to the HOOMD-blue example. The most notable change is the addition of a walk-through readme.