Coverage for openxps/__init__.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-22 22:23 +0000

1""" 

2Extended Phase-Space Methods with OpenMM 

3""" 

4 

5from . import bounds # noqa: F401 

6from ._version import __version__ # noqa: F401 

7from .bounds import CircularBounds, NoBounds, PeriodicBounds, ReflectiveBounds 

8from .context import ExtendedSpaceContext # noqa: F401 

9from .couplings import ( 

10 CollectiveVariableCoupling, # noqa: F401 

11 HarmonicCoupling, # noqa: F401 

12 InnerProductCoupling, # noqa: F401 

13) 

14from .dynamical_variable import DynamicalVariable # noqa: F401 

15from .extension_writer import ExtensionWriter # noqa: F401 

16from .integrator import LockstepIntegrator, SplitIntegrator # noqa: F401 

17from .integrators import ( 

18 CSVRIntegrator, 

19 MassiveGGMTIntegrator, 

20 RegulatedNHLIntegrator, 

21 SymmetricLangevinIntegrator, 

22 SymmetricVerletIntegrator, 

23) 

24from .metadynamics import ( # noqa: F401 

25 ExtendedSpaceBiasVariable, 

26 ExtendedSpaceMetadynamics, 

27) 

28from .opes import ExtendedSpaceCombinedOPES, ExtendedSpaceOPES # noqa: F401 

29from .simulation import ExtendedSpaceSimulation # noqa: F401 

30from .system import ExtendedSpaceSystem # noqa: F401 

31 

32__all__ = [ 

33 "bounds", 

34 "CircularBounds", 

35 "NoBounds", 

36 "PeriodicBounds", 

37 "ReflectiveBounds", 

38 "CollectiveVariableCoupling", 

39 "HarmonicCoupling", 

40 "InnerProductCoupling", 

41 "ExtendedSpaceContext", 

42 "ExtendedSpaceSystem", 

43 "ExtensionWriter", 

44 "DynamicalVariable", 

45 "ExtendedSpaceMetadynamics", 

46 "ExtendedSpaceBiasVariable", 

47 "ExtendedSpaceOPES", 

48 "ExtendedSpaceCombinedOPES", 

49 "ExtendedSpaceSimulation", 

50 "LockstepIntegrator", 

51 "SplitIntegrator", 

52 "SymmetricLangevinIntegrator", 

53 "CSVRIntegrator", 

54 "MassiveGGMTIntegrator", 

55 "RegulatedNHLIntegrator", 

56 "SymmetricVerletIntegrator", 

57 "ForceMatchingRegressor", 

58] 

59 

60 

61def __getattr__(name: str): 

62 # ForceMatchingRegressor needs the optional PyTorch, Lightning and pandas, so its 

63 # module is imported only when the class is first used. 

64 if name == "ForceMatchingRegressor": 

65 from .regression import ForceMatchingRegressor # noqa: PLC0415 

66 

67 return ForceMatchingRegressor 

68 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")