Skip to content

Commit

Permalink
Merge pull request #6 from zjmorgan/detector_filename
Browse files Browse the repository at this point in the history
Issue selecting detector file
  • Loading branch information
zjmorgan authored Jul 22, 2024
2 parents f43641d + 3acea8b commit 3e796e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gui/panel_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def __init__(self, panel):
def load_detectors_dialog(self):
"""Open a dialog to load detectors from a CSV/detcal file."""
filename = model.config.cfg.default_detector_filename
(path, ignored) = os.path.split( os.path.abspath(filename) )
filename = os.path.abspath(filename)
(path, filename) = os.path.split( filename )
filters = 'CSV or detcal files|*.csv;*.detcal;*.DetCal|CSV files (*.csv)|*.csv|detcal files (*.detcal)|*.detcal;*.DetCal|All files (*)|*'
if gui_utils.is_mac():
filters = '' #This is needed on Mac, for some reason the filters crashes otherwise.
Expand Down
1 change: 0 additions & 1 deletion model/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,6 @@ def initialize_volume_symmetry_map(self):
else:
#--------------- Inline C version (about 17x faster than Python) ---------------
code = """
//-- Calculate the hkl array ---
int ix, iy, iz;
int eix, eiy, eiz, eindex;
Expand Down

0 comments on commit 3e796e2

Please sign in to comment.