Did I find the right examples for you? yes no

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

src/p/y/pynbody-pynbody-0-0.20/pynbody/snapshot.py   pynbody(Download)
 
        if isinstance(boxsize, units.UnitBase):
            boxsize = float(boxsize.ratio(self[
                            "pos"].units, **self.conversion_context()))
 

src/p/y/pynbody-HEAD/pynbody/snapshot.py   pynbody(Download)
 
        if isinstance(boxsize, units.UnitBase):
            boxsize = float(boxsize.ratio(self[
                            "pos"].units, **self.conversion_context()))