File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
devtools/conda-recipes/anaconda Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ requirements:
21
21
- make
22
22
- setuptools
23
23
- pip
24
+ - numpy >=1.19
24
25
host :
25
26
- python
26
27
- openmm >=8.1
Original file line number Diff line number Diff line change 10
10
#include " openmm/RPMDMonteCarloBarostat.h"
11
11
#include " openmm/Force.h"
12
12
#include " openmm/Vec3.h"
13
+ #include " openmm/Context.h"
13
14
#include < numpy/ndarrayobject.h>
14
15
15
16
using namespace OpenMM ;
@@ -25,7 +26,16 @@ namespace std {
25
26
};
26
27
27
28
%pythoncode %{
28
- __version__ = " @CMAKE_PROJECT_VERSION@"
29
+ import simtk.openmm as mm
30
+ import simtk.unit as unit
31
+ %}
32
+
33
+ /*
34
+ * Add units to function outputs.
35
+ */
36
+
37
+ %pythonappend OpenMMCPPForces::ConcertedRMSDForce::getReferencePositions () const %{
38
+ val *= unit.nanometers
29
39
%}
30
40
31
41
/*
@@ -130,7 +140,7 @@ public:
130
140
* and setGroup() to modify this object's parameters, then call updateParametersInContext()
131
141
* to copy them over to the Context.
132
142
*/
133
- void updateParametersInContext (Context& context);
143
+ void updateParametersInContext (OpenMM:: Context& context);
134
144
/* *
135
145
* Returns whether or not this force makes use of periodic boundary
136
146
* conditions.
You can’t perform that action at this time.
0 commit comments