vukics / Wigner_Time

Timeline creation and management for open-loop control in AMO experiments and beyond.
Boost Software License 1.0
0 stars 0 forks source link

set should be able to take relative time arguments #3

Closed light-matters closed 2 weeks ago

light-matters commented 1 month ago

I.e. I want the value to be 'x' ten seconds after the value in the previous timeline.

vukics commented 1 month ago

Can we attack this in create when the new timeline is created, just by iterating over the rows of new and changing the time if relative is true?

light-matters commented 1 month ago

I'm a bit suspicious of looping here. I'll need to have a proper look at it but often looping over rows in pandas is quite inefficient.

vukics commented 1 month ago

I was wondering, too, but the new timeline usually contains only very few lines, so I don’t think looping is an issue.