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

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

src/e/o/Eos-HEAD/fit/stat_tracker/tracker.py   Eos(Download)
from eos.const.eos import State
from eos.const.eve import Attribute
from eos.fit.tuples import DamageTypes, TankingLayers, TankingLayersTotal
from eos.util.volatile_cache import InheritableVolatileMixin, VolatileProperty
from .container import *
            hp_data = ship_holder.hp
        except AttributeError:
            return TankingLayersTotal(hull=None, armor=None, shield=None, total=None)
        else:
            # Build tuple here because the object we fetched
            # from ship is access point to stats, which are
            # updated on fit changes
            return TankingLayersTotal(
                hull=hp_data.hull,
            return ship_holder.get_ehp(damage_profile)
        except AttributeError:
            return TankingLayersTotal(hull=None, armor=None, shield=None, total=None)
 
    @VolatileProperty
            return ship_holder.worst_case_ehp
        except AttributeError:
            return TankingLayersTotal(hull=None, armor=None, shield=None, total=None)
 
    def get_nominal_volley(self, holder_filter=None, target_resistances=None):

src/e/o/Eos-HEAD/fit/holder/mixin/tanking.py   Eos(Download)
 
from eos.const.eve import Attribute
from eos.fit.tuples import TankingLayers, TankingLayersTotal, DamageTypes
from eos.util.override import OverrideDescriptor
from eos.util.volatile_cache import CooperativeVolatileMixin, VolatileProperty
        if total_ehp == 0 and hull_ehp is None and armor_ehp is None and shield_ehp is None:
            total_ehp = None
        return TankingLayersTotal(hull=hull_ehp, armor=armor_ehp, shield=shield_ehp, total=total_ehp)
 
    def __get_layer_ehp(self, layer_hp, layer_resistances, damage_profile):
        if total_ehp == 0 and hull_ehp is None and armor_ehp is None and shield_ehp is None:
            total_ehp = None
        return TankingLayersTotal(hull=hull_ehp, armor=armor_ehp, shield=shield_ehp, total=total_ehp)
 
    def __get_layer_worst_case_ehp(self, layer_hp, layer_resistances):