Changeset e3df84e in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Sep 4, 2018 10:29:20 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 287d356
- Parents:
- 6b50296
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r6b50296 re3df84e 1997 1997 """ 1998 1998 name = model_name 1999 kernel_module = None 1999 2000 if self.cbCategory.currentText() == CATEGORY_CUSTOM: 2000 2001 # custom kernel load requires full path … … 2002 2003 try: 2003 2004 kernel_module = generate.load_kernel_module(name) 2004 except ModuleNotFoundError: 2005 # maybe it's a recategorised custom model? 2006 name = os.path.join(ModelUtilities.find_plugins_dir(), model_name+".py") 2007 # If this rises, it's a valid problem. 2008 kernel_module = generate.load_kernel_module(name) 2005 except ModuleNotFoundError as ex: 2006 pass 2007 2008 if kernel_module is None: 2009 # mismatch between "name" attribute and actual filename. 2010 curr_model = self.models[model_name] 2011 name, _ = os.path.splitext(os.path.basename(curr_model.filename)) 2012 try: 2013 kernel_module = generate.load_kernel_module(name) 2014 except ModuleNotFoundError as ex: 2015 logging.error("Can't find the model "+ str(ex)) 2016 return 2009 2017 2010 2018 if hasattr(kernel_module, 'parameters'):
Note: See TracChangeset
for help on using the changeset viewer.