00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 from _ost_mol import *
00020 import ost.geom as _geom
00021 from ost.mol import alg
00022
00023
00024 def Transform(tf=None):
00025 from ost import LogWarning
00026 if Transform.mol_transform_warning_flag:
00027 LogWarning("mol.Transform is deprecated, please use geom.Transform instead")
00028 Transform.mol_transform_warning_flag=False
00029 if tf:
00030 return _geom.Transform(tf)
00031 else:
00032 return _geom.Transform()
00033 Transform.mol_transform_warning_flag=True
00034
00035 def MergeCoordGroups(*coord_groups):
00036 """
00037 Merge several separate coord groups into one. The coord groups must have the
00038 same number of atoms. In case no coord group is supplied, None will be
00039 returned.
00040 """
00041 if len(coord_groups)==0:
00042 return None
00043 cg=CreateCoordGroup(coord_groups[0].atoms)
00044 for coord_group in coord_groups:
00045 cg.AddFrames(coord_group)
00046 return cg