Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
cate
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PCOG
cate
Commits
c82757b9
Verified
Commit
c82757b9
authored
Jan 04, 2019
by
Raphaël Bleuse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce memory footprint of optimization logic
parent
70cf0773
Pipeline
#8768
passed with stage
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/cate/core.py
src/cate/core.py
+2
-0
No files found.
src/cate/core.py
View file @
c82757b9
...
...
@@ -56,6 +56,8 @@ def _pairwise(iterable):
class
_OptimizerState
:
"""Internal state of the optimization logic to compute crosslevels."""
__slots__
=
(
'position'
,
'crossings'
,
)
def
__init__
(
self
,
position
,
crossings
):
self
.
position
=
position
# current position of strands
self
.
crossings
=
crossings
# remaining crossings
...
...
Write
Preview
Markdown
is supported
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