MCPcopy Create free account
hub / github.com/SurceBeats/Atlas / debug_planet_rendering

Method debug_planet_rendering

pymodules/__atlas_debug_flag.py:64–87  ·  view source on GitHub ↗
(self, stargate_url: str, verbose: bool = True)

Source from the content-addressed store, hash-verified

62 return None
63
64 def debug_planet_rendering(self, stargate_url: str, verbose: bool = True) -> Dict[str, Any]:
65 params = self.decode_stargate(stargate_url)
66 if not params:
67 return {"error": "Invalid stargate URL"}
68
69 if verbose:
70 print("=" * 80)
71 print("ATLAS DEBUG MODE - PLANET RENDERING DATA")
72 print("=" * 80)
73 print(f"\nStargate Parameters:")
74 print(f" Coordinates: {params['coordinates']}")
75 print(f" System: {params['system']}")
76 print(f" Planet: {params['planet']}")
77
78 planet = self.get_planet_from_stargate(stargate_url)
79 if not planet:
80 return {"error": f"Planet not found: {params['planet']}"}
81
82 rendering_data = self.translator.translate_planet_rendering(planet)
83
84 if verbose:
85 self._print_verbose_output(rendering_data)
86
87 return rendering_data
88
89 def _print_verbose_output(self, data: Dict[str, Any]):
90 print(f"\nPLANET INFORMATION:")

Callers 3

export_to_jsonMethod · 0.95
mainFunction · 0.95
__main__.pyFile · 0.80

Calls 4

decode_stargateMethod · 0.95
_print_verbose_outputMethod · 0.95

Tested by

no test coverage detected