- Timestamp:
- Apr 4, 2014 5:22:38 PM (11 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 49d019c
- Parents:
- da5d8e8
- Location:
- src/sans
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/fit/ParkFitting.py
r51f14603 r9d6d5ba 20 20 from park.fitmc import FitSimplex 21 21 import park.fitmc 22 from park.fitmc import FitMC23 22 from park.fit import Fitter 24 23 from park.formatnum import format_uncertainty 25 #from Loader import Load26 24 from sans.fit.AbstractFitEngine import FitEngine 27 25 from sans.fit.AbstractFitEngine import FResult -
src/sans/guiframe/data_manager.py
r5777106 r9d6d5ba 65 65 new_plot = Data1D(x=[], y=[], dx=None, dy=None) 66 66 67 new_plot.copy_from_datainfo(data) 68 data.clone_without_data(clone=new_plot) 67 new_plot.copy_from_datainfo(data) 68 data.clone_without_data(clone=new_plot) 69 69 #creating a name for data 70 name = ""71 70 title = "" 72 file_name = "" 73 if path is not None: 74 file_name = os.path.basename(path) 75 if file_name == "": 76 file_name = data.filename 77 if data.run: 78 run_num = data.run[0] 79 name = file_name 80 if name == "": 81 name = run_num 71 file_name = os.path.basename(path) if path is not None else data.filename 72 if file_name: 73 name = file_name 74 elif data.run: 75 name = data.run[0] 76 else: 77 name = "data" 82 78 name = self.rename(name) 83 79 #find title
Note: See TracChangeset
for help on using the changeset viewer.