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

Error in intern code snippet in BossDB #111

Open
bendichter opened this issue May 9, 2024 · 1 comment
Open

Error in intern code snippet in BossDB #111

bendichter opened this issue May 9, 2024 · 1 comment

Comments

@bendichter
Copy link

bendichter commented May 9, 2024

I'm not sure where to report this. This is probably the wrong place- feel free to move.

image

This code

# Import intern (pip install intern)
from intern import array

# Save a cutout to a numpy array in ZYX order:
032019_DP_full_vol = array("bossdb://paukner2024/butterfly_retina_xray_grp02_gw05/032019_DP_full_vol")
data = 032019_DP_full_vol[494:510, 620:1644, 326:1350]

is incorrect. Variables cannot start with a digit in Python. This can be fixed by adding a leading underscore:

# Import intern (pip install intern)
from intern import array

# Save a cutout to a numpy array in ZYX order:
_032019_DP_full_vol = array("bossdb://paukner2024/butterfly_retina_xray_grp02_gw05/032019_DP_full_vol")
data = _032019_DP_full_vol[494:510, 620:1644, 326:1350]

this issue seems to be specific to this dataset

@j6k4m8
Copy link
Member

j6k4m8 commented May 13, 2024

@bendichter thank you for reporting! fixing! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants