pycroscopy / pycroscopy/sidpy

Multi-file import error

Open
#169 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
12
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at sidpy/io/interface_utils.py, line 256, using the reported openfile_dialog_QT(multiple_files=True) call as the reproduction case. Compare that path with the working single-file call and verify that multi-file selection completes without the tuple-not-callable error while preserving single-file behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.