Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QcmpCompressionLibrary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
QcmpCompressionLibrary
Commits
90514ea6
Commit
90514ea6
authored
4 years ago
by
Vojtech Moravec
Browse files
Options
Downloads
Patches
Plain Diff
Fix InputDataInfo configuration in parseSCIFIOFileArguments.
parent
6b866325
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/cz/it4i/qcmp/cli/CompressionOptionsCLIParser.java
+2
-3
2 additions, 3 deletions
...in/java/cz/it4i/qcmp/cli/CompressionOptionsCLIParser.java
with
2 additions
and
3 deletions
src/main/java/cz/it4i/qcmp/cli/CompressionOptionsCLIParser.java
+
2
−
3
View file @
90514ea6
...
...
@@ -204,10 +204,9 @@ public class CompressionOptionsCLIParser extends CompressionOptions implements C
private
void
parseSCIFIOFileArguments
(
final
StringBuilder
errorBuilder
,
final
String
[]
inputFileArguments
)
{
getInputDataInfo
().
setDataLoaderType
(
InputData
.
DataLoaderType
.
SCIFIOLoader
);
final
Reader
reader
;
try
{
reader
=
ScifioWrapper
.
getReader
(
getInputDataInfo
().
getFilePath
()
);
reader
=
ScifioWrapper
.
getReader
(
inputFileArguments
[
0
]
);
}
catch
(
final
IOException
|
FormatException
e
)
{
parseErrorOccurred
=
true
;
errorBuilder
.
append
(
"Failed to get SCIFIO reader for file.\n"
);
...
...
@@ -215,7 +214,6 @@ public class CompressionOptionsCLIParser extends CompressionOptions implements C
return
;
}
final
int
imageCount
=
reader
.
getImageCount
();
if
(
imageCount
!=
1
)
{
parseErrorOccurred
=
true
;
...
...
@@ -255,6 +253,7 @@ public class CompressionOptionsCLIParser extends CompressionOptions implements C
setInputDataInfo
(
new
FileInputData
(
inputFileArguments
[
0
],
new
HyperStackDimensions
((
int
)
planeWidth
,
(
int
)
planeHeight
,
(
int
)
planeCount
)));
getInputDataInfo
().
setDataLoaderType
(
InputData
.
DataLoaderType
.
SCIFIOLoader
);
if
(
inputFileArguments
.
length
>
1
)
{
parseInputFilePlaneOptions
(
errorBuilder
,
inputFileArguments
,
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment