Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
7e91f9e5
Commit
7e91f9e5
authored
Mar 06, 2019
by
VIGNET Pierre
Browse files
[lib] Disable 'steps' file => useless
parent
f1f7671f
Changes
1
Show whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/solution_search.py
View file @
7e91f9e5
...
...
@@ -271,7 +271,7 @@ def find_macs(mcla,
vmac_list
=
mcla
.
mac_search
(
query
,
steps
)
# If yes, in how many steps ?
min_step
=
mcla
.
unfolder
.
get_current_step
()
#
min_step = mcla.unfolder.get_current_step()
for
next_mac_object
in
vmac_list
:
LOGGER
.
debug
(
"%s:: Next MAC object:
\n
%s"
,
final_prop
,
next_mac_object
)
...
...
@@ -288,10 +288,10 @@ def find_macs(mcla,
file
.
write
(
'
\t
'
.
join
(
next_mac
)
+
'
\n
'
)
# Save min steps
min_step
=
mcla
.
unfolder
.
get_current_step
()
-
1
# Magic number !
LOGGER
.
debug
(
"%s:: Save minimal steps: %s"
,
final_prop
,
min_step
)
with
open
(
mac_step_file
,
'a'
)
as
file
:
file
.
write
(
str
(
min_step
)
+
'
\n
'
)
#
min_step = mcla.unfolder.get_current_step() - 1 # Magic number !
#
LOGGER.debug("%s:: Save minimal steps: %s", final_prop, min_step)
#
with open(mac_step_file, 'a') as file:
#
file.write(str(min_step)+'\n')
def
find_mac
(
mcla
,
...
...
Write
Preview
Supports
Markdown
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