From e5ae513cced3c2290914e5a631af60e981b0ec9f Mon Sep 17 00:00:00 2001 From: Ross Kruger Date: Thu, 4 Jan 2024 00:20:26 +0000 Subject: [PATCH] add requirements --- .gitignore | 3 ++- anon_gui.py | 8 +++++--- requirements.txt | 11 +++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index d9e76a1..f98052d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ logs/* -.pyc \ No newline at end of file +.pyc +__pycache__/* \ No newline at end of file diff --git a/anon_gui.py b/anon_gui.py index 5e38493..1e8cda3 100644 --- a/anon_gui.py +++ b/anon_gui.py @@ -774,7 +774,7 @@ class AnonGui(wx.App): def OnExit(self): if self.clear_files_on_close: - self.ClearFiles() + self.ClearFiles(close=True) # self.zmq_thread.join() @@ -915,11 +915,13 @@ class AnonGui(wx.App): dlg.ShowModal() - def ClearFiles(self, event=None): + def ClearFiles(self, event=None, close: bool=False): files = Path(self.dir).glob("*") for f in files: os.remove(f) - self.LoadDir(clear_file_detail_map=True) + + if not close: + self.LoadDir(clear_file_detail_map=True) def add_datails_to_file_detail_map(self, dataset, file): try: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0c95a60 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +typer +wxpython +pydicom +dicognito +python-datauri +bs4 +requests +zmq +blake3 +loguru +dicom2jp: boolg \ No newline at end of file