From 2208c37746df79c0f56530d0f5557cf2972b4858 Mon Sep 17 00:00:00 2001 From: Matthew Newville Date: Tue, 12 Sep 2023 20:33:17 -0500 Subject: [PATCH] more cleanup, purging OrderedDict --- larch/wxlib/xrfdisplay_fitpeaks.py | 4 +--- larch/wxlib/xrfdisplay_utils.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/larch/wxlib/xrfdisplay_fitpeaks.py b/larch/wxlib/xrfdisplay_fitpeaks.py index ed72a5349..33da38047 100644 --- a/larch/wxlib/xrfdisplay_fitpeaks.py +++ b/larch/wxlib/xrfdisplay_fitpeaks.py @@ -7,8 +7,6 @@ import time import copy from functools import partial -from collections import OrderedDict - from threading import Thread import json @@ -49,7 +47,7 @@ def read_filterdata(flist, _larch): """ read filters data""" materials = _larch.symtable.get_symbol('_xray._materials') - out = OrderedDict() + out = {} out['None'] = ('', 0) for name in flist: if name in materials: diff --git a/larch/wxlib/xrfdisplay_utils.py b/larch/wxlib/xrfdisplay_utils.py index b33718e81..bb1d095c3 100644 --- a/larch/wxlib/xrfdisplay_utils.py +++ b/larch/wxlib/xrfdisplay_utils.py @@ -4,7 +4,6 @@ """ import copy from functools import partial -from collections import OrderedDict import time import numpy as np