Python · import caps
Python API
The same core as the command line and the Studio, through its C library: open and build structures, assign force fields, relax, run, crosslink, analyse, export, and write pipeline steps the Studio runs. Every entry below is the docstring of the installed package (ABI 116).
Setup
The package is plain Python 3 (standard library only; NumPy for pipeline steps) and ships with the program. Put its folder on PYTHONPATH; it finds the CAPS library beside it.
| System | PYTHONPATH |
|---|---|
| macOS | /Applications/CAPS Studio.app/Contents/Resources/data/python |
| Windows | <install folder>\data\python |
| Linux (.deb) | /opt/caps/data/python |
| Linux (tarball) | <unpacked folder>/data/python |
export PYTHONPATH="/Applications/CAPS Studio.app/Contents/Resources/data/python"
python3 -c "import caps; print(caps.abi_version())"CAPS_LIB overrides the library's path (a development build, for instance).
A first script
Grow a natural-rubber cell, type it with OPLS-AA, cure it with a peroxide template, and write LAMMPS and GROMACS inputs. Every call is a method of a Document (one structure with its frames, force field and provenance).
import caps
d = caps.polymer("*CC(C)=CC*", dp=10, chains=6, density=0.6, seed=1) # cis-1,4-polyisoprene
d.relax(max_iterations=300)
d.field.assign("oplsaa2024") # types and charges from the library
print(d.react("peroxide_allylic", cycles=5, per_cycle=4, target=0.3, seed=1))
d.save("nr_xl.data")
d.export_engines("engines", stem="nr", run="npt", temperature=300, steps=5000)The crosslinking tutorial goes through each step, and the LAMMPS fix bond/react export.
Pipeline steps in Python
The Studio's analysis pipeline (and caps pipeline) runs Python steps in a separate process. A step is one function decorated with @step; it reads the frame's particles and writes attributes, tables or new per-particle properties.
import numpy as np
from caps.pipeline import step
@step(name="Backbone height")
def modify(frame, data):
pos = data.particles.positions_unwrapped
data.attributes["MeanZ"] = float(np.mean(pos[:, 2]))The reference below is generated from the installed package's docstrings.
Functions
function
functioncaps.cif_disorder(path: 'str') -> 'dict'
functioncaps.open_cif(path: 'str', mode: 'str' = 'major', group: 'str' = '', supercell=(1, 1, 1), seed: 'int' = 1) -> "'Document'"
functioncaps.dpd(species, regions=None, box: 'float' = 0.0, density: 'float' = 3.0, chi=None, a=None, gamma: 'float' = 4.5, dt: 'float' = 0.04, bond_k: 'float' = 4.0, angle_k: 'float' = 0.0, start: 'str' = 'random', start_periods: 'int' = 1, steps: 'int' = 20000, equilibration=None, frame_every=None, rc_angstrom: 'float' = 6.46, seed: 'int' = 1) -> "'Document'"
functioncaps.dendrimer(preset: 'str' = '', generation: 'int' = -1, core: 'str' = '', unit: 'str' = '', end: 'str' = '', focal: 'str' = '', shells: 'int' = 2, growth: 'str' = 'perfect', units: 'int' = 30, seed: 'int' = 1, relax: 'bool' = True, relax_steps: 'int' = 2000) -> "'Document'"
functioncaps.stack(layers, gap: 'float' = 2.0, vacuum: 'float' = 0.0, match: 'str' = 'both', keep_volume: 'bool' = False, max_repeat: 'int' = 6, flips=None, shifts=None, names=None) -> "'Document'"
functioncaps.set_electrostatics(method: 'str' = 'dsf', ewald_rtol: 'float' = 1e-05, pme_spacing: 'float' = 1.0, pme_order: 'int' = 5, slab: 'float' = 0.0) -> 'None'
functioncaps.surface_tension(file: 'str', axis: 'str' = 'z', interfaces: 'int' = 2, skip: 'float' = 0.2, blocks: 'int' = 5, cell_length: 'float' = 0.0) -> 'dict'
functioncaps.histogram(values, rule: 'str' = 'fd', bins: 'int' = 0) -> 'dict'
functioncaps.write_sdf_table(rows, path: 'str') -> 'dict'
functioncaps.read_data(path: 'str') -> 'dict'
functioncaps.density_fields(molecules, chi=None, grid=(32, 32, 32), bond: 'float' = 1.1543, kappa: 'float' = 10.0, noise: 'float' = 75.0, dt: 'float' = 0.02, steps: 'int' = 2000, frame_every: 'int' = 100, seed: 'int' = 1) -> 'dict'
functioncaps.descriptors(smiles=(), files=()) -> 'list'
functioncaps.qspr_model(y, x: 'dict', method: 'str' = 'mlr', stepwise: 'bool' = False, squares: 'bool' = False, products: 'bool' = False, components: 'int' = 0, folds: 'int' = 0, randomise: 'int' = 0, hidden: 'int' = 4, seed: 'int' = 1) -> 'dict'
functioncaps.cluster_rows(rows, k: 'int' = 2, method: 'str' = 'ward', scale: 'bool' = True, seed: 'int' = 1) -> 'dict'
functioncaps.discriminant(rows, classes) -> 'dict'
functioncaps.index_pattern(data: 'str', wavelength: 'float' = 1.54056, tolerance: 'float' = 0.03, systems=None, max_length: 'float' = 20.0, lines: 'int' = 20, unindexed: 'int' = 0) -> 'dict'
functioncaps.solve_structure(data: 'str', molecule: 'str', cell, space_group: 'str' = 'P 1', wavelength: 'float' = 1.54056, steps: 'int' = 6000, restarts: 'int' = 2, seed: 'int' = 1, path: 'str' = '') -> 'dict'
functioncaps.label_kinds() -> 'dict'
functioncaps.protocol_text(name: 'str', temperature: 'float' = 300.0, t_max: 'float' = 600.0, pressure: 'float' = 1.0, p_max: 'float' = 49346.2, time_scale: 'float' = 1.0, cycles: 'int' = 3, t_low: 'float' = 300.0, t_high: 'float' = 600.0, ramp_ps: 'float' = 50.0, hold_ps: 'float' = 50.0) -> 'str'
functioncaps.water_models() -> 'list'
functioncaps.open(path: 'str', topology: 'Optional[str]' = None, first: 'int' = 0, last: 'Optional[int]' = None, stride: 'int' = 1) -> 'Document'
functioncaps.pack(molecules=None, box=30.0, tolerance: 'float' = 2.0, seed: 'int' = 1, density: 'Optional[float]' = None, inp: 'Optional[str]' = None, forcefield: 'Optional[str]' = None, relax: 'bool' = False, base_dir: 'Optional[str]' = None) -> 'Document'
functioncaps.potentials() -> 'list'
functioncaps.current() -> 'Document'
functioncaps.hand_back(doc: "'Document'") -> 'str'
functioncaps.import_file(path: 'str', bonds: 'str' = 'perceive', tolerance: 'float' = 0.45, bond_orders: 'bool' = True, split: 'bool' = True, unwrap: 'bool' = True, use_cell: 'bool' = True, topology: 'Optional[str]' = None) -> 'Document'
functioncaps.import_preview(path: 'str', **options) -> 'dict'
functioncaps.run(recipe, out_dir: 'str' = '.', seed: 'Optional[int]' = None, threads: 'int' = 0, progress=None, base_dir: 'Optional[str]' = None) -> 'Document'
functioncaps.polymer(smiles, dp: 'int' = 20, chains: 'int' = 1, tacticity: 'str' = 'atactic', seed: 'int' = 1, density: 'Optional[float]' = None, forcefield: 'Optional[str]' = None, relax: 'bool' = False, sequence: 'str' = 'homopolymer', trials: 'int' = 120, blocks: 'Optional[list]' = None, weights: 'Optional[list]' = None, pattern: 'str' = '', r1: 'Optional[float]' = None, r2: 'Optional[float]' = None, pm: 'Optional[float]' = None, p_mr: 'Optional[float]' = None, p_rm: 'Optional[float]' = None, lengths: 'Optional[dict]' = None, chain_dp: 'Optional[list]' = None, architecture: 'str' = 'linear', arms: 'Optional[int]' = None, arm_dp: 'Optional[int]' = None, spacing: 'Optional[int]' = None, branch_probability: 'Optional[float]' = None, generations: 'Optional[int]' = None, region: 'Optional[dict]' = None, method: 'str' = 'trials', method_temperature: 'float' = 450.0, orientation: 'Optional[dict]' = None, lookahead: 'int' = 1, head_cap: 'str' = '', tail_cap: 'str' = '', reactivity: 'Optional[list]' = None, transition: 'Optional[list]' = None, penultimate: 'Optional[list]' = None, drift: 'str' = 'none', conversion: 'Optional[float]' = None, graft_units=None, graft_dp: 'Optional[int]' = None, graft_on: 'Optional[int]' = None, graft_probability: 'Optional[float]' = None, graft_max: 'Optional[int]' = None, graft_sequence: 'Optional[str]' = None, graft_weights: 'Optional[list]' = None) -> 'Document'
functioncaps.table(cells, properties) -> 'Table'
functioncaps.library() -> 'C.CDLL'
functioncaps.abi_version() -> 'int'
functioncaps.build_info() -> 'dict'
functioncaps.ml_available() -> 'bool'
functioncaps.forcefield_overlays(base: 'str' = '') -> 'list'
functioncaps.space_groups() -> 'list'
functioncaps.provenance_file(path: 'str') -> 'dict'
functioncaps.compare_provenance(a: 'dict', b: 'dict') -> 'dict'
functioncaps.bibtex(manifest: 'dict') -> 'str'
functioncaps.methods(manifest: 'dict', replicas: 'Optional[list]' = None) -> 'dict'
functioncaps.chain_lengths(distribution: 'str' = 'schulz-zimm', nn: 'float' = 40, pdi: 'float' = 1.1, count: 'int' = 20, seed: 'int' = 2026, m0: 'float' = 104.15, best_of: 'int' = 1) -> 'dict'
functioncaps.bead_templates(forcefield: 'str') -> 'dict'
functioncaps.copolymer_model(r1: 'float', r2: 'float', f1: 'float', dp: 'int' = 80, seed: 'int' = 1) -> 'dict'
functioncaps.stereo(pm: 'float' = 0.5, p_mr: 'Optional[float]' = None, p_rm: 'Optional[float]' = None, dyads: 'str' = '', measured: 'Optional[list]' = None) -> 'dict'
functioncaps.blend_phase(na: 'float', nb: 'float', a: 'float', b: 'float', t: 'float' = 300.0) -> 'dict'
functioncaps.solvent_chi(delta_polymer: 'float', solvents: 'list', t: 'float' = 298.15) -> 'list'
functioncaps.tg_fit(paths, prop: 'str' = 'volume', fit: 'str' = 'hinge', glassy_max: 'float' = 0.0, rubbery_min: 'float' = 0.0, volume: 'bool' = False) -> 'dict'
functioncaps.exchange(op: 'str', **data) -> 'dict'
functioncaps.exchange_library(path: 'str' = '') -> 'list'
functioncaps.ewald_params(cutoff: 'float' = 12.0, tolerance: 'float' = 1e-05, spacing: 'float' = 1.2, order: 'int' = 4, edges: 'Optional[list]' = None, doc: "Optional['Document']" = None) -> 'dict'
functioncaps.chi_by_md(polymer, solvent: 'Optional[str]' = None, polymer_b=None, dp: 'int' = 10, chains: 'int' = 6, temperature: 'float' = 300.0, eq_ps: 'float' = 200.0, prod_ps: 'float' = 300.0, seed: 'int' = 1) -> 'dict'
functioncaps.chi_by_contacts(a: 'str', b: 'str', forcefield: 'Optional[str]' = 'gaff2', samples: 'int' = 1000000, pack_trials: 'int' = 5000, temperatures=(250, 275, 300, 325, 350, 375, 400), t: 'float' = 298.15, seed: 'int' = 1) -> 'dict'
functioncaps.reaction_templates() -> 'list'
functioncaps.reaction_template(name: 'str') -> 'str'
functioncaps.bond_react_template(pre: 'str', post: 'str', map: 'str', masses_from: 'str' = '', name: 'str' = '', capture: 'float' = 0.0) -> 'dict'
functioncaps.reaction_library(path: 'str' = '') -> 'list'
caps.Document
A structure or trajectory: frames, a current frame, and everything CAPS does to it.
methodDocument.add_hydrogens(self) -> 'int'
methodDocument.adp(self, first: 'int' = 0, last: 'int' = -1, stride: 'int' = 1, supercell=(1, 1, 1), probability: 'float' = 0.5, remove_drift: 'bool' = True, cif: 'str' = '') -> 'dict'
methodDocument.adsorption(self, adsorbates, cycles: 'int' = 3, steps: 'int' = 20000, t_high: 'float' = 10000.0, t_low: 'float' = 100.0, region: 'str' = 'cell', cutoff: 'float' = 12.0, coulomb: 'bool' = True, keep: 'int' = 10, seed: 'int' = 1) -> 'dict'
methodDocument.analyze(self, properties='density', first: 'int' = 0, last: 'int' = -1, stride: 'int' = 1, blocks: 'int' = 5, threads: 'int' = 0, **options) -> 'list'
methodDocument.animate_mode(self, mode: 'int', amplitude: 'float' = 0.3, frames: 'int' = 20, selection: 'bool' = False) -> 'dict'
methodDocument.atom(self, i: 'int') -> 'dict'
methodDocument.atom_labels(self, kind: 'str' = 'element') -> 'list'
methodDocument.atom_states(self) -> 'list'
propertyDocument.atoms
methodDocument.backmap_kg(self, unit: 'str', name: 'str' = 'unit', relax: 'bool' = True, seed: 'int' = 1) -> "'Document'"
methodDocument.bond_labels(self, kind: 'str' = 'length') -> 'list'
methodDocument.bond_react(self, templates, directory: 'str', **options) -> 'dict'
methodDocument.bond_rules(self, rules: 'list', apply: 'bool' = False) -> 'dict'
methodDocument.cg_map(self, scheme: 'str' = 'unit', per_bead: 'int' = 3, temperature: 'float' = 300.0, ibi: 'Optional[dict]' = None, rules=None) -> "'Document'"
methodDocument.charges(self, method: 'str' = 'qeq', kernel: 'str' = 'slater', ewald: 'bool' = False, hydrogen: 'bool' = False, bounds=None, cutoff: 'float' = 10.0, total: 'float' = 0.0, lam: 'float' = 0.4913, accuracy: 'float' = 1e-07, path: 'str' = '', apply: 'bool' = False) -> 'dict'
methodDocument.checks(self) -> 'list'
methodDocument.clear_planes(self) -> 'None'
methodDocument.close(self) -> 'None'
propertyDocument.closed
methodDocument.conformers(self, trials: 'int' = 50, method: 'str' = 'torsions', selection: 'bool' = False, window: 'float' = 10.0, rmsd: 'float' = 0.5, temperature: 'float' = 298.15, seed: 'int' = 1) -> 'dict'
methodDocument.convert(self, to: 'str' = 'united-atom', per_bead: 'int' = 5) -> "'Document'"
methodDocument.dielectric(self, cutoff: 'float' = 10.0, relax: 'bool' = True, relax_cell: 'bool' = True, piezo: 'bool' = True, damping: 'float' = 10.0, w_max: 'float' = 0.0, points: 'int' = 400) -> 'dict'
methodDocument.domains(self, group: 'str' = '', grid: 'float' = 0.8, sigma: 'float' = 1.5, threshold: 'float' = 0.0, below: 'bool' = False, min_voxels: 'int' = 1, slice: 'Optional[dict]' = None, cube: 'str' = '') -> 'dict'
methodDocument.edit(self, **op) -> 'dict'
methodDocument.energy(self) -> 'dict'
methodDocument.enumerate_occupations(self, frm: 'str', to: 'str', count: 'int' = 1, directory: 'str' = '', max_configurations: 'int' = 200000) -> 'dict'
methodDocument.equilibrate(self, protocol: 'str' = 'larsen21', temperature: 'float' = 300.0, t_max: 'float' = 600.0, pressure: 'float' = 1.0, p_max: 'float' = 49346.2, time_scale: 'float' = 1.0, cycles: 'int' = 3, t_low: 'float' = 300.0, t_high: 'float' = 600.0, ramp_ps: 'float' = 50.0, hold_ps: 'float' = 50.0, dt: 'float' = 1.0, thermostat: 'str' = 'bussi', barostat: 'str' = 'crescale', tau_t: 'float' = 100.0, tau_p: 'float' = 1000.0, seed: 'int' = 1, cutoff: 'float' = 10.0, coulomb: 'bool' = True, frame_ps: 'float' = 10.0, thermo_ps: 'float' = 0.5, until_converged: 'bool' = False, block_ps: 'float' = 20.0, max_blocks: 'int' = 20, constraints: 'str' = 'none', constraint_solver: 'str' = 'shake', tail: 'bool' = True, hmr: 'float' = 0.0, precision: 'str' = 'mixed') -> 'bool'
methodDocument.exchange_build(self, op: 'str', axis: 'str' = 'z', plane: 'float' = 0.5, gap: 'float' = 3.0, radius: 'float' = 3.0, centre=None, axes: 'str' = 'xyz') -> 'dict'
methodDocument.exchange_run(self, protocol: 'str' = 'run', chemistry: 'str' = '', progress=None, **options) -> 'dict'
methodDocument.export_engines(self, folder: 'str', stem: 'str' = 'system', lammps: 'bool' = True, gromacs: 'bool' = True, run: 'str' = 'check', **opts) -> 'dict'
methodDocument.export_scene(self, path: 'str', format: 'str' = '', width: 'int' = 1280, height: 'int' = 800, background: 'str' = 'white', style: 'str' = 'ball_and_stick', colour: 'str' = 'molecule', yaw: 'float' = 0.55, pitch: 'float' = 0.4, zoom: 'float' = 1.0) -> 'dict'
methodDocument.fit_crystal(self, parameters, targets=(), relaxed: 'bool' = True, formula_units: 'float' = 1.0, fit_structure: 'bool' = True, weights=None, iterations: 'int' = 50, cutoff: 'float' = 10.0, electrostatics: 'str' = 'pme', apply: 'bool' = False, save: 'str' = '') -> 'dict'
methodDocument.fit_terms(self) -> 'list'
methodDocument.fragment_smiles(self, atoms=None) -> 'str'
propertyDocument.frames
methodDocument.fuse_ring(self, i: 'int', j: 'int', size: 'int' = 6, members: 'str' = '', aromatic: 'bool' = False, clean: 'bool' = True) -> 'dict'
methodDocument.ghost(self, atoms=None) -> 'int'
methodDocument.graft(self, units, sites, dp: 'int' = 10, equivalent: 'bool' = False, probability: 'float' = 1.0, per_site: 'int' = 1, max_grafts: 'int' = 0, min_spacing: 'float' = 0.0, sequence: 'Optional[str]' = None, weights: 'Optional[list]' = None, padding: 'float' = 0.0, seed: 'int' = 1) -> "'Document'"
methodDocument.habit(self, max_index: 'int' = 3, attachment: 'bool' = False, surface: 'bool' = False, forms: 'int' = 12, min_d: 'float' = 0.0, cutoff: 'float' = 10.0, electrostatics: 'str' = 'pme', particle=None) -> 'dict'
methodDocument.hide(self, atoms=None) -> 'int'
methodDocument.hold(self, molecule: 'int' = 0, atoms: 'Optional[list]' = None) -> 'None'
methodDocument.hydrogen_plan(self) -> 'dict'
methodDocument.insert(self, smiles: 'str', count: 'int', tolerance: 'float' = 2.0, seed: 'int' = 1) -> 'str'
methodDocument.insert_atom(self, i: 'int', j: 'int', element: 'str', clean: 'bool' = True) -> 'dict'
methodDocument.interactions(self, **options) -> 'dict'
methodDocument.join(self, piece: 'str', at: 'int', piece_atom: 'int' = -1, torsion=None, order: 'int' = 1, clean: 'bool' = False) -> 'dict'
methodDocument.layers(self) -> 'dict'
methodDocument.lock(self, atoms=None, locked: 'bool' = True) -> 'int'
methodDocument.md(self, steps: 'int' = 10000, dt: 'float' = 1.0, temperature: 'float' = 300.0, thermostat: 'str' = 'bussi', barostat: 'str' = 'none', pressure: 'float' = 1.0, seed: 'int' = 1, frame_every: 'int' = 1000, thermo_every: 'int' = 100, cutoff: 'float' = 10.0, respa: 'int' = 1, constraints: 'str' = 'none', constraint_solver: 'str' = 'shake', couple_axes: 'str' = '', efield: 'tuple' = (0.0, 0.0, 0.0), full_shape: 'bool' = False, hmr: 'float' = 0.0, precision: 'str' = 'mixed', tau_t: 'float' = 100.0, tau_p: 'float' = 1000.0, coulomb: 'bool' = True, tail: 'bool' = True, new_velocities: 'bool' = False) -> 'str'
methodDocument.miller(self, h: 'int', k: 'int', l: 'int', shift: 'float' = 0.0, max_planes: 'int' = 0, show: 'bool' = True) -> 'dict'
methodDocument.normal_modes(self, temperature: 'float' = 298.15) -> 'dict'
methodDocument.pair_histograms(self, lo: 'float' = 0.8, hi: 'float' = 3.2, bin: 'float' = 0.04) -> 'list'
methodDocument.phonons(self, cutoff: 'float' = 10.0, supercell=None, mesh=None, path=None, displacement: 'float' = 0.01, relax: 'bool' = True, sigma: 'float' = 5.0, temperatures=(100, 200, 298.15, 300, 400, 500), path_points: 'int' = 120) -> 'dict'
methodDocument.point_group(self, tolerance: 'float' = 0.1) -> 'dict'
methodDocument.pores(self, probe: 'float' = 1.4, grid: 'float' = 0.25, samples: 'int' = 2000, radii: 'str' = 'bondi') -> 'dict'
methodDocument.positions(self) -> 'list'
methodDocument.powder(self, anode: 'str' = 'Cu', wavelength: 'float' = 0.0, two_theta=(5.0, 90.0), step: 'float' = 0.02, radiation: 'str' = 'xray', kalpha2: 'bool' = True, profile: 'str' = 'tch', uvw=(0.0, 0.0, 0.0025), xy=(0.0, 0.0), size: 'float' = 0.0, size_abc=None, strain: 'float' = 0.0, b_iso: 'float' = 0.0, preferred=None, march_r: 'float' = 1.0, zero_shift: 'float' = 0.0, monochromator: 'float' = 0.0, polarised: 'bool' = False, frames='current', max_peaks: 'int' = 200) -> 'dict'
methodDocument.probe(self, kind: 'str', atoms) -> 'dict'
methodDocument.probe_series(self, a: 'tuple', b: 'Optional[tuple]' = None, measure: 'str' = 'distance') -> 'list'
propertyDocument.provenance
methodDocument.qha(self, mode: 'str' = 'volume', lock=(), range: 'float' = 0.02, points: 'int' = 7, temperatures=(0, 100, 200, 298.15, 400), pressure: 'float' = 0.0, relax_cell: 'bool' = True, cutoff: 'float' = 10.0, supercell=None, mesh=None) -> 'dict'
methodDocument.query(self, query: 'str', op: 'str' = 'replace') -> 'int'
methodDocument.react(self, templates, cycles: 'int' = 50, per_cycle: 'int' = 5, target: 'float' = 1.0, capture: 'float' = 0.0, relax: 'bool' = True, relax_iterations: 'int' = 500, md_ps: 'float' = 0.0, temperature: 'float' = 500.0, cutoff: 'float' = 10.0, seed: 'int' = 1, during_md: 'bool' = False, between_chains: 'bool' = False, keep_byproducts: 'bool' = False, weights=None, auto_capture: 'bool' = False, capture_max: 'float' = 0.0, capture_step: 'float' = 0.0, crosslinks=None, default_field: 'bool' = False, sites_per_chain: 'int' = 0, remove_unreacted: 'bool' = False, remove_pendant: 'bool' = False, selection: 'bool' = False) -> 'str'
methodDocument.react_sites(self, templates) -> 'dict'
methodDocument.react_summary(self) -> 'dict'
methodDocument.reaction_path(self, other: 'str', match: 'bool' = True, method: 'str' = 'idpp', images: 'int' = 7, neb: 'bool' = False, relax_ends: 'bool' = False, spring: 'float' = 5.0, fmax: 'float' = 0.05, steps: 'int' = 2000, climb: 'bool' = True) -> "'Document'"
methodDocument.refine(self, data: 'str', mode: 'str' = 'rietveld', phases=(), anode: 'str' = 'Cu', wavelength: 'float' = 0.0, radiation: 'str' = 'xray', background: 'int' = 6, refine=('U', 'W', 'Y', 'zero'), b_iso: 'bool' = False, preferred=None, two_theta=None, iterations: 'int' = 50, use_document: 'bool' = True) -> 'dict'
methodDocument.relax(self, ftol: 'float' = 0.5, method: 'str' = 'lbfgs', max_iterations: 'int' = 5000, density: 'float' = 0.0, pushoff: 'bool' = True, box: 'bool' = False, pressure: 'float' = 1.0, cutoff: 'float' = 10.0, coulomb: 'bool' = True, threads: 'int' = 0, restraints: 'Optional[list]' = None, box_axes: 'str' = '', pushoff_md_ps: 'float' = 0.0, pushoff_cap: 'float' = 0.0, pushoff_temperature: 'float' = 0.0, etol: 'float' = 0.0, pressure_tol: 'float' = 0.0) -> 'int'
methodDocument.relax_cell(self, hold=(), pressure: 'float' = 0.0, ftol: 'float' = 0.01, steps: 'int' = 3000, cutoff: 'float' = 10.0) -> 'dict'
methodDocument.render(self, path: 'str', width: 'int' = 1280, height: 'int' = 800, background: 'str' = 'white', style: 'str' = 'ball_and_stick', colour: 'str' = 'molecule', yaw: 'float' = 0.55, pitch: 'float' = 0.4, zoom: 'float' = 1.0, engine: 'str' = 'raster', bits: 'int' = 8, samples: 'int' = 64, shadows: 'bool' = True, occlusion: 'bool' = True, depth_of_field: 'float' = 0.0, outlines: 'bool' = False, dpi: 'float' = 0) -> 'None'
methodDocument.resolution(self, per_bead: 'int' = 5) -> 'dict'
methodDocument.restraints(self) -> 'dict'
methodDocument.rigid(self, molecules: 'str' = '') -> 'int'
methodDocument.save(self, path: 'str') -> 'None'
methodDocument.save_gromacs(self, stem: 'str') -> 'str'
methodDocument.save_trajectory(self, path: 'str') -> 'None'
methodDocument.scene(self, hydrogens: 'bool' = True, max_atoms: 'int' = 60000) -> 'dict'
methodDocument.select(self, mode: 'str', pattern: 'str' = '', op: 'str' = 'replace', **kw) -> 'int'
methodDocument.selection(self) -> 'list'
methodDocument.semicrystalline_report(self) -> 'dict'
methodDocument.sequence_report(self) -> 'dict'
methodDocument.series(self, molecule: 'int' = 0, dt_fs: 'float' = 1.0, log: 'str' = '') -> 'dict'
methodDocument.set_cell(self, a: 'float', b: 'float', c: 'float', alpha: 'float' = 90.0, beta: 'float' = 90.0, gamma: 'float' = 90.0, scale: 'bool' = True, symmetric: 'bool' = False) -> 'None'
methodDocument.set_frame(self, k: 'int') -> 'None'
methodDocument.set_hbonds(self, donors: 'str' = 'N O F', acceptors: 'str' = 'N O F', criterion: 'str' = 'da', da: 'float' = 3.5, hda: 'float' = 30.0, ha: 'float' = 0.0, dha: 'float' = 110.0, between=None) -> 'None'
methodDocument.set_pattern(self, smarts: 'str', bin: 'float' = 0.0) -> 'int'
methodDocument.set_restraints(self, text: 'str') -> 'int'
methodDocument.show(self, atoms=None) -> 'int'
methodDocument.sorption(self, sorbate: 'str' = 'O=C=O', pressures_kpa=(), temperature: 'float' = 300.0, insertions: 'int' = 100000, steps: 'int' = 200000, mixture=None, map_grid: 'int' = 0, cutoff: 'float' = 12.0, coulomb: 'bool' = True, seed: 'int' = 1, flexible: 'bool' = False, trials: 'int' = 8, ig_samples: 'int' = 20000, fixed_loading=None, keep_configuration: 'bool' = False) -> 'dict'
methodDocument.spiro_ring(self, atom: 'int', size: 'int' = 5, members: 'str' = '', clean: 'bool' = True) -> 'dict'
methodDocument.sqs(self, frm: 'str', to: 'str', fraction: 'float' = 0.5, path: 'str' = '', shells: 'int' = 3, steps: 'int' = 20000, restarts: 'int' = 4, seed: 'int' = 1) -> 'dict'
methodDocument.sulfur_bridges(self, ring_limit: 'int' = 8) -> 'dict'
methodDocument.summary(self) -> 'dict'
methodDocument.symmetrize_molecule(self, tolerance: 'float' = 0.1) -> 'dict'
methodDocument.symmetry(self, op: 'str' = 'info', tolerance: 'float' = 0.1) -> 'dict'
methodDocument.tacticity(self) -> 'dict'
methodDocument.tag(self, name: 'str', atoms=None, colour: 'str' = '', op: 'str' = 'set') -> 'int'
propertyDocument.tags
methodDocument.thermal(self, dimensionality: 'int', method: 'str' = 'gk', **options) -> 'dict'
methodDocument.thermal_lammps(self, path: 'str', dimensionality: 'int', method: 'str' = 'gk', **options) -> 'str'
methodDocument.torsion_scan(self, atoms, step: 'float' = 15, relax: 'bool' = False, forcefield: 'str' = 'auto') -> 'dict'
methodDocument.undo(self, redo: 'bool' = False) -> 'None'
methodDocument.view(self, style: 'str' = 'ball-and-stick', width: 'int' = 640, height: 'int' = 400, hydrogens: 'bool' = True, max_atoms: 'int' = 60000, cell: 'Optional[bool]' = None)
methodDocument.zmelt(self, temperatures, steps: 'int' = 10000, dt: 'float' = 1.0, bisect: 'int' = 0, cutoff: 'float' = 10.0, sample_every: 'int' = 20, melt_order: 'float' = 0.3, seed: 'int' = 1) -> 'dict'
caps.build
The builders: each returns a new Document.