Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
i2MassChroQ
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
PAPPSO
i2MassChroQ
Commits
4b7d724c
Commit
4b7d724c
authored
7 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
check that output directory is writable
parent
003e6b3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/tandem_run/tandembatchprocess.cpp
+11
-4
11 additions, 4 deletions
src/core/tandem_run/tandembatchprocess.cpp
with
11 additions
and
4 deletions
src/core/tandem_run/tandembatchprocess.cpp
+
11
−
4
View file @
4b7d724c
...
...
@@ -40,6 +40,13 @@ TandemBatchProcess::TandemBatchProcess(MainWindow * p_main_window, WorkMonitorIn
_tandem_run_batch
=
tandem_run_batch
;
_p_monitor
=
p_monitor
;
_tmp_database_file
.
setAutoRemove
(
true
);
//check that output directory is writeable :
QFileInfo
fi_in_dir
(
_tandem_run_batch
.
_output_directory
);
if
(
fi_in_dir
.
isDir
()
&&
fi_in_dir
.
isWritable
())
{
}
else
{
throw
pappso
::
PappsoException
(
QObject
::
tr
(
"output directory is not writable. Please check permissions on %1"
).
arg
(
fi_in_dir
.
absoluteFilePath
()));
}
}
TandemBatchProcess
::~
TandemBatchProcess
()
{
...
...
@@ -102,10 +109,10 @@ void TandemBatchProcess::run() {
// dir.path() returns the unique directory path
throw
pappso
::
PappsoException
(
QObject
::
tr
(
"problem creating temporary directory in %1
\n
"
).
arg
(
tmp_dir
.
path
()));
}
TandemParametersFile
orig_parameter_file
(
_tandem_run_batch
.
_preset_file
);
_preset_file
=
QString
(
"%1/%2"
).
arg
(
tmp_dir
.
path
()).
arg
(
orig_parameter_file
.
getFilename
());
TandemParametersFile
new_parameter_file
(
_preset_file
);
TandemParameters
new_param
=
orig_parameter_file
.
getTandemParameters
();
// <note type="input" label="spectrum, threads">1</note>
...
...
@@ -124,8 +131,8 @@ void TandemBatchProcess::run() {
runOne
(
mz_file
);
i
++
;
}
_p_monitor
->
finished
(
QObject
::
tr
(
"%1 X!Tandem job(s) finished"
).
arg
(
_tandem_run_batch
.
_mz_file_list
.
size
()));
_p_monitor
->
finished
(
QObject
::
tr
(
"%1 X!Tandem job(s) finished"
).
arg
(
_tandem_run_batch
.
_mz_file_list
.
size
()));
qDebug
()
<<
"TandemBatchProcess::run end"
;
}
...
...
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