#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* ------------------------------------------------------------------- #G* Please see the accompanying LICENSE file for further information. #H* ------------------------------------------------------------------- #I* Additional authors of this source file include: #-* #-* #-* #Z* ------------------------------------------------------------------- from chempy.models import Indexed from chempy import water_amber,water_residues from chempy import hetatm,path,io import os import copy def fill_box(area,water=None,box=18.774349): if not water: test_path = path + "water.pdb" if os.path.exists(test_path): water= io.pdb.fromFile(test_path) water= hetatm.generate(water,forcefield=water_amber, topology=water_residues) if not water: raise RunError('Need water structure file.') solv_box = Indexed() half = box/2 x = area[0][0] c = 0 while x