Skip to content

Commit e59b15c

Browse files
committed
Tweak the test drives.
1 parent 99f0811 commit e59b15c

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

Diff for: src/test/java/org/mastodon/mamut/io/csv/CSVImporterTestDrive.java

+12-7
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,26 @@ public static void main( final String[] args ) throws IOException, SpimDataExcep
5151
Locale.setDefault( Locale.ROOT );
5252
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
5353

54-
final String bdvFile = "samples/200212__pos1.xml";
54+
// final String bdvFile = "samples/200212__pos1.xml";
55+
final String bdvFile = "../mastodon/samples/datasethdf5.xml";
5556
final ProjectModel projectModel = ProjectCreator.createProjectFromBdvFile( new File( bdvFile ), new Context() );
5657
new MainWindow( projectModel ).setVisible( true );
5758

5859
final Model model = projectModel.getModel();
59-
final String csvFilePath = "samples/200212__pos1.csv";
60+
// final String csvFilePath = "samples/200212__pos1.csv";
61+
final String csvFilePath = "samples/MastodonTable-Spot-1lineheader.csv";
6062
final CSVImporter importer = CSVImporter.create()
6163
.model( model )
6264
.csvFilePath( csvFilePath )
65+
.separator( ',' )
6366
.radius( 2. )
64-
.xColumnName( "x" )
65-
.yColumnName( "y" )
66-
.zColumnName( "z" )
67-
.frameColumnName( "time" )
68-
.idColumnName( "index" )
67+
.xColumnName( "X" )
68+
.yColumnName( "Y" )
69+
.zColumnName( "Z" )
70+
.frameColumnName( "Spot frame" )
71+
.idColumnName( "ID" )
72+
.labelColumnName( "Label" )
73+
.qualityColumnName( "Detection quality" )
6974
.get();
7075

7176
System.out.println( "Starting import" );

Diff for: src/test/java/org/mastodon/mamut/io/csv/CSVImporterUITestDrive.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ public static void main( final String[] args ) throws IOException, SpimDataExcep
5353
Locale.setDefault( Locale.ROOT );
5454
UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
5555

56-
final String bdvFile = "samples/200212__pos1.xml";
56+
// final String bdvFile = "samples/200212__pos1.xml";
57+
final String bdvFile = "../mastodon/samples/datasethdf5.xml";
5758
final ProjectModel projectModel = ProjectCreator.createProjectFromBdvFile( new File( bdvFile ), new Context() );
5859
new MainWindow( projectModel ).setVisible( true );
5960

60-
final String csvFilePath = "samples/200212__pos1.csv";
61+
final String csvFilePath = "samples/MastodonTable-Spot-1lineheader.csv";
6162
final ToggleCSVImporterDialogAction action = ( ToggleCSVImporterDialogAction ) projectModel
6263
.getPlugins()
6364
.getPluginActions()

0 commit comments

Comments
 (0)