Skip to content

Commit

Permalink
Merge pull request #109 from redlink-gmbh/FEATURE-Relative_Study_Start
Browse files Browse the repository at this point in the history
Feature relative study start
  • Loading branch information
alireza-dhp authored Feb 12, 2024
2 parents b8024b6 + 8aae626 commit bdbd395
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static List<Pair<Instant, Instant>> parseToObservationSchedulesForEvent(E
while (it.hasNext()) {
Instant ostart = it.next().toInstant();
Instant oend = ostart.plus(eventDuration, ChronoUnit.SECONDS);
if(ostart.isAfter(start) && oend.isBefore(end)) {
if(ostart.isBefore(end) && oend.isAfter(start)) {
observationSchedules.add(Pair.of(ostart, oend));
}
}
Expand Down

0 comments on commit bdbd395

Please sign in to comment.