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

Multi-file import error #169

Open
Thrysis opened this issue Mar 20, 2023 · 1 comment
Open

Multi-file import error #169

Thrysis opened this issue Mar 20, 2023 · 1 comment

Comments

@Thrysis
Copy link

Thrysis commented Mar 20, 2023

Hi! I have been trying to use this to import some ibw files, and have had good success for one file at a time, but as soon as I try to import more than one file using the multiple_files=True optional addition to open_file_dialogQT(), I get an error that the tuple object is not callable.

Output log and versions:
OS: Windows 11 Pro v 10.0.22621
PC: Lenovo Thinkpad X1 Yoga Gen 6
Python 3.8, Spyder 4.2.5, PyQt5 5.12
SciFiReaders version: 0.0.6
sidpy version: 0.11.1
Traceback (most recent call last):

File "C:\Users\mattc\OneDrive\Documents\Casimir\cylinder_fitting\cylFit\ibwReading.ipy", line 17, in
file_names = sidpy.io.interface_utils.openfile_dialog_QT(multiple_files=True)

File "C:\ProgramData\Anaconda3\lib\site-packages\sidpy\io\interface_utils.py", line 256, in openfile_dialog_QT
fnames, file_filter = func(parent, caption, file_path, filter=file_types, options=[QtCore.Qt.WindowStaysOnTopHint])

TypeError: 'tuple' object is not callable

I have fed it a few basic topography images (.ibw files) that worked when selecting a single file.

@ramav87
Copy link
Contributor

ramav87 commented Mar 20, 2023

Interesting! This feature is not actually tested for all of our readers. @gduscher is there something about the EM readers that enables this, that the others don't?

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