I'm testing this out on one of my systems and cannot seem to get passed the initialization step. I get the following error:
Warning: When compiling code please add the following flags to nvcc:
-gencode arch=compute_35,code=[compute_35,sm_35] \
-gencode arch=compute_61,code=[compute_61,sm_61]
-gencode arch=compute_70,code=[compute_70,sm_70]
simulation py3_test root is /bgfs/ltc1/home/atb43/qmmm/september/6_WESTPA/py3_test
Traceback (most recent call last):
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/cmds/w_init.py", line 28, in
import westpa
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/init.py", line 1, in
from . import _rc
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/_rc.py", line 27, in
from .yamlcfg import YAMLConfig
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/yamlcfg.py", line 37, in
from westpa.binning import NopMapper
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/binning/init.py", line 1, in
from . import _assign
ImportError: dynamic module does not define module export function (PyInit__assign)
This didn't happen with the python2 WESTPA. I thought this may be due to me defining my bins outside of the west.cfg (in the system.py) and so I tried doing that, but get the same error.
Here is my west.cfg file:
The master WEST configuration file for a simulation.
Settings for w_ipa, an interactive analysis program that can also automate analysis.
analysis:
directory: ANALYSIS # specify the directory all analysis files should exist in.
kinetics: # general options for both kinetics routines.
step_iter: 1
evolution: cumulative
extra: [ 'disable-correl' ]
analysis_schemes: # Analysis schemes. Required: name (TEST), states, and bins
DEFAULT:
enabled: True
bins:
type: RectilinearBinMapper
boundaries:
[0.0, 1.6, 'inf']
states:
label: unbound
coords:
[20]
label: bound
coords:
[1.56]
And here is my system.py file:
!/usr/bin/env python
import numpy
import west
import os
from west import WESTSystem
from westpa.binning import RectilinearBinMapper
from westpa.binning import FuncBinMapper
from westpa.binning import RecursiveBinMapper
import logging
Hello,
I'm testing this out on one of my systems and cannot seem to get passed the initialization step. I get the following error:
Warning: When compiling code please add the following flags to nvcc: -gencode arch=compute_35,code=[compute_35,sm_35] \ -gencode arch=compute_61,code=[compute_61,sm_61] -gencode arch=compute_70,code=[compute_70,sm_70] simulation py3_test root is /bgfs/ltc1/home/atb43/qmmm/september/6_WESTPA/py3_test Traceback (most recent call last): File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/cmds/w_init.py", line 28, in
import westpa
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/init.py", line 1, in
from . import _rc
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/_rc.py", line 27, in
from .yamlcfg import YAMLConfig
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/yamlcfg.py", line 37, in
from westpa.binning import NopMapper
File "/bgfs/ltc1/home/atb43/qmmm/py3_westpa/lib/west_tools/westpa/binning/init.py", line 1, in
from . import _assign
ImportError: dynamic module does not define module export function (PyInit__assign)
This didn't happen with the python2 WESTPA. I thought this may be due to me defining my bins outside of the west.cfg (in the system.py) and so I tried doing that, but get the same error.
Here is my west.cfg file:
The master WEST configuration file for a simulation.
vi: set filetype=yaml :
west: system: driver: system.SDASystem module_path: $WEST_SIM_ROOT propagation: max_total_iterations: 1000 max_run_wallclock: 72:00:00 propagator: executable gen_istates: true block_size: 1 data: west_data_file: west.h5 datasets:
Settings for w_ipa, an interactive analysis program that can also automate analysis.
analysis: directory: ANALYSIS # specify the directory all analysis files should exist in. kinetics: # general options for both kinetics routines. step_iter: 1 evolution: cumulative extra: [ 'disable-correl' ] analysis_schemes: # Analysis schemes. Required: name (TEST), states, and bins DEFAULT: enabled: True bins:
And here is my system.py file:
!/usr/bin/env python
import numpy import west import os from west import WESTSystem from westpa.binning import RectilinearBinMapper from westpa.binning import FuncBinMapper from westpa.binning import RecursiveBinMapper import logging
log = logging.getLogger(name) log.debug('loading module %r' % name)
def radial_map(coords, mask, output):
center = numpy.array((1.6, 1.6)) coords -= center quotients = numpy.divide(coords[:,1],coords[:,0]) angles = numpy.arctan(quotients)/(2numpy.pi)360 bins = numpy.arange(0,91,1) output[mask] = numpy.digitize(angles, bins)[mask] return output class SDASystem(WESTSystem): ''' Class specify binning schemes, walker counts, and other core weighted ensemble parameters. ''' def initialize(self): self.pcoord_ndim = 2 self.pcoord_len = 2 self.pcoord_dtype = numpy.float32
inner_mapper = RectilinearBinMapper(
[]
)
Thanks, Anthony