Skip to content

Commit

Permalink
fix: deprecated BigWarpInit methods
Browse files Browse the repository at this point in the history
  • Loading branch information
bogovicj committed Oct 17, 2023
1 parent 8f9a365 commit 45c6604
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/bigwarp/BigWarpInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public static < T > LinkedHashMap< Source< T >, SourceInfo > createSources( BigW
@Deprecated
public static < T > BigWarpData< T > add( BigWarpData< T > bwdata, Source< T > src, int setupId, int numTimepoints, boolean isMoving )
{
return add( bwdata, src, setupId, numTimepoints, isMoving, null );
return add( bwdata, createSources( bwdata, src, setupId, isMoving));
}

public static < T > BigWarpData< T > add( BigWarpData< T > bwdata, Source< T > source, SourceInfo sourceInfo )
Expand Down Expand Up @@ -361,8 +361,8 @@ public static < T > BigWarpData< T > add( BigWarpData< T > bwdata, LinkedHashMap
@Deprecated
public static < T > BigWarpData< T > add( BigWarpData bwdata, Source< T > src, int setupId, int numTimepoints, boolean isMoving, RealTransform transform )
{
addSourceToListsGenericType( src, setupId, bwdata.converterSetups, bwdata.sources );
// bwdata.transforms.add( transform );
final LinkedHashMap<Source<T>, SourceInfo> info = createSources(bwdata, src, numTimepoints, isMoving);
add( bwdata, info, transform, null );
return bwdata;
}

Expand Down

0 comments on commit 45c6604

Please sign in to comment.