From e272db3c0491e2bf11ed6be4034326cbcc3a6acc Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Wed, 18 Mar 2026 23:50:50 +0100 Subject: [PATCH] [CHANGE] Better property names - Wormhole space us usually referred to as J-Space or WH-Space, not W-Space - Use `triglavian` instead of `trig` to follow in line with `abyssal` (Using the full word) - Adjusted doc comments to match the rest of the code --- eve_sde/models/map.py | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/eve_sde/models/map.py b/eve_sde/models/map.py index 609427d..8dcec86 100644 --- a/eve_sde/models/map.py +++ b/eve_sde/models/map.py @@ -208,38 +208,49 @@ class Import: @property def is_high_sec(self) -> bool: - """Return True when this solar system is in high sec, else False.""" + """ + Return True when this solar system is in high sec, else False. + """ return self.security_status >= 0.45 @property def is_low_sec(self) -> bool: - """Return True when this solar system is in low sec, else False.""" + """ + Return True when this solar system is in low sec, else False. + """ return 0.0 < self.security_status < 0.45 @property def is_null_sec(self) -> bool: - """Return True when this solar system is in null sec, else False.""" + """ + Return True when this solar system is in null sec, else False. + """ return ( - not self.is_w_space - and not self.is_trig_space + not self.is_wh_space + and not self.is_triglavian_space and not self.is_abyssal_deadspace and self.security_status <= 0.0 - and not self.is_w_space ) @property - def is_w_space(self) -> bool: - """Return True when this solar system is in wormhole space, else False.""" + def is_wh_space(self) -> bool: + """ + Return True when this solar system is in wormhole space, else False. + """ return 31_000_000 <= self.id < 32_000_000 @property - def is_trig_space(self) -> bool: - """Return True when this solar system is in Triglavian space, else False.""" + def is_triglavian_space(self) -> bool: + """ + Return True when this solar system is in Triglavian space, else False. + """ return self.constellation.region.id == POCHVEN_REGION_ID @property def is_abyssal_deadspace(self) -> bool: - """Return True when this solar system is in abyssal deadspace, else False.""" + """ + Return True when this solar system is in abyssal deadspace, else False. + """ return 32_000_000 <= self.id < 33_000_000