Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
e75740ee
Commit
e75740ee
authored
15 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
SE-155 YeastX mzXML: minor: allow conversion field to be empty
SVN: 13016
parent
b438f5ee
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
rtd_yeastx/source/java/ch/systemsx/cisd/yeastx/etl/DatasetMappingResolver.java
+4
-9
4 additions, 9 deletions
...a/ch/systemsx/cisd/yeastx/etl/DatasetMappingResolver.java
with
4 additions
and
9 deletions
rtd_yeastx/source/java/ch/systemsx/cisd/yeastx/etl/DatasetMappingResolver.java
+
4
−
9
View file @
e75740ee
...
...
@@ -229,23 +229,18 @@ class DatasetMappingResolver
return
false
;
}
boolean
conversionRequired
=
isConversionRequired
(
mapping
);
if
(
conversion
==
MLConversionType
.
NONE
&&
conversionRequired
)
{
log
.
datasetMappingError
(
mapping
,
"conversion column cannot be empty "
+
"for this type of file."
);
return
false
;
}
if
(
conversion
!=
MLConversionType
.
NONE
&&
conversionRequired
==
false
)
boolean
conversionAllowed
=
isConversionAllowed
(
mapping
);
if
(
conversion
!=
MLConversionType
.
NONE
&&
conversionAllowed
==
false
)
{
log
.
datasetMappingError
(
mapping
,
"conversion column must be empty "
+
"for this type of file."
);
return
false
;
}
return
true
;
}
private
static
boolean
isConversion
Requir
ed
(
final
DataSetMappingInformation
dataset
)
private
static
boolean
isConversion
Allow
ed
(
final
DataSetMappingInformation
dataset
)
{
String
extension
=
FilenameUtils
.
getExtension
(
dataset
.
getFileName
());
boolean
conversionRequired
=
extension
.
equalsIgnoreCase
(
ConstantsYeastX
.
MZXML_EXT
);
...
...
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