Comments (2)
Hi aknckaan,
Could you give more information about your situation?
Remember that someone else will not know anything about your system, versions, whether you are interpreting your traceback correctly, etc. Here is an example issue I made up, where someone more experienced could either help the programmer understand what they have done wrong or find the problem in the package.
In this case it turns out the programmer has mistakenly added ()
at the end of images.sizes
which tries to call on a function instead of a variable (or technically you would call it method since we're dealing with an instance here but it's very similar).
Example issue: images.sizes doesn't work
Problem description
I am trying to print images.sizes
but I just get a TypeError. Can someone help me?
Code snippet
from nd2reader import ND2Reader
with ND2Reader(input) as images:
print(images.sizes())
Traceback
Traceback (most recent call last):
File "/Users/tobiasfrick/miniconda3/envs/ndt/bin/nd2tools", line 33, in <module>
sys.exit(load_entry_point('nd2tools', 'console_scripts', 'nd2tools')())
File "/Users/tobiasfrick/PycharmProjects/nd2tools/src/nd2tools/__main__.py", line 70, in main
module.main(args)
File "/Users/tobiasfrick/PycharmProjects/nd2tools/src/nd2tools/cli/movie.py", line 87, in main
print(images.sizes())
TypeError: 'dict' object is not callable
Environment*
*This could be harder to make yourself if you are new to programming and are not using virtual environments, but if you can include it I would highly recommend it.
conda info
active environment : ndt
active env location : /Users/tobiasfrick/miniconda3/envs/ndt
shell level : 2
user config file : /Users/tobiasfrick/.condarc
populated config files : /Users/tobiasfrick/.condarc
conda version : 4.10.3
conda-build version : not installed
python version : 3.8.10.final.0
virtual packages : __osx=10.16=0
__unix=0=0
__archspec=1=x86_64
base environment : /Users/tobiasfrick/miniconda3 (writable)
conda av data dir : /Users/tobiasfrick/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/bioconda/osx-64
https://conda.anaconda.org/bioconda/noarch
https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/tobiasfrick/miniconda3/pkgs
/Users/tobiasfrick/.conda/pkgs
envs directories : /Users/tobiasfrick/miniconda3/envs
/Users/tobiasfrick/.conda/envs
platform : osx-64
user-agent : conda/4.10.3 requests/2.25.1 CPython/3.8.10 Darwin/20.6.0 OSX/10.16
UID:GID : 501:20
netrc file : None
offline mode : False
from nd2reader.
Thank you for your report @aknckaan and thanks @FrickTobias for the help.
Could you provide some more information on the problem as @FrickTobias suggested? Is your problem maybe already solved in the meantime?
from nd2reader.
Related Issues (20)
- Plotting ROI's from nd2 files HOT 4
- KeyError when opening nd2 file HOT 1
- Bug in attempt to remove unwanted bytes HOT 1
- Build error on Travis due to SSH git url for docs HOT 1
- Colors wrong when saving ND2 to png HOT 9
- Single time point exported from time series appears to have as many frames as original HOT 1
- reading from files being written HOT 4
- git-lfs in the repo pointing to missing objects HOT 1
- nd2reader outputs empty arrays for certain ND2 files. HOT 2
- Improving metadata: Add X and Y stage coordinates in Metadata. HOT 3
- documentation link is broken HOT 1
- Cannot open nd2 files obtained with version 5.21.03 of the acquisition software
- parser.calculate_image_properties breaks if "z_levels" are empty
- float64 .nd2 files don't recognize intensities above 2**16-1
- pull out the label dXPos/dYPos and dPosX/dPosY
- Wrong z parameter in Focused EDF files
- in numpy ver1.24+, the numpy.float is deprecated, please fix it...
- Error: 'numpy' Module Has No Attribute 'float' in nd2reader HOT 1
- Apple Silicon Error (pims_nd2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nd2reader.