Skip to content
Snippets Groups Projects

Fix EventsDict with duplicated keys

Merged Benoit Seignovert requested to merge fix-events-dict-init-keys into main
EventsDict([
    EventWindow('FOO', t_start='2035-01-01', t_end='2035-01-02'),
    EventWindow('FOO', t_start='2035-01-03', t_end='2035-01-04'),
])
event # t_start t_stop
0 FOO 2 2035-01-01 2035-01-04
  • Add as_dict=True optional in Events find()/before()/after()/between()methods to enforceEventsDict` type return:
timeline.find('^IO', as_dict=True)
event # t_start t_stop
0 IO_TRANSIT 608 2031-01-20 2034-12-16
timeline.find('^IO').before('2031-01-21', as_dict=True)
event # t_start t_stop
0 IO_TRANSIT - 2031-01-20 2031-01-20

Merge request reports

Merge request pipeline #711 passed

Merge request pipeline passed for 5e8000fc

Test coverage 100.00% from 4 jobs

Merged by Benoit SeignovertBenoit Seignovert 2 years ago (Jan 20, 2023 6:58pm UTC)

Loading

Pipeline #712 passed

Pipeline passed for 45c46d24 on main

Test coverage 100.00% from 4 jobs

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading