Skip to content

Commit

Permalink
reducing excess debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rallen10 committed Aug 13, 2024
1 parent 84be33b commit aff4408
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 26 deletions.
8 changes: 1 addition & 7 deletions src/kspdg/base_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,35 +405,29 @@ def vessel_step(self, action: Dict, vesAgent):

# execute maneuver for specified time, checking for end
# conditions while you do
if self.debug:
self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - Beginning vessel_step burn for {burn_dur:.5g} sec")
timeout = time.time() + burn_dur
while True:
if self.is_episode_done or time.time() > timeout:
break
self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - Burn complete, zeroing thrust")

# zero out thrusts
vesAgent.control.forward = 0.0
vesAgent.control.up = 0.0
vesAgent.control.right = 0.0

# get observation
self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - querying environment observation for info processing")
obs = self.get_observation()

# compute performance metrics
self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - processing env info")
info = self.get_info(obs, self.is_episode_done)

# display weighted score
self.logger.info(f"CURRENT SCORE: {info[self.PARAMS.INFO.K_WEIGHTED_SCORE]}")

# compute reward
self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - computing reward value")
rew = self.get_reward(info, self.is_episode_done)

self.logger.debug(f"vessel_step (t+{time.time()-vessel_step_start:.5g}) - vessel_step complete")
self.logger.debug(f"vessel_step complete after {time.time()-vessel_step_start:.5g} sec")
return obs, rew, self.is_episode_done, info

def get_burn__rhvbody(self, burn_vec, ref_frame, vesAgent):
Expand Down
5 changes: 0 additions & 5 deletions src/kspdg/lbg1/lbg1_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,6 @@ def get_observation(self) -> ArrayLike:
(see https://krpc.github.io/krpc/python/api/space-center/celestial-body.html#SpaceCenter.CelestialBody.non_rotating_reference_frame)
'''

self.logger.debug("Starting get_observation ...")

rf = self.vesBandit.orbit.body.non_rotating_reference_frame

obs = [None] * self.PARAMS.OBSERVATION.LEN
Expand Down Expand Up @@ -431,8 +428,6 @@ def get_observation(self) -> ArrayLike:
obs[self.PARAMS.OBSERVATION.I_GUARD_VY], \
obs[self.PARAMS.OBSERVATION.I_GUARD_VZ] = \
v_g_cb__rhcbci

self.logger.debug("get_observation complete")

return np.array(obs)

Expand Down
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_12/kspdg_envs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-09T11:36:40.087933
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-12T21:20:53.737688
from kspdg.private_src.python3_12.pyarmor_runtime_000000 import __pyarmor__
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\x0c\x00\xcb\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\xa9\x01\x00\x00\x12\t\x04\x00x\xc8\xa6\xc35\xc0\xd6\xd2\xfc\x82C\xb2\xeb?\xb27\x00\x00\x00\x00\x00\x00\x00\x00\xee\xa7\xb2\x1c/;\xac\xab6co\x9f\xe2\x9b\x97\xa9+\xb3\xa8\x1aou\x94DP_\n)D\x89uY\xf0\xbb\xa4b\x080\x83\xe6\ro\xbd\x1e\xb0\x1d\x85\x9c\xde\x00r\xb9L"E\x92\xd0;\xa1\xfb\xa3iv\x92\xb5\xa3\xaf\xadb\x05\xc12W\xf3\xe8\xfe\x91\xdc\xbb$\xf1A\xde\x18e\xa99\xf4\xd5\x87K\xa2\x05\xa9&\xd9\xcd\xd1\xcfj\xee\xe5h\x1f\xc5`\x94\x08V\xe6\x0f\xb0\x86\xcb\x8fV\xab\rW $\xfei\x8e\x9a\xe3Xv\x18\xe88\xffF[\xf1\xe6U\x9b\x16\x8an\xfd\xc6\xe8\x15m\x91\x85ix4\x88I\xa0\xceH\x8c\t}\x14: t^\xb1\x0c\x18\x03\xaa\xab\xed\xbe\xd0\xb7_\xef\x10}%\x9e\xa9R\xbc\xf5\x10$i-\x81nkht\x15\x83\x90\xbd\x05\xfe\xff$,\xe0\xd5\xeb\xd7\xc7\x0b\xc7r\xf0\x9d5\x97B\'\xe9\xf3{\xf3\xcd\xabG\xd7\x0eA\xca5\xa2z\x175\x0f\x01V\xbe X\xc7\x89\xdc\xf9\x9es\x1f\x96\'\x17\xf6\x91r\n\x086C\xda\xef\x8c&\x82\xbf\xfcU\xc2*a\xc2o\xc4\xe4{\xf8\x02t\x8eb\xccM:\xd9\xbd\x9e\xa6\x9f\xcb\xc5\x9a\x86\x1d!\xd1\xab\x8d\xf9\xcb\x01\xba/\xee\x1dM\xd5pB\x0f%\x9e\x86:\xa0W\x1d\x96\xb2dgW\x1f\xe1\xdaar)\xdd\xba\xae\xab\x99\t!(\r\xa1Z\x0b\xbd\x04 \xca0!\xb2x\x04D\x1d\xf5\x82l\x870}\x8acd\xf9\xc0\x05\xdb\n\x06\xbe\x18\xb9\xdc\x9c,~p\x8a\x16p\xc7K\x86\xeb\xf7\xc0\xdc?|&\x87\x97zW\x9a\xcb\xect\xf2\x91k2`\x15\x9fy\xe1\xb4k\xc3}\\\xe1\x80\xc0L46\xbep\xca\xb8\xcf\x9c}>\xaa\xccQ\x19\xcfwJ')
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\x0c\x00\xcb\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\xa9\x01\x00\x00\x12\t\x04\x00\xef\xee\xe2\x1f\xc8\xfe\tGivH\x1a\x03\xd2n\xe3\x00\x00\x00\x00\x00\x00\x00\x00\xc7\xfa\x12\xf9\x83aA~\xb7\xec\xac(\xb4\x1d[7\xd9u\xd0Lx\xd5\xb3M\x8c\x86\xd5\t\xe5\xe7\x85\xf9\xa6\x91\x16\x18\x89\x03\xd2V\xae\xcd\\\x93 \x93}\xc2\x1f)_\xb3xz\x0b\xbewiH\x0c\x94\xae\xee\x8dk\n_\xa3t8\xbep\xea/\xdc4\x94~\xfbOS_\xe0O\x90lu\x89\x18z\xb3\xc29\xd8_v\xb9\xfe\x1d\x16\xca\xf5\xcc\x08~?\x00\x95G\x85hp\x0f\xf5\\\x8a\xb3\xbe\xfd\xd0\xb0O\xd2\xdfY\xe7\xe9F\xfa\x9a\xe4\xe5{\xfc\xe2\x0b\xf9;\x95eZ\xa3\xfcUXh\xaf+q\r#\xec\xa3q>O\xf0\x96\xc4S<\xf1\xe3\xea\xd7\x12\x89Z\xf8\xfa\xab[\xd0b\xff\x8d\x17&\xa9o\xf4j\x96\x9ejF\xb9\xb3\xcc\xdf\xd6\x1b\x88\xe4\xaa\t\x0f\x88\xcc\x8dFc\x04\xa9z:C<F\xd1\xfd\xe3\xfc\t\xfc\x83\xd6\xc9\x01"OIQ4\xf2\xff\x99\xdd\xc0\x1b\xab\x1f\x86\xa7\x18\xfd\xc9\xc8YLl+{\x17\x98\xe3\x1b\xc8\xdb$n\x1f\xd1B;\x15\x03\x92\xb9\x86\n\xff|\xb5{5I\xf5\x9c+"H\xa5\x14\xb1\xe3\x1b\x96\xe8QV.\x15*\x00\xc7E-\x94\xb8\xcc\xf4\x11\xff%\x8b\xf7~\xa8/\x7f{\xdb\xfe$\xf80\x16g\xd0\x87\x85"-\xfbL\xf4u\xbag\x0b\x07\x81B2\x18\xc6\x9c`\xb2\xc0>1\xa4\x1e\x19\x11\xd0\x030\xd1Kn\x06\xcb/.\x06\x96\xc3M\x0e\\\x14$\xcf`\xbd\xd3\xb3\x8b\xde\xe7!\xc5\xea\x9d\x01T\x94\xdfu\xc5\x85\x85ZY\x87\'\xea\xe8h\xb8S\xd6.\xa3\xed\x10t4\x9ex\x80,\x8292\xe7\xd4^_>H\xff\x83DD\x1b\xc3\x9d\x91\xfb\x10\xbf\x12\xae\xfb\xf6\x00_\x80|\xd8*')
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_12/kspdg_envs/lbg1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-09T11:36:40.089501
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-12T21:20:53.739783
from kspdg.private_src.python3_12.pyarmor_runtime_000000 import __pyarmor__
__pyarmor__(__name__, __file__, b"PY000000\x00\x03\x0c\x00\xcb\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x89\x00\x00\x00\x12\t\x04\x00WHn\x81%\xa2\xbe\xb2\xa7\x99\xbb\xf0\x7fSc\xa9\x00\x00\x00\x00\x00\x00\x00\x00\xca\xb4\xabyP8\xeb\xf8#\xc55%\xbc6\xc4\x9c\xf7\xe3\xeaG\xa0\x95\x8c\x1c\x12VB\x92\xc1}\xc8^\x90x\xb2\n\x88\xee\xbd\xebv\x0f\xb9\xfb!\xf0AiU\xc5\xb4\xd2\x11\x8f0\xfa\xeb\xa0\xbcD\xa01A\xce\xa6\x08\xab\x9d\x11\xd3\xa5E\x87\x9aH\x9dYZv\x99\xcd\xbf2\x92w\x88\xbf\xfbw\xb4\xb2\x017\x10@\x19\xc5\xbcJ\x92\x18\x88\xa5X\x05\xa7i\x94]z\x0ff\xa9M\xc5X\xfa'\xdc\x17;\x13\xed\xa8\xe8\xefDn\x9e{\x14J\x0c\xccp\xb7\xd7")
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\x0c\x00\xcb\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x89\x00\x00\x00\x12\t\x04\x00\xc9\x82x\x90F,\xa2% [\xa2}\xfa{ \xde\x00\x00\x00\x00\x00\x00\x00\x00p\x07\x9b,\x80\xc0q\xc1qy-\xae\xe4ul\x85\xd5\x05\xb3\x0b\x86\xc4\xc6\x99\xbf\x03\x17/\xfc=8\x08H\x97\xbc\xb1\x02\x93\x00\t\x14q$I\xfc\xe0\xd8QFI\xb0\xdcp&\x8e_M\xe0WB\xc0\x917\xb2\x15\xd9\r\xe6\x18v\x84\x83\xf2TA^\x0e\xb2b\x01\xcdLM\x9c\xd8\x03\x82\x08\xb5\xf1MM(u\xb1i\xf1\x99\xf6\xe2r\x7f\xd2\xd3H\x9c\xb2\xf2\x1d\n\xd5\xb0\xa0\x03\xb5\x1c\xa1<\xe0*l\xe0"a\xc7\xead{sE\x1e\x04V\xf3\xea\x8fz')
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_12/kspdg_envs/lbg1/lg3_envs.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Pyarmor 8.5.11 (trial), 000000, 2024-08-09T11:36:40.085109
# Pyarmor 8.5.11 (trial), 000000, 2024-08-12T21:20:53.734686
from .pyarmor_runtime import __pyarmor__
Binary file not shown.
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_9/kspdg_envs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-09T11:36:40.812671
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-12T21:20:54.526232
from kspdg.private_src.python3_9.pyarmor_runtime_000000 import __pyarmor__
__pyarmor__(__name__, __file__, b"PY000000\x00\x03\t\x00a\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\\\x01\x00\x00\x12\t\x04\x00\x7f]>\xf3\xf7{JJ\xa2[\x0f\xea\x9an\xe2\xbf\x00\x00\x00\x00\x00\x00\x00\x00\xb9C\x86O%\n\xff\x066ON\xb4\xebC\xad\xe8\xcfz&\x02V\xc0\xc0&#\xa0\x95\x08U0\xeaU,\xab~\xdfp\xbd{\xd8\xb0\xf4\xe21{\xa1/\x9f\xa9\xeeE\x93\x0b\xd8\xa6\xdaK\x8f\xc1\xf3y\xdbGJ\xd9'\xe1\xae9-\x909\x95\xc6f\x99\xcf\xc5~\x8bn\xc2\xe5Y\x17\xf7l\x9d*\xf9\xba\x1ev\xe1\x84\xca\xfa\xed4\xda\xbeB\xea\xa6\xdf\xc0\x81\x98\xad\x07J\x8a!V+z9e\x92>\xcd\xfb\rT\x8d\xfb\xf8'\xd0\xe0\xc3:\x8d\x0cJ\xb1\xe3\xb7\xa9\xd2\\\nz\xfbC\xa6R\xa5\xdd\x03\x8bp;*A\x0f\xdf\x85\xd0G\x19S~8\x89\xc3\xcf\x08\xf5!|%\xdc`&\x1f\r\x94\xfd\x1f\xafE1\x8f\xdfV\xbds\x8f\x87\xb6\xaap(\x16\xce\\ \xaf\x10\xdb\x88\x05\xe1\xcb?l\xe9\xa6\xf1\xd8\xc0\xa8C\xbd\xfeop\x9f\x92d\xe30\x0c\xd6I\xdc=a\xbd\x13\x1c\x80\xdf\xec\x90c\x92\xc3<$0\xaa*^\xd8D\x80\\\xffR\xcb%\xf7<3\xad\x98\xe9N\x9aG;u/\xee\xdad\xa1\xea!\xb7\xf0\x15NH\xa6\x80\t\xaf!\xa8Fp\x9b\xda\xd4\xb4\xd3||\xe5\xf3\xa9\xc9\xb4\x16QR\xe2\xf9jP\xff>,\xfc7y\x03w\x8d\x19d\x118\x80%\xbdK\xb3\x18\xbb{\xba\xdc\xb7\x03\xc0\xc8\x9d\x8f\xe6\xcd5=>\xf5\xd0\xaed\x85\xa9\x0c\xdf&\x0ey")
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\t\x00a\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\\\x01\x00\x00\x12\t\x04\x00\xf66?_|\xb4uh\xcb\xaa\xc4\xd1\xcb:\xc5/\x00\x00\x00\x00\x00\x00\x00\x00~\xb5\xc5\x82\xd3`\xad\xf1X+\xa9\xedD2B\x03\xa4^\xf5<q\x99\xdc\xa7mB\x87\xd3\x89\xe6\x87\xb7\x13|J\x18}\xb2!\x0b\x9e\x10h\x8a\x1e&\x19\xcf\x89\xdf|\x1e\xf4\x17\xcb*\xebU^nY\xe4\xd0\xa9\x8d\xe5\x94\xf5i@\xd1\x13\x14\xe7\x8b$\x00C\xee\xfc\xba\x8e\xfb\xfc)\xdf\x1e\xa7s\xeez/\x8a\x99oZ\x07\xf6L\xa5J\xbcH\x1e-w\x14~\x96x5\x8d\x07\xe9M\xd8\xd9\xcaY>\xb4\xebL\xabd\x96\x0f\x10\xe0Y.z\xb1Jx\x19_f\xe6\xe5\xab$p\x16,\x00V\xd0\xf9\xa1(\x90\xe4X\x96\r\xe4\x94\x10\x1b\x01\x91H\xb5\x913\x1b\xe7"\xbd\xcf\r\xbd#\xcd\xc8#;\xcc\xb8|K\xfac\xb4\x82\x90\x07.;k8\x1f\xb3\x1d\x05\xba\xfc\x97"\xcbZ\x04\xb2\x91\xe5\x94\x8fD\xb0\x8d\xa0D\x0f\xe5.F\xddD\xd0\x18\xaf\xaf\xfaN\xcbj\xddq\xe5y\x8d\xc8\x9e\xbe= \xe8\xa7\x06V\xd1V\xbf\xf1G\x8e\x8f\x05\x05 e\xe3\x86\x1d\xb3\xd4vP\x9c\xb1\xa2\x08\xc9\x89\x97\x13\xc4\xce2\x97M\xd8\x85y"\xe1\x8b\xe4\xe5o%1V\xcf\xaap\xe69\xc8Lff\xb9!Q\xefn\xb1YY\xb3`\xfb\xf5siOV/CN f \'\xbd(kpIr\xd0\x84\x97\x85\xee\xc3[\x1e\x0c+ZK?u&J\xcb\x07}-u\xad\xefV\xbb\xed')
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_9/kspdg_envs/lbg1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-09T11:36:40.814941
# Pyarmor 8.5.11 (trial), 000000, non-profits, 2024-08-12T21:20:54.528014
from kspdg.private_src.python3_9.pyarmor_runtime_000000 import __pyarmor__
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\t\x00a\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x83\x00\x00\x00\x12\t\x04\x00O\xf5\\\x0b\xd9\xeep\xe4fWR\xd5\xcb\x186A\x00\x00\x00\x00\x00\x00\x00\x00\x03\t\x8d\xa7\xc5b\x9b\x7fp\xcaG\r\xc5\xe1\xb1\x83\xaa\x8a\xab\xb2\x01\x84\xf2\xf2yD_\xd8~\x81\x9c!\xfa\x97x\xcd\xa6\x103T8\x1fz\xb8\xa6mj\xb0\xca\xe7\x90\xf2\xb5n%\xc33a\x19`\xfbr\x1dn?\rr\x86\xa9\x14\x96\xc2\xbc\xe0;\xb6\xc0\xb8d\xb3\x86K\x07\xcb\xb5\xe3\xdfy\xd0\x9c\xf2\xe5~\xa7k\xa6\xcf\x7f1\xe9\xe2`\x99MP\xa1v\xb5J\x96\xe8\x03y\xb0\xee\xac\x9e\xad\x065\xb7\xd3\x9a)\xf17\xfa\x14\xc6\x8f\xf9')
__pyarmor__(__name__, __file__, b'PY000000\x00\x03\t\x00a\r\r\n\x80\x00\x01\x00\x08\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00\x83\x00\x00\x00\x12\t\x04\x00A\xef\x1a~r)\x96\xca6dR\x18n{\xecV\x00\x00\x00\x00\x00\x00\x00\x00]"\xf6\xbd\xa8\xc1d/G\xd5\x16\x18\xa1\xf0v/i/S\xb3kC=\xe0:\xd0\xc3B\xe8~n\xa5\xa8x\xeb\x88^\xab\xc0ur9\xf5\xc3\xc9\x12\xbeO\xbf>4\x19f\xa3\xdc\xd8\x81\xc8W\xfa\x83CY2A\x9a\xa3\x8a\x9dl\xc9j\x18.\xca\xb6\xb8\xcf\xa0\x94\x03\x10\xb4\x90\xed<\xa6U\x7f5G\x1eu\xb7Dgv\xf9`QB\xbd\xd6\x16\x88C\xd4\xfb\xf0\xcc\x97\xc3)1sp\x19\x87!\xe4\x99\xbe9\x95\x8b$\xe7\x7f)\x96\xb4')
4 changes: 2 additions & 2 deletions src/kspdg/private_src/python3_9/kspdg_envs/lbg1/lg3_envs.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Pyarmor 8.5.11 (trial), 000000, 2024-08-09T11:36:40.809784
# Pyarmor 8.5.11 (trial), 000000, 2024-08-12T21:20:54.523574
from .pyarmor_runtime import __pyarmor__
Binary file not shown.

0 comments on commit aff4408

Please sign in to comment.