Code now mostly pep8 conforming
from __future__ import division; __metaclass__ = type
import logging
-log = logging.getLogger(__name__)
-
import numpy as np
-
import westpa, west
from westpa import extloader
from westpa.yamlcfg import check_bool, ConfigItemMissing
from westpa.binning import VoronoiBinMapper
+log = logging.getLogger(__name__)
class AdaptiveVoronoiDriver:
@@ -38,7 +36,8 @@ class AdaptiveVoronoiDriver:
self.system = sim_manager.system
# Parameters from config file
- self.doAdaptiveVoronoi = check_bool(plugin_config.get('av_enabled', False))
+ self.doAdaptiveVoronoi = \
+ check_bool(plugin_config.get('av_enabled', False))
self.max_centers = plugin_config.get('max_centers', 10)
self.walk_count = plugin_config.get('walk_count', 5)
self.center_freq = plugin_config.get('center_freq', 1)
@@ -63,7 +62,8 @@ class AdaptiveVoronoiDriver:
# Register callback
if self.doAdaptiveVoronoi:
- sim_manager.register_callback(sim_manager.prepare_new_iteration, self.prepare_new_iteration, self.priority)
+ sim_manager.register_callback(sim_manager.prepare_new_iteration,
+ self.prepare_new_iteration, self.priority)
def dfunc(self):
raise NotImplementedError
