Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential index error if traj epoch does not align in RIC computation #229

Merged
merged 10 commits into from
Sep 7, 2023
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter -F python
sccache: 'true'
manylinux: auto
# manylinux: false

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM opensuse/tumbleweed

# Install Python 3.10 and other necessary packages
RUN zypper ref && \
zypper -n in gcc make python310 python310-pip uuid-runtime perl && \
zypper -n in gcc make python310 python310-pip uuid-runtime perl perl-IPC-System-Simple && \
zypper clean

WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions python/nyx_space/plots/traj.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def plot_traj(
if not isinstance(dfs, list):
dfs = [dfs]

for df in dfs:
for k, df in enumerate(dfs):
print(df.describe())
print(df.columns)
color_values = list(colors.values())
Expand All @@ -78,7 +78,7 @@ def plot_traj(
df["y (km)"],
df["z (km)"],
df["Epoch:Gregorian UTC"],
color=color_values[len(fig.data) % len(color_values)],
color=color_values[k % len(color_values)],
name=title,
)
]
Expand Down
2 changes: 1 addition & 1 deletion src/md/trajectory/traj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ where
.transpose()
};

let dcm_post = if ii == self_states.len() {
let dcm_post = if ii == self_states_post.len() {
dcm_cur
} else {
self_states_post[ii]
Expand Down