Skip to content

Commit

Permalink
The SpectrumEncoder in PeakabooConfiguration now passes float[] class…
Browse files Browse the repository at this point in the history
… for encoder creation, as required by Kryo
  • Loading branch information
nathanielsherry committed Jun 8, 2024
1 parent 4943679 commit 266cd5d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

public class PeakabooConfiguration {

public static ScratchEncoder<Spectrum> spectrumEncoder = new CompoundEncoder<>(Serializers.fstUnsafe(ArraySpectrum.class), Compressors.lz4fast());
public static ScratchEncoder<Spectrum> spectrumEncoder = new CompoundEncoder<>(
Serializers.fstUnsafe(
ArraySpectrum.class,
float[].class
),
Compressors.lz4fast()
);


public static final MemorySize memorySize = calcMemoryFootprint();
Expand Down

0 comments on commit 266cd5d

Please sign in to comment.