Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/m/d/MDAnalysis-0.8.1/MDAnalysis/analysis/density.py   MDAnalysis(Download)
        if unit == self.units['length']:
            return
        cvnfact = MDAnalysis.core.units.get_conversion_factor('length',self.units['length'],unit)
        self.edges = [x * cvnfact for x in self.edges]
        self.units['length'] = unit
            return
        try:
            self.grid *= MDAnalysis.core.units.get_conversion_factor('density',self.units['density'],unit)
        except KeyError:
            raise ValueError("The name of the unit (%r supplied) must be one of:\n%r" %