Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
74ccb70a
Commit
74ccb70a
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
update conf saved without a p
parent
f17aaf4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!155
fix/Update config file is saved without a "p" at the beginning
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/webservice.py
+1
-1
1 addition, 1 deletion
webservice/webservice.py
with
1 addition
and
1 deletion
webservice/webservice.py
+
1
−
1
View file @
74ccb70a
...
@@ -162,7 +162,7 @@ async def change_config(socket, config, updated_config, instrument, cycle,
...
@@ -162,7 +162,7 @@ async def change_config(socket, config, updated_config, instrument, cycle,
repo
.
remote
().
pull
()
repo
.
remote
().
pull
()
prop_dir
=
os
.
path
.
join
(
repo
.
working_tree_dir
,
cycle
)
prop_dir
=
os
.
path
.
join
(
repo
.
working_tree_dir
,
cycle
)
os
.
makedirs
(
prop_dir
,
exist_ok
=
True
)
os
.
makedirs
(
prop_dir
,
exist_ok
=
True
)
fpath
=
"
{}/
p
{:06d}.yaml
"
.
format
(
prop_dir
,
int
(
proposal
))
fpath
=
"
{}/{:06d}.yaml
"
.
format
(
prop_dir
,
int
(
proposal
))
if
not
os
.
path
.
exists
(
fpath
):
if
not
os
.
path
.
exists
(
fpath
):
with
open
(
"
{}/default.yaml
"
.
format
(
repo
.
working_tree_dir
),
"
r
"
)
as
f
:
with
open
(
"
{}/default.yaml
"
.
format
(
repo
.
working_tree_dir
),
"
r
"
)
as
f
:
defconf
=
yaml
.
load
(
f
.
read
())
defconf
=
yaml
.
load
(
f
.
read
())
...
...
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