Skip to content

Commit

Permalink
Merge pull request #30 from seeq12/bugfix/ao/mps-gives-error-when-con…
Browse files Browse the repository at this point in the history
…dition-capsule-is-uncertain-APML-845

APML 845: Fix for error when condition capsule is uncertain
  • Loading branch information
wizzle3d authored Dec 2, 2024
2 parents 64769e9 + e9bf502 commit e0433c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ scipy>=1.5.4
tzlocal==2.1
twine~=3.4.1
wheel~=0.38.1
packaging~=21.0
pytz~=2021.3
setuptools>=70.0.0
dohq-artifactory==0.8.1
4 changes: 4 additions & 0 deletions seeq/addons/mps/_mps_sdl_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def on_button_clicked2(self, b):
items_c = items[items.Type == 'Condition']
items_c = items_c[items_c.Name == known_cap]
self.data_pull_known = spy.pull(items_c, start=time_frame[0], end=time_frame[1], quiet=True, grid=griding)
self.data_pull_known.loc[self.data_pull_known['Capsule End'].isnull(), 'Capsule End'] = time_frame[1]
self.data_pull_known.loc[self.data_pull_known['Capsule Start'].isnull(), 'Capsule Start'] = time_frame[0]

time_frame = [datetime.strptime(
str(self.time_frame1.value)[:10] + " " + self.start_hour.value + ":" + self.start_min.value,
Expand Down Expand Up @@ -485,6 +487,8 @@ def on_button_clicked2(self, b):
items_c = items[items.Type == 'Condition']
items_c = items_c[items_c.Name == batch_cond]
batch_cond = spy.pull(items_c, start=time_frame[0], end=time_frame[1], quiet=True, grid=griding)
batch_cond.loc[batch_cond['Capsule End'].isnull(), 'Capsule End'] = time_frame[1]
batch_cond.loc[batch_cond['Capsule Start'].isnull(), 'Capsule Start'] = time_frame[0]
time_distort = 0.04

Batch_sim_df = mps.seeq_mps_dtw_batch(batch_cond, data_pull, data_pull_c, self.data_pull_known,
Expand Down
2 changes: 1 addition & 1 deletion seeq/addons/mps/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.9'
__version__ = '0.4.0'

0 comments on commit e0433c0

Please sign in to comment.