Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdc-counting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Radek Hušek
cdc-counting
Commits
761fbad0
Commit
761fbad0
authored
3 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
refactor graph parameter
to better match theory
parent
f3e92488
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
graph_tools/base.py
+3
-3
3 additions, 3 deletions
graph_tools/base.py
with
3 additions
and
3 deletions
graph_tools/base.py
+
3
−
3
View file @
761fbad0
...
...
@@ -24,7 +24,7 @@ def _init_():
def
__hash__
(
self
):
return
id
(
self
)
def
__eq__
(
self
,
b
):
return
self
is
b
def
eval_join
(
self
,
gadget_boundaries
,
gadget
s
,
joins
,
outs
,
offsets
,
track_origins
):
def
eval_join
(
self
,
multiplicity_vector
s
,
joins
,
outs
,
offsets
,
track_origins
):
def
join_boundaries
(
x
):
return
self
.
join_boundaries
(
x
,
offsets
)
...
...
@@ -34,7 +34,7 @@ def _init_():
# if track_origins: ret = ret.with_origins(OriginJoinBoundaries(x, info))
# yield ret
it
=
chain
.
from_iterable
(
join_boundaries
(
x
)
for
x
in
product
(
*
gadget_boundarie
s
)
)
it
=
chain
.
from_iterable
(
join_boundaries
(
x
)
for
x
in
product
(
*
multiplicity_vector
s
)
)
def
join
(
gen
,
e1
,
e2
):
for
b
in
gen
:
...
...
@@ -192,7 +192,7 @@ def _init_():
def
do_eval
():
ret
=
parameter
.
eval_join
(
[
g
.
eval_gadget
(
parameter
,
track_origins
=
track_origins
)
for
g
in
gadgets
],
gadgets
,
joins
,
outs
,
self
.
offsets
,
track_origins
joins
,
outs
,
self
.
offsets
,
track_origins
)
return
ret
...
...
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