Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue selecting detector file #6

Merged
merged 1 commit into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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