def fit_geometry(self, X=None, input_type='<STR_LIT:data>'):
if self.geom is None:<EOL><INDENT>self.geom_ = Geometry()<EOL><DEDENT>elif isinstance(self.geom, Geometry):<EOL><INDENT>self.geom_ = self.geom<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>kwds = dict(**self.geom)<EOL><DEDENT>except TypeError:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>self.geom_ = Geometry(**kwds)<EOL><DEDENT>if self.radius is not None:<EOL><INDENT>self.geom_.set_radius(self.radius, override=False)<EOL><DEDENT>if X is not None:<EOL><INDENT>self.geom_.set_matrix(X, input_type)<EOL><DEDENT>return self<EOL>
Inputs self.geom, and produces the fitted geometry self.geom_