ensembler.tests package

Submodules

ensembler.tests.test_analysis module

class ensembler.tests.test_analysis.test_BAR(methodName='runTest')[source]

Bases: ensembler.tests.test_analysis.test_ZwanzigEquation

feCalculation

alias of ensembler.analysis.freeEnergyCalculation.bennetAcceptanceRatio

test_free_Energy1()[source]
class ensembler.tests.test_analysis.test_ZwanzigEquation(methodName='runTest')[source]

Bases: unittest.case.TestCase

feCalculation

alias of ensembler.analysis.freeEnergyCalculation.zwanzigEquation

test_constructor()[source]
test_free_Energy1()[source]
class ensembler.tests.test_analysis.test_threeStateZwanzigReweighting(methodName='runTest')[source]

Bases: ensembler.tests.test_analysis.test_ZwanzigEquation

feCalculation

alias of ensembler.analysis.freeEnergyCalculation.threeStateZwanzig

test_free_Energy1()[source]

ensembler.tests.test_conditions module

class ensembler.tests.test_conditions.boxBoundaryCondition(methodName='runTest')[source]

Bases: unittest.case.TestCase

boundary1D = [0, 10]
boundary2D = [[0, 10], [0, 10]]
condition_class

alias of ensembler.conditions.box_conditions.boxBoundaryCondition

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_apply1D()[source]
test_apply2D()[source]
test_constructor()[source]
test_constructor2D()[source]
test_load_str_path()[source]
test_save_obj_str()[source]
tmp_test_dir: str = None
class ensembler.tests.test_conditions.periodicBoundaryCondition(methodName='runTest')[source]

Bases: unittest.case.TestCase

boundary1D = [0, 10]
boundary2D = [[0, 10], [0, 10]]
condition_class

alias of ensembler.conditions.box_conditions.periodicBoundaryCondition

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_apply1D()[source]
test_apply2D()[source]
test_constructor()[source]
test_constructor2D()[source]
test_load_str_path()[source]
test_save_obj_str()[source]
tmp_test_dir = None
class ensembler.tests.test_conditions.positionRestraintCondition(methodName='runTest')[source]

Bases: unittest.case.TestCase

condition_class

alias of ensembler.conditions.restrain_conditions.positionRestraintCondition

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_apply1D()[source]
test_apply2D()[source]
test_constructor()[source]
test_load_str_path()[source]
test_save_obj_str()[source]
tmp_test_dir = None

ensembler.tests.test_conveyorBelt module

class ensembler.tests.test_conveyorBelt.testEnsemble(methodName='runTest')[source]

Bases: unittest.case.TestCase

convBelt

alias of ensembler.ensemble.replicas_dynamic_parameters.conveyorBelt

testTraj()[source]
test_constructor()[source]
test_run_step()[source]
test_run_step_lambda1()[source]
test_run_step_lambda2()[source]

ensembler.tests.test_ensemble module

class ensembler.tests.test_ensemble.test_ReplicaExchangeCls(methodName='runTest')[source]

Bases: unittest.case.TestCase

RE

alias of ensembler.ensemble._replica_graph._replicaExchange

integrator = <ensembler.samplers.stochastic.metropolisMonteCarloIntegrator object>
potential = <ensembler.potentials.OneD.harmonicOscillatorPotential object>
sys = <ensembler.system.basic_system.system object>
test_getTotPot_1DREnsemble()[source]
test_getTraj_1DREnsemble()[source]
test_init_1DREnsemble()[source]
test_init_2DREnsemble()[source]
test_run_1DREnsemble()[source]
test_tearDown() → None[source]
class ensembler.tests.test_ensemble.test_TemperatureReplicaExchangeCls(methodName='runTest')[source]

Bases: unittest.case.TestCase

TRE

alias of ensembler.ensemble.replica_exchange.temperatureReplicaExchange

test_exchange_all()[source]
test_init()[source]
test_run()[source]
test_simulate_good_exchange()[source]

ensembler.tests.test_ensembler module

Unit and regression test for the ensembler package.

ensembler.tests.test_ensembler.test_ensembler_imported()[source]

Sample test, will always pass so long as import statement worked

ensembler.tests.test_potentials module

class ensembler.tests.test_potentials.potentialCls_2D_harmonicOscillatorPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.TwoD.harmonicOscillatorPotential

test_dHdpos2DNPos()[source]
test_energies2DNPos()[source]
class ensembler.tests.test_potentials.potentialCls_2D_sumPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.ND.sumPotentials

test_constructor_ListPotentials()[source]
test_dHdpos()[source]
test_energies()[source]
test_energies_phase_shifted()[source]
class ensembler.tests.test_potentials.potentialCls_2D_torsionPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.TwoD.addedWavePotential

test_constructor_ListPotentials()[source]
test_dHdpos()[source]
test_energies()[source]
test_energies_phase_shifted()[source]
class ensembler.tests.test_potentials.potentialCls_2D_wavePotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.TwoD.wavePotential

test_dHdpos2D1Pos()[source]
test_dHdpos2DNPos()[source]
test_energies2D1Pos()[source]
test_energies2DNPos()[source]
class ensembler.tests.test_potentials.potentialCls_ND_harmonicOscillatorPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.ND.harmonicOscillatorPotential

test_dHdpos3DNPos()[source]
test_energies3DNPos()[source]
class ensembler.tests.test_potentials.potentialCls_ND_sumPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.ND.sumPotentials

test_constructor_ListPotentials()[source]
test_dHdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_addedPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.addedPotentials

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_addedPotentials2D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.TwoD.addedPotentials

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_coulombPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.coulombPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_doubleWellPot1D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.doubleWellPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_flatwell(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.flatwellPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_fourWellPot1D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.fourWellPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_gaussPotential1D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.gaussPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_harmonicOsc1D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.harmonicOscillatorPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_lennardJonesForceFieldPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.lennardJonesForceFieldPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_lennardJonesPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.lennardJonesPotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_metadynamics(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.metadynamicsPotential

test_dVdpos_1Pos()[source]
test_dVdpos_NPos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_metadynamics2D(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.TwoD.metadynamicsPotential

test_dVdpos()[source]
test_dVdpos_1Pos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_perturbedLinearCoupledPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.linearCoupledPotentials

test_constructor()[source]
test_dHdlam()[source]
test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_perturbed_envelopedPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.envelopedPotential

test_ene_1Pos()[source]
test_ene_NPos()[source]
test_force_1Pos()[source]
test_force_NPos()[source]
test_s_change()[source]
class ensembler.tests.test_potentials.potentialCls_perturbed_exponentialCoupledPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.exponentialCoupledPotentials

test_constructor()[source]
test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_perturbed_hybridCoupledPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.hybridCoupledPotentials

test_constructor()[source]
test_dHdlam()[source]
test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_perturbed_lambdaEnvelopedPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.lambdaEDSPotential

test_ene_1Pos()[source]
test_ene_NPos()[source]
test_force_1Pos()[source]
test_force_NPos()[source]
test_s_change()[source]
class ensembler.tests.test_potentials.potentialCls_sumPotentials(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

a = <ensembler.potentials.OneD.harmonicOscillatorPotential object>
b = <ensembler.potentials.OneD.harmonicOscillatorPotential object>
c = <ensembler.potentials.OneD.harmonicOscillatorPotential object>
potential_class

alias of ensembler.potentials.OneD.sumPotentials

test_constructor_ListPotentials()[source]
test_dHdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialCls_torsionPotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.torsionPotential

test_constructor_ListPotentials()[source]
test_constructor_SinglePotential()[source]
test_dVdpos()[source]
test_energies()[source]
test_energies_phase_shifted()[source]
test_energies_singlepo_list()[source]
test_energies_singlepot()[source]
class ensembler.tests.test_potentials.potentialCls_wavePotential(methodName='runTest')[source]

Bases: ensembler.tests.test_potentials.test_potentialCls

potential_class

alias of ensembler.potentials.OneD.wavePotential

test_dVdpos()[source]
test_energies()[source]
class ensembler.tests.test_potentials.potentialNDCls(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_instantiationError()[source]
class ensembler.tests.test_potentials.test_potentialCls(methodName='runTest')[source]

Bases: unittest.case.TestCase

potential_class

alias of ensembler.potentials._basicPotentials._potentialCls

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_constructor()[source]
test_load_str_path()[source]
test_save_obj_str()[source]
tmp_test_dir: str = None

ensembler.tests.test_sampler module

class ensembler.tests.test_sampler.standard_IntegratorTests(methodName='runTest')[source]

Bases: unittest.case.TestCase

integrator_class

alias of ensembler.samplers._basicSamplers._samplerCls

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_constructor()[source]
test_load_integrator()[source]
test_save_integrator()[source]
tmp_test_dir: str = None
class ensembler.tests.test_sampler.test_LangevinVelocity_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.stochastic.langevinVelocityIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_Langevin_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.stochastic.langevinIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_MetropolisMonteCarlo_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.stochastic.metropolisMonteCarloIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_MonteCarlo_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.stochastic.metropolisMonteCarloIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_cg_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.optimizers.conjugate_gradient

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_leapFrogIntegrator_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.newtonian.leapFrogIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_positionVerletIntegrator_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.newtonian.positionVerletIntegrator

test_integrate()[source]
test_step()[source]
class ensembler.tests.test_sampler.test_verlocityVerletIntegrator_Integrator(methodName='runTest')[source]

Bases: ensembler.tests.test_sampler.standard_IntegratorTests

integrator_class

alias of ensembler.samplers.newtonian.velocityVerletIntegrator

test_integrate()[source]
test_step()[source]

ensembler.tests.test_system module

class ensembler.tests.test_system.test_System(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

system_class

alias of ensembler.system.basic_system.system

test_append_state()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_applyConditions()[source]

NOT IMPLEMENTED!

test_get_Pot()[source]
test_get_Trajectory()[source]
test_initVel()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_load_str_path()[source]
test_propergate()[source]
test_revertStep()[source]
test_save_obj_str()[source]
test_setTemperature()[source]
test_simulate()[source]
test_system_constructor()[source]
test_system_constructor_detail()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totKin()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totPot()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_updateEne()[source]
test_updateTemp()[source]

NOT IMPLEMENTED

tmp_test_dir: str = None
class ensembler.tests.test_system.test_edsSystem1D(methodName='runTest')[source]

Bases: ensembler.tests.test_system.test_System

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

system_class

alias of ensembler.system.eds_system.edsSystem

test_append_state()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_applyConditions()[source]

NOT IMPLEMENTED!

test_get_Pot()[source]
test_initVel()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_propergate()[source]
test_revertStep()[source]
test_setTemperature()[source]
test_simulate()[source]
test_system_constructor()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_system_constructor_detail()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totKin()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totPot()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_updateEne()[source]
test_updateTemp()[source]

NOT IMPLEMENTED

tmp_test_dir: str = None
class ensembler.tests.test_system.test_perturbedSystem1D(methodName='runTest')[source]

Bases: ensembler.tests.test_system.test_System

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

system_class

alias of ensembler.system.perturbed_system.perturbedSystem

test_append_state()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_applyConditions()[source]

NOT IMPLEMENTED!

test_get_Pot()[source]
test_initVel()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_propergate()[source]
test_revertStep()[source]
test_setTemperature()[source]
test_simulate()[source]
test_system_constructor()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_system_constructor_detail()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totKin()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_totPot()[source]

uses init_state, updateEne, randomPos, self.state :return:

test_updateEne()[source]
test_updateTemp()[source]

NOT IMPLEMENTED

tmp_test_dir: str = None

ensembler.tests.test_visualization module

class ensembler.tests.test_visualization.test_Visualization(methodName='runTest')[source]

Bases: unittest.case.TestCase

class ensembler.tests.test_visualization.test_interactive_widgets(methodName='runTest')[source]

Bases: ensembler.tests.test_visualization.test_Visualization

test_1D_cvb()[source]
test_1D_eds()[source]
class ensembler.tests.test_visualization.test_plot_Animations(methodName='runTest')[source]

Bases: ensembler.tests.test_visualization.test_Visualization

test_1D_animation()[source]
class ensembler.tests.test_visualization.test_plot_ConveyorBelt(methodName='runTest')[source]

Bases: ensembler.tests.test_visualization.test_Visualization

test_1D_plotEnsembler()[source]
class ensembler.tests.test_visualization.test_plot_Potentials(methodName='runTest')[source]

Bases: ensembler.tests.test_visualization.test_Visualization

test_1DPotential_V()[source]
test_plot_1DPotential()[source]
test_plot_1DPotential_dhdpos()[source]
class ensembler.tests.test_visualization.test_plot_Simulations(methodName='runTest')[source]

Bases: ensembler.tests.test_visualization.test_Visualization

test_static_sim_plots()[source]
test_twoD_simulation_ana_plot()[source]

Module contents

Test suite, containing automatic tests.