Skip to content

Commit 8afa31c

Browse files
committed
from pyprob to pyro probprog engine
1 parent c283ace commit 8afa31c

6 files changed

Lines changed: 615 additions & 377 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ jobs:
2626
- name: Install
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install matplotlib
30-
pip install jupyter
31-
pip install numpy
32-
pip install dsgp4
33-
pip install pyprob
34-
pip install skyfield
3529
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
3630
pip install .[dev]
3731
pip install sphinx

kessler/cdm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def set_state(self, object_id, state):
258258
self._update_miss_distance()
259259

260260
def _update_miss_distance(self):
261-
state_object1 = self.get_state(0)
261+
state_object1 = self.get_state(0)*1e3
262262
# if np.isnan(state_object1.sum()):
263263
# warnings.warn('state_object1 has NaN')
264-
state_object2 = self.get_state(1)
264+
state_object2 = self.get_state(1)*1e3
265265
# if np.isnan(state_object2.sum()):
266266
# warnings.warn('state_object2 has NaN')
267267

@@ -286,10 +286,10 @@ def relative_state(state_obj_1, state_obj_2):
286286
relative_state[1] = np.array([np.dot(rot_matrix[0], rel_velocity_xyz), np.dot(rot_matrix[1], rel_velocity_xyz), np.dot(rot_matrix[2], rel_velocity_xyz)])
287287
return relative_state
288288

289-
state_object1 = self.get_state(0)
289+
state_object1 = self.get_state(0)*1e3
290290
# if np.isnan(state_object1.sum()):
291291
# warnings.warn('state_object1 has NaN')
292-
state_object2 = self.get_state(1)
292+
state_object2 = self.get_state(1)*1e3
293293
# if np.isnan(state_object2.sum()):
294294
# warnings.warn('state_object2 has NaN')
295295

0 commit comments

Comments
 (0)