Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access the lowest zoom level on bigwig #1359

Closed
cmdcolin opened this issue May 6, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@cmdcolin
Copy link
Contributor

commented May 6, 2019

I think this lines for loop condition should probably say >= 0

for( var i = maxLevel; i > 0; i-- ) {

Otherwise the lowest zoom level cannot be accessed

for example if you have reduction levels like this

  [ { reductionLevel: 40, ... }, <-- this one can't be accessed due to the loop bug
    { reductionLevel: 160, ... },
    { reductionLevel: 640, ... },
    { reductionLevel: 2560, ... },
    { reductionLevel: 10240, ... },
    { reductionLevel: 40960, ... },
    { reductionLevel: 163840, ... } ]

Found while doing @gmod/bbi but wanted to keep track here since @gmod/bbi not incorporated here yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.