@@ -37,18 +37,17 @@ def nested_obs_to_space(obs_dict):
3737 )
3838 elif isinstance (obs_dict , list ):
3939 return spaces .Box (
40- low = - 1e16 , high = 1e16 , shape = (len (obs_dict ),), dtype = np .float64
40+ low = - 1e16 , high = 1e16 , shape = (len (obs_dict ),), dtype = np .float32
4141 )
4242 elif isinstance (obs_dict , (float , int )):
43- return spaces .Box (low = - 1e16 , high = 1e16 , shape = (1 ,), dtype = np .float64 )
43+ return spaces .Box (low = - 1e16 , high = 1e16 , shape = (1 ,), dtype = np .float32 )
4444 elif isinstance (obs_dict , np .ndarray ):
45- return spaces .Box (low = - 1e16 , high = 1e16 , shape = obs_dict .shape , dtype = np .float64 )
45+ return spaces .Box (low = - 1e16 , high = 1e16 , shape = obs_dict .shape , dtype = np .float32 )
4646 else :
4747 raise TypeError (f"Cannot convert { obs_dict } to gym space." )
4848
4949
5050class ObservationBuilder :
51-
5251 def __init__ (self , satellite : "Satellite" , obs_type : type = np .ndarray ) -> None :
5352 """Satellite subclass for composing observations.
5453
@@ -312,7 +311,6 @@ def _r_LB_H(sat, opp):
312311
313312
314313class OpportunityProperties (Observation ):
315-
316314 _fn_map = {
317315 "priority" : lambda sat , opp : opp ["object" ].priority ,
318316 "r_LP_P" : lambda sat , opp : opp ["r_LP_P" ],
0 commit comments