Changeset 07b50df9 in sasview for src/sas/sascalc/dataloader


Ignore:
Timestamp:
Apr 6, 2017 6:06:49 AM (8 years ago)
Author:
GitHub <noreply@…>
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:
9c9fae1, 76c4469
Parents:
5e2f36c (diff), c44baf97 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Adam Washington <rprospero@…> (04/06/17 06:06:49)
git-committer:
GitHub <noreply@…> (04/06/17 06:06:49)
Message:

Merge pull request #63 from rprospero/yaccept

Add yacceptance to correspond to zacceptance for future improvements to SESANS.

Location:
src/sas/sascalc/dataloader
Files:
3 edited

Legend:

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

    r9a5097c rc44baf97  
    353353    details = None 
    354354    ## SESANS zacceptance 
    355     zacceptance = None 
     355    zacceptance = (0,"") 
     356    yacceptance = (0,"") 
    356357 
    357358    def __init__(self): 
  • src/sas/sascalc/dataloader/readers/cansas_constants.py

    rad4632c r63d773c  
    135135                             "Sesans": {"storeas": "content"}, 
    136136                             "zacceptance": {"storeas": "float"}, 
     137                             "yacceptance": {"storeas": "float"}, 
    137138                             "<any>" : ANY 
    138139                            } 
  • src/sas/sascalc/dataloader/readers/cansas_reader.py

    r463e7ffc r63d773c  
    292292                elif tagname == 'Sesans': 
    293293                    self.current_datainfo.isSesans = bool(data_point) 
     294                elif tagname == 'yacceptance': 
     295                    self.current_datainfo.sample.yacceptance = (data_point, unit) 
    294296                elif tagname == 'zacceptance': 
    295297                    self.current_datainfo.sample.zacceptance = (data_point, unit) 
     
    10571059            sesans.text = str(datainfo.isSesans) 
    10581060            node.append(sesans) 
     1061            self.write_node(node, "yacceptance", datainfo.sample.yacceptance[0], 
     1062                             {'unit': datainfo.sample.yacceptance[1]}) 
    10591063            self.write_node(node, "zacceptance", datainfo.sample.zacceptance[0], 
    10601064                             {'unit': datainfo.sample.zacceptance[1]}) 
Note: See TracChangeset for help on using the changeset viewer.