1 from __future__
import print_function
16 m.set_log_level(IMP.WARNING)
18 pi_slab= p_slab.get_index()
19 slab= IMP.npctransport.SlabWithCylindricalPore.setup_particle \
20 (p_slab, height, radius)
25 d.set_coordinates_are_optimized(
True)
32 r.set_log_level(IMP.WARNING)
37 rmf= RMF.create_rmf_file(rnm)
40 sg.set_was_used(
True);
43 sgs= sg.get_components()
44 nh= rmf.get_root_node().add_child(
"slab", RMF.GEOMETRY)
56 nh= rmf.get_root_node().add_child(
"deriv", RMF.GEOMETRY)
76 nh= rmf.get_root_node().add_child(
"displacements", RMF.GEOMETRY)
80 dv= slabps.get_displacement_direction(slab,c)
82 dm= slabps.get_displacement_magnitude(slab,c)
84 if dm > particle_radius:
91 g.set_name(
"displace")
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Color get_hot_color(double f)
Return the color for f from the hot color map.
Class for storing model, its restraints, constraints, and particles.
static Hierarchy setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor children=ParticleIndexesAdaptor())
Create a Hierarchy of level t by adding the needed attributes.
static Mass setup_particle(Model *m, ParticleIndex pi, Float mass)
void add_geometries(RMF::NodeHandle parent, const display::GeometriesTemp &r)
Add geometries to a given parent node.
Writer * create_writer(std::string filename)
Simple implementation of segments in 3D.
Class to handle individual particles of a Model object.
Vector< VectorD< D > > get_grid_interior_cover_by_spacing(const BoundingBoxD< D > &bb, double s)
Applies a PairScore to a Pair.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.