You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What were you trying to do and what happened instead? Please copy and paste the stack output
I was trying to take a Random2DPattern of points, and place copies of my compounds across this pattern in an orientation specified by the "up" port.
In general, I see no tests in test_pattern.py, and the documentation is lacking for some of these older functions. Might be handy to do a quick update on them, or add this feature so the orientation can be more easily set.
Code to reproduce the behavior
Please include a code snippet that can be used to reproduce this bug.
frommbuild.patternimportRandom2DPatternfrommbuild.lib.atomsimportH, C3test_particle=C3()
pattern=Random2DPattern(100, seed=1, orientations={"up":[test_particle]}, scale=10) # I would like this to orient in the [0,0,1] direction.cpd=H()
cpds=pattern.apply(cpd, orientation="up", compound_port="up")
top_cpd=mb.Compound()
top_cpd.add(cpds)
top_cpd.visualize()
Software versions
Which version of mBuild are you using? (python -c "import mbuild as mb; print(mb.__version__)")
0.18.0
Which version of Python (python --version)?
3.9
Which operating system?
MacOS
The text was updated successfully, but these errors were encountered:
Bug summary
What were you trying to do and what happened instead? Please copy and paste the stack output
I was trying to take a Random2DPattern of points, and place copies of my compounds across this pattern in an orientation specified by the "up" port.
In general, I see no tests in test_pattern.py, and the documentation is lacking for some of these older functions. Might be handy to do a quick update on them, or add this feature so the orientation can be more easily set.
Code to reproduce the behavior
Please include a code snippet that can be used to reproduce this bug.
Software versions
python -c "import mbuild as mb; print(mb.__version__)"
)0.18.0
python --version
)?3.9
MacOS
The text was updated successfully, but these errors were encountered: