Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resaving specific ViewSetups to HDF5 fails #16

Open
PetrBainar opened this issue Dec 20, 2018 · 0 comments
Open

Resaving specific ViewSetups to HDF5 fails #16

PetrBainar opened this issue Dec 20, 2018 · 0 comments

Comments

@PetrBainar
Copy link
Contributor

Resaving specific ViewSetups to a new XML project fails if the first ViewSetup of the current dataset is not selected to be included in the new dataset.

Consider the following scenario - the user has got a dataset consisting of 3 timepoints, 2 channels and 2 illuminations and would like to split the ViewSetups into two smaller datasets according to the channel information.

Resaving ViewSetups which belong to the Channel with ID=0 works fine (see below).

Resaving odd ViewSetups

However resaving the "even" ViewSetups" (see below) to a new project fails with the following exception (see further below):

Resaving even ViewSetups

Exception in thread "Thread-83" java.lang.NullPointerException
	at net.preibisch.mvrecon.fiji.spimdata.explorer.popup.ResavePopup$MyActionListener$1.run(ResavePopup.java:227)`
	at java.lang.Thread.run(Thread.java:745)

Lines 215 and 216 in ResavePopup are as follows:

final int firstviewSetupId = data.getSequenceDescription().getViewSetupsOrdered().get( 0 ).getId();
final ExportMipmapInfo autoMipmapSettings = perSetupExportMipmapInfo.get( firstviewSetupId );

When resaving the even ViewSetups, autoMipmapSettings is null, perhaps because data.getSequenceDescription().getViewSetupsOrdered().get( 0 ).getId(); inquires the first ViewSetup ID from the entire dataset, no matter whether it has been selected to be included in the new dataset or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant