17.1. pysisyphus package
17.1.1. Subpackages
- 17.1.1.1. pysisyphus.benchmarks package
- 17.1.1.2. pysisyphus.calculators package
- 17.1.1.2.1. Submodules
- 17.1.1.2.2. pysisyphus.calculators.AFIR module
- 17.1.1.2.3. pysisyphus.calculators.AnaPot module
- 17.1.1.2.4. pysisyphus.calculators.AnaPot2 module
- 17.1.1.2.5. pysisyphus.calculators.AnaPot3 module
- 17.1.1.2.6. pysisyphus.calculators.AnaPot4 module
- 17.1.1.2.7. pysisyphus.calculators.AnaPotBase module
- 17.1.1.2.8. pysisyphus.calculators.AnaPotCBM module
- 17.1.1.2.9. pysisyphus.calculators.AtomAtomTransTorque module
- 17.1.1.2.10. pysisyphus.calculators.CFOUR module
- 17.1.1.2.11. pysisyphus.calculators.Calculator module
CalculatorCalculator.__init__()Calculator.apply_keep_kind()Calculator.apply_set_plans()Calculator.build_set_plans()Calculator.clean()Calculator.conf_keyCalculator.force_num_hessian()Calculator.geom_from_fn()Calculator.get_cmd()Calculator.get_energy()Calculator.get_forces()Calculator.get_hessian()Calculator.get_num_hessian()Calculator.get_relaxed_density()Calculator.get_restart_info()Calculator.get_stored_wavefunction()Calculator.get_wavefunction()Calculator.keep()Calculator.load_wavefunction_from_file()Calculator.log()Calculator.make_fn()Calculator.nameCalculator.popen()Calculator.prepare()Calculator.prepare_coords()Calculator.prepare_input()Calculator.prepare_path()Calculator.prepare_pattern()Calculator.prepare_turbo_coords()Calculator.prepare_xyz_string()Calculator.print_capabilities()Calculator.print_out_fn()Calculator.restore_org_hessian()Calculator.run()Calculator.run_after()Calculator.set_restart_info()Calculator.verify_chkfiles()
HessKindKeepKindSetPlan
- 17.1.1.2.12. pysisyphus.calculators.CerjanMiller module
- 17.1.1.2.13. pysisyphus.calculators.Composite module
- 17.1.1.2.14. pysisyphus.calculators.ConicalIntersection module
- 17.1.1.2.15. pysisyphus.calculators.DFTBp module
- 17.1.1.2.16. pysisyphus.calculators.DFTD3 module
- 17.1.1.2.17. pysisyphus.calculators.DFTD4 module
- 17.1.1.2.18. pysisyphus.calculators.Dalton module
- 17.1.1.2.19. pysisyphus.calculators.Dimer module
- 17.1.1.2.20. pysisyphus.calculators.Dummy module
- 17.1.1.2.21. pysisyphus.calculators.EGO module
- 17.1.1.2.22. pysisyphus.calculators.EnergyMin module
- 17.1.1.2.23. pysisyphus.calculators.ExternalPotential module
- 17.1.1.2.24. pysisyphus.calculators.FakeASE module
- 17.1.1.2.25. pysisyphus.calculators.FourWellAnaPot module
- 17.1.1.2.26. pysisyphus.calculators.FreeEndNEBPot module
- 17.1.1.2.27. pysisyphus.calculators.Gaussian09 module
- 17.1.1.2.28. pysisyphus.calculators.Gaussian16 module
- 17.1.1.2.29. pysisyphus.calculators.HardSphere module
- 17.1.1.2.30. pysisyphus.calculators.IDPPCalculator module
- 17.1.1.2.31. pysisyphus.calculators.IPIClient module
- 17.1.1.2.32. pysisyphus.calculators.IPIServer module
- 17.1.1.2.33. pysisyphus.calculators.LEPSBase module
- 17.1.1.2.34. pysisyphus.calculators.LEPSExpr module
- 17.1.1.2.35. pysisyphus.calculators.LennardJones module
- 17.1.1.2.36. pysisyphus.calculators.MOPAC module
- 17.1.1.2.37. pysisyphus.calculators.MullerBrownSympyPot module
- 17.1.1.2.38. pysisyphus.calculators.MultiCalc module
- 17.1.1.2.39. pysisyphus.calculators.NFK module
- 17.1.1.2.40. pysisyphus.calculators.OBabel module
- 17.1.1.2.41. pysisyphus.calculators.ONIOMv2 module
- 17.1.1.2.42. pysisyphus.calculators.ORCA module
- 17.1.1.2.43. pysisyphus.calculators.ORCA5 module
- 17.1.1.2.44. pysisyphus.calculators.OpenMM module
- 17.1.1.2.45. pysisyphus.calculators.OpenMolcas module
- 17.1.1.2.46. pysisyphus.calculators.OverlapCalculator module
- 17.1.1.2.47. pysisyphus.calculators.Pots1d module
- 17.1.1.2.48. pysisyphus.calculators.Psi4 module
- 17.1.1.2.49. pysisyphus.calculators.PyPsi4 module
- 17.1.1.2.50. pysisyphus.calculators.PySCF module
- 17.1.1.2.51. pysisyphus.calculators.QCEngine module
- 17.1.1.2.52. pysisyphus.calculators.Rastrigin module
- 17.1.1.2.53. pysisyphus.calculators.Remote module
- 17.1.1.2.54. pysisyphus.calculators.RobinDayClass2 module
- 17.1.1.2.55. pysisyphus.calculators.Rosenbrock module
- 17.1.1.2.56. pysisyphus.calculators.SerpentinePot module
- 17.1.1.2.57. pysisyphus.calculators.SocketCalc module
- 17.1.1.2.58. pysisyphus.calculators.TBLite module
- 17.1.1.2.59. pysisyphus.calculators.TIP3P module
- 17.1.1.2.60. pysisyphus.calculators.TransTorque module
- 17.1.1.2.61. pysisyphus.calculators.Turbomole module
- 17.1.1.2.62. pysisyphus.calculators.VRIPot module
- 17.1.1.2.63. pysisyphus.calculators.WFOWrapper module
- 17.1.1.2.64. pysisyphus.calculators.WFOWrapper2 module
- 17.1.1.2.65. pysisyphus.calculators.XTB module
- 17.1.1.2.66. pysisyphus.calculators.cosmo_data module
- 17.1.1.2.67. pysisyphus.calculators.parser module
- 17.1.1.2.68. pysisyphus.calculators.pyscf_lazy module
- 17.1.1.2.69. Module contents
- 17.1.1.3. pysisyphus.cos package
- 17.1.1.3.1. Submodules
- 17.1.1.3.2. pysisyphus.cos.AdaptiveNEB module
- 17.1.1.3.3. pysisyphus.cos.ChainOfStates module
- 17.1.1.3.4. pysisyphus.cos.FreeEndNEB module
- 17.1.1.3.5. pysisyphus.cos.FreezingString module
FreezingStringFreezingString.allcoordsFreezingString.as_xyz()FreezingString.coordsFreezingString.energyFreezingString.forcesFreezingString.fully_grownFreezingString.get_new_image()FreezingString.get_tangent()FreezingString.left_frontierFreezingString.reparametrize()FreezingString.right_frontierFreezingString.set_new_frontier_nodes()
- 17.1.1.3.6. pysisyphus.cos.GrowingChainOfStates module
- 17.1.1.3.7. pysisyphus.cos.GrowingNT module
GrowingNTGrowingNT.PGrowingNT.as_xyz()GrowingNT.atomsGrowingNT.calc_hessian_for()GrowingNT.cart_coordsGrowingNT.cart_forcesGrowingNT.check_convergence()GrowingNT.clear_passed()GrowingNT.coordsGrowingNT.energyGrowingNT.forcesGrowingNT.freeze_atomsGrowingNT.get_additional_print()GrowingNT.get_energy_and_forces_at()GrowingNT.get_energy_at()GrowingNT.get_path()GrowingNT.get_r()GrowingNT.grow_image()GrowingNT.initialize()GrowingNT.log()GrowingNT.loggerGrowingNT.moving_atomsGrowingNT.rGrowingNT.reparametrize()
- 17.1.1.3.8. pysisyphus.cos.GrowingString module
- 17.1.1.3.9. pysisyphus.cos.NEB module
- 17.1.1.3.10. pysisyphus.cos.SimpleZTS module
- 17.1.1.3.11. pysisyphus.cos.distributed module
- 17.1.1.3.12. pysisyphus.cos.multi_state module
- 17.1.1.3.13. pysisyphus.cos.stiffness module
- 17.1.1.3.14. Module contents
- 17.1.1.4. pysisyphus.db package
- 17.1.1.5. pysisyphus.diabatization package
- 17.1.1.5.1. Submodules
- 17.1.1.5.2. pysisyphus.diabatization.chimerabatch module
- 17.1.1.5.3. pysisyphus.diabatization.coulomb module
- 17.1.1.5.4. pysisyphus.diabatization.coulomb_eta module
- 17.1.1.5.5. pysisyphus.diabatization.driver module
- 17.1.1.5.6. pysisyphus.diabatization.driver_yaml module
- 17.1.1.5.7. pysisyphus.diabatization.helpers module
- 17.1.1.5.8. pysisyphus.diabatization.multipole module
- 17.1.1.5.9. pysisyphus.diabatization.plot module
- 17.1.1.5.10. pysisyphus.diabatization.results module
DiabatizationResultDiabatizationResult.L_tensorDiabatizationResult.PDiabatizationResult.R_tensorDiabatizationResult.UDiabatizationResult.adia_ensDiabatizationResult.couplingsDiabatizationResult.cur_cycleDiabatizationResult.dip_mom_tensorDiabatizationResult.epotsDiabatizationResult.is_convergedDiabatizationResult.kindDiabatizationResult.nstatesDiabatizationResult.quad_mom_tensorDiabatizationResult.render_report()DiabatizationResult.savez()DiabatizationResult.sort()
dia_result_from_jac_result()
- 17.1.1.5.11. Module contents
- 17.1.1.6. pysisyphus.drivers package
- 17.1.1.6.1. Submodules
- 17.1.1.6.2. pysisyphus.drivers.afir module
- 17.1.1.6.3. pysisyphus.drivers.barriers module
- 17.1.1.6.4. pysisyphus.drivers.birkholz module
- 17.1.1.6.5. pysisyphus.drivers.boltzmann module
- 17.1.1.6.6. pysisyphus.drivers.calculations module
- 17.1.1.6.7. pysisyphus.drivers.cluster module
- 17.1.1.6.8. pysisyphus.drivers.local_force_constants module
- 17.1.1.6.9. pysisyphus.drivers.merge module
- 17.1.1.6.10. pysisyphus.drivers.merge_mol2 module
- 17.1.1.6.11. pysisyphus.drivers.opt module
- 17.1.1.6.12. pysisyphus.drivers.perf module
- 17.1.1.6.13. pysisyphus.drivers.pka module
- 17.1.1.6.14. pysisyphus.drivers.precon_pos_rot module
- 17.1.1.6.15. pysisyphus.drivers.rates module
- 17.1.1.6.16. pysisyphus.drivers.replace module
- 17.1.1.6.17. pysisyphus.drivers.scan module
- 17.1.1.6.18. pysisyphus.drivers.spectrum module
- 17.1.1.6.19. pysisyphus.drivers.spectrum_ctnum module
- 17.1.1.6.20. pysisyphus.drivers.thermo module
- 17.1.1.6.21. Module contents
- 17.1.1.7. pysisyphus.dynamics package
- 17.1.1.7.1. Submodules
- 17.1.1.7.2. pysisyphus.dynamics.Gaussian module
- 17.1.1.7.3. pysisyphus.dynamics.colvars module
- 17.1.1.7.4. pysisyphus.dynamics.driver module
- 17.1.1.7.5. pysisyphus.dynamics.helpers module
dump_coords()energy_forces_getter_closure()get_mb_velocities()get_mb_velocities_for_geom()kinetic_energy_for_temperature()kinetic_energy_from_velocities()remove_com_velocity()scale_velocities_to_energy()scale_velocities_to_temperatue()temperature_for_kinetic_energy()unscaled_velocity_distribution()
- 17.1.1.7.6. pysisyphus.dynamics.lincs module
- 17.1.1.7.7. pysisyphus.dynamics.mdp module
- 17.1.1.7.8. pysisyphus.dynamics.rattle module
- 17.1.1.7.9. pysisyphus.dynamics.thermostats module
- 17.1.1.7.10. pysisyphus.dynamics.wigner module
- 17.1.1.7.11. Module contents
- 17.1.1.8. pysisyphus.franckcondon package
- 17.1.1.8.1. Submodules
- 17.1.1.8.2. pysisyphus.franckcondon.duschinsky module
- 17.1.1.8.3. pysisyphus.franckcondon.helpers module
- 17.1.1.8.4. pysisyphus.franckcondon.imdho module
- 17.1.1.8.5. pysisyphus.franckcondon.lq2 module
- 17.1.1.8.6. Module contents
- 17.1.1.9. pysisyphus.hindered_rotor package
- 17.1.1.9.1. Submodules
- 17.1.1.9.2. pysisyphus.hindered_rotor.RotorInfo module
FragmentRotorInfoRotorInfo.as_xyzs()RotorInfo.atomsRotorInfo.bondRotorInfo.coords3dRotorInfo.dump_trj()RotorInfo.fragment_leftRotorInfo.fragment_rightRotorInfo.from_torsion()RotorInfo.get_fragment()RotorInfo.imom_leftRotorInfo.imom_rightRotorInfo.indicesRotorInfo.indices_leftRotorInfo.indices_rightRotorInfo.mRotorInfo.massesRotorInfo.nRotorInfo.natomsRotorInfo.render_report()RotorInfo.tot_mass
prepare_rotor_info()
- 17.1.1.9.3. pysisyphus.hindered_rotor.TorsionGPRResult module
- 17.1.1.9.4. pysisyphus.hindered_rotor.fragment module
- 17.1.1.9.5. pysisyphus.hindered_rotor.inertmom module
- 17.1.1.9.6. pysisyphus.hindered_rotor.opt module
- 17.1.1.9.7. pysisyphus.hindered_rotor.torsion_driver module
- 17.1.1.9.8. pysisyphus.hindered_rotor.torsion_gpr module
- 17.1.1.9.9. pysisyphus.hindered_rotor.types module
- 17.1.1.9.10. Module contents
- 17.1.1.10. pysisyphus.intcoords package
- 17.1.1.10.1. Submodules
- 17.1.1.10.2. pysisyphus.intcoords.Bend module
- 17.1.1.10.3. pysisyphus.intcoords.Bend2 module
- 17.1.1.10.4. pysisyphus.intcoords.BondedFragment module
- 17.1.1.10.5. pysisyphus.intcoords.Cartesian module
- 17.1.1.10.6. pysisyphus.intcoords.CartesianCoords module
CartesianCoordsCartesianCoords.coordsCartesianCoords.coords3dCartesianCoords.inv_masses_rep_sqrtCartesianCoords.massesCartesianCoords.masses_sqrtCartesianCoords.project_hessian()CartesianCoords.transform_forces()CartesianCoords.transform_hessian()CartesianCoords.transform_int_step()CartesianCoords.typed_prims
MWCartesianCoords
- 17.1.1.10.7. pysisyphus.intcoords.Coords module
- 17.1.1.10.8. pysisyphus.intcoords.DLC module
- 17.1.1.10.9. pysisyphus.intcoords.DistanceFunction module
- 17.1.1.10.10. pysisyphus.intcoords.DummyImproper module
- 17.1.1.10.11. pysisyphus.intcoords.DummyTorsion module
- 17.1.1.10.12. pysisyphus.intcoords.LinearBend module
- 17.1.1.10.13. pysisyphus.intcoords.LinearDisplacement module
- 17.1.1.10.14. pysisyphus.intcoords.OutOfPlane module
- 17.1.1.10.15. pysisyphus.intcoords.PrimTypes module
PTPrimTypesPrimTypes.AUX_BONDPrimTypes.AUX_INTERFRAG_BONDPrimTypes.BENDPrimTypes.BEND2PrimTypes.BONDPrimTypes.BONDED_FRAGMENTPrimTypes.CARTESIANPrimTypes.CARTESIAN_XPrimTypes.CARTESIAN_YPrimTypes.CARTESIAN_ZPrimTypes.DISTANCE_FUNCTIONPrimTypes.DUMMY_IMPROPERPrimTypes.DUMMY_TORSIONPrimTypes.HYDROGEN_BONDPrimTypes.IMPROPER_DIHEDRALPrimTypes.INTERFRAG_BONDPrimTypes.LINEAR_BENDPrimTypes.LINEAR_BEND_COMPLEMENTPrimTypes.LINEAR_DISPLACEMENTPrimTypes.LINEAR_DISPLACEMENT_COMPLEMENTPrimTypes.OUT_OF_PLANEPrimTypes.PROPER_DIHEDRALPrimTypes.PROPER_DIHEDRAL2PrimTypes.ROBUST_TORSION1PrimTypes.ROBUST_TORSION2PrimTypes.ROTATIONPrimTypes.ROTATION_APrimTypes.ROTATION_BPrimTypes.ROTATION_CPrimTypes.TRANSLATIONPrimTypes.TRANSLATION_XPrimTypes.TRANSLATION_YPrimTypes.TRANSLATION_Z
get_bonded_frag_coord()get_dist_func()get_rot_coord()normalize_prim_input()normalize_prim_inputs()prim_for_human()prims_from_prim_inputs()
- 17.1.1.10.16. pysisyphus.intcoords.Primitive module
- 17.1.1.10.17. pysisyphus.intcoords.RedundantCoords module
HybridRedundantCoordsRedundantCoordsRedundantCoords.BRedundantCoords.B_invRedundantCoords.B_inv_primRedundantCoords.B_primRedundantCoords.Bt_invRedundantCoords.Bt_inv_primRedundantCoords.CRedundantCoords.PRedundantCoords.backtransform_hessian()RedundantCoords.bend_atom_indicesRedundantCoords.bend_indicesRedundantCoords.bond_atom_indicesRedundantCoords.bond_indicesRedundantCoords.bond_typed_primsRedundantCoords.cartesian_indicesRedundantCoords.clear()RedundantCoords.constrained_indicesRedundantCoords.coordsRedundantCoords.coords3dRedundantCoords.dihedral_atom_indicesRedundantCoords.dihedral_indicesRedundantCoords.eval()RedundantCoords.get_K_matrix()RedundantCoords.get_index_of_typed_prim()RedundantCoords.get_prim_internals_by_indices()RedundantCoords.inv_B()RedundantCoords.inv_Bt()RedundantCoords.linear_bend_indicesRedundantCoords.log()RedundantCoords.log_int_grad_msg()RedundantCoords.outofplane_indicesRedundantCoords.prim_coordsRedundantCoords.prim_indices_setRedundantCoords.prim_internalsRedundantCoords.primitivesRedundantCoords.print_typed_prims()RedundantCoords.project_hessian()RedundantCoords.project_vector()RedundantCoords.return_inds()RedundantCoords.rotation_indicesRedundantCoords.set_inds_from_typed_prims()RedundantCoords.set_primitive_indices()RedundantCoords.transform_forces()RedundantCoords.transform_hessian()RedundantCoords.transform_int_step()RedundantCoords.translation_indicesRedundantCoords.typed_prims
TMTRICTRICget_tr_projector()
- 17.1.1.10.18. pysisyphus.intcoords.RobustTorsion module
- 17.1.1.10.19. pysisyphus.intcoords.Rotation module
- 17.1.1.10.20. pysisyphus.intcoords.Stretch module
- 17.1.1.10.21. pysisyphus.intcoords.Torsion module
- 17.1.1.10.22. pysisyphus.intcoords.Torsion2 module
- 17.1.1.10.23. pysisyphus.intcoords.Translation module
- 17.1.1.10.24. pysisyphus.intcoords.augment_bonds module
- 17.1.1.10.25. pysisyphus.intcoords.derivatives module
- 17.1.1.10.26. pysisyphus.intcoords.eval module
- 17.1.1.10.27. pysisyphus.intcoords.exceptions module
- 17.1.1.10.28. pysisyphus.intcoords.findiffs module
- 17.1.1.10.29. pysisyphus.intcoords.generate_derivatives module
- 17.1.1.10.30. pysisyphus.intcoords.helpers module
- 17.1.1.10.31. pysisyphus.intcoords.logging_conf module
- 17.1.1.10.32. pysisyphus.intcoords.mp_derivatives module
- 17.1.1.10.33. pysisyphus.intcoords.setup module
CoordInfoCoordInfo.aux_interfrag_bondsCoordInfo.bendsCoordInfo.bondsCoordInfo.cartesian_indsCoordInfo.fragmentsCoordInfo.hydrogen_bondsCoordInfo.improper_dihedralsCoordInfo.interfrag_bondsCoordInfo.linear_bend_complementsCoordInfo.linear_bendsCoordInfo.proper_dihedralsCoordInfo.rotation_indsCoordInfo.translation_indsCoordInfo.typed_prims
connect_fragments()connect_fragments_ahlrichs()connect_fragments_kmeans()get_bend_inds()get_bond_mat()get_bond_sets()get_dihedral_inds()get_fragments()get_hydrogen_bond_inds()get_hydrogen_bond_inds_v2()get_linear_bend_inds()get_pair_covalent_radii()get_primitives()setup_redundant()setup_redundant_from_geom()sort_by_prim_type()
- 17.1.1.10.34. pysisyphus.intcoords.setup_fast module
- 17.1.1.10.35. pysisyphus.intcoords.update module
- 17.1.1.10.36. pysisyphus.intcoords.valid module
- 17.1.1.10.37. Module contents
BendBend2BondedFragmentCartesianCoordsCartesianCoords.coordsCartesianCoords.coords3dCartesianCoords.inv_masses_rep_sqrtCartesianCoords.massesCartesianCoords.masses_sqrtCartesianCoords.project_hessian()CartesianCoords.transform_forces()CartesianCoords.transform_hessian()CartesianCoords.transform_int_step()CartesianCoords.typed_prims
CartesianXCartesianYCartesianZDLCDistanceFunctionDummyImproperDummyTorsionHDLCHybridRedundantCoordsLinearBendLinearDisplacementMWCartesianCoordsOutOfPlanePrimitiveNotDefinedExceptionRedundantCoordsRedundantCoords.BRedundantCoords.B_invRedundantCoords.B_inv_primRedundantCoords.B_primRedundantCoords.Bt_invRedundantCoords.Bt_inv_primRedundantCoords.CRedundantCoords.PRedundantCoords.backtransform_hessian()RedundantCoords.bend_atom_indicesRedundantCoords.bend_indicesRedundantCoords.bond_atom_indicesRedundantCoords.bond_indicesRedundantCoords.bond_typed_primsRedundantCoords.cartesian_indicesRedundantCoords.clear()RedundantCoords.constrained_indicesRedundantCoords.coordsRedundantCoords.coords3dRedundantCoords.dihedral_atom_indicesRedundantCoords.dihedral_indicesRedundantCoords.eval()RedundantCoords.get_K_matrix()RedundantCoords.get_index_of_typed_prim()RedundantCoords.get_prim_internals_by_indices()RedundantCoords.inv_B()RedundantCoords.inv_Bt()RedundantCoords.linear_bend_indicesRedundantCoords.log()RedundantCoords.log_int_grad_msg()RedundantCoords.outofplane_indicesRedundantCoords.prim_coordsRedundantCoords.prim_indices_setRedundantCoords.prim_internalsRedundantCoords.primitivesRedundantCoords.print_typed_prims()RedundantCoords.project_hessian()RedundantCoords.project_vector()RedundantCoords.return_inds()RedundantCoords.rotation_indicesRedundantCoords.set_inds_from_typed_prims()RedundantCoords.set_primitive_indices()RedundantCoords.transform_forces()RedundantCoords.transform_hessian()RedundantCoords.transform_int_step()RedundantCoords.translation_indicesRedundantCoords.typed_prims
RobustTorsion1RobustTorsion2RotationARotationBRotationCStretchTMTRICTRICTorsionTorsion2TranslationXTranslationYTranslationZ
- 17.1.1.11. pysisyphus.interpolate package
- 17.1.1.11.1. Submodules
- 17.1.1.11.2. pysisyphus.interpolate.Geodesic module
- 17.1.1.11.3. pysisyphus.interpolate.IDPP module
- 17.1.1.11.4. pysisyphus.interpolate.Interpolator module
- 17.1.1.11.5. pysisyphus.interpolate.LST module
- 17.1.1.11.6. pysisyphus.interpolate.Redund module
- 17.1.1.11.7. pysisyphus.interpolate.helpers module
- 17.1.1.11.8. Module contents
- 17.1.1.12. pysisyphus.io package
- 17.1.1.12.1. Submodules
- 17.1.1.12.2. pysisyphus.io.aomix module
- 17.1.1.12.3. pysisyphus.io.bson module
- 17.1.1.12.4. pysisyphus.io.cjson module
- 17.1.1.12.5. pysisyphus.io.coord module
- 17.1.1.12.6. pysisyphus.io.crd module
- 17.1.1.12.7. pysisyphus.io.cube module
- 17.1.1.12.8. pysisyphus.io.fchk module
- 17.1.1.12.9. pysisyphus.io.hdf5 module
- 17.1.1.12.10. pysisyphus.io.hessian module
- 17.1.1.12.11. pysisyphus.io.mol2 module
- 17.1.1.12.12. pysisyphus.io.molcas module
- 17.1.1.12.13. pysisyphus.io.molden module
- 17.1.1.12.14. pysisyphus.io.orca module
- 17.1.1.12.15. pysisyphus.io.pdb module
- 17.1.1.12.16. pysisyphus.io.psf module
- 17.1.1.12.17. pysisyphus.io.pubchem module
- 17.1.1.12.18. pysisyphus.io.qcschema module
- 17.1.1.12.19. pysisyphus.io.sdf module
- 17.1.1.12.20. pysisyphus.io.trexio module
- 17.1.1.12.21. pysisyphus.io.xyz module
- 17.1.1.12.22. pysisyphus.io.zip module
- 17.1.1.12.23. pysisyphus.io.zmat module
- 17.1.1.12.24. Module contents
Cubegeom_from_cjson()geom_from_crd()geom_from_cube()geom_from_fchk()geom_from_hessian()geom_from_mol2()geom_from_pdb()geom_from_pubchem_name()geom_from_qcschema()geom_from_zmat()geom_from_zmat_fn()geom_to_crd_str()geoms_from_inline_xyz()geoms_from_molden()geoms_from_xyz()parse_cube()parse_xyz()save_hessian()save_third_deriv()
- 17.1.1.13. pysisyphus.irc package
- 17.1.1.13.1. Submodules
- 17.1.1.13.2. pysisyphus.irc.DWI module
- 17.1.1.13.3. pysisyphus.irc.DampedVelocityVerlet module
- 17.1.1.13.4. pysisyphus.irc.Euler module
- 17.1.1.13.5. pysisyphus.irc.EulerPC module
- 17.1.1.13.6. pysisyphus.irc.GonzalezSchlegel module
- 17.1.1.13.7. pysisyphus.irc.IMKMod module
- 17.1.1.13.8. pysisyphus.irc.IRC module
- 17.1.1.13.9. pysisyphus.irc.IRCDummy module
- 17.1.1.13.10. pysisyphus.irc.Instanton module
InstantonInstanton.PInstanton.P_bhInstanton.action()Instanton.action_gradient()Instanton.action_hessian()Instanton.as_xyz()Instanton.cart_coordsInstanton.cart_forcesInstanton.cart_hessianInstanton.coordsInstanton.energyInstanton.forcesInstanton.from_instanton()Instanton.from_ts()Instanton.get_additional_print()Instanton.gradientInstanton.hessianInstanton.is_analytical_2d()Instanton.path_length
T_crossover_from_eigval()T_crossover_from_ts()log_progress()
- 17.1.1.13.11. pysisyphus.irc.LQA module
- 17.1.1.13.12. pysisyphus.irc.ModeKill module
- 17.1.1.13.13. pysisyphus.irc.ParamPlot module
- 17.1.1.13.14. pysisyphus.irc.RK4 module
- 17.1.1.13.15. pysisyphus.irc.initial_displ module
- 17.1.1.13.16. Module contents
- 17.1.1.14. pysisyphus.line_searches package
- 17.1.1.14.1. Submodules
- 17.1.1.14.2. pysisyphus.line_searches.Backtracking module
- 17.1.1.14.3. pysisyphus.line_searches.HagerZhang module
- 17.1.1.14.4. pysisyphus.line_searches.LineSearch module
LineSearchLineSearch.__init__()LineSearch.check_alpha()LineSearch.curvature_condition()LineSearch.from_geom()LineSearch.get_fg()LineSearch.get_phi_dphi()LineSearch.got_alpha_phi_dphi()LineSearch.log()LineSearch.prepare_line_search()LineSearch.run()LineSearch.run_line_search()LineSearch.strong_curvature_condition()LineSearch.strong_wolfe_condition()LineSearch.sufficiently_decreased()LineSearch.wolfe_condition()
LineSearchConvergedLineSearchNotConvergedLineSearchResult
- 17.1.1.14.5. pysisyphus.line_searches.StrongWolfe module
- 17.1.1.14.6. pysisyphus.line_searches.interpol module
- 17.1.1.14.7. Module contents
- 17.1.1.15. pysisyphus.marcus_dim package
- 17.1.1.15.1. Submodules
- 17.1.1.15.2. pysisyphus.marcus_dim.config module
- 17.1.1.15.3. pysisyphus.marcus_dim.fit module
calculate_property()create_correlation_plots()create_marcus_coefficient_plot()dump_marcus_dim_xyz_trj()en_exc_property()epos_from_wf()epos_property()epos_property_iao()epos_property_mulliken()fit_marcus_dim()fit_marcus_dim_batched()get_batch_calc_func()get_batch_calc_func_from_npz()get_displaced_coordinates()get_marcus_dim()get_mass()get_wavenumber()get_wavenumber_from_coeffs()report_correlations()report_marcus_coefficients()run_batch_calcs()setup_calc_client()
- 17.1.1.15.4. pysisyphus.marcus_dim.param module
- 17.1.1.15.5. pysisyphus.marcus_dim.run module
- 17.1.1.15.6. pysisyphus.marcus_dim.scan module
- 17.1.1.15.7. pysisyphus.marcus_dim.types module
- 17.1.1.15.8. Module contents
- 17.1.1.16. pysisyphus.modefollow package
- 17.1.1.17. pysisyphus.numerov package
- 17.1.1.18. pysisyphus.numint package
- 17.1.1.19. pysisyphus.optimizers package
- 17.1.1.19.1. Submodules
- 17.1.1.19.2. pysisyphus.optimizers.BFGS module
- 17.1.1.19.3. pysisyphus.optimizers.BacktrackingOptimizer module
- 17.1.1.19.4. pysisyphus.optimizers.ConjugateGradient module
- 17.1.1.19.5. pysisyphus.optimizers.CubicNewton module
- 17.1.1.19.6. pysisyphus.optimizers.FIRE module
- 17.1.1.19.7. pysisyphus.optimizers.HessianOptimizer module
- 17.1.1.19.8. pysisyphus.optimizers.LBFGS module
- 17.1.1.19.9. pysisyphus.optimizers.LayerOpt module
- 17.1.1.19.10. pysisyphus.optimizers.NCOptimizer module
- 17.1.1.19.11. pysisyphus.optimizers.Optimizer module
- 17.1.1.19.12. pysisyphus.optimizers.PreconLBFGS module
- 17.1.1.19.13. pysisyphus.optimizers.PreconSteepestDescent module
- 17.1.1.19.14. pysisyphus.optimizers.QuickMin module
- 17.1.1.19.15. pysisyphus.optimizers.RFOptimizer module
- 17.1.1.19.16. pysisyphus.optimizers.RSA module
- 17.1.1.19.17. pysisyphus.optimizers.StabilizedQNMethod module
- 17.1.1.19.18. pysisyphus.optimizers.SteepestDescent module
- 17.1.1.19.19. pysisyphus.optimizers.StringOptimizer module
- 17.1.1.19.20. pysisyphus.optimizers.closures module
- 17.1.1.19.21. pysisyphus.optimizers.cls_map module
- 17.1.1.19.22. pysisyphus.optimizers.exceptions module
- 17.1.1.19.23. pysisyphus.optimizers.gdiis module
- 17.1.1.19.24. pysisyphus.optimizers.guess_hessians module
- 17.1.1.19.25. pysisyphus.optimizers.hessian_updates module
- 17.1.1.19.26. pysisyphus.optimizers.poly_fit module
- 17.1.1.19.27. pysisyphus.optimizers.precon module
- 17.1.1.19.28. pysisyphus.optimizers.restrict_step module
- 17.1.1.19.29. Module contents
- 17.1.1.20. pysisyphus.partfuncs package
- 17.1.1.21. pysisyphus.plotters package
- 17.1.1.22. pysisyphus.stocastic package
- 17.1.1.23. pysisyphus.tests package
- 17.1.1.24. pysisyphus.tsoptimizers package
- 17.1.1.25. pysisyphus.wavefunction package
- 17.1.1.25.1. Subpackages
- 17.1.1.25.1.1. pysisyphus.wavefunction.ints package
- 17.1.1.25.1.1.1. Submodules
- 17.1.1.25.1.1.2. pysisyphus.wavefunction.ints.boys module
- 17.1.1.25.1.1.3. pysisyphus.wavefunction.ints.cart_gto3d module
- 17.1.1.25.1.1.4. pysisyphus.wavefunction.ints.coulomb3d module
- 17.1.1.25.1.1.5. pysisyphus.wavefunction.ints.diag_quadrupole3d module
- 17.1.1.25.1.1.6. pysisyphus.wavefunction.ints.dipole3d module
- 17.1.1.25.1.1.7. pysisyphus.wavefunction.ints.int2c2e3d module
- 17.1.1.25.1.1.8. pysisyphus.wavefunction.ints.int3c2e3d_sph module
- 17.1.1.25.1.1.9. pysisyphus.wavefunction.ints.kinetic3d module
- 17.1.1.25.1.1.10. pysisyphus.wavefunction.ints.multipole3d_sph module
- 17.1.1.25.1.1.11. pysisyphus.wavefunction.ints.ovlp3d module
- 17.1.1.25.1.1.12. pysisyphus.wavefunction.ints.quadrupole3d module
- 17.1.1.25.1.1.13. Module contents
- 17.1.1.25.1.2. pysisyphus.wavefunction.ints_numba package
- 17.1.1.25.1.2.1. Submodules
- 17.1.1.25.1.2.2. pysisyphus.wavefunction.ints_numba.diag_quadrupole3d module
- 17.1.1.25.1.2.3. pysisyphus.wavefunction.ints_numba.dipole3d module
- 17.1.1.25.1.2.4. pysisyphus.wavefunction.ints_numba.kinetic3d module
- 17.1.1.25.1.2.5. pysisyphus.wavefunction.ints_numba.multipole3d_sph module
- 17.1.1.25.1.2.6. pysisyphus.wavefunction.ints_numba.ovlp3d module
- 17.1.1.25.1.2.7. pysisyphus.wavefunction.ints_numba.quadrupole3d module
- 17.1.1.25.1.2.8. Module contents
- 17.1.1.25.1.1. pysisyphus.wavefunction.ints package
- 17.1.1.25.2. Submodules
- 17.1.1.25.3. pysisyphus.wavefunction.Basis module
- 17.1.1.25.4. pysisyphus.wavefunction.DIIS module
- 17.1.1.25.5. pysisyphus.wavefunction.backend_numba module
- 17.1.1.25.6. pysisyphus.wavefunction.backend_numba_multipole module
- 17.1.1.25.7. pysisyphus.wavefunction.backend_python module
- 17.1.1.25.8. pysisyphus.wavefunction.bond_order module
- 17.1.1.25.9. pysisyphus.wavefunction.cart2sph module
- 17.1.1.25.10. pysisyphus.wavefunction.density_numba module
- 17.1.1.25.11. pysisyphus.wavefunction.dma module
- 17.1.1.25.12. pysisyphus.wavefunction.excited_states module
ct_numbers()ct_numbers_for_states()detachment_attachment_density()get_state_to_state_transition_density()make_density_matrices_for_root()make_mo_density_matrix_for_root()mo_inds_from_tden()norm_ci_coeffs()nto_overlaps()ovlp()parse_tden()rAB()r_diff()tden_overlaps()to_pairs()to_same_basis()top_differences()
- 17.1.1.25.13. pysisyphus.wavefunction.gdma_int module
- 17.1.1.25.14. pysisyphus.wavefunction.gen_ints module
CartGTO3dCartGTOShellCoulombCoulombShellDiagQuadrupole3dShellERIERIShellKinetic1dKinetic3dKinetic3dShellMultipole1dMultipole3dMultipole3dShellOverlap1dOverlap3dShellSpinOrbitSpinOrbitShellThreeCenterTwoElectronThreeCenterTwoElectronBaseThreeCenterTwoElectronShellThreeCenterTwoElectronSphThreeCenterTwoElectronSphShellTwoCenter1dTwoCenterTwoElectronTwoCenterTwoElectronShellboyscanonical_order()cart2spherical()gen_integral_exprs()get_center()get_centers()get_map()make_c_func()make_py_func()parse_args()render_c_funcs()render_py_funcs()run()shell_iter()write_file()write_render()
- 17.1.1.25.15. pysisyphus.wavefunction.helpers module
- 17.1.1.25.16. pysisyphus.wavefunction.localization module
- 17.1.1.25.17. pysisyphus.wavefunction.multipole module
- 17.1.1.25.18. pysisyphus.wavefunction.normalization module
- 17.1.1.25.19. pysisyphus.wavefunction.pop_analysis module
- 17.1.1.25.20. pysisyphus.wavefunction.shells module
AOMixShellsFCHKShellsIntegralBackendMoldenShellsORCAMoldenShellsORCAShellsShellShellsShells.P_cartShells.P_cart_nativeShells.P_sphShells.P_sph_nativeShells.S_cartShells.S_sphShells.T_cartShells.T_sphShells.V_cartShells.V_sphShells.as_arrays()Shells.as_gau_gbs()Shells.as_numba_shells()Shells.as_numba_shellstructs()Shells.as_tuple()Shells.atoms_coords3dShells.backend_moduleShells.cart2sph_coeffsShells.cart_ao_centersShells.cart_bf_numShells.cart_sizeShells.center_shell_iter()Shells.dump_to_h5_group()Shells.eval()Shells.fragment_ao_map()Shells.from_aomix()Shells.from_basis()Shells.from_fchk()Shells.from_orca_json()Shells.from_pyscf_mol()Shells.from_shells()Shells.from_sympleints_arrays()Shells.from_sympleints_h5()Shells.get_1el_ints_cart()Shells.get_1el_ints_sph()Shells.get_2c2el_ints_cart()Shells.get_2c2el_ints_sph()Shells.get_3c2el_ints_cart()Shells.get_3c2el_ints_sph()Shells.get_S_cart()Shells.get_S_sph()Shells.get_T_cart()Shells.get_T_sph()Shells.get_V_cart()Shells.get_V_sph()Shells.get_diag_quadrupole_ints_cart()Shells.get_diag_quadrupole_ints_sph()Shells.get_dipole_ints_cart()Shells.get_dipole_ints_sph()Shells.get_quadrupole_ints_cart()Shells.get_quadrupole_ints_sph()Shells.l_maxShells.nprimsShells.numba_shellsShells.numba_shellstructsShells.print_shells()Shells.screen_S()Shells.sph_PsShells.sph_ao_centersShells.sph_sizeShells.to_pyscf_mol()Shells.to_ris_shells()Shells.to_sap_shells()Shells.to_sympleints_arrays()
- 17.1.1.25.21. pysisyphus.wavefunction.shells_molcas module
- 17.1.1.25.22. pysisyphus.wavefunction.shells_pyscf module
- 17.1.1.25.23. pysisyphus.wavefunction.shells_trexio module
- 17.1.1.25.24. pysisyphus.wavefunction.so_coupling module
- 17.1.1.25.25. pysisyphus.wavefunction.solid_harmonics module
- 17.1.1.25.26. pysisyphus.wavefunction.wavefunction module
DensityTypeWavefunctionWavefunction.C_occWavefunction.C_virtWavefunction.PWavefunction.P_exc()Wavefunction.P_totWavefunction.SWavefunction.S_MO_with()Wavefunction.S_from_CWavefunction.S_with()Wavefunction.S_with_shells()Wavefunction.ao_center_mapWavefunction.ao_centersWavefunction.atom_numWavefunction.check_sanity()Wavefunction.coords3dWavefunction.current_density()Wavefunction.densitiesWavefunction.dipole_ints()Wavefunction.dipole_momentWavefunction.eval_density()Wavefunction.eval_esp()Wavefunction.from_aomix()Wavefunction.from_fchk()Wavefunction.from_file()Wavefunction.from_molden()Wavefunction.from_orca_bson()Wavefunction.from_orca_json()Wavefunction.from_orca_molden()Wavefunction.from_trexio()Wavefunction.get_V()Wavefunction.get_current_density()Wavefunction.get_current_total_density()Wavefunction.get_dipole_moment()Wavefunction.get_origin()Wavefunction.get_permut_matrix()Wavefunction.get_permut_matrix_native()Wavefunction.get_quadrupole_moment()Wavefunction.get_relaxed_density()Wavefunction.get_total_relaxed_density()Wavefunction.get_transition_dipole_moment()Wavefunction.get_transition_multipole_moment()Wavefunction.get_transition_quadrupole_moment()Wavefunction.has_shellsWavefunction.is_cartesianWavefunction.massesWavefunction.mo_numWavefunction.nuc_chargesWavefunction.oscillator_strength()Wavefunction.quadrupole_ints()Wavefunction.quadrupole_momentWavefunction.set_current_density()Wavefunction.set_relaxed_density()Wavefunction.to_trexio()
- 17.1.1.25.27. Module contents
- 17.1.1.25.1. Subpackages
- 17.1.1.26. pysisyphus.wrapper package
17.1.2. Submodules
17.1.3. pysisyphus.Geometry module
- class pysisyphus.Geometry.Geometry(atoms, coords, fragments=None, coord_type='cart', coord_kwargs=None, isotopes=None, freeze_atoms=None, remove_com=False, remove_centroid=False, comment='', name='')[source]
Bases:
object- __init__(atoms, coords, fragments=None, coord_type='cart', coord_kwargs=None, isotopes=None, freeze_atoms=None, remove_com=False, remove_centroid=False, comment='', name='')[source]
Object representing atoms in a coordinate system.
The Geometry represents atoms and their positions in coordinate system. By default cartesian coordinates are used, but internal coordinates are also possible.
- Parameters:
atoms (iterable) -- Iterable of length N, containing element symbols.
coords (1d iterable) -- 1d iterable of length 3N, containing the cartesian coordinates of N atoms.
fragments (dict, optional) -- Dict with different keys denoting different fragments. The values contain lists of atom indices.
coord_type ({"cart", "redund"}, optional) -- Type of coordinate system to use. Right now cartesian (cart) and redundand (redund) are supported.
coord_kwargs (dict, optional) -- Dictionary containing additional arguments that get passed to the constructor of the internal coordinate class.
isotopes (iterable of pairs, optional) -- Iterable of pairs consisting of 0-based atom index and either an integer or a float. If an integer is given the closest isotope mass will be selected. Given a float, this float will be directly used as mass.
freeze_atoms (iterable of integers) -- Specifies which atoms should remain fixed at their initial positions.
remove_com (bool, optional) -- Move center of mass to the origin.
remove_centroid (bool, optional) -- Move centroid to the origin.
comment (str, optional) -- Comment string.
name (str, optional) -- Verbose name of the geometry, e.g. methanal or water. Used for printing
- property all_energies
Return energies of all states that were calculated.
This will also set self.energy, which may NOT be the ground state, but the state correspondig to the 'root' attribute of the calculator.
- approximate_radius()[source]
Approximate molecule radius from the biggest atom distance along an axis.
- as_ascii_art()[source]
ASCII-art representation of the Geometry.
Using code from gpaw. Requires an ase installation.
- Return type:
str
- as_g98_list()[source]
Returns data for fake Gaussian98 standard orientation output.
- Returns:
g98_list -- List with one row per atom. Every row contains [center number, atomic number, atomic type (always 0 for now), X Y Z coordinates in Angstrom.
- Return type:
list
- as_xyz(comment='', atoms=None, cart_coords=None)[source]
Current geometry as a string in XYZ-format.
- Parameters:
comment (str, optional) -- Will be written in the second line (comment line) of the XYZ-string.
cart_coords (np.array, 1d, shape (3 * atoms.size, )) -- Cartesians for dumping instead of self._coords.
- Returns:
xyz_str -- Current geometry as string in XYZ-format.
- Return type:
str
- assert_compatibility(other)[source]
Assert that two Geometries can be substracted from each other.
- Parameters:
other (Geometry) -- Geometry for comparison.
- atom_indices()[source]
Dict with atom types as key and corresponding indices as values.
- Returns:
inds_dict -- Unique atom types as keys, corresponding indices as values.
- Return type:
dict
- property atom_types
- property atomic_numbers
- property bond_sets
- calc_relaxed_density(root, **prepare_kwargs)[source]
Calculate a relaxed excited state density via an ES gradient calculation.
The question is, if this method should set the wavefunction property at the current Geometry. On one hand, staying in pure python w/o numba the wavefunction sanity-check can become costly, even though it shouldn't be. On the other hand, setting the wavefunction would ensure consistency between the levels of theory used for density and wavefunction.
For now, calculating an ES density does not set a wavefunction on the Geometry, whereas requesting the relaxed density for the GS does.
TODO: add flag that allows setting the wavefunction (WF). Then, calculators should also include the WF in their results.
- property cart_coords
- property cart_forces
- property cart_gradient
- property cart_hessian
- property center_of_mass
Returns the center of mass.
- Returns:
R -- Center of mass.
- Return type:
np.array, shape(3, )
- center_of_mass_at(coords3d)[source]
Returns the center of mass at given coords3d.
- Parameters:
coords3d (np.array, shape(N, 3)) -- Cartesian coordiantes.
- Returns:
R -- Center of mass.
- Return type:
np.array, shape(3, )
- property centroid
Geometric center of the Geometry.
- Returns:
R -- Geometric center of the Geometry.
- Return type:
np.array, shape(3, )
- property comment
- coord_types = {'cart': None, 'cartesian': <class 'pysisyphus.intcoords.CartesianCoords.CartesianCoords'>, 'dlc': <class 'pysisyphus.intcoords.DLC.DLC'>, 'hdlc': <class 'pysisyphus.intcoords.DLC.HDLC'>, 'hredund': <class 'pysisyphus.intcoords.RedundantCoords.HybridRedundantCoords'>, 'mwcartesian': <class 'pysisyphus.intcoords.CartesianCoords.MWCartesianCoords'>, 'redund': <class 'pysisyphus.intcoords.RedundantCoords.RedundantCoords'>, 'tmtric': <class 'pysisyphus.intcoords.RedundantCoords.TMTRIC'>, 'tric': <class 'pysisyphus.intcoords.RedundantCoords.TRIC'>}
- property coords
1d vector of atomic coordinates.
- Returns:
coords -- 1d array holding the current coordinates.
- Return type:
np.array
- property coords3d
Coordinates in 3d.
- Returns:
coords3d -- Coordinates of the Geometry as 2D array.
- Return type:
np.array
- property coords_by_type
Coordinates in 3d by atom type and their corresponding indices.
- Returns:
cbt (dict) -- Dictionary with the unique atom types of the Geometry as keys. It's values are the 3d coordinates of the corresponding atom type.
inds (dict) -- Dictionary with the unique atom types of the Geometry as keys. It's values are the original indices of the 3d coordinates in the whole coords3d array.
- copy(coord_type=None, coord_kwargs=None)[source]
Returns a new Geometry object with same atoms and coordinates.
- Parameters:
coord_type (str) -- Desired coord_type, defaults to current coord_type.
coord_kwargs (dict, optional) -- Any desired coord_kwargs that will be passed to the RedundantCoords object.
- Returns:
geom -- New Geometry object with the same atoms and coordinates.
- Return type:
- property covalent_radii
- property energy
Energy of the current atomic configuration.
- Returns:
energy -- Energy of the current atomic configuration.
- Return type:
float
- property forces
Energy of the current atomic configuration.
- Returns:
force -- 1d array containing the forces acting on the atoms. Negative of the gradient.
- Return type:
np.array
- get_energy_and_forces_at(coords)[source]
Calculate forces and energies at the given coordinates.
The results are not saved in the Geometry object.
- get_normal_modes(cart_hessian=None, cart_gradient=None, proj_gradient=False, full=False)[source]
Normal mode wavenumbers, eigenvalues and Cartesian displacements Hessian.
- get_subgeom(indices, coord_type='cart', sort=False, cart_coords=None)[source]
Return a Geometry containing a subset of the current Geometry.
- Parameters:
indices (iterable of ints) -- Atomic indices that the define the subset of the current Geometry.
coord_type (str, ("cart", "redund"), optional) -- Coordinate system of the new Geometry.
cart_coords (default:
None) -- Optional 1d array of Cartesian coordinates of shape (3*natoms, ).
- Returns:
sub_geom -- Subset of the current Geometry.
- Return type:
- property gradient
Negative of the force.
- Returns:
gradient -- 1d array containing the negative of the current forces.
- Return type:
np.array
- property has_energy
- property has_forces
- property hessian
Matrix of second derivatives of the energy in respect to atomic displacements.
- Returns:
hessian -- 2d array containing the second derivatives of the energy with respect to atomic/coordinate displacements depending on the type of coordiante system.
- Return type:
np.array
- property inertia_tensor
- property is_analytical_2d
- property is_linear
- jmol(atoms=None, cart_coords=None, stdin=None, jmol_cmd='jmol')[source]
Show geometry in jmol.
TODO: read jmol command from .pysisyphusrc ?!
- property layers
- property masses: ndarray
- property masses_rep
- property mm_inv
Inverted mass matrix.
Returns a diagonal matrix containing the inverted atomic masses.
- property mm_sqrt_inv
Inverted square root of the mass matrix.
- property moving_atoms
- property mw_coords
Mass-weighted coordinates.
- Returns:
mw_coords -- 1d array containing the mass-weighted cartesian coordiantes.
- Return type:
np.array
- property mw_gradient
Mass-weighted gradient.
- Returns:
mw_gradient -- Returns the mass-weighted gradient.
- Return type:
np.array
- property mw_hessian
Mass-weighted hessian.
- Returns:
mw_hessian -- 2d array containing the mass-weighted hessian M^(-1/2) H M^(-1/2).
- Return type:
np.array
- principal_axes_are_aligned()[source]
Check if the principal axes are aligned with the cartesian axes.
- Returns:
aligned -- Wether the principal axes are aligned or not.
- Return type:
bool
- set_coord(ind, coord)[source]
Set a coordinate by index.
- Parameters:
ind (int) -- Index in of the coordinate to set in the self.coords array.
coord (float) -- Coordinate value.
- set_results(results)[source]
Save the results from a dictionary.
- Parameters:
results (dict) -- The keys in this dict will be set as attributes in the current object, with the corresponding item as value.
- property sum_formula
- property td_1tdms
1-particle transition density matrices from TD-DFT/TDA.
Returns list of Xa, Ya, Xb and Yb in MO basis.
- property total_mass
- unweight_mw_hessian(mw_hessian)[source]
Unweight a mass-weighted hessian.
- Parameters:
mw_hessian (np.array) -- Mass-weighted hessian to be unweighted.
- Returns:
hessian -- 2d array containing the hessian.
- Return type:
np.array
- property vdw_radii
- property wavefunction
17.1.4. pysisyphus.MOCoeffs module
- class pysisyphus.MOCoeffs.MOCoeffs(Ca, ensa, occsa, Cb=None, ensb=None, occsb=None)[source]
Bases:
object-
Ca:
ndarray
-
Cb:
Optional[ndarray] = None
-
ensa:
ndarray
-
ensb:
Optional[ndarray] = None
- property homoa: int | None
- property homob: int | None
- property lumoa
- property lumob
- property occa: int
- property occb: int
-
occsa:
ndarray
-
occsb:
Optional[ndarray] = None
- property restricted: bool
- swap_inplace(C, ens, occs, ind1, ind2, swap_energies=True, swap_occs=True)[source]
Swap a pair of MO coeffs and energies inplace.
- property unrestricted: bool
- property virt_indsa
- property virt_indsb
-
Ca:
17.1.5. pysisyphus.TablePrinter module
17.1.6. pysisyphus.color module
17.1.7. pysisyphus.config module
17.1.8. pysisyphus.constants module
17.1.9. pysisyphus.elem_data module
17.1.10. pysisyphus.exceptions module
17.1.11. pysisyphus.executors module
- class pysisyphus.executors.CloudpickleProcessPoolExecutor(max_workers=None, mp_context=None, initializer=None, initargs=())[source]
Bases:
ProcessPoolExecutorProcessPoolExecutor using cloudpickle.
17.1.12. pysisyphus.filtertrj module
17.1.13. pysisyphus.finite_diffs module
- pysisyphus.finite_diffs.finite_difference_gradient(coords, scalar_func, step_size=0.01)[source]
Stripped down version of finite_difference_hessian.
Both functions could probably be unified.
- pysisyphus.finite_diffs.finite_difference_hessian(coords, grad_func, step_size=0.01, acc=2, callback=None)[source]
Numerical Hessian from central finite gradient differences.
- Return type:
ndarray
- See central differences in
for the different accuracies.
- pysisyphus.finite_diffs.finite_difference_hessian_mp(atoms, coords, calc, step_size=0.01, acc=2, serial=False, prepare_kwargs=None)[source]
Finite-differences Hessian w/ multiprocessing support.
- Return type:
ndarray
- See central differences in
for the different accuracies.
- pysisyphus.finite_diffs.periodic_fd_2_8(x_ind, y, dx)[source]
2nd derivative for 8th-order accuracy from data on a periodic grid.
For more information see the docstring of 'periodic_finite_difference'.
- pysisyphus.finite_diffs.periodic_finite_difference(x_ind, y, dx, degree, coeffs)[source]
Finite differences for data on a periodic grid. IMPORTANT: The grid data in y must be provided so that y[1] == y[-1]! If you initially evaluated y on a grid where x[0] and x[-1] are equal when periodicity is taken into account, e.g. np.sin(np.linspace(0, 2*np.pi)), then the last point must be excluded by passing only y[:-1]!
- Parameters:
x_ind (
int) -- Non-negative integer indexing the point on the grid, where the derivative is evaluated.y (
ndarray) -- Data array on a periodic evenely spaced grid.dx (
float) -- Grid spacing.degree (
int) -- Degree of the derivative. Positive integer >= 1.coeffs (
Sequence[float]) -- Sequence of floating point numbers containing Floating pi
17.1.14. pysisyphus.helpers module
- class pysisyphus.helpers.FinalHessianResult(neg_eigvals, eigvals, nus, imag_fns, thermo)
Bases:
tuple- eigvals
Alias for field number 1
- imag_fns
Alias for field number 3
- neg_eigvals
Alias for field number 0
- nus
Alias for field number 2
- thermo
Alias for field number 4
- pysisyphus.helpers.do_final_hessian(geom, save_hessian=True, write_imag_modes=False, is_ts=False, prefix='', T=298.15, p=101325, ev_thresh=-1e-06, print_thermo=False, out_dir=None)[source]
- pysisyphus.helpers.fit_rigid(geometry, vectors=None, vector_lists=None, hessian=None, align_factor=1.0)[source]
- pysisyphus.helpers.geom_loader(fn, coord_type='cart', iterable=False, **coord_kwargs)[source]
After introducing the pubchem functionality I don't like this function anymore :) Too complicated.
- pysisyphus.helpers.get_fragment_xyzs(geom, fragments, with_geom=False, with_dummies=True)[source]
Create list of fragment xyz-strings.
- Parameters:
geom (
Geometry) -- Geometry object.fragment -- List of fragments. Each fragment is described by a list of atom index integers.
with_geom (
bool, default:False) -- Whether the xyz string of the full geometry is included at the first position.with_dummies (
bool, default:True) -- Whether atoms not belonging to the fragment are replaced by dummy atoms or just excluded. Using dummy atoms facilitates fragment recognition when viewing them.
- Returns:
List of xyz-strings.
- Return type:
xyzs
- pysisyphus.helpers.get_tangent_trj_str(atoms, coords, tangent, comment=None, points=10, displ=None)[source]
- pysisyphus.helpers.index_array_from_overlaps(overlaps, axis=1)[source]
It is assumed that the overlaps between two points with indices i and j with (j > i) are computed and that i changes along the first axis (axis=0) and j changes along the second axis (axis=1).
So the first row of the overlap matrix (overlaps[0]) should contain the overlaps between state 0 at index i and all states at index j.
argmax along axis 1 returns the indices of the most overlapping states at index j with the states at index i, given by the item index in the indices array. E.g.:
[0 1 3 2] indicates a root flip in a system with four states when going from index i to index j. Root 2 at i became root 3 at j and vice versa.
- pysisyphus.helpers.match_geoms(ref_geom, geom_to_match, hydrogen=False)[source]
- See
[1] 10.1021/ci400534h [2] 10.1021/acs.jcim.6b00516
17.1.15. pysisyphus.helpers_pure module
- pysisyphus.helpers_pure.approx_float(num, expected, abs_tol=1e-06, rel_tol=1e-12)[source]
- Return type:
bool
- pysisyphus.helpers_pure.chunks(l, n)[source]
Yield successive n-sized chunks from l. https://stackoverflow.com/a/312464
- pysisyphus.helpers_pure.file_or_str(*args, method=False, mode='r', exact=False, add_exts=False)[source]
- pysisyphus.helpers_pure.find_closest_sequence(str_, comp_strs)[source]
- Return type:
Tuple[str,float]
- pysisyphus.helpers_pure.get_ratio(str_, comp_str)[source]
See https://stackoverflow.com/a/17388505
- Return type:
str
- pysisyphus.helpers_pure.increment_fn(org_fn, suffix=None)[source]
Append, or increase a suffixed counter on a given filename. If no counter is present it will be set to zero. Otherwise it is incremented by one.
>>> increment_fn("opt", "rebuilt") 'opt_rebuilt_000' >>> increment_fn("opt") 'opt_000' >>> increment_fn("opt_rebuilt_000", "rebuilt") 'opt_rebuilt_001'
- Parameters:
org_fn (
str) -- The original, unaltered filename.suffix (
Optional[str], default:None) -- Optional suffix to be append.
- Returns:
Modified filename with optional suffix and incremented counter.
- Return type:
incr_fn
- pysisyphus.helpers_pure.interpolate_colors(values, c1, c2, num=32)[source]
Expects two RGB colors c1 and c2.
- pysisyphus.helpers_pure.kill_dir(path)[source]
Innocent function remove a directory.
It must contain only files and no other directories. So this won't do too much damage hopefully.
- pysisyphus.helpers_pure.molecular_volume(coords3d, vdw_radii, n_trial=10000, offset=1.0)[source]
Monte-Carlo estimate of molecular volume using Van der Waals spheres. Cartesian coordinates and VdW-radii are expected in Bohr!
- Return type:
Tuple[float,float,float]
- pysisyphus.helpers_pure.recursive_extract(inp_dict, target_key, prev_keys=None)[source]
Recursively extract given key from a dict.
Can also handle dict of dicts, e.g., different calculation results from a MultiCalc in run.run_calculations.
- Return type:
dict[tuple[str],Any]
- pysisyphus.helpers_pure.recursive_update(d, u)[source]
Recursive update of d with keys/values from u.
- pysisyphus.helpers_pure.render_sp_stats(descr_res, unit, unit2=None, conv2=1.0)[source]
Render DescribeResult from scipy.stats.describe as str.
Values are reported with unit '{unit}'. If provided, values are reported with a second unit and an appropriate conversion factor.
- Return type:
str
- pysisyphus.helpers_pure.rms(arr)[source]
Root mean square
Returns the root mean square of the given array.
- Parameters:
arr (iterable of numbers)
- Returns:
rms -- Root mean square of the given array.
- Return type:
float
- pysisyphus.helpers_pure.sort_by_central(set1, set2)[source]
Determines a common index in two sets and returns a length 3 tuple with the central index at the middle position and the two terminal indices as first and last indices.
17.1.16. pysisyphus.hessian_proj module
- class pysisyphus.hessian_proj.Orientation(coords3d, com, rot_mat, coords3d_org, masses)[source]
Bases:
objectOrientation store, e.g., for a standard orientation.
After instantiation the object performs a quick consistency check by trying to backtransform the re-oriented coordinates.
- Parameters:
coords3d (
ndarray) -- 2d-array of shape (N, 3) holding re-oriented coordinates, e.g., in standard orientation.com (
ndarray) -- (Original) center-of-mass to restore original coordinates from coords3d.rot_mat (
ndarray) -- 2d-array of shape (3, 3) that was used to rotate the shifted original coordinates into the chosen orientation.coords3d_org (
ndarray) -- 2d-array of shape (N, 3) holding the original Cartesian coordinates.masses (
ndarray) -- 1d-arary of shape (N, ) holding atomic masses in amu.
-
com:
ndarray
-
coords3d:
ndarray
-
coords3d_org:
ndarray
- property inertia_tensor
-
masses:
ndarray
-
rot_mat:
ndarray
- pysisyphus.hessian_proj.get_hessian_projector(cart_coords, masses, cart_gradient=None, full=False, max_grad_thresh=0.00045, rms_grad_thresh=0.0003, use_std_orient=True)[source]
Get matrix to project translation and rotation from the Hessian.
- Parameters:
cart_coords (
ndarray) -- 1d array of shape (3N, ) holding Cartesian coordinates.masses (
ndarray) -- 1d arary of shape (N, ) holding atomic masses.cart_gradient (
Optional[ndarray], default:None) -- Optional 1d array of shape (3N, ) containing a Cartesian gradient that will also be projected out of the Hessian.full (
bool, default:False) -- Boolean flag that controls the shape of the projector. If true, the projector will be of shape (3N, 3N), otherwise it will be of shape (3N - 6 (5), 3N - 6 (5)).max_grad_thresh (
float, default:0.00045) -- Positive floating point number. Criterion used to determine if we are at a stationary point. If we are at a statioanry point, the gradient direction won't be included in the projector.rms_grad_thresh (
float, default:0.0003) -- See max_grad_thresh.use_std_orient (
bool, default:True) -- Boolean flag that controls the use of a (temporary) standard orientation. If set to False linear molecules can lack a vibration.
- pysisyphus.hessian_proj.get_projector(vecs)[source]
Vectors must be in rows.
# P = I - sum_i vec_i @ vec_i.T
- pysisyphus.hessian_proj.get_trans_rot_projector(cart_coords, masses, cart_gradient=None, full=False)[source]
- pysisyphus.hessian_proj.get_trans_rot_vectors(cart_coords, masses, rot_thresh=1e-05)[source]
Vectors describing translation and rotation.
These vectors are used for the Eckart projection by constructing a projector from them.
See Martin J. Field - A Pratcial Introduction to the simulation of Molecular Systems, 2007, Cambridge University Press, Eq. (8.23), (8.24) and (8.26) for the actual projection.
See also https://chemistry.stackexchange.com/a/74923.
- Parameters:
cart_coords (np.array, 1d, shape (3 * atoms.size, )) -- Atomic masses in amu.
masses (iterable, 1d, shape (atoms.size, )) -- Atomic masses in amu.
- Returns:
ortho_vecs -- 2d array containing row vectors describing translations and rotations.
- Return type:
np.array(6, 3*atoms.size)
17.1.17. pysisyphus.init_logging module
- pysisyphus.init_logging.get_fh_logger(name, log_fn)[source]
Initialize a logger with 'name', level DEBUG and a FileHandler.
17.1.18. pysisyphus.linalg module
- pysisyphus.linalg.are_collinear(points, rad_thresh=1e-12)[source]
Determine linearity of points in R^N.
Linearity is checked by comparing dot products between successive point pairs. Coinciding points are NOT checked.
- Return type:
bool
- pysisyphus.linalg.eigvec_grad(w, v, ind, mat_grad)[source]
Gradient of 'ind'-th eigenvector.
dv_i / dx_i = (w_i*I - mat)⁻¹ dmat/dx_i v_i
- pysisyphus.linalg.gram_schmidt(vecs, thresh=1e-08)[source]
For historical reasons, this operates on rows ...
- pysisyphus.linalg.orthogonalize_against(mat, vecs, max_cycles=5, thresh=1e-10)[source]
Orthogonalize rows of 'mat' against rows in 'vecs'
Returns a (modified) copy of mat.
- pysisyphus.linalg.perp_comp(vec, along)[source]
Return the perpendicular component of vec along along.
- pysisyphus.linalg.pivoted_cholesky(A, tol=-1.0)[source]
Cholesky factorization a real symmetric positive semidefinite matrix. Cholesky factorization is carried out with full pivoting.
Adapated from PySCF.
P.T * A * P = L * L.T
- Parameters:
A (
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]) -- Matrix to be factorized.tol (
float, default:-1.0) -- User defined tolerance, as outlined in the LAPACK docs.
- Returns:
L -- Lower or upper triangular matrix.
piv -- Pivot vectors, starting at 0.
rank -- Rank of the factoirzed matrix.
- pysisyphus.linalg.rmsd_grad(coords3d, ref_coords3d, offset=1e-09)[source]
RMSD and gradient between two sets of coordinates from quaternions.
The gradient is given w.r.t. the coordinates of 'coords3d'.
- Python adaption of
ls_rmsd.f90
- from the xtb repository of the Grimme group, which in turn implements
.
- Parameters:
coords3d (
ndarray[Any,dtype[float]]) -- Coordinate array of shape (N, 3) with N denoting the number of atoms.ref_coords3d (
ndarray[Any,dtype[float]]) -- Reference coordinates.offset (
float, default:1e-09) -- Small floating-point number that is added to the RMSD, to avoid division by zero.
- Return type:
Tuple[float,ndarray[Any,dtype[float]]]- Returns:
rmsd -- RMSD value.
rmsd_grad -- Gradient of the RMSD value w.r.t. to 'coords3d'.
17.1.19. pysisyphus.linalg_affine3 module
Affine transformations in 3d.
Based on code given by Emőd Kovács in
Rotation about an arbitrary axis and reflection through an arbitrary plane
- pysisyphus.linalg_affine3.householder_reflection_matrix(normal)[source]
Householder reflection matrix.
- pysisyphus.linalg_affine3.inv_translation_matrix(vec)[source]
Inverse of augmented translation matrix.
- pysisyphus.linalg_affine3.plane_normal(coords3d, thresh=1e-06)[source]
Normal vector of plane given by 3 points.
- pysisyphus.linalg_affine3.reflection_matrix(normal, point)[source]
Reflection through plane containing 'point' and normal vector 'normal'.
- pysisyphus.linalg_affine3.rotation_matrix_for_rot_around_vec(vec, deg)[source]
Get rotation matrix for rotation of 'deg' degrees around vector 'vec'.
- Parameters:
vec (
ndarray) -- Array of shape (3, ) containing the rotation vector.deg (
float) -- Degrees controlling extent of rotation.
- Returns:
2d array of shape (3, 3) containing the rotation matrix.
- Return type:
R
- pysisyphus.linalg_affine3.rotation_matrix_for_vec_align(vec1, vec2, thresh=1e-08)[source]
Returns rotation matrix that rotates vec1 onto vec2.
Code adapted from https://math.stackexchange.com/a/476311
(R @ vec1) and vec2 are parallel.
- Parameters:
vec1 (
ndarray) -- 3d vector.vec2 (
ndarray) -- 3d vector.thresh (
float, default:1e-08) -- Positive floating point for detecting parallel vectors.
- Returns:
3x3 rotation matrix that rotates vec1 onto vec2.
- Return type:
R
17.1.20. pysisyphus.pack module
17.1.21. pysisyphus.peakdetect module
- pysisyphus.peakdetect.peakdetect(y_axis, x_axis=None, lookahead=200, delta=0)[source]
Converted from/based on a MATLAB script at: http://billauer.co.il/peakdet.html
function for detecting local maxima and minima in a signal. Discovers peaks by searching for values which are surrounded by lower or larger values for maxima and minima respectively
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks. If omitted an index of the y_axis is used. (default: None)
- lookahead -- distance to look ahead from a peak candidate to determine if
it is the actual peak (default: 200) '(samples / period) / f' where '4 >= f >= 1.25' might be a good value
- delta -- this specifies a minimum difference between a peak and
the following points, before a peak may be considered a peak. Useful to hinder the function from picking up false peaks towards to end of the signal. To work well delta should be set to delta >= RMSnoise * 5. (default: 0)
When omitted delta function causes a 20% decrease in speed. When used Correctly it can double the speed of the function
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.peakdetect_fft(y_axis, x_axis, pad_len=20)[source]
Performs a FFT calculation on the data and zero-pads the results to increase the time domain resolution after performing the inverse fft and send the data to the 'peakdetect' function for peak detection.
Omitting the x_axis is forbidden as it would make the resulting x_axis value silly if it was returned as the index 50.234 or similar.
Will find at least 1 less peak then the 'peakdetect_zero_crossing' function, but should result in a more precise value of the peak as resolution has been increased. Some peaks are lost in an attempt to minimize spectral leakage by calculating the fft between two zero crossings for n amount of signal periods.
The biggest time eater in this function is the ifft and thereafter it's the 'peakdetect' function which takes only half the time of the ifft. Speed improvements could include to check if 2**n points could be used for fft and ifft or change the 'peakdetect' to the 'peakdetect_zero_crossing', which is maybe 10 times faster than 'peakdetct'. The pro of 'peakdetect' is that it results in one less lost peak. It should also be noted that the time used by the ifft function can change greatly depending on the input.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks.
- pad_len -- By how many times the time resolution should be
increased by, e.g. 1 doubles the resolution. The amount is rounded up to the nearest 2**n amount (default: 20)
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.peakdetect_parabola(y_axis, x_axis, points=31)[source]
Function for detecting local maxima and minima in a signal. Discovers peaks by fitting the model function: y = k (x - tau) ** 2 + m to the peaks. The amount of points used in the fitting is set by the points argument.
Omitting the x_axis is forbidden as it would make the resulting x_axis value silly, if it was returned as index 50.234 or similar.
will find the same amount of peaks as the 'peakdetect_zero_crossing' function, but might result in a more precise value of the peak.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks.
- points -- How many points around the peak should be used during curve
fitting (default: 31)
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.peakdetect_sine(y_axis, x_axis, points=31, lock_frequency=False)[source]
Function for detecting local maxima and minima in a signal. Discovers peaks by fitting the model function: y = A * sin(2 * pi * f * (x - tau)) to the peaks. The amount of points used in the fitting is set by the points argument.
Omitting the x_axis is forbidden as it would make the resulting x_axis value silly if it was returned as index 50.234 or similar.
will find the same amount of peaks as the 'peakdetect_zero_crossing' function, but might result in a more precise value of the peak.
The function might have some problems if the sine wave has a non-negligible total angle i.e. a k*x component, as this messes with the internal offset calculation of the peaks, might be fixed by fitting a y = k * x + m function to the peaks for offset calculation.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks.
- points -- How many points around the peak should be used during curve
fitting (default: 31)
- lock_frequency -- Specifies if the frequency argument of the model
function should be locked to the value calculated from the raw peaks or if optimization process may tinker with it. (default: False)
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.peakdetect_sine_locked(y_axis, x_axis, points=31)[source]
Convenience function for calling the 'peakdetect_sine' function with the lock_frequency argument as True.
keyword arguments: y_axis -- A list containing the signal over which to find peaks x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks.
- points -- How many points around the peak should be used during curve
fitting (default: 31)
return: see the function 'peakdetect_sine'
- pysisyphus.peakdetect.peakdetect_spline(y_axis, x_axis, pad_len=20)[source]
Performs a b-spline interpolation on the data to increase resolution and send the data to the 'peakdetect_zero_crossing' function for peak detection.
Omitting the x_axis is forbidden as it would make the resulting x_axis value silly if it was returned as the index 50.234 or similar.
will find the same amount of peaks as the 'peakdetect_zero_crossing' function, but might result in a more precise value of the peak.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list and is used
in the return to specify the position of the peaks. x-axis must be equally spaced.
- pad_len -- By how many times the time resolution should be increased by,
e.g. 1 doubles the resolution. (default: 20)
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.peakdetect_zero_crossing(y_axis, x_axis=None, window=11)[source]
Function for detecting local maxima and minima in a signal. Discovers peaks by dividing the signal into bins and retrieving the maximum and minimum value of each the even and odd bins respectively. Division into bins is performed by smoothing the curve and finding the zero crossings.
Suitable for repeatable signals, where some noise is tolerated. Executes faster than 'peakdetect', although this function will break if the offset of the signal is too large. It should also be noted that the first and last peak will probably not be found, as this function only can find peaks between the first and last zero crossing.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list
and is used in the return to specify the position of the peaks. If omitted an index of the y_axis is used. (default: None)
- window -- the dimension of the smoothing window; should be an odd integer
(default: 11)
- return: two lists [max_peaks, min_peaks] containing the positive and
negative peaks respectively. Each cell of the lists contains a tuple of: (position, peak_value) to get the average peak value do: np.mean(max_peaks, 0)[1] on the results to unpack one of the lists into x, y coordinates do: x, y = zip(*max_peaks)
- pysisyphus.peakdetect.zero_crossings(y_axis, window_len=11, window_f='hanning', offset_corrected=False)[source]
Algorithm to find zero crossings. Smooths the curve and finds the zero-crossings by looking for a sign change.
keyword arguments: y_axis -- A list containing the signal over which to find zero-crossings
- window_len -- the dimension of the smoothing window; should be an odd
integer (default: 11)
- window_f -- the type of window from 'flat', 'hanning', 'hamming',
'bartlett', 'blackman' (default: 'hanning')
offset_corrected -- Used for recursive calling to remove offset when needed
return: the index for each zero-crossing
- pysisyphus.peakdetect.zero_crossings_sine_fit(y_axis, x_axis, fit_window=None, smooth_window=11)[source]
Detects the zero crossings of a signal by fitting a sine model function around the zero crossings: y = A * sin(2 * pi * Hz * (x - tau)) + k * x + m Only tau (the zero crossing) is varied during fitting.
Offset and a linear drift of offset is accounted for by fitting a linear function the negative respective positive raw peaks of the wave-shape and the amplitude is calculated using data from the offset calculation i.e. the 'm' constant from the negative peaks is subtracted from the positive one to obtain amplitude.
Frequency is calculated using the mean time between raw peaks.
Algorithm seems to be sensitive to first guess e.g. a large smooth_window will give an error in the results.
keyword arguments: y_axis -- A list containing the signal over which to find peaks
- x_axis -- A x-axis whose values correspond to the y_axis list
and is used in the return to specify the position of the peaks. If omitted an index of the y_axis is used. (default: None)
- fit_window -- Number of points around the approximate zero crossing that
should be used when fitting the sine wave. Must be small enough that no other zero crossing will be seen. If set to none then the mean distance between zero crossings will be used (default: None)
- smooth_window -- the dimension of the smoothing window; should be an odd
integer (default: 11)
return: A list containing the positions of all the zero crossings.
17.1.22. pysisyphus.plot module
- pysisyphus.plot.CDD_PNG_FNS = 'cdd_png_fns'
Default to kJ mol⁻¹. DE_LABEL and get_en_conv will be overwritten when run() is executed. Both are still defined here, to make the functions from plot.py importable.
17.1.23. pysisyphus.plot_ascii module
17.1.24. pysisyphus.run module
17.1.25. pysisyphus.socket_helper module
17.1.26. pysisyphus.testing module
17.1.27. pysisyphus.thermo module
17.1.28. pysisyphus.timing module
- class pysisyphus.timing.RuntimeEstimation(mean_est, median_est, nremain)[source]
Bases:
object-
mean_est:
float
-
median_est:
float
-
nremain:
int
-
mean_est:
17.1.29. pysisyphus.trj module
17.1.30. pysisyphus.typing module
17.1.31. pysisyphus.version module
17.1.32. pysisyphus.xyzloader module
- pysisyphus.xyzloader.make_xyz_str(atoms, coords, comment='')[source]
Expects coordinates in Angstrom!
- pysisyphus.xyzloader.make_xyz_str_au(atoms, coords3d, comment='')[source]
Excpects coordinates in atomic units/Bohr!
- pysisyphus.xyzloader.parse_xyz_str(xyz_str, with_comment)[source]
Parse a xyz string.
17.1. Paramters
- xyz_strstr
The contents of a .xyz file.
- with_commentbool
Return comment line if True.
- returns:
atoms (list) -- List of length N (N = number of atoms) holding the element symbols.
coords (np.array) -- An array of shape (N, 3) holding the xyz coordinates.
comment_line (str, optional) -- Comment line if with_comment argument was True.