Skip to content

Commit

Permalink
Add SpimData constructors with basePathURI
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Aug 29, 2024
1 parent 639352e commit c9fbc6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/java/mpicbg/spim/data/SpimData.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
package mpicbg.spim.data;

import java.io.File;
import java.net.URI;

import mpicbg.spim.data.generic.AbstractSpimData;
import mpicbg.spim.data.registration.ViewRegistrations;
Expand All @@ -41,6 +42,11 @@ public SpimData( final File basePath, final SequenceDescription sequenceDescript
super( basePath, sequenceDescription, viewRegistrations );
}

public SpimData( final URI basePathURI, final SequenceDescription sequenceDescription, final ViewRegistrations viewRegistrations )
{
super( basePathURI, sequenceDescription, viewRegistrations );
}

protected SpimData()
{}
}
7 changes: 6 additions & 1 deletion src/main/java/mpicbg/spim/data/generic/AbstractSpimData.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ public class AbstractSpimData< S extends AbstractSequenceDescription< ?, ?, ? >

public AbstractSpimData( final File basePath, final S sequenceDescription, final ViewRegistrations viewRegistrations )
{
this.basePathURI = basePath == null ? null : basePath.toURI();
this( basePath == null ? null : basePath.toURI(), sequenceDescription, viewRegistrations );
}

public AbstractSpimData( final URI basePathURI, final S sequenceDescription, final ViewRegistrations viewRegistrations )
{
this.basePathURI = basePathURI;
this.sequenceDescription = sequenceDescription;
this.viewRegistrations = viewRegistrations;
}
Expand Down

0 comments on commit c9fbc6a

Please sign in to comment.