Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tricco
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Climate
tricco
Commits
b6b0b5dd
Commit
b6b0b5dd
authored
3 years ago
by
Aiko Voigt
Browse files
Options
Downloads
Patches
Plain Diff
Removed if-break when encountering missing cells, simply ommitting missing cells is sufficient
parent
ca3925fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tricco/cubulation_functions.py
+3
-4
3 additions, 4 deletions
tricco/cubulation_functions.py
with
3 additions
and
4 deletions
tricco/cubulation_functions.py
+
3
−
4
View file @
b6b0b5dd
...
...
@@ -142,13 +142,12 @@ def cubing_next_round(cube_coordinates, visited_triangles, outmost, edge_colours
# list for triangles that will be outmost in next iteration
new_outmost
=
[]
for
old
in
outmost
:
# consider all EnhancedTri's at the border of visited
for
neigh
in
get_neighbors_of_cell
(
old
.
triangle
):
# consider all neighbours
new
=
EnhancedTri
(
neigh
,
0
)
if
new
.
triangle
==
-
9999
:
# use feature: triangles at the grid border claim to be adjacent to -9999
break
else
:
if
new
.
triangle
!=
-
9999
:
# ommit missing triangles that occur at the grid border (marked by -9999)
if
new
.
triangle
not
in
visited_triangles
:
# EnhancedTri new has no cube_coordinate yet
# add new to new_outmost for next round hereafter and update visited_triangles
...
...
This diff is collapsed.
Click to expand it.
Aiko Voigt
@voigta80
mentioned in issue
#1 (closed)
·
3 years ago
mentioned in issue
#1 (closed)
mentioned in issue #1
Toggle commit list
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