py4dstem / py4dstem/py4DSTEM

GUI File selector for read and save

Open
#419 2 comments 0 reactions 2 assignees View on GitHub

@alex-rakowski is already working on this.

Since May 17, 2023.

enhancement
Dominant language
Python
Stars
279
Forks
177
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Loading/saving files could be easier for some users if they had a GUI to handle paths
Describe the solution you'd like

Pop up window that allows file navigation through system menu

Additional context
Basic code is something like

from tkinter import Tk
from tkinter.filedialog import askopenfilename, askopenfilenames, asksaveasfile

Tk().withdraw()
filename = askopenfilename()

I think the py4DSTEM.read() and py4DSTEM.save() functions should be altered so if called with no file path arguments it defaults to this method, rather than having an additional methods like ~ py4DSTEM.read_gui()

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.