Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FerFlow.jl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fernando Pérez Panadero
FerFlow.jl
Commits
c13401a8
Commit
c13401a8
authored
Feb 05, 2025
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flag to continue runs.
parent
0183b61e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/io.jl
src/io.jl
+9
-0
No files found.
src/io.jl
View file @
c13401a8
...
...
@@ -15,6 +15,11 @@ Stores as global variables 'parsed_args' (info from the command line) and 'param
function
read_input
()
global
parsed_args
=
parse_commandline
()
global
params
=
TOML
.
parsefile
(
parsed_args
[
"i"
])
if
parsed_args
[
"R"
]
&&
(
isfile
(
"./output/"
*
params
[
"Run"
][
"name"
]
*
".log"
)
||
isfile
(
"./output/"
*
params
[
"Run"
][
"name"
]
*
".bdio"
))
error
(
"Output file already exists with this run name. Use flag -R to continue the run."
)
end
return
nothing
end
...
...
@@ -40,6 +45,10 @@ function parse_commandline()
help
=
"GPU for the job. Default 0"
arg_type
=
Int
default
=
0
"-R"
help
=
"Continue run. Needed to edit output files already created."
action
=
:
store_false
end
return
parse_args
(
s
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment