Skip to content

Commit

Permalink
MasterTrack: Emit two revolutions of flux
Browse files Browse the repository at this point in the history
SCP image format cannot deal with varying numbers of revolutions.

This effectively reverts d40678d

Refs #368
  • Loading branch information
keirf committed Oct 19, 2023
1 parent 231693b commit 44676f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/greaseweazle/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ def _flux(self, for_writeout, cue_at_index) -> Union[Flux, WriteoutFlux]:

# Package up Flux.
index_list = [ticks_to_index]
if not splice_at_index:
if not splice_at_index or True:
# Emit two revolutions if track data crosses the index.
# UPDATE: Always emit two revolutions, for consistency.
flux_list = flux_list + [flux_ticks+flux_list[0]] + flux_list[1:]
index_list *= 2
flux = Flux(index_list, flux_list,
Expand Down

0 comments on commit 44676f3

Please sign in to comment.