Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
caisar
Commits
201786db
Commit
201786db
authored
1 year ago
by
Aymeric Varasse
Browse files
Options
Downloads
Patches
Plain Diff
[aimos] Set CWD from CAISAR
parent
c7a8d75e
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/aimos.ml
+3
-0
3 additions, 0 deletions
src/aimos.ml
with
3 additions
and
0 deletions
src/aimos.ml
+
3
−
0
View file @
201786db
...
@@ -29,6 +29,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
...
@@ -29,6 +29,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
amplitude
=
amplitude
=
let
config_file
=
Caml
.
Filename
.
temp_file
"aimos-"
".yml"
in
let
config_file
=
Caml
.
Filename
.
temp_file
"aimos-"
".yml"
in
let
config_path
=
Fpath
.
v
config_file
in
let
config_path
=
Fpath
.
v
config_file
in
let
cwd
=
Caml
.
Sys
.
getcwd
()
in
let
ampli
=
Dataset
.
string_of_amplitude
amplitude
in
let
ampli
=
Dataset
.
string_of_amplitude
amplitude
in
let
transformations
=
let
transformations
=
match
ampli
with
match
ampli
with
...
@@ -44,6 +45,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
...
@@ -44,6 +45,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
(
"plot"
,
`Bool
false
);
(
"plot"
,
`Bool
false
);
(
"inputs_path"
,
`String
inputs_path
);
(
"inputs_path"
,
`String
inputs_path
);
(
"transformations"
,
transformations
);
(
"transformations"
,
transformations
);
(
"alt_cwd"
,
`String
cwd
);
]
]
|
ctp
->
|
ctp
->
`O
`O
...
@@ -52,6 +54,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
...
@@ -52,6 +54,7 @@ let write_config inputs_path models_path perturbation perturbation_path out_mode
(
"inputs_path"
,
`String
inputs_path
);
(
"inputs_path"
,
`String
inputs_path
);
(
"transformations"
,
transformations
);
(
"transformations"
,
transformations
);
(
"custom_t_path"
,
`String
ctp
);
(
"custom_t_path"
,
`String
ctp
);
(
"alt_cwd"
,
`String
cwd
);
]
]
in
in
let
models
=
let
models
=
...
...
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