changes to deal with xsgs.  not sure what broke but maybe the numpy upgrade
changes to deal with xsgs.  not sure what broke but maybe the numpy upgrade

Please enter the commit message for your changes. Lines starting

dattalab/d_code,dattalab/d_code