Changeset beba407 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Apr 11, 2017 12:05:55 PM (8 years ago)
Author:
krzywon
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b09095a
Parents:
278ddee
git-author:
Jeff Krzywon <krzywon@…> (04/11/17 12:05:55)
git-committer:
krzywon <krzywon@…> (04/11/17 12:05:55)
Message:

Start of a base file loading class and a couple unit tests for it.

Location:
src/sas/sascalc/dataloader
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/data_info.py

    r7432acb rbeba407  
    11801180        return return_string 
    11811181 
    1182     final_dataset.xmax = data.xmax 
    1183     final_dataset.ymax = data.ymax 
    1184     final_dataset.xmin = data.xmin 
    1185     final_dataset.ymin = data.ymin 
     1182    if hasattr(data, "xmax"): 
     1183        final_dataset.xmax = data.xmax 
     1184    if hasattr(data, "ymax"): 
     1185        final_dataset.ymax = data.ymax 
     1186    if hasattr(data, "xmin"): 
     1187        final_dataset.xmin = data.xmin 
     1188    if hasattr(data, "ymin"): 
     1189        final_dataset.ymin = data.ymin 
    11861190    final_dataset.isSesans = datainfo.isSesans 
    11871191    final_dataset.title = datainfo.title 
Note: See TracChangeset for help on using the changeset viewer.