Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
morton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Kácha
morton
Commits
2da7b520
Commit
2da7b520
authored
Apr 18, 2017
by
Pavel Kácha
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: now bit_dims is actually generated correctly
parent
7db01cce
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
morton.py
+1
-2
1 addition, 2 deletions
morton.py
with
1 addition
and
2 deletions
morton.py
+
1
−
2
View file @
2da7b520
...
...
@@ -121,7 +121,7 @@ class MultiMorton(object):
indices
.
append
(
idx
)
offsets
.
append
(
max_bit_len
-
key_bit_len
)
morton_size
=
len
(
indices
*
bit_diff
)
self
.
bit_dims
.
extend
(
indices
*
bit_diff
)
self
.
bit_dims
.
extend
(
list
(
reversed
(
indices
))
*
bit_diff
)
chunks
.
append
(
dict
(
clear_hi
=
max_bit_len
-
bit_len
,
clear_lo
=
max_bit_len
-
prev_len
,
...
...
@@ -139,7 +139,6 @@ class MultiMorton(object):
multimorton_size
+=
morton_size
self
.
chunks
=
chunks
self
.
morton_bits
=
multimorton_size
self
.
bit_dims
.
reverse
()
self
.
dim_masks
=
[]
for
d
in
range
(
self
.
dim
):
ones
=
[
self
.
clear_masks
[
d
]
if
ld
==
d
else
0
for
ld
in
range
(
self
.
dim
)]
...
...
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