Did I find the right examples for you? yes no

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

src/p/y/pynbody-pynbody-0-0.20/pynbody/filt.py   pynbody(Download)
    def __call__(self, sim) :
        radius = self.radius
        if units.is_unit_like(radius) :
            radius = float(radius.in_units(sim["pos"].units,
                           **sim["pos"].conversion_context()))
 
        if units.is_unit_like(radius) :
            radius = float(radius.in_units(sim["pos"].units, **sim["pos"].conversion_context()))
        if units.is_unit_like(height) :
            height = float(height.in_units(sim["pos"].units, **sim["pos"].conversion_context()))
 
        if units.is_unit_like(min_) :
            min_ = float(min_.in_units(sim[prop].units, **sim.conversion_context()))
        if units.is_unit_like(max_) :
            max_ = float(max_.in_units(sim[prop].units, **sim.conversion_context()))

src/p/y/pynbody-HEAD/pynbody/filt.py   pynbody(Download)
    def __call__(self, sim) :
        radius = self.radius
        if units.is_unit_like(radius) :
            radius = float(radius.in_units(sim["pos"].units,
                           **sim["pos"].conversion_context()))
 
        if units.is_unit_like(radius) :
            radius = float(radius.in_units(sim["pos"].units, **sim["pos"].conversion_context()))
        if units.is_unit_like(height) :
            height = float(height.in_units(sim["pos"].units, **sim["pos"].conversion_context()))
 
        if units.is_unit_like(min_) :
            min_ = float(min_.in_units(sim[prop].units, **sim.conversion_context()))
        if units.is_unit_like(max_) :
            max_ = float(max_.in_units(sim[prop].units, **sim.conversion_context()))

src/p/y/pynbody-pynbody-0-0.20/pynbody/plot/sph.py   pynbody(Download)
        if isinstance(width,str) : 
            width = _units.Unit(width)
        width = width.in_units(sim['pos'].units,**sim.conversion_context())
 
    width = float(width)

src/p/y/pynbody-HEAD/pynbody/plot/sph.py   pynbody(Download)
        if isinstance(width,str) : 
            width = _units.Unit(width)
        width = width.in_units(sim['pos'].units,**sim.conversion_context())
 
    width = float(width)