Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
talent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
David Hoksza
talent
Commits
870d0b4b
Commit
870d0b4b
authored
5 years ago
by
David Hoksza
Browse files
Options
Downloads
Patches
Plain Diff
gui: revert export step + 1 and enable export of original graph
parent
41e4996a
Branches
duplication
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gui_config.ini
+1
-1
1 addition, 1 deletion
gui_config.ini
talent/utils/export.py
+2
-2
2 additions, 2 deletions
talent/utils/export.py
talent_gui.py
+2
-1
2 additions, 1 deletion
talent_gui.py
with
5 additions
and
4 deletions
gui_config.ini
+
1
−
1
View file @
870d0b4b
...
...
@@ -3,6 +3,6 @@ openTgtFileDir=C:/projects/git/talent/tmp/dup2.xml
openTmpFileDir
=
C:/projects/git/talent/tmp/dup2.xml
openOutputPathButton
=
C:/projects/git/talent/out
openOutputPath
=
C:/projects/git/talent/out
opnBcFile
=
C:/projects/git/talent/tests/biomodels/
predBIOMD0000000572_url--from--multiple-tgt-ddup_True_tmp-ddup_True
.pkl
opnBcFile
=
C:/projects/git/talent/tests/biomodels/
x
.pkl
cbTgtType
=
0
cbTmpType
=
2
This diff is collapsed.
Click to expand it.
talent/utils/export.py
+
2
−
2
View file @
870d0b4b
...
...
@@ -28,9 +28,9 @@ def export_sbml(sbml:str, path:str, format:str, minerva_instance:str):
with
open
(
path
,
mode
)
as
f
:
f
.
write
(
result
)
def
export_step
(
bc
:
bt
.
BeautificationChain
,
output_path
,
format
,
minerva_instance
,
step
:
int
=
-
1
):
def
export_step
(
bc
:
bt
.
BeautificationChain
,
output_path
,
format
,
minerva_instance
,
step
:
int
=
-
1
,
original_graph
=
False
):
g
=
bc
[
step
]
.
g
if
len
(
bc
)
>
0
else
bc
.
g
g
=
bc
.
g
if
len
(
bc
)
==
0
or
original_graph
else
bc
[
step
]
.
g
sbml_string
=
gu
.
graph_to_sbml
(
g
)
export_sbml
(
sbml_string
,
output_path
,
format
,
minerva_instance
)
...
...
This diff is collapsed.
Click to expand it.
talent_gui.py
+
2
−
1
View file @
870d0b4b
...
...
@@ -450,8 +450,9 @@ class OperationWidget(QWidget):
# ext = file_type.split('.')[1].replace(')', '')
# convert.export_step(bc = self.bc, output_path="{}.{}".format(f_name, ext), format=fmt,
# minerva_instance=settings.minerva_instance, step=self.ix_op)
original_graph
=
self
.
ix_op
==
-
1
export
.
export_step
(
bc
=
self
.
bc
,
output_path
=
f_name
,
format
=
fmt
,
minerva_instance
=
settings
.
minerva_instance
,
step
=
self
.
ix_op
+
1
)
minerva_instance
=
settings
.
minerva_instance
,
step
=
self
.
ix_op
,
original_graph
=
original_graph
)
def
beautify
(
self
,
op
:
bt
.
BeautificationOp
):
if
self
.
ix_op
<
len
(
self
.
bc
)
-
1
:
...
...
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