repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.get_wd_data2
def get_wd_data2(self): """ Get 2.5 data from self.WD and put it into ErMagicBuilder object. Called by get_dm_and_wd """ wait = wx.BusyInfo('Reading in data from current working directory, please wait...') #wx.Yield() print('-I- Read in any available data from working directory (data model 2)') self.er_magic = builder.ErMagicBuilder(self.WD, data_model=self.data_model) del wait
python
def get_wd_data2(self): """ Get 2.5 data from self.WD and put it into ErMagicBuilder object. Called by get_dm_and_wd """ wait = wx.BusyInfo('Reading in data from current working directory, please wait...') #wx.Yield() print('-I- Read in any available data from working directory (data model 2)') self.er_magic = builder.ErMagicBuilder(self.WD, data_model=self.data_model) del wait
[ "def", "get_wd_data2", "(", "self", ")", ":", "wait", "=", "wx", ".", "BusyInfo", "(", "'Reading in data from current working directory, please wait...'", ")", "#wx.Yield()", "print", "(", "'-I- Read in any available data from working directory (data model 2)'", ")", "self", ".", "er_magic", "=", "builder", ".", "ErMagicBuilder", "(", "self", ".", "WD", ",", "data_model", "=", "self", ".", "data_model", ")", "del", "wait" ]
Get 2.5 data from self.WD and put it into ErMagicBuilder object. Called by get_dm_and_wd
[ "Get", "2", ".", "5", "data", "from", "self", ".", "WD", "and", "put", "it", "into", "ErMagicBuilder", "object", ".", "Called", "by", "get_dm_and_wd" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L142-L154
train
Get 2. 5 data from self. WD and put it into ErMagicBuilder object.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b1101 + 0o43) + chr(52), 5702 - 5694), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b110010 + 0o1) + '\x33' + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(0b10 + 0o60), 0b1000), nzTpIcepk0o8(chr(1576 - 1528) + chr(0b1101111) + chr(0b101001 + 0o11) + chr(0b110101) + chr(1011 - 963), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(116 - 5) + chr(1797 - 1747) + chr(913 - 858) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(55) + '\x35', 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(0b110011) + '\064' + chr(55), 0b1000), nzTpIcepk0o8(chr(113 - 65) + chr(3278 - 3167) + chr(2067 - 2016) + chr(0b11 + 0o64) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110110) + chr(304 - 256), 21625 - 21617), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + '\x32' + chr(0b110101) + '\064', 0b1000), nzTpIcepk0o8(chr(1473 - 1425) + chr(5941 - 5830) + chr(2112 - 2061) + '\x37' + chr(0b101001 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b110001) + chr(0b10001 + 0o40) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b1000 + 0o53) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x33' + chr(0b110100) + chr(0b110010), 43484 - 43476), nzTpIcepk0o8(chr(1447 - 1399) + '\157' + chr(2284 - 2229) + '\067', 21066 - 21058), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + chr(50) + chr(0b10101 + 0o42), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + '\062' + chr(49) + '\064', 43957 - 43949), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o12) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(2035 - 1987) + chr(0b1101111) + '\063' + chr(2131 - 2080) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(4071 - 3960) + chr(0b11001 + 0o30) + chr(55) + '\x33', 11617 - 11609), nzTpIcepk0o8(chr(991 - 943) + '\157' + chr(51) + chr(55) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b1000 + 0o56) + chr(0b110001), 27396 - 27388), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + '\061' + chr(1054 - 1005) + chr(196 - 148), 0b1000), nzTpIcepk0o8(chr(610 - 562) + chr(111) + chr(51) + chr(1494 - 1444) + '\063', 0b1000), nzTpIcepk0o8(chr(71 - 23) + chr(0b1101111) + chr(0b110110) + chr(642 - 593), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110100) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(2100 - 1989) + chr(2394 - 2343) + chr(864 - 815) + chr(48), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b110010) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + chr(0b0 + 0o61) + chr(0b110101) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(3498 - 3387) + '\063' + chr(49) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(1631 - 1583), 61216 - 61208), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x36' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(0b100010 + 0o20) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1976 - 1865) + chr(2332 - 2283) + chr(0b110101) + chr(0b101 + 0o53), 0o10), nzTpIcepk0o8(chr(852 - 804) + '\x6f' + chr(0b110001) + '\x33' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11110 + 0o23) + '\064' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + '\061' + chr(0b110000) + chr(1972 - 1919), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(441 - 330) + chr(136 - 87) + '\060' + chr(0b11000 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + chr(0b110011) + '\x37' + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101000 + 0o12) + '\065' + chr(49), 31709 - 31701)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1828 - 1780) + chr(0b101101 + 0o102) + '\065' + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xaa'), chr(0b1000011 + 0o41) + '\145' + chr(0b1100011) + chr(10172 - 10061) + '\x64' + chr(7848 - 7747))('\165' + '\x74' + chr(102) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def mEQ7xUr9Yuts(hXMPsSrOQzbh): VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xd6\xbds\xcc\xd6\xd3\x80\xd8Y\xc2\xd9-\xbe\x96^7\xea]\xb4\x16\xde\x92=\xa1CE\xa6bM\xbbo\x04\xfd\x011\x05e&\x92\xdb\xe1\xbbf\xc7\xcd\xc4\xcb\xd8@\xc0\x9c(\xac\x87\x1f`\xedF\xafU\xd0\xdf'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(3333 - 3222) + chr(0b110111 + 0o55) + chr(0b110 + 0o137))(chr(0b1000111 + 0o56) + '\x74' + '\x66' + '\x2d' + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xa9\x91?\x88\xed\xd8\x86\x9c\x10\xc5\x97i\xbe\x8cF7\xedY\xba\x12\x92\x90*\xbfT\x00\xacw\x19\xad \x10\xe4\x072B2-\x89\xc2\xed\xb6u\x88\xdb\xd4\x95\x9dS\xd8\x96;\xa6\xc2\x17s\xed[\xba[\x93\x9e,\xb6]\x00\xfa?'), chr(100) + '\145' + chr(99) + chr(111) + chr(2188 - 2088) + chr(0b1100101))(chr(12591 - 12474) + chr(0b111000 + 0o74) + chr(863 - 761) + '\055' + chr(2087 - 2031))) hXMPsSrOQzbh.FrbBJuDrvwdK = sLLZkJwG1FOq.ErMagicBuilder(hXMPsSrOQzbh.WD, data_model=hXMPsSrOQzbh.data_model) del VBnaM0jy14aO
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.InitUI
def InitUI(self): """ Build the mainframe """ menubar = pmag_gui_menu.MagICMenu(self, data_model_num=self.data_model_num) self.SetMenuBar(menubar) #pnl = self.panel #---sizer logo ---- #start_image = wx.Image("/Users/ronshaar/PmagPy/images/logo2.png") #start_image = wx.Image("/Users/Python/simple_examples/001.png") #start_image.Rescale(start_image.GetWidth(), start_image.GetHeight()) #image = wx.BitmapFromImage(start_image) #self.logo = wx.StaticBitmap(self.panel, -1, image) #---sizer 0 ---- bSizer0 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Choose MagIC project directory"), wx.HORIZONTAL) self.dir_path = wx.TextCtrl(self.panel, id=-1, size=(600,25), style=wx.TE_READONLY) self.change_dir_button = buttons.GenButton(self.panel, id=-1, label="change directory",size=(-1, -1)) self.change_dir_button.SetBackgroundColour("#F8F8FF") self.change_dir_button.InitColours() self.Bind(wx.EVT_BUTTON, self.on_change_dir_button, self.change_dir_button) bSizer0.Add(self.change_dir_button, wx.ALIGN_LEFT) bSizer0.AddSpacer(40) bSizer0.Add(self.dir_path,wx.ALIGN_CENTER_VERTICAL) # not fully implemented method for saving/reverting WD # last saved: [] #bSizer0_1 = wx.StaticBoxSizer( wx.StaticBox( self.panel, wx.ID_ANY, "Save MagIC project directory in current state or revert to last-saved state" ), wx.HORIZONTAL ) #saved_label = wx.StaticText(self.panel, -1, "Last saved:", (20, 120)) #self.last_saved_time = wx.TextCtrl(self.panel, id=-1, size=(100,25), style=wx.TE_READONLY) #now = datetime.datetime.now() #now_string = "{}:{}:{}".format(now.hour, now.minute, now.second) #self.last_saved_time.write(now_string) #self.save_dir_button = buttons.GenButton(self.panel, id=-1, label = "save dir", size=(-1, -1)) #self.revert_dir_button = buttons.GenButton(self.panel, id=-1, label = "revert dir", size=(-1, -1)) #self.Bind(wx.EVT_BUTTON, self.on_revert_dir_button, self.revert_dir_button) #self.Bind(wx.EVT_BUTTON, self.on_save_dir_button, self.save_dir_button) #bSizer0_1.Add(saved_label, flag=wx.RIGHT, border=10) #bSizer0_1.Add(self.last_saved_time, flag=wx.RIGHT, border=10) #bSizer0_1.Add(self.save_dir_button,flag=wx.ALIGN_LEFT|wx.RIGHT, border=10) #bSizer0_1.Add(self.revert_dir_button,wx.ALIGN_LEFT) # #---sizer 1 ---- bSizer1 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Import data to working directory"), wx.HORIZONTAL) text = "1. Convert magnetometer files to MagIC format" self.btn1 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 1') self.btn1.SetBackgroundColour("#FDC68A") self.btn1.InitColours() self.Bind(wx.EVT_BUTTON, self.on_convert_file, self.btn1) text = "2. (optional) Calculate geographic/tilt-corrected directions" self.btn2 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 2') self.btn2.SetBackgroundColour("#FDC68A") self.btn2.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_orientation, self.btn2) text = "3. (optional) Add MagIC metadata for uploading data to MagIC " self.btn3 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 3') self.btn3.SetBackgroundColour("#FDC68A") self.btn3.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_metadata, self.btn3) text = "Unpack txt file downloaded from MagIC" self.btn4 = buttons.GenButton(self.panel, id=-1, label=text, size=(330, 50)) self.btn4.SetBackgroundColour("#FDC68A") self.btn4.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_unpack, self.btn4) text = "Convert directory to 3.0. format (legacy data only)" self.btn1a = buttons.GenButton(self.panel, id=-1, label=text, size=(330, 50), name='step 1a') self.btn1a.SetBackgroundColour("#FDC68A") self.btn1a.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_convert_3, self.btn1a) #str = "OR" OR = wx.StaticText(self.panel, -1, "or", (20, 120)) font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.NORMAL) OR.SetFont(font) #bSizer0.Add(self.panel,self.btn1,wx.ALIGN_TOP) bSizer1_1 = wx.BoxSizer(wx.VERTICAL) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn1, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn2, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn3, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1.Add(bSizer1_1, wx.ALIGN_CENTER, wx.EXPAND) bSizer1.AddSpacer(20) bSizer1.Add(OR, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) bSizer1_2 = wx.BoxSizer(wx.VERTICAL) spacing = 60 #if self.data_model_num == 3 else 90 bSizer1_2.AddSpacer(spacing) bSizer1_2.Add(self.btn4, 0, wx.ALIGN_CENTER, 0) bSizer1_2.AddSpacer(20) bSizer1_2.Add(self.btn1a, 0, wx.ALIGN_CENTER, 0) bSizer1_2.AddSpacer(20) bSizer1.Add(bSizer1_2) bSizer1.AddSpacer(20) #---sizer 2 ---- bSizer2 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Analysis and plots" ), wx.HORIZONTAL) text = "Demag GUI" self.btn_demag_gui = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='demag gui') self.btn_demag_gui.SetBackgroundColour("#6ECFF6") self.btn_demag_gui.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_demag_gui, self.btn_demag_gui) text = "Thellier GUI" self.btn_thellier_gui = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='thellier gui') self.btn_thellier_gui.SetBackgroundColour("#6ECFF6") self.btn_thellier_gui.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_thellier_gui, self.btn_thellier_gui) bSizer2.AddSpacer(20) bSizer2.Add(self.btn_demag_gui, 0, wx.ALIGN_CENTER, 0) bSizer2.AddSpacer(20) bSizer2.Add(self.btn_thellier_gui, 0, wx.ALIGN_CENTER, 0) bSizer2.AddSpacer(20) #---sizer 3 ---- bSizer3 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Create file for upload to MagIC database"), wx.HORIZONTAL) text = "Create MagIC txt file for upload" self.btn_upload = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50)) self.btn_upload.SetBackgroundColour("#C4DF9B") self.btn_upload.InitColours() bSizer3.AddSpacer(20) bSizer3.Add(self.btn_upload, 0, wx.ALIGN_CENTER, 0) bSizer3.AddSpacer(20) self.Bind(wx.EVT_BUTTON, self.on_btn_upload, self.btn_upload) #---arange sizers ---- hbox = wx.BoxSizer(wx.HORIZONTAL) vbox = wx.BoxSizer(wx.VERTICAL) vbox.AddSpacer(5) #vbox.Add(self.logo,0,wx.ALIGN_CENTER,0) vbox.AddSpacer(5) vbox.Add(bSizer0, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) #vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0) #vbox.AddSpacer(10) vbox.Add(bSizer1, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.Add(bSizer2, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.Add(bSizer3, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) hbox.AddSpacer(10) hbox.Add(vbox, 0, wx.ALIGN_CENTER, 0) hbox.AddSpacer(5) self.panel.SetSizer(hbox) hbox.Fit(self)
python
def InitUI(self): """ Build the mainframe """ menubar = pmag_gui_menu.MagICMenu(self, data_model_num=self.data_model_num) self.SetMenuBar(menubar) #pnl = self.panel #---sizer logo ---- #start_image = wx.Image("/Users/ronshaar/PmagPy/images/logo2.png") #start_image = wx.Image("/Users/Python/simple_examples/001.png") #start_image.Rescale(start_image.GetWidth(), start_image.GetHeight()) #image = wx.BitmapFromImage(start_image) #self.logo = wx.StaticBitmap(self.panel, -1, image) #---sizer 0 ---- bSizer0 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Choose MagIC project directory"), wx.HORIZONTAL) self.dir_path = wx.TextCtrl(self.panel, id=-1, size=(600,25), style=wx.TE_READONLY) self.change_dir_button = buttons.GenButton(self.panel, id=-1, label="change directory",size=(-1, -1)) self.change_dir_button.SetBackgroundColour("#F8F8FF") self.change_dir_button.InitColours() self.Bind(wx.EVT_BUTTON, self.on_change_dir_button, self.change_dir_button) bSizer0.Add(self.change_dir_button, wx.ALIGN_LEFT) bSizer0.AddSpacer(40) bSizer0.Add(self.dir_path,wx.ALIGN_CENTER_VERTICAL) # not fully implemented method for saving/reverting WD # last saved: [] #bSizer0_1 = wx.StaticBoxSizer( wx.StaticBox( self.panel, wx.ID_ANY, "Save MagIC project directory in current state or revert to last-saved state" ), wx.HORIZONTAL ) #saved_label = wx.StaticText(self.panel, -1, "Last saved:", (20, 120)) #self.last_saved_time = wx.TextCtrl(self.panel, id=-1, size=(100,25), style=wx.TE_READONLY) #now = datetime.datetime.now() #now_string = "{}:{}:{}".format(now.hour, now.minute, now.second) #self.last_saved_time.write(now_string) #self.save_dir_button = buttons.GenButton(self.panel, id=-1, label = "save dir", size=(-1, -1)) #self.revert_dir_button = buttons.GenButton(self.panel, id=-1, label = "revert dir", size=(-1, -1)) #self.Bind(wx.EVT_BUTTON, self.on_revert_dir_button, self.revert_dir_button) #self.Bind(wx.EVT_BUTTON, self.on_save_dir_button, self.save_dir_button) #bSizer0_1.Add(saved_label, flag=wx.RIGHT, border=10) #bSizer0_1.Add(self.last_saved_time, flag=wx.RIGHT, border=10) #bSizer0_1.Add(self.save_dir_button,flag=wx.ALIGN_LEFT|wx.RIGHT, border=10) #bSizer0_1.Add(self.revert_dir_button,wx.ALIGN_LEFT) # #---sizer 1 ---- bSizer1 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Import data to working directory"), wx.HORIZONTAL) text = "1. Convert magnetometer files to MagIC format" self.btn1 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 1') self.btn1.SetBackgroundColour("#FDC68A") self.btn1.InitColours() self.Bind(wx.EVT_BUTTON, self.on_convert_file, self.btn1) text = "2. (optional) Calculate geographic/tilt-corrected directions" self.btn2 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 2') self.btn2.SetBackgroundColour("#FDC68A") self.btn2.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_orientation, self.btn2) text = "3. (optional) Add MagIC metadata for uploading data to MagIC " self.btn3 = buttons.GenButton(self.panel, id=-1, label=text, size=(450, 50), name='step 3') self.btn3.SetBackgroundColour("#FDC68A") self.btn3.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_metadata, self.btn3) text = "Unpack txt file downloaded from MagIC" self.btn4 = buttons.GenButton(self.panel, id=-1, label=text, size=(330, 50)) self.btn4.SetBackgroundColour("#FDC68A") self.btn4.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_unpack, self.btn4) text = "Convert directory to 3.0. format (legacy data only)" self.btn1a = buttons.GenButton(self.panel, id=-1, label=text, size=(330, 50), name='step 1a') self.btn1a.SetBackgroundColour("#FDC68A") self.btn1a.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_convert_3, self.btn1a) #str = "OR" OR = wx.StaticText(self.panel, -1, "or", (20, 120)) font = wx.Font(18, wx.SWISS, wx.NORMAL, wx.NORMAL) OR.SetFont(font) #bSizer0.Add(self.panel,self.btn1,wx.ALIGN_TOP) bSizer1_1 = wx.BoxSizer(wx.VERTICAL) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn1, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn2, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1_1.Add(self.btn3, wx.ALIGN_TOP) bSizer1_1.AddSpacer(20) bSizer1.Add(bSizer1_1, wx.ALIGN_CENTER, wx.EXPAND) bSizer1.AddSpacer(20) bSizer1.Add(OR, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) bSizer1_2 = wx.BoxSizer(wx.VERTICAL) spacing = 60 #if self.data_model_num == 3 else 90 bSizer1_2.AddSpacer(spacing) bSizer1_2.Add(self.btn4, 0, wx.ALIGN_CENTER, 0) bSizer1_2.AddSpacer(20) bSizer1_2.Add(self.btn1a, 0, wx.ALIGN_CENTER, 0) bSizer1_2.AddSpacer(20) bSizer1.Add(bSizer1_2) bSizer1.AddSpacer(20) #---sizer 2 ---- bSizer2 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Analysis and plots" ), wx.HORIZONTAL) text = "Demag GUI" self.btn_demag_gui = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='demag gui') self.btn_demag_gui.SetBackgroundColour("#6ECFF6") self.btn_demag_gui.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_demag_gui, self.btn_demag_gui) text = "Thellier GUI" self.btn_thellier_gui = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='thellier gui') self.btn_thellier_gui.SetBackgroundColour("#6ECFF6") self.btn_thellier_gui.InitColours() self.Bind(wx.EVT_BUTTON, self.on_btn_thellier_gui, self.btn_thellier_gui) bSizer2.AddSpacer(20) bSizer2.Add(self.btn_demag_gui, 0, wx.ALIGN_CENTER, 0) bSizer2.AddSpacer(20) bSizer2.Add(self.btn_thellier_gui, 0, wx.ALIGN_CENTER, 0) bSizer2.AddSpacer(20) #---sizer 3 ---- bSizer3 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Create file for upload to MagIC database"), wx.HORIZONTAL) text = "Create MagIC txt file for upload" self.btn_upload = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50)) self.btn_upload.SetBackgroundColour("#C4DF9B") self.btn_upload.InitColours() bSizer3.AddSpacer(20) bSizer3.Add(self.btn_upload, 0, wx.ALIGN_CENTER, 0) bSizer3.AddSpacer(20) self.Bind(wx.EVT_BUTTON, self.on_btn_upload, self.btn_upload) #---arange sizers ---- hbox = wx.BoxSizer(wx.HORIZONTAL) vbox = wx.BoxSizer(wx.VERTICAL) vbox.AddSpacer(5) #vbox.Add(self.logo,0,wx.ALIGN_CENTER,0) vbox.AddSpacer(5) vbox.Add(bSizer0, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) #vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0) #vbox.AddSpacer(10) vbox.Add(bSizer1, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.Add(bSizer2, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.Add(bSizer3, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) hbox.AddSpacer(10) hbox.Add(vbox, 0, wx.ALIGN_CENTER, 0) hbox.AddSpacer(5) self.panel.SetSizer(hbox) hbox.Fit(self)
[ "def", "InitUI", "(", "self", ")", ":", "menubar", "=", "pmag_gui_menu", ".", "MagICMenu", "(", "self", ",", "data_model_num", "=", "self", ".", "data_model_num", ")", "self", ".", "SetMenuBar", "(", "menubar", ")", "#pnl = self.panel", "#---sizer logo ----", "#start_image = wx.Image(\"/Users/ronshaar/PmagPy/images/logo2.png\")", "#start_image = wx.Image(\"/Users/Python/simple_examples/001.png\")", "#start_image.Rescale(start_image.GetWidth(), start_image.GetHeight())", "#image = wx.BitmapFromImage(start_image)", "#self.logo = wx.StaticBitmap(self.panel, -1, image)", "#---sizer 0 ----", "bSizer0", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Choose MagIC project directory\"", ")", ",", "wx", ".", "HORIZONTAL", ")", "self", ".", "dir_path", "=", "wx", ".", "TextCtrl", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "size", "=", "(", "600", ",", "25", ")", ",", "style", "=", "wx", ".", "TE_READONLY", ")", "self", ".", "change_dir_button", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "\"change directory\"", ",", "size", "=", "(", "-", "1", ",", "-", "1", ")", ")", "self", ".", "change_dir_button", ".", "SetBackgroundColour", "(", "\"#F8F8FF\"", ")", "self", ".", "change_dir_button", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_change_dir_button", ",", "self", ".", "change_dir_button", ")", "bSizer0", ".", "Add", "(", "self", ".", "change_dir_button", ",", "wx", ".", "ALIGN_LEFT", ")", "bSizer0", ".", "AddSpacer", "(", "40", ")", "bSizer0", ".", "Add", "(", "self", ".", "dir_path", ",", "wx", ".", "ALIGN_CENTER_VERTICAL", ")", "# not fully implemented method for saving/reverting WD", "# last saved: []", "#bSizer0_1 = wx.StaticBoxSizer( wx.StaticBox( self.panel, wx.ID_ANY, \"Save MagIC project directory in current state or revert to last-saved state\" ), wx.HORIZONTAL )", "#saved_label = wx.StaticText(self.panel, -1, \"Last saved:\", (20, 120))", "#self.last_saved_time = wx.TextCtrl(self.panel, id=-1, size=(100,25), style=wx.TE_READONLY)", "#now = datetime.datetime.now()", "#now_string = \"{}:{}:{}\".format(now.hour, now.minute, now.second)", "#self.last_saved_time.write(now_string)", "#self.save_dir_button = buttons.GenButton(self.panel, id=-1, label = \"save dir\", size=(-1, -1))", "#self.revert_dir_button = buttons.GenButton(self.panel, id=-1, label = \"revert dir\", size=(-1, -1))", "#self.Bind(wx.EVT_BUTTON, self.on_revert_dir_button, self.revert_dir_button)", "#self.Bind(wx.EVT_BUTTON, self.on_save_dir_button, self.save_dir_button)", "#bSizer0_1.Add(saved_label, flag=wx.RIGHT, border=10)", "#bSizer0_1.Add(self.last_saved_time, flag=wx.RIGHT, border=10)", "#bSizer0_1.Add(self.save_dir_button,flag=wx.ALIGN_LEFT|wx.RIGHT, border=10)", "#bSizer0_1.Add(self.revert_dir_button,wx.ALIGN_LEFT)", "#", "#---sizer 1 ----", "bSizer1", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Import data to working directory\"", ")", ",", "wx", ".", "HORIZONTAL", ")", "text", "=", "\"1. Convert magnetometer files to MagIC format\"", "self", ".", "btn1", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "450", ",", "50", ")", ",", "name", "=", "'step 1'", ")", "self", ".", "btn1", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn1", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_convert_file", ",", "self", ".", "btn1", ")", "text", "=", "\"2. (optional) Calculate geographic/tilt-corrected directions\"", "self", ".", "btn2", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "450", ",", "50", ")", ",", "name", "=", "'step 2'", ")", "self", ".", "btn2", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn2", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_orientation", ",", "self", ".", "btn2", ")", "text", "=", "\"3. (optional) Add MagIC metadata for uploading data to MagIC \"", "self", ".", "btn3", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "450", ",", "50", ")", ",", "name", "=", "'step 3'", ")", "self", ".", "btn3", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn3", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_metadata", ",", "self", ".", "btn3", ")", "text", "=", "\"Unpack txt file downloaded from MagIC\"", "self", ".", "btn4", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "330", ",", "50", ")", ")", "self", ".", "btn4", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn4", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_unpack", ",", "self", ".", "btn4", ")", "text", "=", "\"Convert directory to 3.0. format (legacy data only)\"", "self", ".", "btn1a", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "330", ",", "50", ")", ",", "name", "=", "'step 1a'", ")", "self", ".", "btn1a", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn1a", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_convert_3", ",", "self", ".", "btn1a", ")", "#str = \"OR\"", "OR", "=", "wx", ".", "StaticText", "(", "self", ".", "panel", ",", "-", "1", ",", "\"or\"", ",", "(", "20", ",", "120", ")", ")", "font", "=", "wx", ".", "Font", "(", "18", ",", "wx", ".", "SWISS", ",", "wx", ".", "NORMAL", ",", "wx", ".", "NORMAL", ")", "OR", ".", "SetFont", "(", "font", ")", "#bSizer0.Add(self.panel,self.btn1,wx.ALIGN_TOP)", "bSizer1_1", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "bSizer1_1", ".", "AddSpacer", "(", "20", ")", "bSizer1_1", ".", "Add", "(", "self", ".", "btn1", ",", "wx", ".", "ALIGN_TOP", ")", "bSizer1_1", ".", "AddSpacer", "(", "20", ")", "bSizer1_1", ".", "Add", "(", "self", ".", "btn2", ",", "wx", ".", "ALIGN_TOP", ")", "bSizer1_1", ".", "AddSpacer", "(", "20", ")", "bSizer1_1", ".", "Add", "(", "self", ".", "btn3", ",", "wx", ".", "ALIGN_TOP", ")", "bSizer1_1", ".", "AddSpacer", "(", "20", ")", "bSizer1", ".", "Add", "(", "bSizer1_1", ",", "wx", ".", "ALIGN_CENTER", ",", "wx", ".", "EXPAND", ")", "bSizer1", ".", "AddSpacer", "(", "20", ")", "bSizer1", ".", "Add", "(", "OR", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer1", ".", "AddSpacer", "(", "20", ")", "bSizer1_2", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "spacing", "=", "60", "#if self.data_model_num == 3 else 90", "bSizer1_2", ".", "AddSpacer", "(", "spacing", ")", "bSizer1_2", ".", "Add", "(", "self", ".", "btn4", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer1_2", ".", "AddSpacer", "(", "20", ")", "bSizer1_2", ".", "Add", "(", "self", ".", "btn1a", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer1_2", ".", "AddSpacer", "(", "20", ")", "bSizer1", ".", "Add", "(", "bSizer1_2", ")", "bSizer1", ".", "AddSpacer", "(", "20", ")", "#---sizer 2 ----", "bSizer2", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Analysis and plots\"", ")", ",", "wx", ".", "HORIZONTAL", ")", "text", "=", "\"Demag GUI\"", "self", ".", "btn_demag_gui", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'demag gui'", ")", "self", ".", "btn_demag_gui", ".", "SetBackgroundColour", "(", "\"#6ECFF6\"", ")", "self", ".", "btn_demag_gui", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_demag_gui", ",", "self", ".", "btn_demag_gui", ")", "text", "=", "\"Thellier GUI\"", "self", ".", "btn_thellier_gui", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'thellier gui'", ")", "self", ".", "btn_thellier_gui", ".", "SetBackgroundColour", "(", "\"#6ECFF6\"", ")", "self", ".", "btn_thellier_gui", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_thellier_gui", ",", "self", ".", "btn_thellier_gui", ")", "bSizer2", ".", "AddSpacer", "(", "20", ")", "bSizer2", ".", "Add", "(", "self", ".", "btn_demag_gui", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer2", ".", "AddSpacer", "(", "20", ")", "bSizer2", ".", "Add", "(", "self", ".", "btn_thellier_gui", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer2", ".", "AddSpacer", "(", "20", ")", "#---sizer 3 ----", "bSizer3", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Create file for upload to MagIC database\"", ")", ",", "wx", ".", "HORIZONTAL", ")", "text", "=", "\"Create MagIC txt file for upload\"", "self", ".", "btn_upload", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ")", "self", ".", "btn_upload", ".", "SetBackgroundColour", "(", "\"#C4DF9B\"", ")", "self", ".", "btn_upload", ".", "InitColours", "(", ")", "bSizer3", ".", "AddSpacer", "(", "20", ")", "bSizer3", ".", "Add", "(", "self", ".", "btn_upload", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer3", ".", "AddSpacer", "(", "20", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_btn_upload", ",", "self", ".", "btn_upload", ")", "#---arange sizers ----", "hbox", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "HORIZONTAL", ")", "vbox", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "vbox", ".", "AddSpacer", "(", "5", ")", "#vbox.Add(self.logo,0,wx.ALIGN_CENTER,0)", "vbox", ".", "AddSpacer", "(", "5", ")", "vbox", ".", "Add", "(", "bSizer0", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "#vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0)", "#vbox.AddSpacer(10)", "vbox", ".", "Add", "(", "bSizer1", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "vbox", ".", "Add", "(", "bSizer2", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "vbox", ".", "Add", "(", "bSizer3", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "hbox", ".", "AddSpacer", "(", "10", ")", "hbox", ".", "Add", "(", "vbox", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "hbox", ".", "AddSpacer", "(", "5", ")", "self", ".", "panel", ".", "SetSizer", "(", "hbox", ")", "hbox", ".", "Fit", "(", "self", ")" ]
Build the mainframe
[ "Build", "the", "mainframe" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L156-L333
train
Initialize the mainframe
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\062' + '\063' + chr(2194 - 2145), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b110001) + '\063', 27488 - 27480), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b110111) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(72 - 24) + chr(0b1101111) + '\064' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(50) + '\062' + chr(2164 - 2116), 62123 - 62115), nzTpIcepk0o8('\x30' + chr(0b111001 + 0o66) + chr(258 - 209) + '\066' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(5615 - 5504) + chr(0b110010) + '\x37' + '\063', 4386 - 4378), nzTpIcepk0o8('\060' + chr(5234 - 5123) + chr(0b1111 + 0o42) + '\x30' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\065' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(0b101100 + 0o11) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9158 - 9047) + chr(1908 - 1853) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(52) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4340 - 4229) + chr(0b110000 + 0o1) + chr(0b110010) + chr(2295 - 2244), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1779 - 1729) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1819 - 1769) + '\x33' + '\063', 4887 - 4879), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1816 - 1767) + '\x31' + '\066', 37990 - 37982), nzTpIcepk0o8(chr(525 - 477) + chr(111) + chr(51) + '\065' + chr(0b1 + 0o65), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(51) + chr(0b11 + 0o64), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6685 - 6574) + chr(51) + chr(0b110110) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7455 - 7344) + chr(0b110001 + 0o2) + '\x35' + '\062', 8), nzTpIcepk0o8(chr(1892 - 1844) + '\x6f' + chr(50) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(211 - 163) + chr(0b1100011 + 0o14) + chr(0b101 + 0o56) + '\x36' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(0b1010000 + 0o37) + chr(0b0 + 0o61) + chr(1439 - 1391) + '\065', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(111) + chr(0b110010) + '\062' + chr(0b110000), 8), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + '\063' + '\060' + '\x31', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\x36' + chr(0b101101 + 0o6), 9135 - 9127), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b101000 + 0o16) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(187 - 137) + chr(0b10111 + 0o37) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + '\x32' + chr(52) + chr(2163 - 2115), 53614 - 53606), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(9258 - 9147) + '\065' + chr(1712 - 1661), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(318 - 269) + chr(872 - 823) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(572 - 524) + chr(0b1101111) + chr(0b1100 + 0o45) + chr(1324 - 1273) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x37' + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x33' + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b0 + 0o63) + '\x37' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1934 - 1885) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(623 - 574) + chr(51) + chr(200 - 148), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000 + 0o147) + chr(0b10010 + 0o40) + chr(0b110011) + chr(0b110011), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110100) + chr(0b101101 + 0o10), 46292 - 46284)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + '\060', 58728 - 58720)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb7'), '\x64' + chr(8710 - 8609) + chr(0b1100011) + chr(0b1101111) + chr(610 - 510) + chr(0b10110 + 0o117))('\x75' + '\164' + '\146' + '\055' + chr(0b10000 + 0o50)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def RkmL_XCqAVHH(hXMPsSrOQzbh): BJbLFMbCf3Is = l7al7xMu4ju_.MagICMenu(hXMPsSrOQzbh, data_model_num=hXMPsSrOQzbh.data_model_num) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8ao\xf5\x1d\xce\x01E\x98'), chr(4400 - 4300) + chr(101) + chr(6877 - 6778) + '\157' + '\144' + chr(0b1000000 + 0o45))(chr(3027 - 2910) + '\x74' + chr(0b110010 + 0o64) + '\055' + '\070'))(BJbLFMbCf3Is) XaTzYdbUQt2h = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\xda\xa3\x91M\xe3\x16\x9b\x0eE\x8d\xa4z@#c\xf4$\x8b\xbc\x81\xcar\x9b7\xf5\xa2\x87\xd9\xc2\xd9'), '\x64' + '\x65' + chr(0b111111 + 0o44) + '\x6f' + '\x64' + '\145')(chr(0b1001100 + 0o51) + '\164' + chr(0b1100110) + chr(45) + chr(56))), FHAk5xm055cs.HORIZONTAL) hXMPsSrOQzbh.qjksZ7GK0xkJ = FHAk5xm055cs.TextCtrl(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + chr(49), 0o10), size=(nzTpIcepk0o8(chr(0b110000) + chr(12307 - 12196) + chr(0b11011 + 0o26) + chr(49) + chr(0b100010 + 0o21) + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\x31', 0o10)), style=FHAk5xm055cs.TE_READONLY) hXMPsSrOQzbh.iHb1mkvABu8n = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + chr(3237 - 3126) + '\x31', 8), label=roI3spqORKae(ES5oEprVxulp(b"\xfa\xa3\x9fL\xf7\x16\x9b'M\x98\x88Z\x14<c\xe2"), '\144' + '\x65' + chr(8979 - 8880) + chr(0b1101111) + '\144' + '\145')(chr(6942 - 6825) + chr(2884 - 2768) + chr(0b110001 + 0o65) + chr(0b10001 + 0o34) + chr(0b111000)), size=(-nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49), 8), -nzTpIcepk0o8('\x30' + chr(111) + chr(0b1010 + 0o47), 8))) roI3spqORKae(hXMPsSrOQzbh.change_dir_button, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), chr(100) + chr(3228 - 3127) + chr(0b1100011) + chr(2281 - 2170) + chr(0b1000 + 0o134) + chr(3421 - 3320))('\x75' + chr(0b1001 + 0o153) + chr(0b1100110) + chr(0b11010 + 0o23) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xc6d\xa85\xfd'), chr(9607 - 9507) + chr(0b1010101 + 0o20) + chr(0b110101 + 0o56) + chr(493 - 382) + '\144' + '\x65')('\x75' + chr(116) + chr(102) + chr(0b101101) + '\x38')) roI3spqORKae(hXMPsSrOQzbh.change_dir_button, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), '\x64' + chr(0b101100 + 0o71) + chr(8626 - 8527) + chr(6341 - 6230) + chr(100) + chr(0b1100101))(chr(0b1010101 + 0o40) + chr(0b1110100) + '\146' + chr(1096 - 1051) + chr(0b111000)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), '\144' + '\x65' + chr(538 - 439) + chr(0b111 + 0o150) + chr(0b101001 + 0o73) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000 + 0o0)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\144' + '\x65' + chr(0b1100011) + '\x6f' + chr(0b111000 + 0o54) + chr(101))(chr(4039 - 3922) + chr(116) + chr(102) + '\x2d' + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1A\xf8\x12\xd5$A\xb5\x89P\x12\x0cs\xee:\x9a\xb0\x9b'), chr(0b1100100) + chr(101) + chr(99) + '\157' + '\144' + '\x65')(chr(7509 - 7392) + '\x74' + '\x66' + chr(328 - 283) + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\x83\x9c\x13\xfd\x18\xcd\x02f\x9f\xd5W'), '\x64' + '\x65' + chr(0b1100011) + chr(4658 - 4547) + chr(2802 - 2702) + chr(0b1100101))('\165' + chr(116) + chr(102) + '\x2d' + '\x38'))) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(141 - 41) + chr(0b1100101) + chr(3261 - 3162) + chr(8753 - 8642) + chr(0b1100100) + chr(0b1100101))(chr(9808 - 9691) + chr(0b1100111 + 0o15) + '\146' + chr(45) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\x83\x9c\x13\xfd\x18\xcd\x02f\x9f\xd5W'), '\144' + '\x65' + '\x63' + chr(4025 - 3914) + chr(3661 - 3561) + '\x65')(chr(12173 - 12056) + chr(3708 - 3592) + chr(0b111000 + 0o56) + chr(45) + chr(0b111000))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf7\x06b\xbe'), chr(5154 - 5054) + '\145' + chr(0b111011 + 0o50) + chr(0b1111 + 0o140) + chr(1160 - 1060) + chr(0b110 + 0o137))(chr(0b1100101 + 0o20) + chr(6599 - 6483) + chr(102) + chr(0b101101) + '\x38'))) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\144' + chr(101) + chr(0b1100011) + chr(0b10011 + 0o134) + chr(5096 - 4996) + chr(6161 - 6060))('\165' + chr(0b1011100 + 0o30) + chr(0b1100110) + chr(0b101101) + chr(795 - 739)))(nzTpIcepk0o8(chr(2115 - 2067) + chr(666 - 555) + '\x35' + chr(0b110000), 8)) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\144' + chr(4025 - 3924) + '\x63' + '\x6f' + chr(0b10110 + 0o116) + chr(101))('\x75' + chr(116) + chr(0b11100 + 0o112) + chr(1891 - 1846) + chr(2408 - 2352)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe8\xa1\x95Q\xcaD\xfc\x08\x14\x92\x86s'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(0b1001010 + 0o52) + '\x66' + '\055' + chr(0b111000))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k?\x05T\xc9\x1a\xa7\x9c\xb4\xa6'), chr(507 - 407) + chr(8754 - 8653) + chr(99) + chr(5699 - 5588) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(8894 - 8792) + chr(0b101101) + chr(1157 - 1101)))) pP0z61Wt_wOE = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b"\xd0\xa6\x8eM\xe2\x07\x9b'E\x9e\x8c\x19\x14<1\xec!\x9c\xb4\x9c\x84q\xd2!\xf9\xb3\x96\xd5\xc4\xcfY6"), chr(351 - 251) + chr(0b1100101) + '\143' + '\x6f' + chr(100) + '\x65')(chr(117) + chr(11744 - 11628) + chr(102) + chr(1860 - 1815) + chr(0b11110 + 0o32))), FHAk5xm055cs.HORIZONTAL) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xa8\xe5\xdea\xff\x1d\xcd&V\x9e\xcdT\x014\x7f\xfe:\x81\xb2\x90\x9es\x80e\xf6\xa8\x9f\xd3\xc3\x80_ }p\xbd\x9b@\x1f\xbbC\xf6\xb9\x93C\xe4'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + '\x65')(chr(0b111010 + 0o73) + '\x74' + chr(102) + '\x2d' + chr(56)) hXMPsSrOQzbh.lnqVISeobKzS = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + chr(7234 - 7123) + '\061', 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(55) + chr(0b1010 + 0o46) + chr(50), 44615 - 44607), nzTpIcepk0o8('\x30' + chr(111) + '\x36' + chr(2171 - 2121), 24371 - 24363)), name=roI3spqORKae(ES5oEprVxulp(b'\xea\xbf\x9bR\xb0B'), chr(0b11000 + 0o114) + chr(9964 - 9863) + '\x63' + chr(0b10000 + 0o137) + chr(100) + '\x65')(chr(117) + chr(11295 - 11179) + chr(0b1011001 + 0o15) + chr(0b10110 + 0o27) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn1, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), chr(9543 - 9443) + '\x65' + '\x63' + chr(335 - 224) + chr(0b1110 + 0o126) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xbaa\xa6K\xfa'), chr(5305 - 5205) + '\x65' + chr(0b1001 + 0o132) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(0b100100 + 0o120) + '\x66' + chr(242 - 197) + '\x38')) roI3spqORKae(hXMPsSrOQzbh.btn1, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), '\x64' + chr(101) + chr(0b1001011 + 0o30) + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b10111 + 0o41)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), '\x64' + chr(101) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(0b1100110 + 0o17) + chr(0b110010 + 0o102) + '\x66' + chr(1266 - 1221) + '\x38'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\144' + '\x65' + '\143' + '\x6f' + '\144' + chr(0b1100101))('\165' + '\x74' + chr(10116 - 10014) + chr(0b100001 + 0o14) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1A\xff\x1d\xcd&V\x9e\xb2_\t?t'), chr(0b1100100) + chr(0b1001110 + 0o27) + chr(0b11111 + 0o104) + chr(0b11 + 0o154) + chr(0b11010 + 0o112) + chr(10103 - 10002))(chr(10022 - 9905) + '\164' + chr(102) + '\x2d' + chr(0b10001 + 0o47))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf5\xa5\x8ft\xd9 \xde,F\xa1\x97j'), chr(9213 - 9113) + '\145' + chr(4227 - 4128) + chr(0b100 + 0o153) + '\144' + '\x65')('\165' + chr(0b11010 + 0o132) + chr(0b0 + 0o146) + '\055' + chr(0b110111 + 0o1)))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xab\xe5\xde\n\xff\x03\xcf*K\x84\x8cUIsR\xfa"\x8d\xaa\x99\x8bb\x97e\xf7\xa4\x9c\xd1\xc2\xc1[\'4^\xf3\x88`0\xef\x08\xfa\xa4\x8cP\xf5\x10\xcf&@\xca\x89P\x126r\xef\'\x81\xb1\x86'), chr(1474 - 1374) + chr(0b1101 + 0o130) + chr(0b1000100 + 0o37) + chr(0b1101111) + '\144' + chr(0b110010 + 0o63))(chr(4438 - 4321) + '\x74' + chr(102) + chr(45) + '\070') hXMPsSrOQzbh.wdrfDv55hkzC = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\061', 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(0b100011 + 0o24) + '\x30' + '\062', 8), nzTpIcepk0o8(chr(1588 - 1540) + chr(0b1101111) + '\x36' + chr(50), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xea\xbf\x9bR\xb0A'), chr(0b110110 + 0o56) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b11101 + 0o110))('\x75' + '\164' + chr(0b110101 + 0o61) + chr(0b11110 + 0o17) + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.btn2, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), chr(0b1100100 + 0o0) + chr(101) + chr(0b111110 + 0o45) + chr(0b1101111) + chr(2632 - 2532) + chr(1010 - 909))(chr(0b1110101) + chr(10151 - 10035) + chr(102) + chr(0b1000 + 0o45) + chr(0b10100 + 0o44)))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xbaa\xa6K\xfa'), chr(100) + chr(101) + chr(6398 - 6299) + chr(0b1100111 + 0o10) + chr(0b111110 + 0o46) + chr(8208 - 8107))('\165' + '\164' + chr(0b1100110) + chr(45) + chr(0b101110 + 0o12))) roI3spqORKae(hXMPsSrOQzbh.btn2, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), chr(6075 - 5975) + '\x65' + '\143' + chr(3497 - 3386) + chr(4741 - 4641) + chr(101))(chr(0b11110 + 0o127) + chr(0b1110100) + chr(102) + '\055' + chr(2079 - 2023)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), chr(0b1010001 + 0o23) + chr(6313 - 6212) + chr(0b100110 + 0o75) + chr(111) + '\x64' + chr(101))(chr(0b11110 + 0o127) + chr(0b1110100) + '\146' + chr(1269 - 1224) + chr(56)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), chr(0b1100100) + chr(8003 - 7902) + '\x63' + chr(0b1001001 + 0o46) + '\144' + chr(101))(chr(7107 - 6990) + chr(116) + '\x66' + chr(0b101011 + 0o2) + '\x38')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1@\xe4\x1d\xe4,V\x83\x88W\x142e\xf2!\x80'), chr(0b1100100) + chr(0b11000 + 0o115) + '\143' + chr(1301 - 1190) + '\x64' + chr(101))(chr(0b1110101) + chr(4013 - 3897) + '\146' + '\055' + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xaf\x8cD\xd4\x05\x8evL\x81\x97z'), chr(0b1100100) + '\145' + chr(0b10000 + 0o123) + chr(0b1101111) + chr(0b1100100) + chr(0b11110 + 0o107))('\165' + chr(0b100111 + 0o115) + '\x66' + '\x2d' + '\x38'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b"\xaa\xe5\xde\n\xff\x03\xcf*K\x84\x8cUIsP\xff*\xce\x92\x94\x8d_\xb1e\xfd\xa4\x87\xd7\xd4\xc1_.}[\xb3\x8e))\xebI\xf6\xaa\x9aK\xfe\x14\x9b'E\x9e\x8c\x19\x14<1\xd6/\x89\x96\xb6\xca"), chr(100) + chr(0b110000 + 0o65) + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\x75' + chr(6108 - 5992) + '\146' + chr(45) + chr(1719 - 1663)) hXMPsSrOQzbh.Ppjs4U5BNyrf = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + chr(6596 - 6485) + chr(49), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110111) + chr(1496 - 1448) + '\x32', 8), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(603 - 553), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xea\xbf\x9bR\xb0@'), '\x64' + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(0b10001 + 0o125) + chr(0b101101) + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.btn3, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), '\x64' + chr(0b1100101) + '\x63' + chr(0b100010 + 0o115) + '\144' + '\x65')('\165' + chr(116) + chr(0b100000 + 0o106) + chr(45) + chr(2777 - 2721)))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xbaa\xa6K\xfa'), chr(8909 - 8809) + chr(101) + chr(8572 - 8473) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn3, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), '\x64' + chr(101) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(7165 - 7048) + '\x74' + '\x66' + chr(0b101101) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), chr(4338 - 4238) + chr(0b101010 + 0o73) + '\x63' + chr(0b11001 + 0o126) + chr(100) + '\145')('\x75' + '\x74' + chr(102) + chr(45) + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), chr(100) + chr(0b111001 + 0o54) + chr(99) + chr(2926 - 2815) + '\x64' + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xf6\xa5\xa1@\xe4\x1d\xe4.A\x9e\x8c]\x01'p"), chr(0b1100001 + 0o3) + '\145' + '\143' + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(0b11010 + 0o113))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b10111 + 0o26) + chr(0b100010 + 0o26))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc9\xbb\x94Q\xa4&\x8e\x01j\x93\x9f_'), '\x64' + chr(7888 - 7787) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(7800 - 7684) + chr(9085 - 8983) + chr(0b11100 + 0o21) + '\x38'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xcc\xa5\x8eC\xf3\x18\x9b7\\\x9e\xcd_\t?t\xbb*\x81\xa8\x9b\x86y\x93!\xf5\xa5\xd3\xd0\xc2\xcfFo\x10\\\xbb\xb5J'), chr(0b1100100) + chr(0b10000 + 0o125) + chr(957 - 858) + chr(0b1101 + 0o142) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(0b1100 + 0o54)) hXMPsSrOQzbh.dSLJUoXFA37C = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(1605 - 1557) + '\x6f' + chr(0b110101) + '\x31' + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001010 + 0o45) + chr(0b100001 + 0o25) + '\x32', 8))) roI3spqORKae(hXMPsSrOQzbh.btn4, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), chr(0b1010100 + 0o20) + chr(0b101 + 0o140) + '\x63' + chr(0b1010001 + 0o36) + chr(0b1100100) + chr(0b110101 + 0o60))(chr(11681 - 11564) + '\x74' + chr(0b11111 + 0o107) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xbaa\xa6K\xfa'), '\144' + '\x65' + chr(5130 - 5031) + '\157' + chr(4238 - 4138) + '\145')('\x75' + '\x74' + '\x66' + chr(0b101101) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn4, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), '\x64' + chr(0b101011 + 0o72) + chr(99) + '\157' + chr(0b110001 + 0o63) + chr(0b1011010 + 0o13))('\165' + '\x74' + chr(0b1100110 + 0o0) + chr(45) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(100) + chr(0b101101 + 0o70))(chr(4722 - 4605) + '\164' + chr(10395 - 10293) + chr(314 - 269) + chr(0b10010 + 0o46)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), chr(0b1100100) + chr(101) + chr(0b111100 + 0o47) + chr(111) + '\144' + chr(0b1011001 + 0o14))('\x75' + chr(0b11110 + 0o126) + chr(0b1100110) + chr(0b101101) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1@\xe4\x1d\xe46J\x9a\x8cZ\x0b'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(7289 - 7189) + chr(0b1110 + 0o127))(chr(0b1010111 + 0o36) + '\x74' + '\x66' + '\x2d' + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfd\x98\xb2h\xc5\x1c\xe3\x05e\xd9\xdaz'), chr(0b1100100) + chr(0b11110 + 0o107) + '\143' + '\x6f' + chr(0b1001101 + 0o27) + chr(0b1100101))(chr(12075 - 11958) + chr(0b1110100) + chr(102) + chr(900 - 855) + '\x38'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b"\xda\xa4\x90T\xf5\x01\xcfc@\x83\x9f\\\x03'~\xe97\xce\xab\x9a\xca%\xdcu\xbe\xe1\x95\xd9\xc2\xcdJ;}\x15\xb0\x99n=\xf8\\\xb9\xaf\x9fV\xf1S\xd4-H\x93\xc4"), '\144' + chr(0b1100101) + chr(99) + chr(9318 - 9207) + chr(0b1100100) + chr(0b111101 + 0o50))(chr(117) + chr(0b1110100) + chr(0b110100 + 0o62) + chr(0b101011 + 0o2) + '\070') hXMPsSrOQzbh.EM6U2MknFpZz = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1376 - 1327), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(48) + chr(2594 - 2483) + chr(53) + chr(1567 - 1518) + chr(0b101001 + 0o11), 8), nzTpIcepk0o8(chr(1059 - 1011) + chr(111) + chr(0b110110) + chr(203 - 153), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xea\xbf\x9bR\xb0B\xda'), '\x64' + '\145' + chr(0b1100011) + chr(10612 - 10501) + chr(0b110111 + 0o55) + chr(0b0 + 0o145))('\x75' + chr(0b1110100) + '\146' + chr(1430 - 1385) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn1a, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), '\144' + chr(101) + chr(99) + chr(111) + chr(0b1010 + 0o132) + '\x65')(chr(7116 - 6999) + '\x74' + chr(0b101100 + 0o72) + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xba\x8d\xbaa\xa6K\xfa'), '\144' + chr(2835 - 2734) + chr(0b1011111 + 0o4) + chr(111) + chr(0b11000 + 0o114) + chr(101))(chr(0b1001001 + 0o54) + '\x74' + chr(9229 - 9127) + '\055' + chr(0b1001 + 0o57))) roI3spqORKae(hXMPsSrOQzbh.btn1a, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), chr(0b111000 + 0o54) + chr(0b100100 + 0o101) + chr(8191 - 8092) + '\x6f' + '\144' + chr(0b111 + 0o136))(chr(0b1110101) + chr(2471 - 2355) + '\x66' + '\055' + chr(0b110100 + 0o4)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), '\x64' + chr(0b110000 + 0o65) + chr(0b101001 + 0o72) + chr(111) + chr(100) + chr(101))('\165' + '\x74' + chr(102) + chr(0b101101) + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\144' + chr(0b100110 + 0o77) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(1202 - 1085) + '\164' + '\x66' + '\055' + chr(0b10011 + 0o45))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xf6\xa5\xa1@\xe4\x1d\xe4 K\x84\x9b\\\x12'N\xa8"), chr(9409 - 9309) + chr(0b1100101) + chr(0b10001 + 0o122) + chr(0b1000110 + 0o51) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdc\x86\xc8w\xa2>\xd0-b\x9a\xb7C'), '\x64' + chr(0b110000 + 0o65) + '\143' + chr(1849 - 1738) + '\x64' + chr(4165 - 4064))(chr(0b1110101) + chr(1771 - 1655) + chr(102) + chr(880 - 835) + '\x38'))) Qc_UZ7zA0_hk = FHAk5xm055cs.StaticText(hXMPsSrOQzbh.panel, -nzTpIcepk0o8('\060' + '\157' + chr(0b10010 + 0o37), 8), roI3spqORKae(ES5oEprVxulp(b'\xf6\xb9'), chr(0b1100100) + '\x65' + chr(8048 - 7949) + '\157' + chr(100) + chr(3587 - 3486))(chr(0b1110101) + '\x74' + chr(0b1100101 + 0o1) + chr(1052 - 1007) + '\x38'), (nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(248 - 196), 11365 - 11357), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b101010 + 0o15) + '\060', ord("\x08")))) CsLbHoNSRLGt = FHAk5xm055cs.Font(nzTpIcepk0o8(chr(444 - 396) + '\x6f' + chr(50) + chr(0b100110 + 0o14), 0o10), FHAk5xm055cs.SWISS, FHAk5xm055cs.NORMAL, FHAk5xm055cs.NORMAL) roI3spqORKae(Qc_UZ7zA0_hk, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8ad\xff\x1d\xcf'), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + '\144' + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(527 - 482) + chr(0b1100 + 0o54)))(CsLbHoNSRLGt) SSaN__lfHgXx = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + '\145' + chr(99) + '\157' + '\x64' + chr(0b1000101 + 0o40))(chr(0b111011 + 0o72) + chr(8720 - 8604) + chr(3884 - 3782) + '\055' + chr(566 - 510)))(nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\062' + chr(52), 8)) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(100) + chr(1067 - 966) + '\143' + '\157' + chr(0b1000110 + 0o36) + chr(0b1100101))('\x75' + '\x74' + chr(0b1100110) + chr(1690 - 1645) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf5\xa5\x8ft\xd9 \xde,F\xa1\x97j'), chr(0b1100100 + 0o0) + chr(1384 - 1283) + '\143' + chr(0b100101 + 0o112) + '\144' + chr(0b10010 + 0o123))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38')), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xef\x0ct'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(0b1011001 + 0o15) + '\x2d' + '\x38'))) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(100) + '\145' + chr(0b1100011) + chr(6976 - 6865) + chr(3183 - 3083) + chr(0b10001 + 0o124))(chr(0b1110101) + chr(9774 - 9658) + chr(102) + '\055' + chr(0b1010 + 0o56)))(nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(2330 - 2278), 8)) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(1535 - 1435) + chr(0b1100101) + '\143' + chr(6843 - 6732) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(9187 - 9085) + '\x2d' + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xee\xaf\x8cD\xd4\x05\x8evL\x81\x97z'), '\x64' + chr(101) + chr(0b10111 + 0o114) + '\157' + '\x64' + chr(0b1100101))('\x75' + '\x74' + chr(0b1000001 + 0o45) + '\x2d' + '\070')), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xef\x0ct'), chr(7952 - 7852) + '\x65' + '\143' + chr(2096 - 1985) + chr(0b1100100) + chr(0b1100101))(chr(5981 - 5864) + chr(0b1110100) + chr(623 - 521) + '\055' + '\x38'))) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b100000 + 0o104) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(116) + '\146' + '\055' + '\070'))(nzTpIcepk0o8('\060' + chr(0b1101110 + 0o1) + '\x32' + chr(806 - 754), 8)) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(0b1000110 + 0o36) + '\x65' + '\143' + chr(4627 - 4516) + '\144' + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(2540 - 2484)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc9\xbb\x94Q\xa4&\x8e\x01j\x93\x9f_'), chr(3055 - 2955) + chr(0b11001 + 0o114) + chr(99) + chr(0b1101111) + chr(856 - 756) + chr(0b1100101))(chr(117) + '\x74' + '\x66' + chr(506 - 461) + '\070')), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xef\x0ct'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b10110 + 0o116) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(301 - 245)))) roI3spqORKae(SSaN__lfHgXx, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + chr(4824 - 4724) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b1111 + 0o36) + chr(0b111000)))(nzTpIcepk0o8(chr(749 - 701) + chr(111) + '\062' + '\x34', 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(0b110110 + 0o56) + '\x65' + chr(6075 - 5976) + chr(0b110100 + 0o73) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1010100 + 0o40) + '\146' + chr(45) + '\070'))(SSaN__lfHgXx, roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(0b11100 + 0o110) + '\145' + '\x63' + chr(0b1101101 + 0o2) + '\144' + chr(101))(chr(0b1110001 + 0o4) + '\164' + '\x66' + chr(0b101101) + chr(56))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x93\xaec\xde7'), chr(5858 - 5758) + chr(0b110110 + 0o57) + chr(99) + '\x6f' + chr(2591 - 2491) + chr(0b100010 + 0o103))('\165' + '\164' + chr(4210 - 4108) + chr(45) + chr(3130 - 3074)))) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(0b111111 + 0o46) + chr(99) + '\157' + '\x64' + chr(0b1100101))('\165' + '\164' + chr(5016 - 4914) + chr(45) + chr(0b111000)))(nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\064', 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(3895 - 3795) + chr(0b1010110 + 0o17) + '\x63' + chr(7580 - 7469) + chr(0b101011 + 0o71) + '\x65')(chr(0b10100 + 0o141) + '\164' + chr(0b1000111 + 0o37) + chr(326 - 281) + chr(56)))(Qc_UZ7zA0_hk, nzTpIcepk0o8('\060' + chr(111) + '\x30', 0o10), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), '\144' + '\x65' + chr(99) + chr(111) + chr(0b101101 + 0o67) + chr(101))('\x75' + '\x74' + chr(7695 - 7593) + chr(1868 - 1823) + chr(0b100100 + 0o24))), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(170 - 70) + chr(101) + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(0b1010011 + 0o42) + chr(0b1100011 + 0o21) + chr(0b111110 + 0o50) + chr(45) + chr(56)))(nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b111001 + 0o66) + '\x32' + '\x34', 8)) pZOpcs9kULfc = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) LeQEsJLRFYN4 = nzTpIcepk0o8(chr(1017 - 969) + chr(111) + chr(742 - 687) + chr(0b11001 + 0o33), 0b1000) roI3spqORKae(pZOpcs9kULfc, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b11100 + 0o110) + chr(0b11011 + 0o112) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')('\x75' + chr(0b1101100 + 0o10) + chr(223 - 121) + '\x2d' + '\x38'))(LeQEsJLRFYN4) roI3spqORKae(pZOpcs9kULfc, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b101101 + 0o102) + '\x64' + '\145')(chr(117) + chr(2452 - 2336) + '\146' + chr(45) + chr(2634 - 2578)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfd\x98\xb2h\xc5\x1c\xe3\x05e\xd9\xdaz'), chr(100) + chr(101) + chr(0b1100011) + chr(4623 - 4512) + chr(0b1100100) + chr(101))(chr(0b110001 + 0o104) + chr(2025 - 1909) + '\x66' + chr(45) + '\070')), nzTpIcepk0o8(chr(1417 - 1369) + '\157' + chr(0b10000 + 0o40), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(0b1100100) + chr(0b11100 + 0o111) + chr(0b1001100 + 0o27) + '\157' + '\x64' + chr(0b1011010 + 0o13))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + '\070')), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + chr(0b1111 + 0o41), 8)) roI3spqORKae(pZOpcs9kULfc, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\144' + chr(4053 - 3952) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(0b101101) + chr(56)))(nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1001001 + 0o46) + chr(0b110010) + chr(0b110100), 8)) roI3spqORKae(pZOpcs9kULfc, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b10 + 0o142) + chr(1091 - 990))(chr(4522 - 4405) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b1101 + 0o53)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdc\x86\xc8w\xa2>\xd0-b\x9a\xb7C'), chr(5762 - 5662) + '\145' + '\143' + '\157' + '\x64' + '\x65')(chr(0b1110101) + '\x74' + '\146' + chr(0b101101) + '\070')), nzTpIcepk0o8(chr(1591 - 1543) + '\157' + chr(48), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b100111 + 0o75) + '\x65')(chr(0b11000 + 0o135) + chr(5774 - 5658) + chr(0b1100110) + chr(1290 - 1245) + chr(56))), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(7053 - 6942) + '\060', 8)) roI3spqORKae(pZOpcs9kULfc, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(3676 - 3575) + chr(4450 - 4351) + chr(0b1100011 + 0o14) + '\144' + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b100100 + 0o11) + chr(0b1110 + 0o52)))(nzTpIcepk0o8(chr(132 - 84) + chr(0b1011001 + 0o26) + '\062' + chr(0b110100), 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(2513 - 2413) + chr(101) + chr(99) + chr(9866 - 9755) + chr(3005 - 2905) + '\145')(chr(0b1110101) + chr(610 - 494) + chr(102) + chr(0b101101) + '\x38'))(pZOpcs9kULfc) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(100) + chr(101) + '\143' + chr(111) + chr(9170 - 9070) + chr(7171 - 7070))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101000 + 0o5) + chr(0b111000)))(nzTpIcepk0o8(chr(2044 - 1996) + '\x6f' + '\062' + chr(0b101110 + 0o6), 8)) kpubFJSyKXFP = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\xd8\xa5\x9fN\xe9\x00\xd20\x04\x8b\x83]@#}\xf4:\x9d'), chr(100) + '\145' + chr(99) + chr(0b1001001 + 0o46) + '\144' + chr(5926 - 5825))('\x75' + chr(116) + chr(0b0 + 0o146) + '\055' + chr(0b111000))), FHAk5xm055cs.HORIZONTAL) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xdd\xae\x93C\xf7S\xfc\x16m'), '\x64' + chr(0b111100 + 0o51) + chr(0b101101 + 0o66) + '\157' + chr(100) + '\x65')(chr(0b1110101) + '\164' + '\x66' + chr(0b0 + 0o55) + chr(0b11111 + 0o31)) hXMPsSrOQzbh.FO2GgioFN9Mo = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31', 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(572 - 524) + '\x6f' + chr(0b110100) + chr(2708 - 2655) + chr(52), 11132 - 11124), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b101100 + 0o12) + '\062', 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xfd\xae\x93C\xf7S\xdc6M'), chr(0b1100100) + chr(101) + '\x63' + chr(0b11011 + 0o124) + '\x64' + chr(0b111100 + 0o51))(chr(9969 - 9852) + chr(116) + chr(102) + '\x2d' + chr(0b110100 + 0o4))) roI3spqORKae(hXMPsSrOQzbh.btn_demag_gui, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), '\144' + chr(6370 - 6269) + chr(99) + chr(0b1101111) + '\144' + '\x65')('\x75' + '\164' + '\146' + chr(662 - 617) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xba\xfd\xbba\xd65\x8d'), chr(100) + chr(0b1010101 + 0o20) + chr(9585 - 9486) + chr(3392 - 3281) + '\x64' + chr(0b110000 + 0o65))(chr(243 - 126) + '\164' + chr(0b1100110) + chr(0b101010 + 0o3) + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn_demag_gui, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), chr(0b1000111 + 0o35) + chr(6796 - 6695) + chr(0b110000 + 0o63) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1111 + 0o146) + chr(0b1110100) + '\146' + chr(0b101101) + '\070'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), chr(0b1100100) + chr(0b1010111 + 0o16) + chr(99) + chr(7234 - 7123) + '\144' + chr(0b1100101))(chr(0b1000011 + 0o62) + chr(116) + '\146' + '\055' + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\x64' + '\145' + chr(3655 - 3556) + '\x6f' + '\144' + '\x65')(chr(117) + chr(0b1101110 + 0o6) + chr(1358 - 1256) + '\055' + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xf6\xa5\xa1@\xe4\x1d\xe4'A\x87\x8c^?4d\xf2"), '\144' + chr(0b1001010 + 0o33) + chr(323 - 224) + chr(0b1101111) + chr(100) + chr(0b0 + 0o145))(chr(117) + chr(0b1110100) + chr(8054 - 7952) + chr(45) + chr(264 - 208))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdf\x84\xcce\xf7\x1a\xd4\x05j\xd3\xa0V'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1100001 + 0o16) + '\144' + '\x65')(chr(117) + chr(0b10010 + 0o142) + chr(102) + chr(0b101101) + '\070'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xcd\xa3\x9bN\xfc\x1a\xde1\x04\xad\xb8p'), chr(0b1000100 + 0o40) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + chr(8409 - 8308))('\x75' + '\164' + '\x66' + '\x2d' + chr(0b111000)) hXMPsSrOQzbh.gp2AH0tKkxO2 = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8('\x30' + chr(111) + chr(158 - 109), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + chr(0b110101) + chr(0b110100), 8), nzTpIcepk0o8(chr(173 - 125) + '\157' + '\066' + chr(1455 - 1405), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xed\xa3\x9bN\xfc\x1a\xde1\x04\x8d\x98P'), chr(0b11010 + 0o112) + '\145' + chr(0b1100011) + chr(2383 - 2272) + chr(0b1100100) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(2423 - 2367))) roI3spqORKae(hXMPsSrOQzbh.btn_thellier_gui, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), '\x64' + '\145' + chr(99) + chr(4755 - 4644) + chr(0b1100100) + chr(6685 - 6584))(chr(117) + chr(0b100001 + 0o123) + '\x66' + chr(0b101101) + chr(0b11110 + 0o32)))(roI3spqORKae(ES5oEprVxulp(b'\xba\xfd\xbba\xd65\x8d'), chr(0b1100100) + chr(9024 - 8923) + chr(3840 - 3741) + '\x6f' + '\144' + chr(0b100001 + 0o104))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn_thellier_gui, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), '\144' + '\x65' + '\143' + '\157' + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(0b100111 + 0o77) + chr(602 - 557) + chr(0b100010 + 0o26)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), '\144' + chr(0b101010 + 0o73) + chr(99) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b101001 + 0o114) + '\164' + chr(102) + '\x2d' + chr(2625 - 2569)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\x64' + '\145' + chr(0b1001110 + 0o25) + chr(4455 - 4344) + chr(0b1100100) + chr(9763 - 9662))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1@\xe4\x1d\xe47L\x8f\x81U\t6c\xc4)\x9b\xb6'), chr(0b101110 + 0o66) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + '\x65')(chr(1349 - 1232) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfe\xbb\xccc\xd8C\xcf\x08O\x92\xa2\x0b'), '\144' + chr(9753 - 9652) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b101010 + 0o73))(chr(6168 - 6051) + '\164' + '\146' + chr(0b101101) + chr(56)))) roI3spqORKae(kpubFJSyKXFP, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\144' + chr(8162 - 8061) + '\143' + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + '\x74' + '\x66' + chr(0b101101) + chr(56)))(nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b11 + 0o61), 8)) roI3spqORKae(kpubFJSyKXFP, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(1200 - 1100) + '\x65' + chr(1514 - 1415) + chr(9670 - 9559) + chr(7685 - 7585) + chr(2552 - 2451))(chr(6107 - 5990) + chr(0b1010000 + 0o44) + chr(0b111100 + 0o52) + '\x2d' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdf\x84\xcce\xf7\x1a\xd4\x05j\xd3\xa0V'), chr(6571 - 6471) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + chr(0b10000 + 0o125))(chr(117) + '\x74' + '\146' + '\x2d' + chr(0b111000))), nzTpIcepk0o8(chr(48) + chr(2193 - 2082) + '\060', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(0b1100100) + chr(101) + '\x63' + chr(6708 - 6597) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1001011 + 0o33) + chr(45) + '\070')), nzTpIcepk0o8(chr(163 - 115) + '\157' + '\x30', 8)) roI3spqORKae(kpubFJSyKXFP, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(6439 - 6339) + chr(3390 - 3289) + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + chr(0b101000 + 0o20)))(nzTpIcepk0o8(chr(1526 - 1478) + '\157' + chr(0b110010) + '\064', 8)) roI3spqORKae(kpubFJSyKXFP, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1100110 + 0o11) + '\144' + '\x65')('\165' + chr(0b1000011 + 0o61) + chr(0b100101 + 0o101) + chr(45) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfe\xbb\xccc\xd8C\xcf\x08O\x92\xa2\x0b'), chr(0b1100100) + chr(4345 - 4244) + chr(0b111001 + 0o52) + '\157' + chr(100) + chr(101))(chr(0b1110101) + chr(7167 - 7051) + chr(102) + chr(0b101001 + 0o4) + chr(56))), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(0b110010 + 0o62) + '\145' + chr(0b1100011) + chr(11595 - 11484) + '\x64' + '\x65')(chr(0b1100 + 0o151) + chr(116) + chr(102) + '\x2d' + chr(2277 - 2221))), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1333 - 1285), 8)) roI3spqORKae(kpubFJSyKXFP, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(0b11111 + 0o106) + chr(7069 - 6970) + chr(7304 - 7193) + '\x64' + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(0b101101) + chr(0b1110 + 0o52)))(nzTpIcepk0o8(chr(48) + chr(4898 - 4787) + chr(1797 - 1747) + chr(0b1100 + 0o50), 8)) kWgPdLmM2VJA = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\xda\xb9\x9bC\xe4\x16\x9b%M\x86\x88\x19\x06<c\xbb;\x9e\xb3\x9a\x8br\xd21\xff\xe1\xbe\xd7\xd7\xe9ho9\\\xa8\x9dk=\xe8@'), chr(932 - 832) + '\145' + chr(99) + '\x6f' + '\144' + '\145')('\165' + chr(0b1110100) + chr(6373 - 6271) + chr(1286 - 1241) + chr(56))), FHAk5xm055cs.HORIZONTAL) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b"\xda\xb9\x9bC\xe4\x16\x9b\x0eE\x8d\xa4z@'i\xefn\x88\xb6\x99\x8f6\x94*\xe2\xe1\x86\xc6\xdc\xcfJ+"), '\x64' + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b1000010 + 0o43))(chr(117) + chr(116) + chr(0b1001 + 0o135) + chr(45) + chr(56)) hXMPsSrOQzbh.L5He1JWH3dvi = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(982 - 933), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(6187 - 6076) + '\064' + chr(0b110101) + '\x34', 8), nzTpIcepk0o8(chr(783 - 735) + chr(111) + chr(0b1000 + 0o56) + chr(0b110010), 8))) roI3spqORKae(hXMPsSrOQzbh.btn_upload, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8a`\xf1\x10\xd0$V\x85\x98W\x04\x10~\xf7!\x9b\xad'), '\x64' + '\x65' + chr(0b10110 + 0o115) + '\157' + '\x64' + chr(101))('\165' + chr(3409 - 3293) + chr(102) + chr(0b111 + 0o46) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xba\x88\xcaf\xd6J\xf9'), '\144' + '\x65' + '\143' + '\x6f' + '\x64' + '\145')(chr(117) + '\x74' + chr(5739 - 5637) + chr(0b101101) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn_upload, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x97V\xd3\x1c\xd7,Q\x98\x9e'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(8404 - 8304) + chr(0b1100101))(chr(117) + '\164' + '\146' + '\x2d' + chr(111 - 55)))() roI3spqORKae(kWgPdLmM2VJA, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\144' + chr(0b1100101) + '\x63' + chr(0b1011111 + 0o20) + chr(5141 - 5041) + chr(0b1000101 + 0o40))('\165' + '\x74' + chr(0b1100110) + chr(45) + chr(2578 - 2522)))(nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101000 + 0o7) + '\x32' + '\064', 8)) roI3spqORKae(kWgPdLmM2VJA, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(0b101000 + 0o74) + '\145' + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(0b1110100) + chr(2576 - 2474) + '\x2d' + chr(0b101111 + 0o11)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd5\xfe\xb6G\xa19\xec\x0b\x17\x8e\x9bP'), chr(4072 - 3972) + chr(0b1100101) + chr(0b1001000 + 0o33) + chr(5618 - 5507) + chr(2973 - 2873) + chr(0b1100101))(chr(117) + chr(13164 - 13048) + chr(0b1100110) + '\055' + chr(0b101 + 0o63))), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\060', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(0b101010 + 0o72) + '\145' + '\x63' + '\157' + '\144' + '\x65')(chr(0b1100111 + 0o16) + chr(0b1110100) + '\x66' + '\x2d' + chr(1619 - 1563))), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1011 + 0o144) + chr(48), 8)) roI3spqORKae(kWgPdLmM2VJA, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + '\x65')('\x75' + chr(116) + chr(0b11111 + 0o107) + chr(0b101101) + '\070'))(nzTpIcepk0o8(chr(1602 - 1554) + chr(111) + '\x32' + chr(52), 8)) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdb\xa2\x90F'), '\144' + '\x65' + '\143' + '\157' + '\144' + chr(7677 - 7576))(chr(10428 - 10311) + '\164' + chr(0b1100110) + chr(0b11011 + 0o22) + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xdc\x9d\xaa}\xd2&\xef\x17k\xa4'), '\144' + chr(0b1100101) + chr(0b1100011 + 0o0) + '\157' + chr(100) + chr(4618 - 4517))(chr(9975 - 9858) + '\164' + '\146' + '\055' + '\x38')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf6\xa5\xa1@\xe4\x1d\xe46T\x86\x82X\x04'), chr(0b110010 + 0o62) + chr(9435 - 9334) + chr(0b1100011) + '\157' + chr(0b1011001 + 0o13) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b1111 + 0o36) + chr(605 - 549))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd5\xfe\xb6G\xa19\xec\x0b\x17\x8e\x9bP'), '\144' + chr(101) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(102) + chr(351 - 306) + chr(1355 - 1299)))) WB5DqLl1wXpg = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.HORIZONTAL) ATU5rnBLE1hw = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1000110 + 0o36) + chr(0b101001 + 0o74) + '\x63' + '\x6f' + chr(0b1100100) + '\x65')('\165' + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)))(nzTpIcepk0o8('\060' + chr(111) + chr(0b10001 + 0o44), ord("\x08"))) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100100) + chr(3717 - 3616) + chr(7550 - 7451) + chr(0b101111 + 0o100) + chr(0b100101 + 0o77) + chr(9810 - 9709))(chr(0b11010 + 0o133) + '\x74' + '\146' + '\055' + '\070'))(nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(53), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\x64' + chr(0b1111 + 0o126) + '\143' + chr(3768 - 3657) + '\144' + '\x65')(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b11011 + 0o35)))(XaTzYdbUQt2h, nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(100) + chr(0b11000 + 0o115) + chr(0b100000 + 0o103) + chr(2200 - 2089) + '\x64' + chr(101))(chr(2711 - 2594) + chr(116) + chr(0b1110 + 0o130) + '\x2d' + chr(0b1001 + 0o57))), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(2732 - 2621) + '\x30', 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(4867 - 4767) + chr(0b1100101) + '\x63' + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(3447 - 3331) + chr(102) + chr(1567 - 1522) + chr(1082 - 1026)))(nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b1010 + 0o47) + '\062', 0b1000)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\x64' + chr(0b101110 + 0o67) + '\143' + chr(111) + chr(565 - 465) + chr(101))(chr(117) + chr(116) + chr(102) + chr(45) + chr(56)))(pP0z61Wt_wOE, nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + '\x30', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), chr(6722 - 6622) + chr(101) + chr(0b1 + 0o142) + chr(0b1010100 + 0o33) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(7531 - 7429) + chr(0b101101) + chr(0b111000))), nzTpIcepk0o8('\x30' + chr(1956 - 1845) + chr(0b110000), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b1100010 + 0o2) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b101111 + 0o66))(chr(0b1010010 + 0o43) + chr(0b111001 + 0o73) + chr(102) + chr(474 - 429) + '\070'))(nzTpIcepk0o8(chr(0b100 + 0o54) + chr(8170 - 8059) + '\061' + chr(0b1 + 0o61), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(567 - 467) + chr(101))('\x75' + chr(0b1001100 + 0o50) + chr(0b1100110) + chr(45) + chr(56)))(kpubFJSyKXFP, nzTpIcepk0o8(chr(1502 - 1454) + chr(0b11110 + 0o121) + chr(0b110000), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), '\x64' + chr(9163 - 9062) + chr(99) + '\x6f' + chr(100) + '\145')(chr(0b1011111 + 0o26) + chr(116) + '\x66' + chr(0b101101) + '\x38')), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + '\x30', 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\144' + chr(0b1001001 + 0o34) + '\143' + chr(0b1101111) + chr(0b1 + 0o143) + chr(101))(chr(0b1110101) + chr(0b1011010 + 0o32) + chr(102) + '\055' + chr(56)))(nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(1331 - 1281), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\144' + chr(0b1100101) + chr(0b10010 + 0o121) + chr(0b1101111) + chr(0b1100100) + chr(9987 - 9886))('\165' + '\x74' + '\146' + chr(45) + chr(56)))(kWgPdLmM2VJA, nzTpIcepk0o8('\060' + '\157' + '\x30', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), '\144' + '\145' + '\143' + chr(2630 - 2519) + chr(100) + '\145')('\x75' + '\164' + '\146' + '\x2d' + '\070')), nzTpIcepk0o8(chr(0b110000) + chr(2880 - 2769) + chr(48), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(8386 - 8286) + '\145' + chr(7387 - 7288) + chr(0b1011011 + 0o24) + chr(0b1011100 + 0o10) + chr(101))('\165' + '\x74' + '\x66' + '\055' + chr(56)))(nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(50), 8)) roI3spqORKae(WB5DqLl1wXpg, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), chr(0b101001 + 0o73) + chr(101) + chr(0b1100011) + '\x6f' + '\144' + '\x65')('\165' + chr(0b1101000 + 0o14) + '\x66' + '\055' + chr(1347 - 1291)))(nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b111 + 0o52) + '\x32', 8)) roI3spqORKae(WB5DqLl1wXpg, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9a'), '\144' + '\145' + chr(0b100001 + 0o102) + chr(0b110111 + 0o70) + chr(100) + '\145')('\x75' + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)))(ATU5rnBLE1hw, nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(0b101100 + 0o4), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xd8\x87\xb7e\xde,\xf8\x06j\xbe\xa8k'), '\144' + chr(0b1100101) + chr(7550 - 7451) + chr(111) + '\144' + '\145')(chr(0b1100111 + 0o16) + chr(0b1010010 + 0o42) + chr(0b11100 + 0o112) + chr(390 - 345) + '\070')), nzTpIcepk0o8('\x30' + '\x6f' + '\x30', 8)) roI3spqORKae(WB5DqLl1wXpg, roI3spqORKae(ES5oEprVxulp(b'\xd8\xaf\x9aq\xe0\x12\xd8&V'), '\x64' + chr(926 - 825) + chr(99) + chr(111) + chr(9229 - 9129) + chr(101))('\x75' + chr(116) + chr(102) + '\055' + chr(2200 - 2144)))(nzTpIcepk0o8(chr(48) + chr(6312 - 6201) + chr(0b10001 + 0o44), 8)) roI3spqORKae(hXMPsSrOQzbh.panel, roI3spqORKae(ES5oEprVxulp(b'\xca\xae\x8aq\xf9\t\xde1'), '\x64' + chr(6455 - 6354) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(102) + '\055' + chr(0b100001 + 0o27)))(WB5DqLl1wXpg) roI3spqORKae(WB5DqLl1wXpg, roI3spqORKae(ES5oEprVxulp(b'\xdf\xa2\x8a'), chr(6090 - 5990) + chr(0b1100101) + chr(1160 - 1061) + '\x6f' + chr(4426 - 4326) + '\145')(chr(0b1101100 + 0o11) + chr(12926 - 12810) + '\x66' + '\x2d' + chr(0b110001 + 0o7)))(hXMPsSrOQzbh)
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.get_dir
def get_dir(self): """ Choose a working directory dialog. Called by self.get_dm_and_wd. """ if "-WD" in sys.argv and self.FIRST_RUN: ind = sys.argv.index('-WD') self.WD = os.path.abspath(sys.argv[ind+1]) os.chdir(self.WD) self.WD = os.getcwd() self.dir_path.SetValue(self.WD) else: self.on_change_dir_button(None) #self.WD = os.getcwd() self.FIRST_RUN = False
python
def get_dir(self): """ Choose a working directory dialog. Called by self.get_dm_and_wd. """ if "-WD" in sys.argv and self.FIRST_RUN: ind = sys.argv.index('-WD') self.WD = os.path.abspath(sys.argv[ind+1]) os.chdir(self.WD) self.WD = os.getcwd() self.dir_path.SetValue(self.WD) else: self.on_change_dir_button(None) #self.WD = os.getcwd() self.FIRST_RUN = False
[ "def", "get_dir", "(", "self", ")", ":", "if", "\"-WD\"", "in", "sys", ".", "argv", "and", "self", ".", "FIRST_RUN", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "self", ".", "WD", "=", "os", ".", "path", ".", "abspath", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "os", ".", "chdir", "(", "self", ".", "WD", ")", "self", ".", "WD", "=", "os", ".", "getcwd", "(", ")", "self", ".", "dir_path", ".", "SetValue", "(", "self", ".", "WD", ")", "else", ":", "self", ".", "on_change_dir_button", "(", "None", ")", "#self.WD = os.getcwd()", "self", ".", "FIRST_RUN", "=", "False" ]
Choose a working directory dialog. Called by self.get_dm_and_wd.
[ "Choose", "a", "working", "directory", "dialog", ".", "Called", "by", "self", ".", "get_dm_and_wd", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L337-L352
train
Choose a working directory dialog.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2293 - 2245) + '\157' + chr(0b110001) + chr(590 - 542) + '\066', 0b1000), nzTpIcepk0o8(chr(1299 - 1251) + chr(8547 - 8436) + chr(0b110011) + '\x35' + chr(1619 - 1566), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + chr(0b110001) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x35' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(53) + chr(1655 - 1604), 63960 - 63952), nzTpIcepk0o8('\060' + chr(9051 - 8940) + chr(49) + chr(2294 - 2245) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + chr(0b11100 + 0o27) + '\065' + chr(0b1011 + 0o50), 20128 - 20120), nzTpIcepk0o8(chr(1615 - 1567) + '\x6f' + chr(0b110001) + '\x31' + chr(208 - 154), 7025 - 7017), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(54) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1539 - 1488) + '\060' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1726 - 1678) + '\157' + chr(49) + chr(51) + chr(500 - 449), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + '\063' + chr(50) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(1512 - 1464) + '\157' + chr(0b110000 + 0o1) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(2155 - 2102) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(4645 - 4534) + '\063' + '\x31' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(1704 - 1656) + '\x6f' + '\x33' + '\x31' + chr(2139 - 2091), 0o10), nzTpIcepk0o8(chr(809 - 761) + chr(0b1101111) + '\x33' + chr(53) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(1104 - 1054) + '\064', 0o10), nzTpIcepk0o8(chr(2112 - 2064) + chr(0b1101111) + chr(0b110 + 0o54) + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(2418 - 2367) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1763 - 1714) + chr(0b110000) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001000 + 0o47) + '\x31' + '\067' + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11100 + 0o123) + '\x31' + chr(51) + chr(0b101011 + 0o13), 0o10), nzTpIcepk0o8('\060' + chr(0b1 + 0o156) + '\067' + chr(0b11011 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(947 - 897) + chr(55) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + '\063' + chr(0b11010 + 0o35) + '\x37', 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + chr(0b11110 + 0o24) + chr(52) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + chr(0b110010) + '\066' + chr(55), 3350 - 3342), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(2628 - 2575) + '\062', 3538 - 3530), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(0b1 + 0o61) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b1101 + 0o51) + chr(0b10100 + 0o36), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(252 - 202) + chr(0b1 + 0o61) + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b11010 + 0o30) + chr(0b100110 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(199 - 148) + chr(0b10100 + 0o41) + '\x33', 8), nzTpIcepk0o8(chr(2246 - 2198) + '\x6f' + chr(0b110011) + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b110101), 41126 - 41118), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(426 - 377) + chr(335 - 285), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\066' + chr(1428 - 1380), 146 - 138), nzTpIcepk0o8(chr(619 - 571) + chr(111) + '\x32' + chr(959 - 908) + '\062', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + '\065' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'h'), chr(9922 - 9822) + chr(3153 - 3052) + chr(99) + chr(736 - 625) + chr(0b110101 + 0o57) + '\x65')('\165' + chr(9549 - 9433) + chr(0b1100110) + chr(0b1000 + 0o45) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tctuspbG8Zth(hXMPsSrOQzbh): if roI3spqORKae(ES5oEprVxulp(b'k\xbaO'), '\x64' + chr(101) + chr(0b1001010 + 0o31) + chr(111) + chr(100) + '\145')(chr(0b1001101 + 0o50) + chr(0b1110100) + chr(102) + chr(0b10 + 0o53) + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b"'\x87Bh|6\xb3\x030\xa1h\xb3"), chr(0b101001 + 0o73) + chr(101) + chr(0b1100011) + '\x6f' + '\144' + chr(0b11111 + 0o106))(chr(0b1 + 0o164) + chr(116) + chr(1149 - 1047) + '\055' + '\070')) and roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x00\xa4Y\x7f\x7f\x10\xb9\x1b<'), chr(0b1100100) + chr(0b1100 + 0o131) + '\x63' + '\157' + '\144' + '\145')('\x75' + '\x74' + chr(0b1001111 + 0o27) + chr(45) + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'k\xbaO'), '\x64' + '\x65' + chr(3065 - 2966) + '\157' + chr(100) + '\x65')('\165' + '\164' + chr(9266 - 9164) + chr(45) + '\x38')) hXMPsSrOQzbh.GP1zEShDyCxL = aHUqKstZLeS6.path.abspath(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1910 - 1862) + chr(0b1101111) + chr(1245 - 1196), 25449 - 25441)]) roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'%\x85oEY'), '\144' + '\145' + chr(511 - 412) + chr(0b110100 + 0o73) + chr(0b1010 + 0o132) + chr(0b11101 + 0o110))(chr(117) + '\164' + '\146' + '\055' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x01\xbd:Vn\x1c\x83\n\x0b\x83#\x9d'), chr(0b1100100) + '\145' + chr(8033 - 7934) + chr(10696 - 10585) + chr(0b1100100) + chr(4402 - 4301))('\165' + chr(0b1110100) + '\x66' + chr(0b10101 + 0o30) + chr(0b100100 + 0o24)))) hXMPsSrOQzbh.GP1zEShDyCxL = aHUqKstZLeS6.getcwd() roI3spqORKae(hXMPsSrOQzbh.dir_path, roI3spqORKae(ES5oEprVxulp(b'\x15\x88\x7fzJ#\x9e+'), chr(100) + chr(1524 - 1423) + '\143' + '\157' + '\x64' + '\x65')('\165' + chr(0b1110100) + '\146' + '\055' + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x01\xbd:Vn\x1c\x83\n\x0b\x83#\x9d'), chr(100) + chr(101) + chr(4558 - 4459) + chr(0b10110 + 0o131) + chr(0b1100100) + chr(0b100011 + 0o102))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)))) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b')\x83TOC.\x85)\x17\x9f?\xb8z0\xaf\xbd\x9c y\xf3'), chr(100) + chr(1628 - 1527) + chr(0b111100 + 0o47) + '\x6f' + '\144' + '\145')(chr(0b1010001 + 0o44) + chr(3185 - 3069) + chr(0b1010000 + 0o26) + chr(45) + chr(0b110011 + 0o5)))(None) hXMPsSrOQzbh.a0wDY8dzUbyb = nzTpIcepk0o8('\060' + chr(111) + '\x30', ord("\x08"))
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_thellier_gui
def on_btn_thellier_gui(self, event): """ Open Thellier GUI """ if not self.check_for_meas_file(): return if not self.check_for_uncombined_files(): return outstring = "thellier_gui.py -WD %s"%self.WD print("-I- running python script:\n %s"%(outstring)) if self.data_model_num == 2.5: thellier_gui.main(self.WD, standalone_app=False, parent=self, DM=self.data_model_num) else: # disable and hide Pmag GUI mainframe self.Disable() self.Hide() # show busyinfo wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() # create custom Thellier GUI closing event and bind it ThellierGuiExitEvent, EVT_THELLIER_GUI_EXIT = newevent.NewCommandEvent() self.Bind(EVT_THELLIER_GUI_EXIT, self.on_analysis_gui_exit) # make and show the Thellier GUI frame thellier_gui_frame = thellier_gui.Arai_GUI(self.WD, self, standalone=False, DM=self.data_model_num, evt_quit=ThellierGuiExitEvent) if not thellier_gui_frame: print("Thellier GUI failed to start aborting"); del wait; return thellier_gui_frame.Centre() thellier_gui_frame.Show() del wait
python
def on_btn_thellier_gui(self, event): """ Open Thellier GUI """ if not self.check_for_meas_file(): return if not self.check_for_uncombined_files(): return outstring = "thellier_gui.py -WD %s"%self.WD print("-I- running python script:\n %s"%(outstring)) if self.data_model_num == 2.5: thellier_gui.main(self.WD, standalone_app=False, parent=self, DM=self.data_model_num) else: # disable and hide Pmag GUI mainframe self.Disable() self.Hide() # show busyinfo wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() # create custom Thellier GUI closing event and bind it ThellierGuiExitEvent, EVT_THELLIER_GUI_EXIT = newevent.NewCommandEvent() self.Bind(EVT_THELLIER_GUI_EXIT, self.on_analysis_gui_exit) # make and show the Thellier GUI frame thellier_gui_frame = thellier_gui.Arai_GUI(self.WD, self, standalone=False, DM=self.data_model_num, evt_quit=ThellierGuiExitEvent) if not thellier_gui_frame: print("Thellier GUI failed to start aborting"); del wait; return thellier_gui_frame.Centre() thellier_gui_frame.Show() del wait
[ "def", "on_btn_thellier_gui", "(", "self", ",", "event", ")", ":", "if", "not", "self", ".", "check_for_meas_file", "(", ")", ":", "return", "if", "not", "self", ".", "check_for_uncombined_files", "(", ")", ":", "return", "outstring", "=", "\"thellier_gui.py -WD %s\"", "%", "self", ".", "WD", "print", "(", "\"-I- running python script:\\n %s\"", "%", "(", "outstring", ")", ")", "if", "self", ".", "data_model_num", "==", "2.5", ":", "thellier_gui", ".", "main", "(", "self", ".", "WD", ",", "standalone_app", "=", "False", ",", "parent", "=", "self", ",", "DM", "=", "self", ".", "data_model_num", ")", "else", ":", "# disable and hide Pmag GUI mainframe", "self", ".", "Disable", "(", ")", "self", ".", "Hide", "(", ")", "# show busyinfo", "wait", "=", "wx", ".", "BusyInfo", "(", "'Compiling required data, please wait...'", ")", "wx", ".", "SafeYield", "(", ")", "# create custom Thellier GUI closing event and bind it", "ThellierGuiExitEvent", ",", "EVT_THELLIER_GUI_EXIT", "=", "newevent", ".", "NewCommandEvent", "(", ")", "self", ".", "Bind", "(", "EVT_THELLIER_GUI_EXIT", ",", "self", ".", "on_analysis_gui_exit", ")", "# make and show the Thellier GUI frame", "thellier_gui_frame", "=", "thellier_gui", ".", "Arai_GUI", "(", "self", ".", "WD", ",", "self", ",", "standalone", "=", "False", ",", "DM", "=", "self", ".", "data_model_num", ",", "evt_quit", "=", "ThellierGuiExitEvent", ")", "if", "not", "thellier_gui_frame", ":", "print", "(", "\"Thellier GUI failed to start aborting\"", ")", "del", "wait", "return", "thellier_gui_frame", ".", "Centre", "(", ")", "thellier_gui_frame", ".", "Show", "(", ")", "del", "wait" ]
Open Thellier GUI
[ "Open", "Thellier", "GUI" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L441-L471
train
Open Thellier GUI
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1010 + 0o47) + chr(1817 - 1765) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + chr(0b110010) + '\x33' + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b1 + 0o61) + chr(2200 - 2148), 10296 - 10288), nzTpIcepk0o8('\x30' + chr(6290 - 6179) + '\062' + chr(49) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(8194 - 8083) + chr(0b110001) + chr(703 - 654) + chr(0b10110 + 0o40), 40620 - 40612), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x36' + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(2642 - 2531) + chr(0b100011 + 0o17) + chr(0b1011 + 0o53) + chr(51), 0o10), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b111001 + 0o66) + '\x33' + chr(843 - 793) + chr(0b11000 + 0o33), 60305 - 60297), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\x33' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(48) + chr(0b11010 + 0o34), 0b1000), nzTpIcepk0o8(chr(2065 - 2017) + chr(0b1101111) + chr(1652 - 1602) + chr(0b10011 + 0o40) + chr(243 - 194), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1157 - 1107) + chr(52) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(4956 - 4845) + chr(49) + chr(0b101010 + 0o15) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\157' + '\061' + chr(0b100100 + 0o16) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(3019 - 2964) + '\064', 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + chr(51) + chr(0b11000 + 0o31) + chr(54), 0o10), nzTpIcepk0o8(chr(2069 - 2021) + chr(8110 - 7999) + chr(0b1101 + 0o44) + chr(0b110000) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o36) + '\061' + '\x34', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1001 + 0o146) + chr(0b110011) + '\x32' + chr(0b110101 + 0o0), 21901 - 21893), nzTpIcepk0o8('\060' + chr(0b101110 + 0o101) + chr(1501 - 1450) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(6999 - 6888) + chr(51) + chr(1944 - 1890) + '\064', 27790 - 27782), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b110 + 0o61) + chr(0b101111 + 0o10), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b110110 + 0o71) + '\x33' + chr(0b11100 + 0o31), 10019 - 10011), nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + '\062' + chr(0b110001 + 0o6) + chr(0b1100 + 0o45), 0o10), nzTpIcepk0o8(chr(48) + chr(7268 - 7157) + chr(0b1110 + 0o45) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(53), 58935 - 58927), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(2136 - 2088) + chr(0b110011), 19499 - 19491), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\067' + chr(1361 - 1307), 32898 - 32890), nzTpIcepk0o8(chr(771 - 723) + chr(1063 - 952) + '\062' + '\x33' + chr(52), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100001 + 0o20) + chr(50) + '\x33', 28932 - 28924), nzTpIcepk0o8('\060' + chr(4151 - 4040) + '\x32' + chr(53) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10001 + 0o41) + '\061' + chr(1540 - 1491), 29232 - 29224), nzTpIcepk0o8('\x30' + chr(0b100001 + 0o116) + '\063' + chr(55) + chr(415 - 365), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\061' + chr(346 - 294) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(48) + chr(1837 - 1787), 41084 - 41076), nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + '\063' + chr(0b11110 + 0o30) + chr(1344 - 1293), 0o10), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(51) + chr(0b110001) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100000 + 0o23) + '\060' + chr(1994 - 1943), 0o10), nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + chr(0b110011) + chr(0b101101 + 0o4) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(334 - 283) + chr(0b110100) + chr(52), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1720 - 1672) + '\157' + '\x35' + chr(0b110000), 35502 - 35494)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'N'), '\144' + chr(0b1100101) + chr(0b10 + 0o141) + '\157' + chr(7820 - 7720) + '\145')(chr(11356 - 11239) + chr(116) + chr(4530 - 4428) + '\055' + chr(811 - 755)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def WlTPuKKywG3c(hXMPsSrOQzbh, D4ybylS07yGH): if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x03\xf7\xb1\xe9%o\xd5\xbc\xee\x99\xf4\xc5\x1a%#\xa8/\xa0\xb0'), chr(2954 - 2854) + chr(0b1001001 + 0o34) + '\143' + '\157' + chr(0b1100100) + chr(0b11000 + 0o115))('\x75' + chr(5277 - 5161) + '\146' + '\055' + '\070'))(): return if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x03\xf7\xb1\xe9%o\xd5\xbc\xee\x99\xec\xce\x189\x11\xac/\xa2\xb0\x7f\xab\x99t\xd5}^'), '\144' + chr(0b11110 + 0o107) + chr(99) + '\157' + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + '\055' + '\070'))(): return d9IYhOYAA219 = roI3spqORKae(ES5oEprVxulp(b'\x14\xf7\xb1\xe6"Y\xd6\xa1\xc3\xa1\xec\xc9U&\x05\xeek\x9b\x91;\xd1\x8c'), '\x64' + chr(1049 - 948) + '\143' + chr(0b1101111) + chr(5093 - 4993) + chr(101))('\165' + '\164' + '\x66' + chr(0b10110 + 0o27) + '\070') % hXMPsSrOQzbh.GP1zEShDyCxL v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'M\xd6\xf9\xaa<E\xdd\xbd\xf5\xa8\xfe\x80\x0b/\x08\xa6)\xa2\xf5h\x97\x8dt\xc9l\x17\x89^\xb9 '), chr(0b1100100) + '\x65' + '\x63' + chr(1494 - 1383) + chr(0b1100100) + '\145')('\165' + chr(116) + '\x66' + '\x2d' + chr(0b100010 + 0o26)) % d9IYhOYAA219) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xfe\xa0\xeb\x11]\xdc\xb7\xf9\xaa\xc6\xce\x0e;'), '\x64' + '\x65' + chr(5462 - 5363) + chr(111) + chr(4546 - 4446) + chr(7268 - 7167))(chr(0b1010000 + 0o45) + '\x74' + chr(102) + chr(209 - 164) + chr(56))) == 2.5: roI3spqORKae(WdlZ8hK0yZ2n, roI3spqORKae(ES5oEprVxulp(b'"\xc7\x9c\xd2\x06o\xe2\xb6\xd8\xf0\xeb\xec'), '\x64' + chr(9989 - 9888) + '\x63' + '\157' + chr(0b10010 + 0o122) + chr(101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b110101 + 0o3)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"'\xcf\xe5\xf0\x0bc\xdb\x97\xe5\x85\xe1\xec"), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1011100 + 0o11))('\x75' + '\164' + '\146' + chr(0b100 + 0o51) + '\070')), standalone_app=nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\060', 42126 - 42118), parent=hXMPsSrOQzbh, DM=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x04\xfe\xa0\xeb\x11]\xdc\xb7\xf9\xaa\xc6\xce\x0e;'), '\x64' + chr(0b111111 + 0o46) + chr(0b100 + 0o137) + chr(0b1101111) + chr(100) + chr(3345 - 3244))('\x75' + chr(517 - 401) + '\x66' + chr(0b101101) + '\x38'))) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'$\xf6\xa7\xeb,\\\xd6'), '\144' + chr(235 - 134) + chr(0b1100011) + chr(0b1101111) + chr(4253 - 4153) + '\145')(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(3064 - 3008)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'(\xf6\xb0\xef'), chr(0b1100100) + chr(0b101000 + 0o75) + '\143' + chr(0b11100 + 0o123) + chr(100) + chr(101))(chr(0b1100011 + 0o22) + '\164' + chr(0b1011000 + 0o16) + chr(389 - 344) + chr(56)))() VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b"#\xf0\xb9\xfa'\\\xda\xbd\xfb\xe6\xeb\xc5\n#\x15\xbc#\xa8\xf5\x7f\x95\x8b|\x958]\xef\x1b\xfd \xca\xa9\x8d\x00+\x87\xe4\xed\xe7"), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(11758 - 11641) + '\x74' + '\x66' + '\x2d' + '\x38')) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'3\xfe\xb2\xef\x17Y\xd6\xbf\xf8'), '\144' + chr(6678 - 6577) + chr(4847 - 4748) + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(192 - 147) + chr(56)))() (a1l3r2DKzDPg, t2XBxmtJAW90) = ybXkm4mcvc7b.NewCommandEvent() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'"\xf6\xba\xee'), '\144' + '\145' + '\x63' + '\x6f' + chr(100) + '\145')(chr(117) + chr(1416 - 1300) + '\x66' + '\x2d' + '\070'))(t2XBxmtJAW90, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0f\xf1\x8b\xeb Q\xdf\xaa\xef\xaf\xea\xff\x1c#\x15\x91#\xb4\xbco'), chr(100) + chr(0b111000 + 0o55) + chr(0b1100011) + chr(111) + chr(100) + chr(0b111001 + 0o54))('\165' + chr(116) + chr(6123 - 6021) + '\055' + chr(0b111000)))) bpvPmZ2dU5x0 = WdlZ8hK0yZ2n.Arai_GUI(hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh, standalone=nzTpIcepk0o8('\x30' + chr(111) + chr(0b101001 + 0o7), 8), DM=hXMPsSrOQzbh.data_model_num, evt_quit=a1l3r2DKzDPg) if not bpvPmZ2dU5x0: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'4\xf7\xb1\xe6"Y\xd6\xa1\xbc\x81\xcc\xe9[0\x1d\xa7*\xa9\xb1;\x80\x90=\xcalL\xf1\n\xbc2\xcd\xe6\x88\x15+\x9d\xad'), chr(5754 - 5654) + chr(7671 - 7570) + '\143' + '\157' + '\144' + chr(101))(chr(0b1011110 + 0o27) + chr(0b1000111 + 0o55) + chr(6799 - 6697) + chr(1711 - 1666) + '\070')) del VBnaM0jy14aO return roI3spqORKae(bpvPmZ2dU5x0, roI3spqORKae(ES5oEprVxulp(b'#\xfa\xba\xfe<U'), chr(100) + chr(7191 - 7090) + chr(0b111 + 0o134) + chr(0b1101111) + chr(0b1100100) + chr(5442 - 5341))(chr(0b1110101) + chr(12754 - 12638) + chr(9071 - 8969) + '\055' + chr(0b100100 + 0o24)))() roI3spqORKae(bpvPmZ2dU5x0, roI3spqORKae(ES5oEprVxulp(b'3\xf7\xbb\xfd'), chr(0b11100 + 0o110) + chr(101) + '\x63' + chr(0b1101111) + chr(8228 - 8128) + chr(0b1100101))(chr(0b100101 + 0o120) + chr(12706 - 12590) + '\x66' + chr(0b101010 + 0o3) + '\x38'))() del VBnaM0jy14aO
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_demag_gui
def on_btn_demag_gui(self, event): """ Open Demag GUI """ if not self.check_for_meas_file(): return if not self.check_for_uncombined_files(): return outstring = "demag_gui.py -WD %s"%self.WD print("-I- running python script:\n %s"%(outstring)) if self.data_model_num == 2: demag_gui.start(self.WD, standalone_app=False, parent=self, DM=self.data_model_num) else: # disable and hide Pmag GUI mainframe self.Disable() self.Hide() # show busyinfo wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() # create custom Demag GUI closing event and bind it DemagGuiExitEvent, EVT_DEMAG_GUI_EXIT = newevent.NewCommandEvent() self.Bind(EVT_DEMAG_GUI_EXIT, self.on_analysis_gui_exit) # make and show the Demag GUI frame demag_gui_frame = demag_gui.Demag_GUI(self.WD, self, write_to_log_file=False, data_model=self.data_model_num, evt_quit=DemagGuiExitEvent) demag_gui_frame.Centre() demag_gui_frame.Show() del wait
python
def on_btn_demag_gui(self, event): """ Open Demag GUI """ if not self.check_for_meas_file(): return if not self.check_for_uncombined_files(): return outstring = "demag_gui.py -WD %s"%self.WD print("-I- running python script:\n %s"%(outstring)) if self.data_model_num == 2: demag_gui.start(self.WD, standalone_app=False, parent=self, DM=self.data_model_num) else: # disable and hide Pmag GUI mainframe self.Disable() self.Hide() # show busyinfo wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() # create custom Demag GUI closing event and bind it DemagGuiExitEvent, EVT_DEMAG_GUI_EXIT = newevent.NewCommandEvent() self.Bind(EVT_DEMAG_GUI_EXIT, self.on_analysis_gui_exit) # make and show the Demag GUI frame demag_gui_frame = demag_gui.Demag_GUI(self.WD, self, write_to_log_file=False, data_model=self.data_model_num, evt_quit=DemagGuiExitEvent) demag_gui_frame.Centre() demag_gui_frame.Show() del wait
[ "def", "on_btn_demag_gui", "(", "self", ",", "event", ")", ":", "if", "not", "self", ".", "check_for_meas_file", "(", ")", ":", "return", "if", "not", "self", ".", "check_for_uncombined_files", "(", ")", ":", "return", "outstring", "=", "\"demag_gui.py -WD %s\"", "%", "self", ".", "WD", "print", "(", "\"-I- running python script:\\n %s\"", "%", "(", "outstring", ")", ")", "if", "self", ".", "data_model_num", "==", "2", ":", "demag_gui", ".", "start", "(", "self", ".", "WD", ",", "standalone_app", "=", "False", ",", "parent", "=", "self", ",", "DM", "=", "self", ".", "data_model_num", ")", "else", ":", "# disable and hide Pmag GUI mainframe", "self", ".", "Disable", "(", ")", "self", ".", "Hide", "(", ")", "# show busyinfo", "wait", "=", "wx", ".", "BusyInfo", "(", "'Compiling required data, please wait...'", ")", "wx", ".", "SafeYield", "(", ")", "# create custom Demag GUI closing event and bind it", "DemagGuiExitEvent", ",", "EVT_DEMAG_GUI_EXIT", "=", "newevent", ".", "NewCommandEvent", "(", ")", "self", ".", "Bind", "(", "EVT_DEMAG_GUI_EXIT", ",", "self", ".", "on_analysis_gui_exit", ")", "# make and show the Demag GUI frame", "demag_gui_frame", "=", "demag_gui", ".", "Demag_GUI", "(", "self", ".", "WD", ",", "self", ",", "write_to_log_file", "=", "False", ",", "data_model", "=", "self", ".", "data_model_num", ",", "evt_quit", "=", "DemagGuiExitEvent", ")", "demag_gui_frame", ".", "Centre", "(", ")", "demag_gui_frame", ".", "Show", "(", ")", "del", "wait" ]
Open Demag GUI
[ "Open", "Demag", "GUI" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L474-L504
train
Open Demag GUI
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + chr(0b1010 + 0o50) + chr(0b100111 + 0o13) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(49) + chr(0b10111 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(0b1110 + 0o44) + '\x36' + chr(0b11011 + 0o32), 0b1000), nzTpIcepk0o8('\x30' + chr(0b11100 + 0o123) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\067' + chr(0b111 + 0o56), 22154 - 22146), nzTpIcepk0o8(chr(622 - 574) + chr(0b11001 + 0o126) + chr(0b11 + 0o61), 24690 - 24682), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100001 + 0o22) + chr(1845 - 1794) + '\060', 0b1000), nzTpIcepk0o8(chr(1224 - 1176) + chr(0b101001 + 0o106) + chr(51) + chr(0b11000 + 0o31) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(853 - 801) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1101 + 0o47), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(759 - 710) + '\x34' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(811 - 761) + '\x33' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(2138 - 2084) + '\x35', 38751 - 38743), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(5202 - 5091) + chr(50) + chr(1484 - 1430) + chr(0b10 + 0o60), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(93 - 45) + chr(4223 - 4112) + chr(0b110010) + chr(1030 - 978) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x31' + chr(1066 - 1016), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(327 - 273) + chr(570 - 519), 0o10), nzTpIcepk0o8(chr(284 - 236) + chr(111) + chr(0b100100 + 0o17) + chr(550 - 497), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110111) + '\063', 12900 - 12892), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101111 + 0o4) + '\x31', 0o10), nzTpIcepk0o8(chr(172 - 124) + '\157' + chr(231 - 182) + chr(891 - 842) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\x31' + '\067' + '\067', 0b1000), nzTpIcepk0o8(chr(399 - 351) + '\157' + '\x33' + '\063' + '\x36', 12256 - 12248), nzTpIcepk0o8(chr(0b110000) + chr(3643 - 3532) + chr(55) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(1822 - 1711) + '\061' + chr(587 - 532) + '\062', 23655 - 23647), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x35' + '\063', 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(978 - 867) + '\063' + chr(1518 - 1465) + chr(0b10010 + 0o43), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b11011 + 0o33) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(0b110011) + chr(899 - 844) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + '\067' + '\065', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + '\062' + chr(0b100010 + 0o20) + chr(2167 - 2117), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(2137 - 2085) + chr(0b110011), 54495 - 54487), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101110 + 0o4) + chr(898 - 844) + chr(306 - 255), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1721 - 1672) + chr(1984 - 1936) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100110 + 0o13) + '\x30' + chr(1353 - 1304), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + chr(0b110010 + 0o0) + chr(1559 - 1510) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + chr(55) + chr(52), 13966 - 13958), nzTpIcepk0o8('\x30' + chr(111) + chr(2034 - 1984) + chr(0b110000) + '\x34', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(10971 - 10860) + '\x35' + '\060', 25698 - 25690)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xba'), '\144' + chr(101) + chr(99) + chr(0b110 + 0o151) + chr(100) + chr(0b1100101))(chr(13455 - 13338) + '\x74' + chr(102) + chr(0b10 + 0o53) + chr(2957 - 2901)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def saKTfXyvLvRl(hXMPsSrOQzbh, D4ybylS07yGH): if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf7\xe0\xd0e\xd6[\xbe\xa4W[\t\xfeT\xc1V\xc4\xe3y\xd6'), '\x64' + chr(0b110001 + 0o64) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(0b1101010 + 0o13) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)))(): return if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xf7\xe0\xd0e\xd6[\xbe\xa4W[\x11\xf5V\xddd\xc0\xe3{\xd6y\xa4\x7f'\x13\xbbL"), '\x64' + '\x65' + '\143' + '\x6f' + chr(100) + '\145')(chr(0b1110101) + '\164' + '\146' + '\055' + chr(0b111000)))(): return d9IYhOYAA219 = roI3spqORKae(ES5oEprVxulp(b'\xf0\xed\xd8g\xda[\xbf\xbeL*\x14\xe2\x15\x9f^\xe6\xaa0\xc0'), chr(0b100110 + 0o76) + chr(0b1100101) + '\x63' + chr(0b10001 + 0o136) + chr(100) + '\x65')('\x75' + '\x74' + chr(3598 - 3496) + chr(45) + chr(0b111000)) % hXMPsSrOQzbh.GP1zEShDyCxL v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xb9\xc1\x98&\xcfq\xb6\xa5Lj\x03\xbbE\xcb}\xca\xe5{\x93n\x98k'\x0f\xaa\x05pK\xc8\x86"), chr(0b1100100) + '\145' + '\143' + '\157' + chr(9938 - 9838) + chr(0b1001111 + 0o26))(chr(6460 - 6343) + chr(0b1010011 + 0o41) + '\146' + chr(1241 - 1196) + chr(1750 - 1694)) % d9IYhOYAA219) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\xe9\xc1g\xe2i\xb7\xaf@h;\xf5@\xdf'), chr(0b1100100) + chr(0b1010011 + 0o22) + chr(0b1100011) + chr(0b1101111) + chr(0b1010110 + 0o16) + chr(3242 - 3141))('\165' + chr(0b1011001 + 0o33) + chr(102) + chr(0b101101) + chr(56))) == nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o34), 0b1000): roI3spqORKae(rU_ImVf8h7yQ, roI3spqORKae(ES5oEprVxulp(b'\xdf\xd9\xd7N\xfbP\xbb\xa7zH/\xe2'), '\x64' + chr(101) + '\143' + '\157' + chr(1960 - 1860) + '\145')(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(0b1001 + 0o57)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd3\xd8\x84|\xf8W\xb0\x8f\\G\x1c\xd7'), '\x64' + chr(0b1010 + 0o133) + chr(383 - 284) + chr(11716 - 11605) + chr(0b1001101 + 0o27) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(0b10011 + 0o45))), standalone_app=nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\060', 0o10), parent=hXMPsSrOQzbh, DM=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf0\xe9\xc1g\xe2i\xb7\xaf@h;\xf5@\xdf'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(2740 - 2640) + chr(0b1100010 + 0o3))(chr(304 - 187) + chr(9123 - 9007) + '\x66' + '\x2d' + '\x38'))) else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xe1\xc6g\xdfh\xbd'), chr(0b101 + 0o137) + '\145' + chr(99) + '\157' + chr(0b1100100) + '\x65')('\165' + chr(0b101010 + 0o112) + '\x66' + chr(0b1100 + 0o41) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdc\xe1\xd1c'), '\144' + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1100101 + 0o20) + chr(9867 - 9751) + chr(0b1101 + 0o131) + chr(45) + chr(0b110001 + 0o7)))() VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xd7\xe7\xd8v\xd4h\xb1\xa5B$\x16\xfeD\xc7`\xd0\xefq\x93y\x9am/S\xfeO\x16\x0e\x8c\x86\x9f\xdd\xe5\x82\xda1o\xa2\xd2'), chr(100) + chr(101) + chr(99) + '\157' + '\144' + '\x65')(chr(117) + '\x74' + chr(1990 - 1888) + chr(45) + '\070')) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xc7\xe9\xd3c\xe4m\xbd\xa7A'), '\x64' + '\x65' + chr(482 - 383) + '\157' + chr(0b1011110 + 0o6) + '\145')(chr(0b1011 + 0o152) + chr(7505 - 7389) + chr(102) + chr(1609 - 1564) + '\x38'))() (TUJz4In6cBQN, hwK813Ov61Gc) = ybXkm4mcvc7b.NewCommandEvent() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd6\xe1\xdbb'), '\x64' + '\x65' + '\x63' + chr(0b101110 + 0o101) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\070'))(hwK813Ov61Gc, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfb\xe6\xeag\xd3e\xb4\xb2Vm\x17\xc4R\xc7`\xfd\xefm\xdai'), chr(0b11001 + 0o113) + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\x75' + '\x74' + chr(102) + chr(0b11000 + 0o25) + chr(972 - 916)))) FjyBLGqDVoin = rU_ImVf8h7yQ.Demag_GUI(hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh, write_to_log_file=nzTpIcepk0o8(chr(0b110000) + chr(7085 - 6974) + chr(0b110000), 8), data_model=hXMPsSrOQzbh.data_model_num, evt_quit=TUJz4In6cBQN) roI3spqORKae(FjyBLGqDVoin, roI3spqORKae(ES5oEprVxulp(b'\xd7\xed\xdbr\xcfa'), chr(4727 - 4627) + '\145' + chr(0b1100011) + chr(5648 - 5537) + '\144' + '\x65')('\165' + chr(116) + '\146' + chr(45) + chr(0b111000)))() roI3spqORKae(FjyBLGqDVoin, roI3spqORKae(ES5oEprVxulp(b'\xc7\xe0\xdaq'), '\x64' + chr(6646 - 6545) + '\143' + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(1354 - 1298)))() del VBnaM0jy14aO
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_convert_3
def on_btn_convert_3(self, event): """ Open dialog for rough conversion of 2.5 files to 3.0 files. Offer link to earthref for proper upgrade. """ dia = pw.UpgradeDialog(None) dia.Center() res = dia.ShowModal() if res == wx.ID_CANCEL: webbrowser.open("https://www2.earthref.org/MagIC/upgrade", new=2) return ## more nicely styled way, but doesn't link to earthref #msg = "This tool is meant for relatively simple upgrades (for instance, a measurement file, a sample file, and a criteria file).\nIf you have a more complex contribution to upgrade, and you want maximum accuracy, use the upgrade tool at https://www2.earthref.org/MagIC/upgrade.\n\nDo you want to continue?" #result = pw.warning_with_override(msg) #if result == wx.ID_NO: #webbrowser.open("https://www2.earthref.org/MagIC/upgrade", new=2) #return # turn files from 2.5 --> 3.0 (rough translation) meas, upgraded, no_upgrade = pmag.convert_directory_2_to_3('magic_measurements.txt', input_dir=self.WD, output_dir=self.WD, data_model=self.contribution.data_model) if not meas: wx.MessageBox('2.5 --> 3.0 failed. Do you have a magic_measurements.txt file in your working directory?', 'Info', wx.OK | wx.ICON_INFORMATION) return # create a contribution self.contribution = cb.Contribution(self.WD) # make skeleton files with specimen, sample, site, location data self.contribution.propagate_measurement_info() # pop up upgraded_string = ", ".join(upgraded) if no_upgrade: no_upgrade_string = ", ".join(no_upgrade) msg = '2.5 --> 3.0 translation completed!\n\nThese 3.0 format files were created: {}.\n\nHowever, these 2.5 format files could not be upgraded: {}.\n\nTo convert all 2.5 files, use the MagIC upgrade tool: https://www2.earthref.org/MagIC/upgrade\n'.format(upgraded_string, no_upgrade_string) if 'criteria.txt' in upgraded: msg += '\nNote: Please check your criteria file for completeness and accuracy, as not all 2.5 files will be fully upgraded.' if 'pmag_criteria.txt' in no_upgrade: msg += '\nNote: Not all criteria files can be upgraded, even on the MagIC site. You may need to recreate an old pmag_criteria file from scratch in Thellier GUI or Demag GUI.' wx.MessageBox(msg, 'Warning', wx.OK | wx.ICON_INFORMATION) else: msg = '2.5 --> 3.0 translation completed!\nThese files were converted: {}'.format(upgraded_string) wx.MessageBox(msg, 'Info', wx.OK | wx.ICON_INFORMATION)
python
def on_btn_convert_3(self, event): """ Open dialog for rough conversion of 2.5 files to 3.0 files. Offer link to earthref for proper upgrade. """ dia = pw.UpgradeDialog(None) dia.Center() res = dia.ShowModal() if res == wx.ID_CANCEL: webbrowser.open("https://www2.earthref.org/MagIC/upgrade", new=2) return ## more nicely styled way, but doesn't link to earthref #msg = "This tool is meant for relatively simple upgrades (for instance, a measurement file, a sample file, and a criteria file).\nIf you have a more complex contribution to upgrade, and you want maximum accuracy, use the upgrade tool at https://www2.earthref.org/MagIC/upgrade.\n\nDo you want to continue?" #result = pw.warning_with_override(msg) #if result == wx.ID_NO: #webbrowser.open("https://www2.earthref.org/MagIC/upgrade", new=2) #return # turn files from 2.5 --> 3.0 (rough translation) meas, upgraded, no_upgrade = pmag.convert_directory_2_to_3('magic_measurements.txt', input_dir=self.WD, output_dir=self.WD, data_model=self.contribution.data_model) if not meas: wx.MessageBox('2.5 --> 3.0 failed. Do you have a magic_measurements.txt file in your working directory?', 'Info', wx.OK | wx.ICON_INFORMATION) return # create a contribution self.contribution = cb.Contribution(self.WD) # make skeleton files with specimen, sample, site, location data self.contribution.propagate_measurement_info() # pop up upgraded_string = ", ".join(upgraded) if no_upgrade: no_upgrade_string = ", ".join(no_upgrade) msg = '2.5 --> 3.0 translation completed!\n\nThese 3.0 format files were created: {}.\n\nHowever, these 2.5 format files could not be upgraded: {}.\n\nTo convert all 2.5 files, use the MagIC upgrade tool: https://www2.earthref.org/MagIC/upgrade\n'.format(upgraded_string, no_upgrade_string) if 'criteria.txt' in upgraded: msg += '\nNote: Please check your criteria file for completeness and accuracy, as not all 2.5 files will be fully upgraded.' if 'pmag_criteria.txt' in no_upgrade: msg += '\nNote: Not all criteria files can be upgraded, even on the MagIC site. You may need to recreate an old pmag_criteria file from scratch in Thellier GUI or Demag GUI.' wx.MessageBox(msg, 'Warning', wx.OK | wx.ICON_INFORMATION) else: msg = '2.5 --> 3.0 translation completed!\nThese files were converted: {}'.format(upgraded_string) wx.MessageBox(msg, 'Info', wx.OK | wx.ICON_INFORMATION)
[ "def", "on_btn_convert_3", "(", "self", ",", "event", ")", ":", "dia", "=", "pw", ".", "UpgradeDialog", "(", "None", ")", "dia", ".", "Center", "(", ")", "res", "=", "dia", ".", "ShowModal", "(", ")", "if", "res", "==", "wx", ".", "ID_CANCEL", ":", "webbrowser", ".", "open", "(", "\"https://www2.earthref.org/MagIC/upgrade\"", ",", "new", "=", "2", ")", "return", "## more nicely styled way, but doesn't link to earthref", "#msg = \"This tool is meant for relatively simple upgrades (for instance, a measurement file, a sample file, and a criteria file).\\nIf you have a more complex contribution to upgrade, and you want maximum accuracy, use the upgrade tool at https://www2.earthref.org/MagIC/upgrade.\\n\\nDo you want to continue?\"", "#result = pw.warning_with_override(msg)", "#if result == wx.ID_NO:", "#webbrowser.open(\"https://www2.earthref.org/MagIC/upgrade\", new=2)", "#return", "# turn files from 2.5 --> 3.0 (rough translation)", "meas", ",", "upgraded", ",", "no_upgrade", "=", "pmag", ".", "convert_directory_2_to_3", "(", "'magic_measurements.txt'", ",", "input_dir", "=", "self", ".", "WD", ",", "output_dir", "=", "self", ".", "WD", ",", "data_model", "=", "self", ".", "contribution", ".", "data_model", ")", "if", "not", "meas", ":", "wx", ".", "MessageBox", "(", "'2.5 --> 3.0 failed. Do you have a magic_measurements.txt file in your working directory?'", ",", "'Info'", ",", "wx", ".", "OK", "|", "wx", ".", "ICON_INFORMATION", ")", "return", "# create a contribution", "self", ".", "contribution", "=", "cb", ".", "Contribution", "(", "self", ".", "WD", ")", "# make skeleton files with specimen, sample, site, location data", "self", ".", "contribution", ".", "propagate_measurement_info", "(", ")", "# pop up", "upgraded_string", "=", "\", \"", ".", "join", "(", "upgraded", ")", "if", "no_upgrade", ":", "no_upgrade_string", "=", "\", \"", ".", "join", "(", "no_upgrade", ")", "msg", "=", "'2.5 --> 3.0 translation completed!\\n\\nThese 3.0 format files were created: {}.\\n\\nHowever, these 2.5 format files could not be upgraded: {}.\\n\\nTo convert all 2.5 files, use the MagIC upgrade tool: https://www2.earthref.org/MagIC/upgrade\\n'", ".", "format", "(", "upgraded_string", ",", "no_upgrade_string", ")", "if", "'criteria.txt'", "in", "upgraded", ":", "msg", "+=", "'\\nNote: Please check your criteria file for completeness and accuracy, as not all 2.5 files will be fully upgraded.'", "if", "'pmag_criteria.txt'", "in", "no_upgrade", ":", "msg", "+=", "'\\nNote: Not all criteria files can be upgraded, even on the MagIC site. You may need to recreate an old pmag_criteria file from scratch in Thellier GUI or Demag GUI.'", "wx", ".", "MessageBox", "(", "msg", ",", "'Warning'", ",", "wx", ".", "OK", "|", "wx", ".", "ICON_INFORMATION", ")", "else", ":", "msg", "=", "'2.5 --> 3.0 translation completed!\\nThese files were converted: {}'", ".", "format", "(", "upgraded_string", ")", "wx", ".", "MessageBox", "(", "msg", ",", "'Info'", ",", "wx", ".", "OK", "|", "wx", ".", "ICON_INFORMATION", ")" ]
Open dialog for rough conversion of 2.5 files to 3.0 files. Offer link to earthref for proper upgrade.
[ "Open", "dialog", "for", "rough", "conversion", "of", "2", ".", "5", "files", "to", "3", ".", "0", "files", ".", "Offer", "link", "to", "earthref", "for", "proper", "upgrade", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L528-L571
train
This function is called when the user clicks on 2. 5 and 3. 0 files.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110001) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b10000 + 0o137) + chr(1992 - 1941) + '\x35' + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010100 + 0o33) + '\061' + chr(979 - 931) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(1310 - 1258) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110110) + chr(0b10110 + 0o32), ord("\x08")), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(51) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11000 + 0o32) + '\065' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + chr(2496 - 2443), 0b1000), nzTpIcepk0o8(chr(1980 - 1932) + '\x6f' + chr(51) + '\067' + chr(49), 52238 - 52230), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + '\x33' + chr(53) + '\x34', 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + '\063' + chr(49) + chr(1188 - 1133), 0b1000), nzTpIcepk0o8(chr(53 - 5) + chr(111) + chr(1812 - 1762) + chr(0b110001) + '\064', 0b1000), nzTpIcepk0o8(chr(99 - 51) + '\157' + '\063' + '\x33' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\065' + chr(0b1010 + 0o54), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110110) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(55) + chr(1628 - 1573), 0o10), nzTpIcepk0o8(chr(1036 - 988) + '\x6f' + '\066' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\063' + chr(1928 - 1876), 0o10), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\157' + chr(752 - 701), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b101011 + 0o11) + chr(0b110011 + 0o0), 65206 - 65198), nzTpIcepk0o8(chr(48) + chr(6890 - 6779) + chr(636 - 587) + chr(53), 52979 - 52971), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + chr(0b100100 + 0o22) + chr(52), 8), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(0b110011) + chr(0b10011 + 0o37) + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1617 - 1567) + chr(0b110011) + '\x30', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(2386 - 2337) + '\061' + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(1802 - 1691) + chr(537 - 487) + chr(48) + '\067', 49035 - 49027), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\063' + '\066', 0b1000), nzTpIcepk0o8(chr(48 - 0) + chr(111) + chr(0b0 + 0o62) + chr(53) + chr(0b101101 + 0o10), 0o10), nzTpIcepk0o8(chr(1706 - 1658) + chr(0b11100 + 0o123) + chr(0b10011 + 0o40) + '\064' + chr(1599 - 1549), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b10011 + 0o44) + chr(0b100000 + 0o22), 5236 - 5228), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + chr(1448 - 1399) + chr(1493 - 1439) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + '\x37' + chr(1312 - 1263), 18300 - 18292), nzTpIcepk0o8('\x30' + '\157' + chr(601 - 551) + chr(0b110010) + chr(0b110110), 23560 - 23552), nzTpIcepk0o8('\x30' + chr(111) + '\066' + chr(2667 - 2612), 8), nzTpIcepk0o8(chr(852 - 804) + chr(111) + chr(0b110010) + chr(50) + chr(50), 0b1000), nzTpIcepk0o8(chr(975 - 927) + chr(0b1101111) + chr(637 - 588) + chr(1880 - 1827), 8), nzTpIcepk0o8(chr(1052 - 1004) + '\157' + chr(0b110010) + chr(0b110101) + '\061', 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + '\063' + '\066' + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\067' + '\x34', 0b1000), nzTpIcepk0o8(chr(1974 - 1926) + '\157' + '\x32' + chr(0b110101) + chr(830 - 782), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(911 - 858) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe6'), chr(0b1000110 + 0o36) + chr(101) + chr(649 - 550) + '\x6f' + '\x64' + chr(3468 - 3367))(chr(117) + chr(0b1011110 + 0o26) + '\x66' + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def MnTAfG9_xpSR(hXMPsSrOQzbh, D4ybylS07yGH): k1471SZ1ik69 = saCGFe0zE73j.UpgradeDialog(None) roI3spqORKae(k1471SZ1ik69, roI3spqORKae(ES5oEprVxulp(b'\x8b\x8f*\x12\x15n'), chr(0b1100100) + chr(101) + chr(0b100010 + 0o101) + '\157' + chr(1253 - 1153) + chr(9427 - 9326))(chr(11136 - 11019) + '\x74' + chr(2307 - 2205) + chr(45) + chr(56)))() _XdQFJpnzJor = k1471SZ1ik69.ShowModal() if _XdQFJpnzJor == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x81\xae\x1b%1R\xeah\xb5'), chr(0b1100100) + chr(8071 - 7970) + chr(0b111011 + 0o50) + chr(5947 - 5836) + '\x64' + chr(101))(chr(0b11010 + 0o133) + chr(116) + chr(102) + chr(0b101101) + chr(1309 - 1253))): roI3spqORKae(_mHnphVnZM5k, roI3spqORKae(ES5oEprVxulp(b'\x8c\x84\x11U"m\x90c\xcc\x8d\xa3\xed'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(2414 - 2297) + '\x74' + chr(102) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xa0\x9e0\x16\x03&\x86\x02\x8e\x9b\xb8\xbe\xf0\xcbV\x8d@\xb4q\x86k\x1a\xbf\xea,\xa8\x13\xcc\x85\xb31\x16\xe3G\xf5\x7f\xc8\x97Y'), chr(100) + chr(6426 - 6325) + '\x63' + chr(11277 - 11166) + chr(100) + '\145')(chr(0b1011011 + 0o32) + chr(2608 - 2492) + chr(0b1100110) + '\x2d' + chr(591 - 535)), new=nzTpIcepk0o8(chr(0b110000) + chr(5771 - 5660) + '\x32', 0b1000)) return (Vh066qIY8Yn1, Syuh8VvHwZ49, iQeY6fag2WqK) = hUcsWwAd0nE_.convert_directory_2_to_3(roI3spqORKae(ES5oEprVxulp(b'\xa5\x8b#\x0f\x13C\xc4H\x98\x9f\xba\xfe\xbb\xc3R\x91@\xaf-\x97u@'), chr(0b10111 + 0o115) + chr(101) + chr(5221 - 5122) + chr(111) + '\x64' + chr(0b110010 + 0o63))('\165' + '\164' + chr(0b1100110) + chr(45) + chr(2854 - 2798)), input_dir=hXMPsSrOQzbh.GP1zEShDyCxL, output_dir=hXMPsSrOQzbh.GP1zEShDyCxL, data_model=hXMPsSrOQzbh.contribution.data_model) if not Vh066qIY8Yn1: roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x85\x8f7\x15\x11{\xcco\x96\x94'), '\x64' + '\x65' + chr(6913 - 6814) + chr(0b1000110 + 0o51) + chr(0b100 + 0o140) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + '\055' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b"\xfa\xc4qF]1\x97\r\xca\xc2\xff\xac\xb8\xcf^\x93Q\xb8-\xc3I[\xf0\xe1$\xf2~\xc5\x83\x8c\x17\x19\xf7\x17\xffl\xce\x9a_\xf7\xa5\x8f%\x15\x05n\xcc@\x9c\x82\xbb\xff\xf0\xdaO\x8b\x14\xbaj\x8fh\x14\xb9\xf6k\xfe1\xd8\x90\xda\x05V\xe4\\\xfbc\xce\xd3X\xc1\xba\x8f'\x12\x1fn\xd0\x12"), '\144' + '\145' + '\x63' + chr(0b1101011 + 0o4) + chr(100) + chr(0b1100101))(chr(1340 - 1223) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x81\x84"\t'), chr(5990 - 5890) + chr(0b10100 + 0o121) + chr(0b100101 + 0o76) + chr(0b110010 + 0o75) + '\x64' + '\145')(chr(0b1100111 + 0o16) + '\x74' + chr(1784 - 1682) + '\x2d' + '\x38'), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x87\xa1'), '\144' + '\x65' + chr(99) + chr(11871 - 11760) + '\x64' + chr(0b1100101))('\x75' + chr(5917 - 5801) + chr(102) + chr(0b100101 + 0o10) + chr(0b111000))) | roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x81\xa9\x0b(/U\xe7k\xb6\xbe\x82\xcd\x8a\xe7x\xb1'), '\x64' + '\x65' + chr(99) + chr(111) + chr(0b1100100) + '\x65')('\165' + chr(0b1101010 + 0o12) + chr(0b1000111 + 0o37) + '\x2d' + chr(0b111000)))) return hXMPsSrOQzbh.bSiGoWKHgDdJ = RYEhqzIVZREo.Contribution(hXMPsSrOQzbh.GP1zEShDyCxL) roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xb8\x98+\x16\x11{\xc8Y\x9c\xb3\xa2\xe9\xbf\xddB\x8dQ\xb1f\x8dyk\xb9\xf6-\xe8'), chr(8611 - 8511) + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b11001 + 0o114))('\165' + chr(0b111100 + 0o70) + '\146' + chr(1268 - 1223) + '\x38'))() GIYtQnVko8Lc = roI3spqORKae(ES5oEprVxulp(b'\xe4\xca'), chr(0b1100100) + chr(10138 - 10037) + chr(99) + chr(0b1001010 + 0o45) + '\x64' + chr(101))('\165' + chr(8428 - 8312) + chr(102) + '\x2d' + chr(0b111000)).Y4yM9BcfTCNq(Syuh8VvHwZ49) if iQeY6fag2WqK: mRV_WeK3e0xd = roI3spqORKae(ES5oEprVxulp(b'\xe4\xca'), '\144' + chr(101) + chr(0b1100011) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + chr(0b1010001 + 0o43) + '\x66' + '\x2d' + chr(0b101011 + 0o15)).Y4yM9BcfTCNq(iQeY6fag2WqK) sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xfa\xc4qF]1\x97\r\xca\xc2\xff\xac\xaa\xdcV\x91G\xb0b\x97d[\xbe\xb8(\xe83\xdd\x8e\x9f\x06\\\xf2\x16\x98\x07\xfd\x9bY\xdb\xad\xcawH@<\xcfB\x8b\x81\xae\xf8\xfe\xc8^\x93Q\xaf#\x94hF\xb5\xb8(\xf5;\xcc\x96\x9f\x16\x03\xb6L\xef#\xa3\xf9t\xc7\xbf\x8f2\x03\x020\x89Y\x91\x89\xbc\xe9\xfe\x9c\x19\xca\x14\xbal\x91`U\xa4\xb8-\xee2\xc8\x91\xda\x11V\xe3[\xf6-\xc7\x9cH\x88\xaa\x8fd\x13\x00{\xdbL\x9d\x89\xab\xb6\xfe\xd5J\xd1>\xd6W\x8c-W\xbf\xf6=\xe2,\xd9\xc2\x9b\x1eU\xb6\x05\xbc8\x89\x95U\xc4\xad\x99hF\x05o\xcc\r\x8d\x84\xaa\xac\x93\xcfP\xb6w\xfcv\x93jF\xb1\xfc.\xa7*\xc2\x8d\x96H\x19\xfeC\xe6}\xda\xc9\x13\x87\xbf\x9d3T^y\xc8_\x8d\x84\xbd\xe9\xb8\x80X\x8dS\xf3N\x82j}\x93\xb7>\xf79\xdf\x83\x9e\x173'), '\x64' + '\145' + '\143' + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(509 - 407) + chr(0b101101) + chr(56)).q33KG3foQ_CJ(GIYtQnVko8Lc, mRV_WeK3e0xd) if roI3spqORKae(ES5oEprVxulp(b'\xab\x98-\x12\x15n\xc0L\xd7\x98\xb7\xf8'), '\144' + chr(0b1010 + 0o133) + '\x63' + chr(0b1101111) + chr(100) + '\145')('\165' + chr(0b10111 + 0o135) + '\146' + chr(45) + chr(0b111000)) in Syuh8VvHwZ49: sldzbHve8G1S += roI3spqORKae(ES5oEprVxulp(b'\xc2\xa4+\x12\x15&\x89}\x95\x89\xae\xff\xbb\x8eT\x97Q\xbfh\xc3t[\xa5\xeak\xe4,\xc4\x96\x9f\x00P\xf7\x17\xf4d\xc5\x96\x1c\xce\xa7\x98d\x05\x1fq\xd9A\x9c\x98\xaa\xe2\xbb\xddD\xdfU\xb2g\xc3lW\xb3\xed9\xe6=\xd4\xce\xda\x13J\xb6Y\xfdy\x89\x92P\xc4\xe8\xd8jSPz\xc0A\x9c\x9f\xef\xfb\xb7\xc2[\xdfV\xb9#\x85xX\xbc\xe1k\xf2.\xca\x90\x9b\x16\\\xf2\x19'), chr(0b101010 + 0o72) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101 + 0o0) + chr(0b1110100) + '\146' + chr(45) + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'\xb8\x87%\x01/\x7f\xdbD\x8d\x89\xbd\xe5\xbf\x80C\x87@'), '\x64' + chr(101) + chr(6940 - 6841) + '\157' + chr(100) + chr(0b1100101))(chr(771 - 654) + chr(116) + chr(0b11110 + 0o110) + chr(45) + chr(0b110111 + 0o1)) in iQeY6fag2WqK: sldzbHve8G1S += roI3spqORKae(ES5oEprVxulp(b'\xc2\xa4+\x12\x15&\x89c\x96\x98\xef\xed\xb2\xc2\x17\x9cF\xb5w\x86\x7f]\xb1\xb8-\xee2\xc8\x91\xda\x11X\xf8\x17\xf0h\x89\x86L\xcf\xba\x8b \x03\x140\x89H\x8f\x89\xa1\xac\xb1\xc0\x17\x8b\\\xb9#\xaelS\x99\xdbk\xf47\xd9\x87\xd4R\x19\xcfX\xe7-\xc4\x92E\x88\xa6\x8f!\x02Ph\xc6\r\x8b\x89\xac\xfe\xbb\xcfC\x9a\x14\xbdm\xc3bX\xb4\xb8;\xea?\xca\xbd\x99\x00P\xe2R\xe0d\xc8\xd3Z\xc1\xa4\x8fd\x00\x02s\xc4\r\x8a\x8f\xbd\xed\xaa\xcd_\xdf]\xb2#\xb7eQ\xbc\xf4"\xe2,\x8d\xa5\xaf;\x19\xf9E\xb2I\xcc\x9e]\xcf\xe8\xad\x11/^'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))('\165' + '\164' + chr(0b111001 + 0o55) + '\055' + '\070') roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x85\x8f7\x15\x11{\xcco\x96\x94'), '\144' + '\145' + '\143' + '\157' + chr(0b101010 + 0o72) + '\145')(chr(4590 - 4473) + '\164' + chr(102) + chr(911 - 866) + chr(0b11010 + 0o36)))(sldzbHve8G1S, roI3spqORKae(ES5oEprVxulp(b'\x9f\x8b6\x08\x19r\xce'), '\144' + '\145' + '\x63' + chr(9450 - 9339) + chr(100) + chr(2602 - 2501))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x87\xa1'), '\144' + '\x65' + chr(99) + '\157' + chr(100) + chr(0b1011010 + 0o13))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000))) | roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x81\xa9\x0b(/U\xe7k\xb6\xbe\x82\xcd\x8a\xe7x\xb1'), chr(100) + chr(7730 - 7629) + '\143' + '\157' + '\x64' + chr(101))(chr(117) + chr(116) + chr(9441 - 9339) + chr(0b1110 + 0o37) + '\070'))) else: sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xfa\xc4qF]1\x97\r\xca\xc2\xff\xac\xaa\xdcV\x91G\xb0b\x97d[\xbe\xb8(\xe83\xdd\x8e\x9f\x06\\\xf2\x16\x98Y\xc1\x96O\xcd\xe8\x8c-\n\x15o\x89Z\x9c\x9e\xaa\xac\xbd\xc1Y\x89Q\xaew\x86i\x0e\xf0\xe36'), chr(0b10000 + 0o124) + chr(0b110000 + 0o65) + chr(2705 - 2606) + '\x6f' + chr(0b1100100) + chr(0b111010 + 0o53))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(56)).q33KG3foQ_CJ(GIYtQnVko8Lc) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x85\x8f7\x15\x11{\xcco\x96\x94'), chr(4232 - 4132) + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b10000 + 0o50)))(sldzbHve8G1S, roI3spqORKae(ES5oEprVxulp(b'\x81\x84"\t'), '\x64' + chr(101) + chr(0b1000011 + 0o40) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b10000 + 0o144) + chr(9954 - 9852) + chr(763 - 718) + chr(0b101110 + 0o12)), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x87\xa1'), chr(5875 - 5775) + chr(0b1001110 + 0o27) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b10000 + 0o125))(chr(0b1110101) + chr(6219 - 6103) + chr(0b1001111 + 0o27) + chr(45) + '\070')) | roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x81\xa9\x0b(/U\xe7k\xb6\xbe\x82\xcd\x8a\xe7x\xb1'), chr(0b111 + 0o135) + '\145' + '\143' + '\157' + chr(100) + '\x65')(chr(10336 - 10219) + '\x74' + chr(7904 - 7802) + chr(0b101101) + '\070')))
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_metadata
def on_btn_metadata(self, event): """ Initiate the series of windows to add metadata to the contribution. """ # make sure we have a measurements file if not self.check_for_meas_file(): return # make sure all files of the same type have been combined if not self.check_for_uncombined_files(): return if self.data_model_num == 2: wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() self.ErMagic_frame = ErMagicBuilder.MagIC_model_builder(self.WD, self, self.er_magic) elif self.data_model_num == 3: wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() self.ErMagic_frame = ErMagicBuilder.MagIC_model_builder3(self.WD, self, self.contribution) # self.ErMagic_frame.Show() self.ErMagic_frame.Center() # gets total available screen space - 10% size = wx.DisplaySize() size = (size[0] - 0.3 * size[0], size[1] - 0.3 * size[1]) self.ErMagic_frame.Raise() del wait
python
def on_btn_metadata(self, event): """ Initiate the series of windows to add metadata to the contribution. """ # make sure we have a measurements file if not self.check_for_meas_file(): return # make sure all files of the same type have been combined if not self.check_for_uncombined_files(): return if self.data_model_num == 2: wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() self.ErMagic_frame = ErMagicBuilder.MagIC_model_builder(self.WD, self, self.er_magic) elif self.data_model_num == 3: wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() self.ErMagic_frame = ErMagicBuilder.MagIC_model_builder3(self.WD, self, self.contribution) # self.ErMagic_frame.Show() self.ErMagic_frame.Center() # gets total available screen space - 10% size = wx.DisplaySize() size = (size[0] - 0.3 * size[0], size[1] - 0.3 * size[1]) self.ErMagic_frame.Raise() del wait
[ "def", "on_btn_metadata", "(", "self", ",", "event", ")", ":", "# make sure we have a measurements file", "if", "not", "self", ".", "check_for_meas_file", "(", ")", ":", "return", "# make sure all files of the same type have been combined", "if", "not", "self", ".", "check_for_uncombined_files", "(", ")", ":", "return", "if", "self", ".", "data_model_num", "==", "2", ":", "wait", "=", "wx", ".", "BusyInfo", "(", "'Compiling required data, please wait...'", ")", "wx", ".", "SafeYield", "(", ")", "self", ".", "ErMagic_frame", "=", "ErMagicBuilder", ".", "MagIC_model_builder", "(", "self", ".", "WD", ",", "self", ",", "self", ".", "er_magic", ")", "elif", "self", ".", "data_model_num", "==", "3", ":", "wait", "=", "wx", ".", "BusyInfo", "(", "'Compiling required data, please wait...'", ")", "wx", ".", "SafeYield", "(", ")", "self", ".", "ErMagic_frame", "=", "ErMagicBuilder", ".", "MagIC_model_builder3", "(", "self", ".", "WD", ",", "self", ",", "self", ".", "contribution", ")", "#", "self", ".", "ErMagic_frame", ".", "Show", "(", ")", "self", ".", "ErMagic_frame", ".", "Center", "(", ")", "# gets total available screen space - 10%", "size", "=", "wx", ".", "DisplaySize", "(", ")", "size", "=", "(", "size", "[", "0", "]", "-", "0.3", "*", "size", "[", "0", "]", ",", "size", "[", "1", "]", "-", "0.3", "*", "size", "[", "1", "]", ")", "self", ".", "ErMagic_frame", ".", "Raise", "(", ")", "del", "wait" ]
Initiate the series of windows to add metadata to the contribution.
[ "Initiate", "the", "series", "of", "windows", "to", "add", "metadata", "to", "the", "contribution", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L574-L600
train
Initiate the series of windows to add metadata to the contribution.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b1101111) + chr(0b110010) + '\x36' + chr(0b11100 + 0o30), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x30' + chr(0b101000 + 0o14), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(0b110110) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x37' + chr(214 - 160), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101111 + 0o3) + chr(1388 - 1334) + chr(53), 26799 - 26791), nzTpIcepk0o8(chr(321 - 273) + chr(111) + '\061' + chr(0b110100) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(998 - 947) + chr(1329 - 1280) + chr(2512 - 2457), 35788 - 35780), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100110 + 0o13) + chr(52) + chr(48), 63603 - 63595), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101101 + 0o4) + chr(52) + chr(2136 - 2084), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(1108 - 1059) + chr(51) + chr(2061 - 2010), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10000 + 0o41) + chr(0b10011 + 0o40) + chr(2549 - 2495), 58476 - 58468), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + chr(0b10110 + 0o33) + chr(1180 - 1128) + chr(0b100101 + 0o20), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(2080 - 2028) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8322 - 8211) + '\062', 32908 - 32900), nzTpIcepk0o8(chr(2054 - 2006) + '\x6f' + chr(50) + chr(52) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(0b110100) + chr(0b1010 + 0o50), 0o10), nzTpIcepk0o8(chr(786 - 738) + '\x6f' + '\062' + '\x37' + chr(851 - 803), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(700 - 646) + chr(0b11111 + 0o26), 0o10), nzTpIcepk0o8(chr(82 - 34) + chr(1526 - 1415) + '\x33' + '\060' + chr(1601 - 1552), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1100010 + 0o15) + chr(1108 - 1053) + chr(218 - 170), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1084 - 1035) + chr(0b110100) + chr(250 - 198), 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(2210 - 2160) + '\x36' + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\x32' + '\066' + chr(51), 8), nzTpIcepk0o8(chr(2094 - 2046) + chr(6303 - 6192) + chr(50) + chr(0b100101 + 0o17) + '\062', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b110111) + chr(0b110000), 58605 - 58597), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\x33' + chr(0b100101 + 0o20) + '\063', 14685 - 14677), nzTpIcepk0o8(chr(0b110000) + chr(0b1011011 + 0o24) + chr(0b110010) + chr(1603 - 1549) + chr(0b100010 + 0o22), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1400 - 1349) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10011 + 0o134) + chr(0b110101) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10 + 0o61) + chr(0b100100 + 0o22) + chr(272 - 224), 50143 - 50135), nzTpIcepk0o8('\x30' + chr(0b101011 + 0o104) + chr(50) + chr(0b11110 + 0o22) + chr(0b110011), 24689 - 24681), nzTpIcepk0o8('\060' + '\157' + chr(819 - 768) + chr(0b11011 + 0o30) + chr(0b110000 + 0o3), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(1141 - 1093) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\x6f' + '\061' + chr(0b1010 + 0o53) + chr(0b1101 + 0o50), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100101 + 0o21) + chr(0b110011), 60715 - 60707), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(51) + '\062' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(6259 - 6148) + chr(1377 - 1324) + chr(0b110010), 8), nzTpIcepk0o8(chr(613 - 565) + chr(0b1101111) + '\061' + '\x30' + '\067', 30491 - 30483)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b110011 + 0o74) + '\065' + '\x30', 34144 - 34136)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9a'), '\144' + chr(0b1101 + 0o130) + chr(99) + '\157' + chr(0b110 + 0o136) + chr(0b1010110 + 0o17))('\165' + chr(0b1110100) + '\146' + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def DvNZpccioScc(hXMPsSrOQzbh, D4ybylS07yGH): if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd7\xac\x92\x9d\xde<\xa9\x0f\x16\x043\x00Gq\xffD\xd1Y\xa4'), '\x64' + chr(9689 - 9588) + chr(0b1100011) + chr(0b110011 + 0o74) + chr(0b1100100) + '\145')('\165' + '\164' + chr(0b1 + 0o145) + chr(1759 - 1714) + '\x38'))(): return if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd7\xac\x92\x9d\xde<\xa9\x0f\x16\x04+\x0bEm\xcd@\xd1[\xa4\\;\xd5\xda\xce\x9d\x98'), chr(100) + chr(101) + chr(99) + chr(8073 - 7962) + '\144' + '\x65')(chr(117) + chr(0b1100101 + 0o17) + '\146' + chr(0b101101) + '\070'))(): return if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x83\x9f\xea\x0e\xa0\x04\x017\x01\x0bSo'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(734 - 634) + chr(10116 - 10015))(chr(0b1110101) + '\x74' + chr(0b1000000 + 0o46) + chr(0b101101) + chr(56))) == nzTpIcepk0o8(chr(1541 - 1493) + chr(0b1101111) + chr(0b10010 + 0o40), 8): VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xf7\xab\x9a\x8e\xdc\x0f\xa6\x0e\x03{,\x00Ww\xc9P\xddQ\xe1\\\x05\xc7\xd2\x8e\xd8\x9b\xd8|ggO\xd0\xf4\xba,\x19\x1d\xfe\x04'), chr(6925 - 6825) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1010011 + 0o21) + '\145')(chr(3380 - 3263) + '\164' + chr(0b1100110) + '\055' + '\x38')) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xe7\xa5\x91\x9b\xec\n\xaa\x0c\x00'), chr(0b1001001 + 0o33) + chr(101) + '\143' + chr(111) + '\144' + chr(0b1000010 + 0o43))('\x75' + chr(0b1101 + 0o147) + chr(0b100110 + 0o100) + chr(45) + chr(0b111000)))() hXMPsSrOQzbh.hS3DT8UbqVgj = MTVMXu4d6Utd.MagIC_model_builder(hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh, hXMPsSrOQzbh.FrbBJuDrvwdK) elif roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd0\xa5\x83\x9f\xea\x0e\xa0\x04\x017\x01\x0bSo'), chr(100) + chr(6715 - 6614) + chr(99) + chr(111) + chr(5752 - 5652) + chr(101))(chr(0b1001011 + 0o52) + chr(5685 - 5569) + '\x66' + '\x2d' + chr(2250 - 2194))) == nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b110011), 0o10): VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xf7\xab\x9a\x8e\xdc\x0f\xa6\x0e\x03{,\x00Ww\xc9P\xddQ\xe1\\\x05\xc7\xd2\x8e\xd8\x9b\xd8|ggO\xd0\xf4\xba,\x19\x1d\xfe\x04'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b11001 + 0o114))(chr(0b110101 + 0o100) + '\164' + chr(102) + '\x2d' + chr(3031 - 2975))) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xe7\xa5\x91\x9b\xec\n\xaa\x0c\x00'), '\x64' + chr(101) + '\143' + '\x6f' + chr(716 - 616) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110 + 0o0) + chr(0b101101) + '\x38'))() hXMPsSrOQzbh.hS3DT8UbqVgj = MTVMXu4d6Utd.MagIC_model_builder3(hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh, hXMPsSrOQzbh.bSiGoWKHgDdJ) roI3spqORKae(hXMPsSrOQzbh.ErMagic_frame, roI3spqORKae(ES5oEprVxulp(b'\xe7\xac\x98\x89'), '\144' + '\x65' + '\x63' + chr(0b1101111) + chr(3168 - 3068) + chr(0b1100101))('\165' + '\x74' + '\x66' + '\055' + '\x38'))() roI3spqORKae(hXMPsSrOQzbh.ErMagic_frame, roI3spqORKae(ES5oEprVxulp(b'\xf7\xa1\x99\x8a\xd0\x11'), '\144' + chr(101) + chr(4452 - 4353) + '\157' + chr(0b101111 + 0o65) + chr(0b1101 + 0o130))(chr(0b10111 + 0o136) + '\x74' + '\146' + chr(1447 - 1402) + '\x38'))() e1HrJaQHACnl = FHAk5xm055cs.DisplaySize() e1HrJaQHACnl = (e1HrJaQHACnl[nzTpIcepk0o8(chr(1993 - 1945) + chr(111) + chr(48), 0b1000)] - 0.3 * e1HrJaQHACnl[nzTpIcepk0o8('\060' + '\157' + chr(0b10010 + 0o36), 8)], e1HrJaQHACnl[nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + chr(348 - 299), 0b1000)] - 0.3 * e1HrJaQHACnl[nzTpIcepk0o8('\x30' + '\x6f' + chr(176 - 127), 8)]) roI3spqORKae(hXMPsSrOQzbh.ErMagic_frame, roI3spqORKae(ES5oEprVxulp(b'\xe6\xa5\x9e\x8d\xd0'), chr(0b101010 + 0o72) + chr(101) + chr(99) + chr(0b1101111) + '\x64' + '\145')('\165' + '\x74' + chr(0b110111 + 0o57) + '\055' + '\070'))() del VBnaM0jy14aO
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.init_check_window2
def init_check_window2(self): """ initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc. """ self.check_dia = pmag_er_magic_dialogs.ErMagicCheckFrame(self, 'Check Data', self.WD, self.er_magic)
python
def init_check_window2(self): """ initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc. """ self.check_dia = pmag_er_magic_dialogs.ErMagicCheckFrame(self, 'Check Data', self.WD, self.er_magic)
[ "def", "init_check_window2", "(", "self", ")", ":", "self", ".", "check_dia", "=", "pmag_er_magic_dialogs", ".", "ErMagicCheckFrame", "(", "self", ",", "'Check Data'", ",", "self", ".", "WD", ",", "self", ".", "er_magic", ")" ]
initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc.
[ "initiates", "the", "object", "that", "will", "control", "steps", "1", "-", "6", "of", "checking", "headers", "filling", "in", "cell", "values", "etc", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L602-L608
train
initiates the object that will control steps 1 - 6 of checking headers filling in cell values etc.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1010100 + 0o33) + chr(0b101101 + 0o4) + chr(0b11 + 0o56) + chr(1134 - 1086), 1557 - 1549), nzTpIcepk0o8(chr(1363 - 1315) + '\x6f' + '\x33' + '\x33', 42149 - 42141), nzTpIcepk0o8('\x30' + chr(0b11001 + 0o126) + chr(50) + '\066' + chr(54), 52530 - 52522), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10110 + 0o34) + chr(1155 - 1104) + '\x36', 45226 - 45218), nzTpIcepk0o8('\060' + '\157' + chr(745 - 696) + chr(0b11000 + 0o35) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(491 - 437) + chr(2168 - 2116), 0o10), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100111 + 0o10) + chr(0b110010) + chr(0b11100 + 0o25) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(50) + '\060' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\063' + '\061' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(983 - 933) + chr(1639 - 1590), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(50) + chr(333 - 282), 27251 - 27243), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(54), 0b1000), nzTpIcepk0o8(chr(203 - 155) + chr(0b1101111) + chr(0b11100 + 0o25) + chr(0b101001 + 0o7) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(54) + chr(55), 33153 - 33145), nzTpIcepk0o8('\060' + '\157' + '\061' + '\x36' + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(745 - 695) + '\x35' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110111) + chr(0b11111 + 0o27), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + '\066', 0o10), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(177 - 66) + chr(0b110011) + chr(0b100111 + 0o12), 37794 - 37786), nzTpIcepk0o8('\060' + '\x6f' + '\x37' + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11011 + 0o26) + chr(48), 32791 - 32783), nzTpIcepk0o8(chr(901 - 853) + chr(0b1101111) + chr(50) + chr(0b101001 + 0o16) + chr(0b11111 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\157' + chr(51) + '\x35', 0b1000), nzTpIcepk0o8(chr(1538 - 1490) + chr(0b101101 + 0o102) + '\063' + chr(52) + chr(1625 - 1571), ord("\x08")), nzTpIcepk0o8(chr(1629 - 1581) + chr(111) + chr(0b111 + 0o60) + chr(54), 17431 - 17423), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\063' + chr(0b110100), 54009 - 54001), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(1749 - 1698) + '\x33' + '\060', 0b1000), nzTpIcepk0o8(chr(1822 - 1774) + chr(0b1101111) + '\064' + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\065' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(2231 - 2183) + chr(0b1101111) + chr(53), 28428 - 28420), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(52) + '\x33', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(8275 - 8164) + '\062' + chr(0b110110) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(49) + '\x34', 0b1000), nzTpIcepk0o8(chr(1083 - 1035) + chr(111) + '\x33' + '\x35' + chr(0b10001 + 0o41), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\x36' + '\x36', 8), nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + chr(0b110110) + chr(1867 - 1813), 0o10), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + chr(0b100100 + 0o15) + chr(52) + '\066', 53279 - 53271), nzTpIcepk0o8(chr(2027 - 1979) + chr(111) + '\x33' + '\x31' + chr(0b110111), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(0b1100 + 0o44), 62169 - 62161)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'f'), '\144' + chr(101) + chr(0b1100011) + chr(4732 - 4621) + chr(2395 - 2295) + '\x65')(chr(0b111110 + 0o67) + chr(0b1101001 + 0o13) + chr(102) + chr(0b10110 + 0o27) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def AJ8kW44HK6vq(hXMPsSrOQzbh): hXMPsSrOQzbh.jLcuFv16PnqC = WGyR0Q8oz1mN.ErMagicCheckFrame(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0bs\xd3\xfd\x06T\xca\xe4\xb8\xb0'), chr(0b110 + 0o136) + '\x65' + chr(0b1010000 + 0o23) + '\x6f' + chr(100) + chr(0b10000 + 0o125))(chr(0b1110101) + chr(0b111010 + 0o72) + '\146' + chr(0b11011 + 0o22) + chr(56)), hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh.FrbBJuDrvwdK)
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.init_check_window
def init_check_window(self): """ initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc. """ self.check_dia = pmag_er_magic_dialogs.ErMagicCheckFrame3(self, 'Check Data', self.WD, self.contribution)
python
def init_check_window(self): """ initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc. """ self.check_dia = pmag_er_magic_dialogs.ErMagicCheckFrame3(self, 'Check Data', self.WD, self.contribution)
[ "def", "init_check_window", "(", "self", ")", ":", "self", ".", "check_dia", "=", "pmag_er_magic_dialogs", ".", "ErMagicCheckFrame3", "(", "self", ",", "'Check Data'", ",", "self", ".", "WD", ",", "self", ".", "contribution", ")" ]
initiates the object that will control steps 1-6 of checking headers, filling in cell values, etc.
[ "initiates", "the", "object", "that", "will", "control", "steps", "1", "-", "6", "of", "checking", "headers", "filling", "in", "cell", "values", "etc", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L610-L616
train
initiates the object that will control steps 1 - 6 of checking headers filling in cell values etc.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + '\x33', 0b1000), nzTpIcepk0o8(chr(968 - 920) + '\x6f' + '\x32' + chr(0b100001 + 0o17) + '\062', 0o10), nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + '\061' + chr(51) + chr(0b11001 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b10 + 0o155) + '\063' + chr(0b11111 + 0o21), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100010 + 0o115) + '\062' + chr(0b110010) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110111), 23780 - 23772), nzTpIcepk0o8(chr(48) + chr(7298 - 7187) + chr(0b110010) + '\066' + chr(0b110001), 50045 - 50037), nzTpIcepk0o8('\x30' + chr(3251 - 3140) + '\x31' + '\x30' + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(420 - 370) + chr(0b101111 + 0o7) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(0b110000 + 0o77) + chr(50) + chr(49) + chr(1354 - 1300), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\065' + chr(0b110001 + 0o4), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51), 8), nzTpIcepk0o8(chr(48) + chr(0b1011100 + 0o23) + '\061' + '\065', 4740 - 4732), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(112 - 63) + chr(0b110010), 44215 - 44207), nzTpIcepk0o8(chr(860 - 812) + chr(0b1101111) + '\061' + chr(2545 - 2493) + chr(51), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b100101 + 0o16) + chr(0b110110) + chr(0b101111 + 0o4), 2585 - 2577), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(49) + chr(0b101101 + 0o10), 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(3010 - 2899) + chr(1838 - 1789) + '\064' + '\060', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(51) + '\x37' + '\x37', 13133 - 13125), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b100011 + 0o17) + chr(0b10010 + 0o36) + '\066', 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b11 + 0o154) + chr(260 - 211) + chr(49) + chr(2050 - 1998), 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + '\x32' + '\062', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b11101 + 0o24) + chr(54), 35424 - 35416), nzTpIcepk0o8('\060' + '\157' + chr(1720 - 1669) + '\063' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\x37' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(2150 - 2097) + chr(0b110 + 0o53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b100000 + 0o27) + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1 + 0o63) + '\062', 0o10), nzTpIcepk0o8(chr(1628 - 1580) + '\x6f' + '\062' + '\065' + '\x33', 4984 - 4976), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110010) + chr(0b100 + 0o63), 8), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + chr(2218 - 2168) + chr(0b110101) + chr(48), 0b1000), nzTpIcepk0o8(chr(120 - 72) + chr(111) + chr(50) + chr(49) + chr(50), 8), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(0b110001) + chr(0b110110 + 0o0) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(0b1011 + 0o50) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + chr(0b11011 + 0o30), 0o10), nzTpIcepk0o8(chr(1369 - 1321) + '\x6f' + chr(51) + chr(0b110110) + '\064', 8970 - 8962), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\x35' + chr(51), 5144 - 5136), nzTpIcepk0o8('\060' + chr(9107 - 8996) + chr(0b110010) + '\x33' + chr(0b110 + 0o55), 8), nzTpIcepk0o8(chr(67 - 19) + '\x6f' + '\x32' + chr(50) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\157' + '\063' + chr(0b100101 + 0o22) + chr(608 - 553), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1875 - 1827) + '\157' + '\x35' + chr(0b0 + 0o60), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'-'), '\144' + chr(5646 - 5545) + chr(99) + chr(0b1000000 + 0o57) + chr(100) + '\x65')('\165' + chr(116) + chr(7515 - 7413) + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def uL5tgo_IoN47(hXMPsSrOQzbh): hXMPsSrOQzbh.jLcuFv16PnqC = WGyR0Q8oz1mN.ErMagicCheckFrame3(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'@\xea?{\xfc/\xf5!\xc7\xef'), chr(3865 - 3765) + '\145' + chr(0b111111 + 0o44) + '\157' + chr(0b1100100) + '\x65')('\165' + chr(7957 - 7841) + chr(6678 - 6576) + chr(45) + '\x38'), hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh.bSiGoWKHgDdJ)
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_orientation
def on_btn_orientation(self, event): """ Create and fill wxPython grid for entering orientation data. """ wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() #dw, dh = wx.DisplaySize() size = wx.DisplaySize() size = (size[0]-0.1 * size[0], size[1]-0.1 * size[1]) if self.data_model_num == 3: frame = pmag_gui_dialogs.OrientFrameGrid3(self, -1, 'demag_orient.txt', self.WD, self.contribution, size) else: frame = pmag_gui_dialogs.OrientFrameGrid(self, -1, 'demag_orient.txt', self.WD, self.er_magic, size) frame.Show(True) frame.Centre() self.Hide() del wait
python
def on_btn_orientation(self, event): """ Create and fill wxPython grid for entering orientation data. """ wait = wx.BusyInfo('Compiling required data, please wait...') wx.SafeYield() #dw, dh = wx.DisplaySize() size = wx.DisplaySize() size = (size[0]-0.1 * size[0], size[1]-0.1 * size[1]) if self.data_model_num == 3: frame = pmag_gui_dialogs.OrientFrameGrid3(self, -1, 'demag_orient.txt', self.WD, self.contribution, size) else: frame = pmag_gui_dialogs.OrientFrameGrid(self, -1, 'demag_orient.txt', self.WD, self.er_magic, size) frame.Show(True) frame.Centre() self.Hide() del wait
[ "def", "on_btn_orientation", "(", "self", ",", "event", ")", ":", "wait", "=", "wx", ".", "BusyInfo", "(", "'Compiling required data, please wait...'", ")", "wx", ".", "SafeYield", "(", ")", "#dw, dh = wx.DisplaySize()", "size", "=", "wx", ".", "DisplaySize", "(", ")", "size", "=", "(", "size", "[", "0", "]", "-", "0.1", "*", "size", "[", "0", "]", ",", "size", "[", "1", "]", "-", "0.1", "*", "size", "[", "1", "]", ")", "if", "self", ".", "data_model_num", "==", "3", ":", "frame", "=", "pmag_gui_dialogs", ".", "OrientFrameGrid3", "(", "self", ",", "-", "1", ",", "'demag_orient.txt'", ",", "self", ".", "WD", ",", "self", ".", "contribution", ",", "size", ")", "else", ":", "frame", "=", "pmag_gui_dialogs", ".", "OrientFrameGrid", "(", "self", ",", "-", "1", ",", "'demag_orient.txt'", ",", "self", ".", "WD", ",", "self", ".", "er_magic", ",", "size", ")", "frame", ".", "Show", "(", "True", ")", "frame", ".", "Centre", "(", ")", "self", ".", "Hide", "(", ")", "del", "wait" ]
Create and fill wxPython grid for entering orientation data.
[ "Create", "and", "fill", "wxPython", "grid", "for", "entering", "orientation", "data", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L619-L639
train
Create and fill wxPython grid for entering the current ISO - 8601 data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b110 + 0o151) + '\x32' + chr(51) + chr(0b1001 + 0o53), 52498 - 52490), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b110100) + chr(599 - 547), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7614 - 7503) + '\061' + '\x37' + chr(172 - 121), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + '\066' + '\x34', 38394 - 38386), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + '\x34' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(2028 - 1980) + chr(0b1101111) + '\x37' + chr(0b110011 + 0o3), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(562 - 512) + chr(0b101011 + 0o14) + '\066', 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(0b110101) + chr(52), 0b1000), nzTpIcepk0o8(chr(2002 - 1954) + chr(2793 - 2682) + chr(0b110010) + chr(0b110001) + chr(1457 - 1407), 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(1384 - 1334) + chr(1236 - 1181) + '\x36', 8), nzTpIcepk0o8('\x30' + '\157' + chr(1844 - 1793) + chr(1375 - 1326), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(51) + '\066' + '\065', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(52) + '\x37', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x32' + chr(0b110 + 0o61), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b1000 + 0o51) + chr(0b110000) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1520 - 1470) + chr(0b101111 + 0o2) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + '\x32' + '\065' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110000 + 0o2) + chr(0b100111 + 0o12) + chr(51), 14903 - 14895), nzTpIcepk0o8(chr(0b110000) + chr(0b1000111 + 0o50) + chr(0b110010) + chr(53) + '\061', 0o10), nzTpIcepk0o8(chr(2015 - 1967) + '\x6f' + '\x33' + chr(1827 - 1774) + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + '\x31' + chr(0b110100) + chr(353 - 299), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(508 - 458) + chr(791 - 743) + chr(2561 - 2509), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b110100) + '\062', 54640 - 54632), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1010011 + 0o34) + '\063' + chr(1151 - 1097) + chr(0b110 + 0o61), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1 + 0o60) + chr(0b10100 + 0o34), 2864 - 2856), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(757 - 705) + chr(52), 46333 - 46325), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1100011 + 0o14) + chr(50) + '\x34' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\061' + chr(1255 - 1205) + chr(55), 21403 - 21395), nzTpIcepk0o8('\060' + '\157' + chr(1336 - 1286) + '\x35' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(2939 - 2884) + chr(0b110111), 45597 - 45589), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100010 + 0o21) + chr(51) + chr(2002 - 1947), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + '\063' + chr(1913 - 1863) + '\x33', 37458 - 37450), nzTpIcepk0o8(chr(0b110000) + chr(7429 - 7318) + chr(1881 - 1829) + chr(0b100110 + 0o21), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3352 - 3241) + '\063' + '\062' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b110011) + '\060', 62881 - 62873), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(53) + chr(0b1101 + 0o43), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o51) + chr(51) + chr(139 - 88), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b10000 + 0o41) + chr(0b110110) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(11216 - 11105) + '\061' + '\x31' + chr(51), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000 + 0o0) + '\x6f' + chr(0b110101 + 0o0) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb2'), '\x64' + chr(0b110100 + 0o61) + chr(0b101011 + 0o70) + chr(111) + chr(0b1100100) + chr(0b1011101 + 0o10))('\x75' + '\x74' + '\146' + '\055' + chr(1184 - 1128)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def XeRdMQgxCroe(hXMPsSrOQzbh, D4ybylS07yGH): VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xdf\x8b\x16\x84\x0eR\xd7B\xed\x9ek\x90\x16\xe2(\xff\xc9\xef\x89\x8f\x07\xf0\xc3\xdb$xH\xc36\xdcZ\xff\xa4F\xb8l\x86\xb5\\'), '\x64' + chr(0b111 + 0o136) + '\143' + '\157' + chr(3575 - 3475) + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000))) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xcf\x85\x1d\x91>W\xdb@\xee'), chr(100) + '\145' + chr(0b1100011) + chr(6503 - 6392) + chr(0b1100100) + chr(0b1010100 + 0o21))(chr(0b1001111 + 0o46) + chr(116) + chr(0b10 + 0o144) + '\x2d' + '\070'))() e1HrJaQHACnl = FHAk5xm055cs.DisplaySize() e1HrJaQHACnl = (e1HrJaQHACnl[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 0o10)] - 0.1 * e1HrJaQHACnl[nzTpIcepk0o8(chr(981 - 933) + chr(5958 - 5847) + chr(0b110000), 8)], e1HrJaQHACnl[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(537 - 488), ord("\x08"))] - 0.1 * e1HrJaQHACnl[nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b110000 + 0o77) + chr(0b1110 + 0o43), 8)]) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf8\x85\x0f\x958S\xd1H\xef\xd2F\x9b\x12\xfa'), '\x64' + chr(101) + '\x63' + chr(0b111101 + 0o62) + '\144' + '\x65')(chr(6200 - 6083) + chr(13162 - 13046) + chr(0b1100110) + '\x2d' + chr(0b111000))) == nzTpIcepk0o8(chr(474 - 426) + '\x6f' + chr(950 - 899), ord("\x08")): KZ4ew2qs1HTO = w4CGgjkuregz.OrientFrameGrid3(hXMPsSrOQzbh, -nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + '\x31', 8), roI3spqORKae(ES5oEprVxulp(b'\xf8\x81\x16\x95\x00a\xd1^\xe3\xdbw\x81I\xe39\xf9'), '\144' + chr(101) + chr(99) + chr(0b1010001 + 0o36) + '\144' + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(239 - 194) + '\x38'), hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh.bSiGoWKHgDdJ, e1HrJaQHACnl) else: KZ4ew2qs1HTO = w4CGgjkuregz.OrientFrameGrid(hXMPsSrOQzbh, -nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(4458 - 4347) + chr(0b110001), 8), roI3spqORKae(ES5oEprVxulp(b'\xf8\x81\x16\x95\x00a\xd1^\xe3\xdbw\x81I\xe39\xf9'), chr(0b111100 + 0o50) + chr(7482 - 7381) + chr(0b1100011) + chr(9480 - 9369) + '\144' + '\x65')('\165' + '\x74' + chr(0b1010110 + 0o20) + '\x2d' + chr(0b0 + 0o70)), hXMPsSrOQzbh.GP1zEShDyCxL, hXMPsSrOQzbh.FrbBJuDrvwdK, e1HrJaQHACnl) roI3spqORKae(KZ4ew2qs1HTO, roI3spqORKae(ES5oEprVxulp(b'\xcf\x8c\x14\x83'), '\x64' + '\x65' + chr(7363 - 7264) + chr(111) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\x74' + chr(102) + chr(1260 - 1215) + '\x38'))(nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49), 8)) roI3spqORKae(KZ4ew2qs1HTO, roI3spqORKae(ES5oEprVxulp(b'\xdf\x81\x15\x80\x15['), '\144' + chr(3612 - 3511) + chr(0b1100011) + chr(10218 - 10107) + chr(0b11011 + 0o111) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(5625 - 5523) + '\x2d' + '\070'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd4\x8d\x1f\x91'), '\144' + '\145' + '\143' + chr(111) + chr(100) + chr(8791 - 8690))(chr(0b100011 + 0o122) + chr(116) + '\x66' + chr(1850 - 1805) + chr(56)))() del VBnaM0jy14aO
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_unpack
def on_btn_unpack(self, event): """ Create dialog to choose a file to unpack with download magic. Then run download_magic and create self.contribution. """ dlg = wx.FileDialog( None, message = "choose txt file to unpack", defaultDir=self.WD, defaultFile="", style=wx.FD_OPEN #| wx.FD_CHANGE_DIR ) if dlg.ShowModal() == wx.ID_OK: FILE = dlg.GetPath() input_dir, f = os.path.split(FILE) else: return False outstring="download_magic.py -f {} -WD {} -ID {} -DM {}".format(f, self.WD, input_dir, self.data_model_num) # run as module: print("-I- running python script:\n %s"%(outstring)) wait = wx.BusyInfo("Please wait, working...") wx.SafeYield() ex = None try: if ipmag.download_magic(f, self.WD, input_dir, overwrite=True, data_model=self.data_model): text = "Successfully ran download_magic.py program.\nMagIC files were saved in your working directory.\nSee Terminal/message window for details." else: text = "Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again." except Exception as ex: text = "Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again." del wait dlg = wx.MessageDialog(self, caption="Saved", message=text, style=wx.OK) result = dlg.ShowModal() if result == wx.ID_OK: dlg.Destroy() if ex: raise(ex) self.contribution = cb.Contribution(self.WD)
python
def on_btn_unpack(self, event): """ Create dialog to choose a file to unpack with download magic. Then run download_magic and create self.contribution. """ dlg = wx.FileDialog( None, message = "choose txt file to unpack", defaultDir=self.WD, defaultFile="", style=wx.FD_OPEN #| wx.FD_CHANGE_DIR ) if dlg.ShowModal() == wx.ID_OK: FILE = dlg.GetPath() input_dir, f = os.path.split(FILE) else: return False outstring="download_magic.py -f {} -WD {} -ID {} -DM {}".format(f, self.WD, input_dir, self.data_model_num) # run as module: print("-I- running python script:\n %s"%(outstring)) wait = wx.BusyInfo("Please wait, working...") wx.SafeYield() ex = None try: if ipmag.download_magic(f, self.WD, input_dir, overwrite=True, data_model=self.data_model): text = "Successfully ran download_magic.py program.\nMagIC files were saved in your working directory.\nSee Terminal/message window for details." else: text = "Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again." except Exception as ex: text = "Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again." del wait dlg = wx.MessageDialog(self, caption="Saved", message=text, style=wx.OK) result = dlg.ShowModal() if result == wx.ID_OK: dlg.Destroy() if ex: raise(ex) self.contribution = cb.Contribution(self.WD)
[ "def", "on_btn_unpack", "(", "self", ",", "event", ")", ":", "dlg", "=", "wx", ".", "FileDialog", "(", "None", ",", "message", "=", "\"choose txt file to unpack\"", ",", "defaultDir", "=", "self", ".", "WD", ",", "defaultFile", "=", "\"\"", ",", "style", "=", "wx", ".", "FD_OPEN", "#| wx.FD_CHANGE_DIR", ")", "if", "dlg", ".", "ShowModal", "(", ")", "==", "wx", ".", "ID_OK", ":", "FILE", "=", "dlg", ".", "GetPath", "(", ")", "input_dir", ",", "f", "=", "os", ".", "path", ".", "split", "(", "FILE", ")", "else", ":", "return", "False", "outstring", "=", "\"download_magic.py -f {} -WD {} -ID {} -DM {}\"", ".", "format", "(", "f", ",", "self", ".", "WD", ",", "input_dir", ",", "self", ".", "data_model_num", ")", "# run as module:", "print", "(", "\"-I- running python script:\\n %s\"", "%", "(", "outstring", ")", ")", "wait", "=", "wx", ".", "BusyInfo", "(", "\"Please wait, working...\"", ")", "wx", ".", "SafeYield", "(", ")", "ex", "=", "None", "try", ":", "if", "ipmag", ".", "download_magic", "(", "f", ",", "self", ".", "WD", ",", "input_dir", ",", "overwrite", "=", "True", ",", "data_model", "=", "self", ".", "data_model", ")", ":", "text", "=", "\"Successfully ran download_magic.py program.\\nMagIC files were saved in your working directory.\\nSee Terminal/message window for details.\"", "else", ":", "text", "=", "\"Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again.\"", "except", "Exception", "as", "ex", ":", "text", "=", "\"Something went wrong. Make sure you chose a valid file downloaded from the MagIC database and try again.\"", "del", "wait", "dlg", "=", "wx", ".", "MessageDialog", "(", "self", ",", "caption", "=", "\"Saved\"", ",", "message", "=", "text", ",", "style", "=", "wx", ".", "OK", ")", "result", "=", "dlg", ".", "ShowModal", "(", ")", "if", "result", "==", "wx", ".", "ID_OK", ":", "dlg", ".", "Destroy", "(", ")", "if", "ex", ":", "raise", "(", "ex", ")", "self", ".", "contribution", "=", "cb", ".", "Contribution", "(", "self", ".", "WD", ")" ]
Create dialog to choose a file to unpack with download magic. Then run download_magic and create self.contribution.
[ "Create", "dialog", "to", "choose", "a", "file", "to", "unpack", "with", "download", "magic", ".", "Then", "run", "download_magic", "and", "create", "self", ".", "contribution", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L641-L681
train
Create dialog to choose a file to unpack and create a contribution.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(1103 - 1050) + '\066', 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(111) + chr(1135 - 1086) + chr(0b1 + 0o57) + chr(0b10101 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(403 - 355) + chr(5506 - 5395) + '\x32' + chr(0b1001 + 0o54) + '\064', 42373 - 42365), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(782 - 671) + chr(511 - 462), 17199 - 17191), nzTpIcepk0o8(chr(48) + chr(11962 - 11851) + chr(0b1100 + 0o47) + chr(52) + chr(0b100100 + 0o16), 26930 - 26922), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b1000 + 0o53) + chr(0b1001 + 0o56) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b110001) + '\067' + chr(2806 - 2751), 32555 - 32547), nzTpIcepk0o8(chr(664 - 616) + chr(10684 - 10573) + chr(0b110010) + '\067' + '\064', 24218 - 24210), nzTpIcepk0o8('\060' + '\157' + chr(1599 - 1548) + chr(0b1001 + 0o56) + chr(0b1001 + 0o50), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(53) + chr(50), 40645 - 40637), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\x37' + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + '\x31' + chr(2845 - 2791) + chr(0b110001), 31344 - 31336), nzTpIcepk0o8('\060' + chr(11479 - 11368) + chr(1841 - 1790) + chr(1875 - 1824) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\060' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(0b100100 + 0o21) + chr(0b100110 + 0o17), 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + chr(0b11011 + 0o26) + '\x32', 61971 - 61963), nzTpIcepk0o8('\060' + '\157' + chr(285 - 230) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + '\063' + chr(0b110011) + chr(51), 8), nzTpIcepk0o8(chr(48) + chr(0b1010011 + 0o34) + '\062' + chr(53) + chr(0b11001 + 0o33), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(49) + chr(0b110110), 44002 - 43994), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(0b110101) + chr(50), 8), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(54) + chr(0b110001 + 0o5), 28976 - 28968), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1101111) + chr(0b110011) + chr(0b11011 + 0o27) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11101 + 0o24) + chr(1969 - 1917) + chr(0b110000), 27233 - 27225), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(83 - 33) + '\x35' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + '\063' + chr(0b10110 + 0o34) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(324 - 276) + '\x36', 0b1000), nzTpIcepk0o8(chr(1341 - 1293) + '\157' + chr(51) + chr(2067 - 2015) + chr(0b110110), 40835 - 40827), nzTpIcepk0o8(chr(48) + chr(111) + chr(2382 - 2331) + chr(614 - 561) + chr(0b11110 + 0o26), 46453 - 46445), nzTpIcepk0o8('\x30' + chr(0b1000100 + 0o53) + '\x31' + chr(0b10111 + 0o34) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(11910 - 11799) + chr(0b110010) + chr(0b1000 + 0o57), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35' + chr(0b110100), 59357 - 59349), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b110000 + 0o77) + '\063' + chr(0b1000 + 0o54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + chr(0b110010) + '\065' + chr(0b100110 + 0o21), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10001 + 0o46) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(1033 - 922) + chr(225 - 176) + chr(55) + chr(894 - 841), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(50) + chr(52), 4831 - 4823), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + chr(52) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x37' + chr(0b110000 + 0o1), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110000) + chr(55), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(219 - 171) + '\157' + '\065' + chr(48), 10627 - 10619)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc0'), '\144' + chr(594 - 493) + chr(0b111010 + 0o51) + chr(10042 - 9931) + '\144' + chr(0b100101 + 0o100))(chr(0b1110101) + '\164' + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def D6rhX19nu3LR(hXMPsSrOQzbh, D4ybylS07yGH): mUA0duScFTh1 = FHAk5xm055cs.FileDialog(None, message=roI3spqORKae(ES5oEprVxulp(b'\x8d-\xc3n\x91\x9e_\xc8\x81\x9e\x98\x17\xb2+\x88\xaaK\xb4\x8c\xbb\x84\x06\xb4\x03\xc2'), chr(0b10100 + 0o120) + chr(0b1100101) + chr(99) + chr(5171 - 5060) + chr(0b1100100) + chr(0b10010 + 0o123))('\165' + chr(11575 - 11459) + chr(0b1100110) + chr(1017 - 972) + '\x38'), defaultDir=hXMPsSrOQzbh.GP1zEShDyCxL, defaultFile=roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(7190 - 7089) + chr(99) + chr(0b1101111) + chr(3952 - 3852) + '\145')(chr(0b1101111 + 0o6) + '\164' + chr(4375 - 4273) + chr(0b1011 + 0o42) + chr(0b111000)), style=FHAk5xm055cs.FD_OPEN) if roI3spqORKae(mUA0duScFTh1, roI3spqORKae(ES5oEprVxulp(b'\xbd-\xc3v\xaf\x94\x1b\xdd\x95'), '\144' + chr(101) + chr(0b1100011) + chr(0b11001 + 0o126) + chr(0b1100100) + '\x65')('\x75' + chr(0b11110 + 0o126) + chr(6001 - 5899) + chr(45) + chr(56)))() == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xa7\x01\xf3N\xa9'), chr(100) + '\145' + chr(99) + '\157' + '\144' + chr(7091 - 6990))(chr(0b101011 + 0o112) + chr(5038 - 4922) + '\146' + chr(1925 - 1880) + chr(0b111000))): TEh3vmm3furQ = mUA0duScFTh1.GetPath() (JBbq3vP1Z01j, _R8IKF5IwAfX) = aHUqKstZLeS6.path.LfRrQOxuDvnC(TEh3vmm3furQ) else: return nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(0b1011 + 0o45), 0o10) d9IYhOYAA219 = roI3spqORKae(ES5oEprVxulp(b'\x8a*\xdbo\x8e\x94\x1e\xd8\xa6\x87\xd9\x16\xb2$\xc3\xfaF\xfb\x81\xa8\xca\r\xa8@\x84\x87\x82\xc6\x97 7\x01U\xeb\x1d\x06\xe9\x05\x14\xc3\xa3e\xd7|'), chr(0b11010 + 0o112) + chr(101) + '\143' + '\157' + chr(0b1001110 + 0o26) + '\145')(chr(0b11110 + 0o127) + chr(4205 - 4089) + chr(0b1100110) + '\x2d' + chr(128 - 72)).q33KG3foQ_CJ(_R8IKF5IwAfX, hXMPsSrOQzbh.GP1zEShDyCxL, JBbq3vP1Z01j, hXMPsSrOQzbh.data_model_num) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc3\x0c\x81!\x90\x8e\x11\xd2\x90\x84\xdfQ\xab>\x99\xe2P\xb5\x8c\xbd\x89\x04\xbc\x10\xdd\xea\xcc\xc6\xc9.'), '\x64' + '\x65' + chr(9450 - 9351) + chr(0b1001 + 0o146) + chr(100) + chr(101))('\x75' + chr(116) + chr(6745 - 6643) + chr(600 - 555) + chr(0b111000)) % d9IYhOYAA219) VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xbe)\xc9`\x91\x9e_\xcb\x98\x83\xcc]\xfb0\x82\xf8T\xb2\xc2\xa9\xc4X\xfb'), chr(0b10000 + 0o124) + '\x65' + chr(99) + chr(3856 - 3745) + chr(100) + '\x65')(chr(117) + '\x74' + chr(7432 - 7330) + chr(45) + chr(56))) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xbd$\xcad\xbb\x92\x1a\xd0\x9d'), '\144' + chr(101) + chr(0b1100011) + chr(6298 - 6187) + chr(100) + chr(8414 - 8313))(chr(2124 - 2007) + chr(116) + chr(102) + chr(45) + '\070'))() dclkBu6Bdnnh = None try: if roI3spqORKae(GL09QZtbvKPg, roI3spqORKae(ES5oEprVxulp(b'\x8a*\xdbo\x8e\x94\x1e\xd8\xa6\x87\xd9\x16\xb2$'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + '\055' + chr(2569 - 2513)))(_R8IKF5IwAfX, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa9\x15\x9d{\xa7\xa8\x17\xf8\x80\xa9\xc0='), chr(100) + '\145' + '\143' + '\x6f' + chr(6115 - 6015) + chr(3243 - 3142))(chr(0b11111 + 0o126) + '\x74' + '\146' + chr(698 - 653) + '\x38')), JBbq3vP1Z01j, overwrite=nzTpIcepk0o8(chr(0b110000) + '\157' + '\061', 8), data_model=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8a$\xd8`\xbd\x96\x10\xd8\x9c\x86'), chr(2214 - 2114) + '\x65' + '\143' + chr(4485 - 4374) + chr(100) + chr(0b1100101))(chr(9115 - 8998) + chr(0b1110100) + chr(1183 - 1081) + chr(45) + chr(0b101100 + 0o14)))): cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xbd0\xcfb\x87\x88\x0c\xda\x8c\x86\xd4\x08\xfb5\x8c\xe4\x1f\xbf\xc3\xb9\x84\x1a\xba\x01\xcd\x8f\xab\x87\x8b4t\x02l\xd6\x1d\r\xe6J^\xf5\x8f(\x82\x0b\xaf\x9a\x18\xf5\xba\xca\xde\x18\xb7"\x9e\xaaH\xbe\xde\xab\xca\x05\xb4\x16\xcc\xb4\xe6\x8f\x82}nCi\xdd\x1d\n\xfbWR\xee\x80"\x8ce\x8b\x89\x1a\xdf\x8d\x85\xca\x08\xf5M\xbe\xefZ\xfb\xf8\xab\x98\x1b\xbc\x0e\xc8\xbc\xe9\x8b\x89.dM{\xca\x1d\n\xfdK]\xe8\x99e\xcan\x90\xdb\x1b\xd9\x8d\x8b\xd1\x1d\xa8i'), chr(0b1100010 + 0o2) + '\145' + '\143' + chr(0b101011 + 0o104) + chr(0b1100100) + '\x65')('\x75' + '\164' + '\146' + chr(0b101101) + '\070') else: cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xbd*\xc1d\x96\x93\x16\xd2\x9e\xca\xcf\x14\xb53\xcd\xfdM\xb4\xc2\xa9\xc4V\xf5-\xc8\xbb\xa3\xc6\x9f(eI<\xd6R\x08\xb4FQ\xe8\x9d \x8c`\xc2\x8d\x1e\xd0\x90\x8e\x98\x17\xb2+\x88\xaa[\xb4\xdb\xa0\x86\x19\xb4\x04\xcc\xb4\xe6\x80\x9e2z\x0ch\xc7X]\xd9D^\xce\xade\xc8`\x96\x9a\x1d\xdd\x8a\x8f\x98\x10\xb5#\xcd\xfeM\xa2\x8c\xaf\x8d\x17\xbc\x0e\x87'), chr(3982 - 3882) + '\145' + chr(99) + '\x6f' + chr(0b1110 + 0o126) + chr(0b1100101))('\x75' + chr(221 - 105) + '\x66' + '\x2d' + chr(56)) except zfo2Sgkz3IVJ as dclkBu6Bdnnh: cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xbd*\xc1d\x96\x93\x16\xd2\x9e\xca\xcf\x14\xb53\xcd\xfdM\xb4\xc2\xa9\xc4V\xf5-\xc8\xbb\xa3\xc6\x9f(eI<\xd6R\x08\xb4FQ\xe8\x9d \x8c`\xc2\x8d\x1e\xd0\x90\x8e\x98\x17\xb2+\x88\xaa[\xb4\xdb\xa0\x86\x19\xb4\x04\xcc\xb4\xe6\x80\x9e2z\x0ch\xc7X]\xd9D^\xce\xade\xc8`\x96\x9a\x1d\xdd\x8a\x8f\x98\x10\xb5#\xcd\xfeM\xa2\x8c\xaf\x8d\x17\xbc\x0e\x87'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(101))(chr(11368 - 11251) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)) del VBnaM0jy14aO mUA0duScFTh1 = FHAk5xm055cs.MessageDialog(hXMPsSrOQzbh, caption=roI3spqORKae(ES5oEprVxulp(b'\xbd$\xdad\x86'), '\x64' + '\x65' + chr(2684 - 2585) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b101000 + 0o76) + chr(1836 - 1791) + '\070'), message=cpStk7cY1TJd, style=FHAk5xm055cs.OK) POx95m7SPOVy = mUA0duScFTh1.ShowModal() if POx95m7SPOVy == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xa7\x01\xf3N\xa9'), '\x64' + chr(1624 - 1523) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(5776 - 5674) + '\055' + '\070')): roI3spqORKae(mUA0duScFTh1, roI3spqORKae(ES5oEprVxulp(b'\xaa \xdfu\x90\x94\x06'), chr(0b111 + 0o135) + chr(101) + chr(205 - 106) + chr(111) + chr(0b100011 + 0o101) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b111001 + 0o55) + chr(1478 - 1433) + chr(0b100101 + 0o23)))() if dclkBu6Bdnnh: raise dclkBu6Bdnnh hXMPsSrOQzbh.bSiGoWKHgDdJ = RYEhqzIVZREo.Contribution(hXMPsSrOQzbh.GP1zEShDyCxL)
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_btn_upload
def on_btn_upload(self, event): """ Try to run upload_magic. Open validation mode if the upload file has problems. """ if not self.check_for_uncombined_files(): return outstring="upload_magic.py" print("-I- running python script:\n %s"%(outstring)) wait = wx.BusyInfo("Please wait, working...") wx.SafeYield() self.contribution.tables['measurements'].add_measurement_names() if self.data_model_num == 3: res, error_message, has_problems, all_failing_items = ipmag.upload_magic(concat=False, dir_path=self.WD, vocab=self.contribution.vocab, contribution=self.contribution) if self.data_model_num == 2: res, error_message, errors = ipmag.upload_magic2(dir_path=self.WD, data_model=self.er_magic.data_model) del wait if res: text = "You are ready to upload!\n{} was generated in {}".format(os.path.split(res)[1], os.path.split(res)[0]) dlg = pw.ChooseOne(self, "Go to MagIC for uploading", "Not ready yet", text, "Saved") del wait #dlg = wx.MessageDialog(self, caption="Saved", message=text, style=wx.OK) else: text = "There were some problems with the creation of your upload file.\nError message: {}\nSee Terminal/message window for details".format(error_message) dlg = wx.MessageDialog(self, caption="Error", message=text, style=wx.OK) dlg.Centre() result = dlg.ShowModal() if result == wx.ID_OK: dlg.Destroy() if result == wx.ID_YES: pw.on_database_upload(None) if self.data_model_num == 3: if not res: from programs import magic_gui self.Disable() self.Hide() self.magic_gui_frame = magic_gui.MainFrame(self.WD, dmodel=self.data_model, title="Validations", contribution=self.contribution) self.magic_gui_frame.validation_mode = ['specimens'] self.magic_gui_frame.failing_items = all_failing_items self.magic_gui_frame.change_dir_button.Disable() self.magic_gui_frame.Centre() self.magic_gui_frame.Show() self.magic_gui_frame.highlight_problems(has_problems) # # change name of upload button to 'exit validation mode' self.magic_gui_frame.bSizer2.GetStaticBox().SetLabel('return to main GUI') self.magic_gui_frame.btn_upload.SetLabel("exit validation mode") # bind that button to quitting magic gui and re-enabling Pmag GUI self.magic_gui_frame.Bind(wx.EVT_BUTTON, self.on_end_validation, self.magic_gui_frame.btn_upload) # do binding so that closing/quitting re-opens the main frame self.magic_gui_frame.Bind(wx.EVT_CLOSE, self.on_end_validation) # this makes it work with only the validation window open self.magic_gui_frame.Bind(wx.EVT_MENU, lambda event: self.menubar.on_quit(event, self.magic_gui_frame), self.magic_gui_frame.menubar.file_quit) # this makes it work if an additional grid is open self.Bind(wx.EVT_MENU, lambda event: self.menubar.on_quit(event, self.magic_gui_frame), self.magic_gui_frame.menubar.file_quit)
python
def on_btn_upload(self, event): """ Try to run upload_magic. Open validation mode if the upload file has problems. """ if not self.check_for_uncombined_files(): return outstring="upload_magic.py" print("-I- running python script:\n %s"%(outstring)) wait = wx.BusyInfo("Please wait, working...") wx.SafeYield() self.contribution.tables['measurements'].add_measurement_names() if self.data_model_num == 3: res, error_message, has_problems, all_failing_items = ipmag.upload_magic(concat=False, dir_path=self.WD, vocab=self.contribution.vocab, contribution=self.contribution) if self.data_model_num == 2: res, error_message, errors = ipmag.upload_magic2(dir_path=self.WD, data_model=self.er_magic.data_model) del wait if res: text = "You are ready to upload!\n{} was generated in {}".format(os.path.split(res)[1], os.path.split(res)[0]) dlg = pw.ChooseOne(self, "Go to MagIC for uploading", "Not ready yet", text, "Saved") del wait #dlg = wx.MessageDialog(self, caption="Saved", message=text, style=wx.OK) else: text = "There were some problems with the creation of your upload file.\nError message: {}\nSee Terminal/message window for details".format(error_message) dlg = wx.MessageDialog(self, caption="Error", message=text, style=wx.OK) dlg.Centre() result = dlg.ShowModal() if result == wx.ID_OK: dlg.Destroy() if result == wx.ID_YES: pw.on_database_upload(None) if self.data_model_num == 3: if not res: from programs import magic_gui self.Disable() self.Hide() self.magic_gui_frame = magic_gui.MainFrame(self.WD, dmodel=self.data_model, title="Validations", contribution=self.contribution) self.magic_gui_frame.validation_mode = ['specimens'] self.magic_gui_frame.failing_items = all_failing_items self.magic_gui_frame.change_dir_button.Disable() self.magic_gui_frame.Centre() self.magic_gui_frame.Show() self.magic_gui_frame.highlight_problems(has_problems) # # change name of upload button to 'exit validation mode' self.magic_gui_frame.bSizer2.GetStaticBox().SetLabel('return to main GUI') self.magic_gui_frame.btn_upload.SetLabel("exit validation mode") # bind that button to quitting magic gui and re-enabling Pmag GUI self.magic_gui_frame.Bind(wx.EVT_BUTTON, self.on_end_validation, self.magic_gui_frame.btn_upload) # do binding so that closing/quitting re-opens the main frame self.magic_gui_frame.Bind(wx.EVT_CLOSE, self.on_end_validation) # this makes it work with only the validation window open self.magic_gui_frame.Bind(wx.EVT_MENU, lambda event: self.menubar.on_quit(event, self.magic_gui_frame), self.magic_gui_frame.menubar.file_quit) # this makes it work if an additional grid is open self.Bind(wx.EVT_MENU, lambda event: self.menubar.on_quit(event, self.magic_gui_frame), self.magic_gui_frame.menubar.file_quit)
[ "def", "on_btn_upload", "(", "self", ",", "event", ")", ":", "if", "not", "self", ".", "check_for_uncombined_files", "(", ")", ":", "return", "outstring", "=", "\"upload_magic.py\"", "print", "(", "\"-I- running python script:\\n %s\"", "%", "(", "outstring", ")", ")", "wait", "=", "wx", ".", "BusyInfo", "(", "\"Please wait, working...\"", ")", "wx", ".", "SafeYield", "(", ")", "self", ".", "contribution", ".", "tables", "[", "'measurements'", "]", ".", "add_measurement_names", "(", ")", "if", "self", ".", "data_model_num", "==", "3", ":", "res", ",", "error_message", ",", "has_problems", ",", "all_failing_items", "=", "ipmag", ".", "upload_magic", "(", "concat", "=", "False", ",", "dir_path", "=", "self", ".", "WD", ",", "vocab", "=", "self", ".", "contribution", ".", "vocab", ",", "contribution", "=", "self", ".", "contribution", ")", "if", "self", ".", "data_model_num", "==", "2", ":", "res", ",", "error_message", ",", "errors", "=", "ipmag", ".", "upload_magic2", "(", "dir_path", "=", "self", ".", "WD", ",", "data_model", "=", "self", ".", "er_magic", ".", "data_model", ")", "del", "wait", "if", "res", ":", "text", "=", "\"You are ready to upload!\\n{} was generated in {}\"", ".", "format", "(", "os", ".", "path", ".", "split", "(", "res", ")", "[", "1", "]", ",", "os", ".", "path", ".", "split", "(", "res", ")", "[", "0", "]", ")", "dlg", "=", "pw", ".", "ChooseOne", "(", "self", ",", "\"Go to MagIC for uploading\"", ",", "\"Not ready yet\"", ",", "text", ",", "\"Saved\"", ")", "del", "wait", "#dlg = wx.MessageDialog(self, caption=\"Saved\", message=text, style=wx.OK)", "else", ":", "text", "=", "\"There were some problems with the creation of your upload file.\\nError message: {}\\nSee Terminal/message window for details\"", ".", "format", "(", "error_message", ")", "dlg", "=", "wx", ".", "MessageDialog", "(", "self", ",", "caption", "=", "\"Error\"", ",", "message", "=", "text", ",", "style", "=", "wx", ".", "OK", ")", "dlg", ".", "Centre", "(", ")", "result", "=", "dlg", ".", "ShowModal", "(", ")", "if", "result", "==", "wx", ".", "ID_OK", ":", "dlg", ".", "Destroy", "(", ")", "if", "result", "==", "wx", ".", "ID_YES", ":", "pw", ".", "on_database_upload", "(", "None", ")", "if", "self", ".", "data_model_num", "==", "3", ":", "if", "not", "res", ":", "from", "programs", "import", "magic_gui", "self", ".", "Disable", "(", ")", "self", ".", "Hide", "(", ")", "self", ".", "magic_gui_frame", "=", "magic_gui", ".", "MainFrame", "(", "self", ".", "WD", ",", "dmodel", "=", "self", ".", "data_model", ",", "title", "=", "\"Validations\"", ",", "contribution", "=", "self", ".", "contribution", ")", "self", ".", "magic_gui_frame", ".", "validation_mode", "=", "[", "'specimens'", "]", "self", ".", "magic_gui_frame", ".", "failing_items", "=", "all_failing_items", "self", ".", "magic_gui_frame", ".", "change_dir_button", ".", "Disable", "(", ")", "self", ".", "magic_gui_frame", ".", "Centre", "(", ")", "self", ".", "magic_gui_frame", ".", "Show", "(", ")", "self", ".", "magic_gui_frame", ".", "highlight_problems", "(", "has_problems", ")", "#", "# change name of upload button to 'exit validation mode'", "self", ".", "magic_gui_frame", ".", "bSizer2", ".", "GetStaticBox", "(", ")", ".", "SetLabel", "(", "'return to main GUI'", ")", "self", ".", "magic_gui_frame", ".", "btn_upload", ".", "SetLabel", "(", "\"exit validation mode\"", ")", "# bind that button to quitting magic gui and re-enabling Pmag GUI", "self", ".", "magic_gui_frame", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_end_validation", ",", "self", ".", "magic_gui_frame", ".", "btn_upload", ")", "# do binding so that closing/quitting re-opens the main frame", "self", ".", "magic_gui_frame", ".", "Bind", "(", "wx", ".", "EVT_CLOSE", ",", "self", ".", "on_end_validation", ")", "# this makes it work with only the validation window open", "self", ".", "magic_gui_frame", ".", "Bind", "(", "wx", ".", "EVT_MENU", ",", "lambda", "event", ":", "self", ".", "menubar", ".", "on_quit", "(", "event", ",", "self", ".", "magic_gui_frame", ")", ",", "self", ".", "magic_gui_frame", ".", "menubar", ".", "file_quit", ")", "# this makes it work if an additional grid is open", "self", ".", "Bind", "(", "wx", ".", "EVT_MENU", ",", "lambda", "event", ":", "self", ".", "menubar", ".", "on_quit", "(", "event", ",", "self", ".", "magic_gui_frame", ")", ",", "self", ".", "magic_gui_frame", ".", "menubar", ".", "file_quit", ")" ]
Try to run upload_magic. Open validation mode if the upload file has problems.
[ "Try", "to", "run", "upload_magic", ".", "Open", "validation", "mode", "if", "the", "upload", "file", "has", "problems", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L684-L751
train
Upload a new MagIC file to MagIC
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + '\067' + chr(53), 58931 - 58923), nzTpIcepk0o8(chr(689 - 641) + chr(111) + '\x33' + chr(50) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(146 - 92) + chr(0b100100 + 0o15), 61531 - 61523), nzTpIcepk0o8(chr(0b110000) + chr(5783 - 5672) + '\x33' + chr(53) + '\062', 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(8435 - 8324) + chr(2103 - 2052) + '\066' + '\x32', 41903 - 41895), nzTpIcepk0o8(chr(0b110000) + chr(7562 - 7451) + '\062' + '\062' + chr(170 - 115), 11529 - 11521), nzTpIcepk0o8(chr(1917 - 1869) + '\x6f' + chr(739 - 688) + '\x33' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(2042 - 1988) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111 + 0o0) + chr(0b110010) + '\067', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b111 + 0o57) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + '\x35', 15058 - 15050), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b11110 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5047 - 4936) + '\062' + chr(0b10101 + 0o37) + chr(913 - 864), 63904 - 63896), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(1872 - 1817) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(0b1101 + 0o45) + '\062', 61135 - 61127), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(1461 - 1411) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101111) + chr(0b110011) + chr(0b110000) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(1483 - 1372) + '\x31' + chr(0b1110 + 0o46) + chr(603 - 552), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + chr(51) + '\066' + chr(0b11000 + 0o36), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\x34' + '\x34', 43897 - 43889), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + '\x33' + chr(1067 - 1019) + '\060', 11965 - 11957), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11010 + 0o31) + chr(2098 - 2044) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + '\x34' + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1000110 + 0o51) + chr(51) + chr(974 - 926) + '\x36', 0o10), nzTpIcepk0o8(chr(1810 - 1762) + chr(11588 - 11477) + chr(1105 - 1055) + chr(240 - 190) + chr(0b101001 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(52) + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(0b110 + 0o151) + chr(0b110000 + 0o2) + chr(55) + chr(0b10000 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110100) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1010 + 0o51) + chr(1883 - 1829), 0o10), nzTpIcepk0o8(chr(1801 - 1753) + chr(0b111111 + 0o60) + '\x33' + '\x37' + chr(356 - 306), 8), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + chr(2250 - 2199) + '\x32' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(2983 - 2872) + chr(0b100100 + 0o20) + chr(0b110001), 8), nzTpIcepk0o8(chr(1610 - 1562) + chr(0b101110 + 0o101) + chr(0b110101) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b111110 + 0o61) + chr(855 - 802) + chr(51), 61532 - 61524), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\x35', 29617 - 29609), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11011 + 0o26) + '\067' + chr(0b11101 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(8454 - 8343) + chr(1902 - 1852) + chr(0b100010 + 0o23) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(0b10110 + 0o33) + chr(0b110010) + chr(1980 - 1929), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(1662 - 1611) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000 + 0o3) + chr(0b110111) + '\x34', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(2462 - 2409) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd3'), chr(100) + chr(101) + chr(9180 - 9081) + '\x6f' + chr(1523 - 1423) + '\145')(chr(0b1110101) + '\164' + chr(8425 - 8323) + chr(0b101101) + chr(920 - 864)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def XemKEM13heKt(hXMPsSrOQzbh, D4ybylS07yGH): if not roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9e\xbb\x94\x89\x99\xc8\xbd\x9fe\xefPv\xc2\x95?0\xa8\r\x93\x80\x9f\x91H\xaa\xf0S'), chr(0b1000111 + 0o35) + chr(101) + chr(99) + '\x6f' + chr(100) + chr(0b100100 + 0o101))('\165' + chr(0b1110100) + '\146' + chr(0b101101) + chr(56)))(): return d9IYhOYAA219 = roI3spqORKae(ES5oEprVxulp(b'\x88\xa3\x9d\x85\x93\xf3\x84\x9dv\xd7L{\x8f\x8a+'), chr(0b111 + 0o135) + chr(0b110 + 0o137) + chr(0b1100011) + '\x6f' + chr(5755 - 5655) + chr(0b10100 + 0o121))(chr(0b1110101) + '\164' + chr(102) + chr(45) + '\070') v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xd0\x9a\xdc\xca\x80\xe2\xb5\x9e~\xdeB8\xd1\x83&:\xae\r\xd6\x97\xa3\x85H\xb6\xe1\x1a\xb1\xc3;\x89'), chr(9913 - 9813) + chr(0b100011 + 0o102) + chr(99) + chr(0b1010101 + 0o32) + chr(0b1100000 + 0o4) + '\x65')(chr(0b1110101) + '\x74' + '\146' + '\055' + '\x38') % d9IYhOYAA219) VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\xad\xbf\x94\x8b\x81\xf2\xfb\x87v\xd9Q4\x81\x8d= \xaa\n\x98\x83\xee\xd9\x0f'), chr(100) + chr(0b11110 + 0o107) + chr(979 - 880) + '\x6f' + chr(2850 - 2750) + '\x65')('\165' + chr(0b11001 + 0o133) + '\146' + chr(0b101101) + chr(0b111000))) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xae\xb2\x97\x8f\xab\xfe\xbe\x9cs'), chr(7779 - 7679) + '\x65' + chr(0b1011 + 0o130) + chr(0b1101111) + chr(100) + '\x65')(chr(10776 - 10659) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000)))() roI3spqORKae(hXMPsSrOQzbh.contribution.tables[roI3spqORKae(ES5oEprVxulp(b'\x90\xb6\x90\x99\x87\xe5\xbe\x9dr\xdeQk'), chr(0b1100100) + '\x65' + chr(2849 - 2750) + chr(0b1101111) + chr(7956 - 7856) + chr(8589 - 8488))('\x75' + chr(0b1110 + 0o146) + chr(0b1100110) + '\055' + chr(2346 - 2290))], roI3spqORKae(ES5oEprVxulp(b'\x9c\xb7\x95\xb5\x9f\xf2\xba\x83b\xc2@u\xc4\x94&\r\xaf\x02\x9b\x81\xb3'), chr(8359 - 8259) + chr(0b1100101) + chr(99) + '\157' + chr(0b1000011 + 0o41) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + '\070'))() if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x99\xb2\x85\x8b\xad\xfa\xb4\x94r\xdczv\xd4\x97'), chr(100) + chr(0b1100101) + chr(9799 - 9700) + chr(111) + '\x64' + chr(101))(chr(0b1110101) + chr(13247 - 13131) + '\146' + '\x2d' + chr(1515 - 1459))) == nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(0b110011), 56473 - 56465): (_XdQFJpnzJor, bS7FPLkNNcSI, LGgTam7m_H31, Zj7fQyMirGCk) = GL09QZtbvKPg.upload_magic(concat=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2095 - 2047), 1525 - 1517), dir_path=hXMPsSrOQzbh.GP1zEShDyCxL, vocab=hXMPsSrOQzbh.contribution.Gco8Sd5Rk1TP, contribution=hXMPsSrOQzbh.bSiGoWKHgDdJ) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x99\xb2\x85\x8b\xad\xfa\xb4\x94r\xdczv\xd4\x97'), chr(0b111110 + 0o46) + chr(0b101010 + 0o73) + chr(99) + chr(9296 - 9185) + chr(0b1100100) + '\x65')('\x75' + chr(13443 - 13327) + '\x66' + chr(0b11111 + 0o16) + chr(56))) == nzTpIcepk0o8('\060' + chr(4715 - 4604) + chr(0b110010), 0b1000): (_XdQFJpnzJor, bS7FPLkNNcSI, DB8z4Qfb0aaT) = GL09QZtbvKPg.upload_magic2(dir_path=hXMPsSrOQzbh.GP1zEShDyCxL, data_model=hXMPsSrOQzbh.er_magic.data_model) del VBnaM0jy14aO if _XdQFJpnzJor: cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xa4\xbc\x84\xca\x93\xe5\xbe\xd0e\xd5D|\xd8\xda&=\xe1\x16\x86\x88\xaf\x96E\xe7\x9f[\xc6\xc3i\x9b\xa1\x01HNc\x18\xdf2\xad\x99\x99\xf3\x98\x84\xd2\xec\xa6'), chr(4457 - 4357) + chr(101) + chr(3081 - 2982) + chr(0b1101111) + chr(0b1100010 + 0o2) + chr(101))(chr(4153 - 4036) + chr(0b101011 + 0o111) + '\x66' + chr(1429 - 1384) + chr(56)).q33KG3foQ_CJ(aHUqKstZLeS6.path.LfRrQOxuDvnC(_XdQFJpnzJor)[nzTpIcepk0o8(chr(683 - 635) + chr(111) + '\x31', ord("\x08"))], aHUqKstZLeS6.path.LfRrQOxuDvnC(_XdQFJpnzJor)[nzTpIcepk0o8(chr(48) + '\x6f' + '\060', 8)]) mUA0duScFTh1 = saCGFe0zE73j.ChooseOne(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xba\xbc\xd1\x9e\x9d\xb7\x96\x91p\xf9f8\xc7\x95 r\xb4\x13\x9a\x8b\xa1\x93H\xa8\xf2'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(4381 - 4281) + '\145')('\x75' + '\x74' + chr(7334 - 7232) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xb3\xbc\x85\xca\x80\xf2\xba\x94n\x90\\}\xd5'), chr(6182 - 6082) + chr(0b11011 + 0o112) + '\143' + '\x6f' + chr(100) + '\x65')(chr(9002 - 8885) + chr(0b1000011 + 0o61) + chr(0b101111 + 0o67) + chr(0b101101) + '\x38'), cpStk7cY1TJd, roI3spqORKae(ES5oEprVxulp(b'\xae\xb2\x87\x8f\x96'), '\144' + chr(0b1000000 + 0o45) + '\143' + chr(5687 - 5576) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(261 - 205))) del VBnaM0jy14aO else: cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xa9\xbb\x94\x98\x97\xb7\xac\x95e\xd5\x05k\xce\x977r\xb1\x11\x99\x86\xac\x92L\xb5\xb5W\xd2\x97v\xda\xa6IJ\x0bn\x0f\xc82\xad\x95\x92\xbd\xd1\x85\x94\xb7\xa2\x9fb\xc2\x05m\xd1\x96=3\xa5C\x90\x8d\xac\x92\x0f\xcc\xd0R\xc9\x8cl\xda\xbfD\\Xl\x1a\xc8i\xf9\x87\x80\xd9\xa2\x8f\x97\xb7\x8f\x95e\xddLv\xc0\x96}?\xa4\x10\x85\x85\xa7\x92\x01\xb1\xfcN\xdf\x8ci\xda\xb4N]\x0bi\x18\xd92\xb0\x90\x8e'), '\x64' + chr(101) + chr(4148 - 4049) + chr(111) + chr(100) + '\x65')(chr(11346 - 11229) + chr(0b1001111 + 0o45) + chr(4917 - 4815) + '\055' + chr(0b111000)).q33KG3foQ_CJ(bS7FPLkNNcSI) mUA0duScFTh1 = FHAk5xm055cs.MessageDialog(hXMPsSrOQzbh, caption=roI3spqORKae(ES5oEprVxulp(b'\xb8\xa1\x83\x85\x80'), chr(4856 - 4756) + '\145' + chr(2678 - 2579) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)), message=cpStk7cY1TJd, style=FHAk5xm055cs.OK) roI3spqORKae(mUA0duScFTh1, roI3spqORKae(ES5oEprVxulp(b'\xbe\xb6\x9f\x9e\x80\xf2'), '\x64' + chr(2014 - 1913) + '\x63' + chr(111) + chr(100) + chr(0b1011000 + 0o15))(chr(0b1011010 + 0o33) + '\x74' + chr(0b1100110) + '\055' + '\x38'))() POx95m7SPOVy = mUA0duScFTh1.ShowModal() if POx95m7SPOVy == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb4\x97\xae\xa5\xb9'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(0b101010 + 0o113) + chr(11658 - 11542) + chr(3060 - 2958) + chr(0b11100 + 0o21) + chr(56))): roI3spqORKae(mUA0duScFTh1, roI3spqORKae(ES5oEprVxulp(b'\xb9\xb6\x82\x9e\x80\xf8\xa2'), '\x64' + '\145' + chr(0b1100011) + chr(0b1100101 + 0o12) + chr(4394 - 4294) + chr(0b1100101))(chr(117) + chr(3191 - 3075) + chr(4205 - 4103) + chr(0b101101) + chr(792 - 736)))() if POx95m7SPOVy == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb4\x97\xae\xb3\xb7\xc4'), chr(100) + chr(101) + chr(4456 - 4357) + chr(8235 - 8124) + chr(4506 - 4406) + chr(0b1011100 + 0o11))('\x75' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(2314 - 2258))): roI3spqORKae(saCGFe0zE73j, roI3spqORKae(ES5oEprVxulp(b'\x92\xbd\xae\x8e\x93\xe3\xba\x92v\xc3@G\xd4\x8a>=\xa0\x07'), chr(0b1001001 + 0o33) + chr(101) + '\x63' + chr(10842 - 10731) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)))(None) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x99\xb2\x85\x8b\xad\xfa\xb4\x94r\xdczv\xd4\x97'), chr(0b10010 + 0o122) + chr(101) + '\143' + chr(0b1001100 + 0o43) + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(0b10101 + 0o121) + chr(45) + chr(0b111000))) == nzTpIcepk0o8(chr(534 - 486) + chr(0b1101111) + chr(51), 8): if not _XdQFJpnzJor: (uA9HHbzhmNim,) = (roI3spqORKae(rFFUeiYWzOhx(roI3spqORKae(ES5oEprVxulp(b'\x8d\xa1\x9e\x8d\x80\xf6\xb6\x83'), '\x64' + '\145' + chr(5879 - 5780) + chr(5466 - 5355) + chr(5281 - 5181) + chr(101))(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x90\xb2\x96\x83\x91\xc8\xbc\x85~'), chr(5076 - 4976) + '\145' + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(117) + '\x74' + '\x66' + chr(45) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\x90\xb2\x96\x83\x91\xc8\xbc\x85~'), chr(100) + chr(0b11111 + 0o106) + chr(1470 - 1371) + chr(0b1101011 + 0o4) + '\x64' + '\145')(chr(0b1110101) + chr(0b1000000 + 0o64) + chr(507 - 405) + chr(1323 - 1278) + '\070')),) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb9\xba\x82\x8b\x90\xfb\xbe'), '\144' + '\x65' + chr(0b111111 + 0o44) + chr(8270 - 8159) + chr(0b110111 + 0o55) + chr(2550 - 2449))('\165' + chr(116) + '\x66' + '\055' + chr(0b111000)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb5\xba\x95\x8f'), chr(5808 - 5708) + chr(0b1111 + 0o126) + '\x63' + '\x6f' + chr(0b111011 + 0o51) + '\145')(chr(117) + '\164' + '\x66' + chr(1711 - 1666) + chr(0b10010 + 0o46)))() hXMPsSrOQzbh.fleACATnj46T = uA9HHbzhmNim.MainFrame(hXMPsSrOQzbh.GP1zEShDyCxL, dmodel=hXMPsSrOQzbh.data_model, title=roI3spqORKae(ES5oEprVxulp(b'\xab\xb2\x9d\x83\x96\xf6\xaf\x99x\xdeV'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b1100001 + 0o4))(chr(10647 - 10530) + '\x74' + chr(102) + chr(200 - 155) + chr(3066 - 3010)), contribution=hXMPsSrOQzbh.bSiGoWKHgDdJ) hXMPsSrOQzbh.magic_gui_frame.ecawvoP84Sdo = [roI3spqORKae(ES5oEprVxulp(b'\x8e\xa3\x94\x89\x9b\xfa\xbe\x9ed'), '\144' + chr(3768 - 3667) + '\143' + chr(0b1101100 + 0o3) + chr(0b1100 + 0o130) + chr(0b10000 + 0o125))('\165' + '\164' + '\x66' + '\x2d' + chr(0b111000))] hXMPsSrOQzbh.magic_gui_frame.NjwWpmQazbRM = Zj7fQyMirGCk roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame.change_dir_button, roI3spqORKae(ES5oEprVxulp(b'\xb9\xba\x82\x8b\x90\xfb\xbe'), chr(3423 - 3323) + chr(7966 - 7865) + chr(9025 - 8926) + '\x6f' + chr(0b1100100) + '\145')(chr(117) + '\164' + chr(4325 - 4223) + chr(973 - 928) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xbe\xb6\x9f\x9e\x80\xf2'), '\144' + '\145' + chr(0b100001 + 0o102) + chr(0b1000011 + 0o54) + chr(2084 - 1984) + chr(101))('\x75' + chr(116) + chr(102) + '\x2d' + '\070'))() roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xae\xbb\x9e\x9d'), chr(100) + chr(0b1100101) + chr(1443 - 1344) + chr(111) + chr(100) + '\145')(chr(0b1001000 + 0o55) + '\x74' + '\x66' + chr(0b101101) + '\070'))() roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\x95\xba\x96\x82\x9e\xfe\xbc\x98c\xefUj\xce\x98>7\xac\x10'), chr(0b1100100) + chr(1393 - 1292) + '\143' + chr(0b1010001 + 0o36) + '\144' + chr(0b1000 + 0o135))('\x75' + chr(0b1110100) + chr(8693 - 8591) + '\x2d' + chr(56)))(LGgTam7m_H31) roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame.bSizer2.GetStaticBox(), roI3spqORKae(ES5oEprVxulp(b'\xae\xb6\x85\xa6\x93\xf5\xbe\x9c'), chr(9055 - 8955) + chr(9131 - 9030) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1001010 + 0o33))(chr(10611 - 10494) + '\x74' + chr(8300 - 8198) + chr(224 - 179) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x8f\xb6\x85\x9f\x80\xf9\xfb\x84x\x90Hy\xc8\x94r\x15\x94*'), chr(436 - 336) + chr(6332 - 6231) + chr(0b111011 + 0o50) + chr(0b1101111) + '\144' + '\145')(chr(0b0 + 0o165) + chr(8988 - 8872) + chr(1697 - 1595) + '\x2d' + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame.btn_upload, roI3spqORKae(ES5oEprVxulp(b'\xae\xb6\x85\xa6\x93\xf5\xbe\x9c'), chr(2303 - 2203) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(101))('\165' + '\x74' + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x98\xab\x98\x9e\xd2\xe1\xba\x9c~\xd4Dl\xc8\x95<r\xac\x0c\x92\x81'), chr(7563 - 7463) + chr(101) + '\143' + '\x6f' + chr(2664 - 2564) + chr(0b1100101))(chr(0b1110101) + chr(0b1011000 + 0o34) + '\146' + chr(1586 - 1541) + '\x38')) roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xbf\xba\x9f\x8e'), '\x64' + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(6817 - 6716))(chr(0b1011110 + 0o27) + chr(0b1010111 + 0o35) + '\x66' + '\x2d' + chr(56)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb8\x85\xa5\xb5\xb0\xc2\x8f\xa4X\xfe'), chr(0b1100100) + '\x65' + chr(99) + chr(3914 - 3803) + chr(0b1100100) + chr(101))(chr(6453 - 6336) + chr(0b1110100) + '\146' + chr(1366 - 1321) + chr(2108 - 2052))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\xbd\xae\x8f\x9c\xf3\x84\x86v\xdcL|\xc0\x8e;=\xaf'), chr(0b1011011 + 0o11) + '\x65' + chr(7314 - 7215) + chr(0b1101111) + '\144' + chr(0b11001 + 0o114))(chr(117) + chr(116) + chr(102) + '\x2d' + '\070')), roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xb1\xe6\xb9\x8f\xc3\xdd\x8c\xb8$\xd4Sq'), '\144' + '\x65' + chr(99) + '\x6f' + chr(100) + chr(101))(chr(117) + chr(0b1110100) + chr(102) + chr(45) + '\x38'))) roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xbf\xba\x9f\x8e'), '\144' + '\145' + '\x63' + chr(9006 - 8895) + '\144' + chr(101))(chr(0b1110101) + chr(10209 - 10093) + chr(6598 - 6496) + chr(0b11111 + 0o16) + chr(0b10010 + 0o46)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb8\x85\xa5\xb5\xb1\xdb\x94\xa3R'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1001110 + 0o30) + chr(1400 - 1355) + chr(2139 - 2083))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\xbd\xae\x8f\x9c\xf3\x84\x86v\xdcL|\xc0\x8e;=\xaf'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(2294 - 2194) + chr(101))(chr(0b1110101) + chr(0b1001111 + 0o45) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(56)))) roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'\xbf\xba\x9f\x8e'), '\x64' + '\145' + '\x63' + chr(1970 - 1859) + '\x64' + chr(0b1100101))(chr(8980 - 8863) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb8\x85\xa5\xb5\xbf\xd2\x95\xa5'), chr(8387 - 8287) + '\x65' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b100001 + 0o14) + chr(1802 - 1746))), lambda D4ybylS07yGH: roI3spqORKae(hXMPsSrOQzbh.menubar, roI3spqORKae(ES5oEprVxulp(b'\x92\xbd\xae\x9b\x87\xfe\xaf'), chr(5883 - 5783) + chr(8920 - 8819) + '\143' + chr(0b1001000 + 0o47) + chr(6857 - 6757) + chr(0b11110 + 0o107))(chr(0b11 + 0o162) + chr(0b1101111 + 0o5) + chr(0b11011 + 0o113) + chr(773 - 728) + '\x38'))(D4ybylS07yGH, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9b\xbf\x94\xab\xb1\xd6\x8f\x9e}\x84\x13L'), '\144' + '\145' + chr(0b1100 + 0o127) + chr(8881 - 8770) + '\x64' + chr(101))('\165' + '\164' + chr(5678 - 5576) + chr(0b10 + 0o53) + chr(0b11000 + 0o40)))), roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame.menubar, roI3spqORKae(ES5oEprVxulp(b'\x9b\xba\x9d\x8f\xad\xe6\xae\x99c'), chr(9023 - 8923) + chr(0b110 + 0o137) + '\x63' + chr(0b100100 + 0o113) + chr(0b100011 + 0o101) + chr(4432 - 4331))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbf\xba\x9f\x8e'), chr(0b1011100 + 0o10) + chr(4128 - 4027) + chr(0b10010 + 0o121) + chr(0b1010110 + 0o31) + '\x64' + '\x65')(chr(13116 - 12999) + '\164' + chr(0b101101 + 0o71) + chr(45) + '\x38'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xb8\x85\xa5\xb5\xbf\xd2\x95\xa5'), chr(0b110111 + 0o55) + '\145' + chr(0b1100011) + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(9762 - 9660) + chr(45) + '\x38')), lambda D4ybylS07yGH: roI3spqORKae(hXMPsSrOQzbh.menubar, roI3spqORKae(ES5oEprVxulp(b'\x92\xbd\xae\x9b\x87\xfe\xaf'), chr(0b111010 + 0o52) + chr(2244 - 2143) + '\143' + chr(111) + '\x64' + '\x65')(chr(6640 - 6523) + chr(12453 - 12337) + '\x66' + '\x2d' + chr(0b11011 + 0o35)))(D4ybylS07yGH, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9b\xbf\x94\xab\xb1\xd6\x8f\x9e}\x84\x13L'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + '\x64' + chr(5074 - 4973))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(56)))), roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame.menubar, roI3spqORKae(ES5oEprVxulp(b'\x9b\xba\x9d\x8f\xad\xe6\xae\x99c'), chr(8377 - 8277) + '\145' + chr(3646 - 3547) + chr(0b110 + 0o151) + chr(0b1100001 + 0o3) + '\x65')('\165' + chr(4126 - 4010) + chr(0b1100110) + '\055' + '\070')))
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_end_validation
def on_end_validation(self, event): """ Switch back from validation mode to main Pmag GUI mode. Hide validation frame and show main frame. """ self.Enable() self.Show() self.magic_gui_frame.Destroy()
python
def on_end_validation(self, event): """ Switch back from validation mode to main Pmag GUI mode. Hide validation frame and show main frame. """ self.Enable() self.Show() self.magic_gui_frame.Destroy()
[ "def", "on_end_validation", "(", "self", ",", "event", ")", ":", "self", ".", "Enable", "(", ")", "self", ".", "Show", "(", ")", "self", ".", "magic_gui_frame", ".", "Destroy", "(", ")" ]
Switch back from validation mode to main Pmag GUI mode. Hide validation frame and show main frame.
[ "Switch", "back", "from", "validation", "mode", "to", "main", "Pmag", "GUI", "mode", ".", "Hide", "validation", "frame", "and", "show", "main", "frame", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L755-L762
train
Switch back from validation mode to main Pmag GUI mode and show main frame and hide validation frame and show main frame.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\063', 0o10), nzTpIcepk0o8(chr(947 - 899) + chr(0b1101111) + chr(0b11011 + 0o26) + chr(1752 - 1698) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\065' + chr(0b110000 + 0o0), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b10001 + 0o37) + '\064', 0o10), nzTpIcepk0o8(chr(411 - 363) + chr(111) + '\062' + chr(0b1011 + 0o46) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\x34' + chr(228 - 176), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110110) + '\x30', 25307 - 25299), nzTpIcepk0o8(chr(204 - 156) + chr(111) + '\063' + '\x36' + '\x34', 0o10), nzTpIcepk0o8(chr(535 - 487) + '\157' + chr(651 - 602) + '\067' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3226 - 3115) + chr(0b101 + 0o61) + chr(2096 - 2046), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010100 + 0o33) + chr(1039 - 988) + '\x30' + chr(0b110001), 14475 - 14467), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(53) + '\060', 43308 - 43300), nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(0b100001 + 0o22) + chr(1134 - 1086) + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(51) + chr(0b110100) + chr(0b1010 + 0o53), 0o10), nzTpIcepk0o8(chr(793 - 745) + chr(111) + '\063' + chr(48) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\067' + chr(0b1010 + 0o54), 39184 - 39176), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(64 - 14) + chr(0b101010 + 0o7) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b11000 + 0o32) + chr(0b1 + 0o66) + chr(0b1100 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(233 - 185) + chr(0b1101111) + chr(0b100110 + 0o16) + chr(569 - 515), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000 + 0o7) + '\063', 1708 - 1700), nzTpIcepk0o8(chr(1094 - 1046) + chr(0b1101111) + chr(1356 - 1307) + '\065' + chr(0b10 + 0o64), 44541 - 44533), nzTpIcepk0o8('\x30' + chr(6105 - 5994) + chr(1468 - 1419) + '\x37' + chr(0b110011), 8), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + '\062' + chr(0b110100) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1000101 + 0o52) + '\x31' + chr(55) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2315 - 2260) + '\063', 8), nzTpIcepk0o8(chr(779 - 731) + chr(111) + chr(50) + chr(0b110010) + chr(601 - 551), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11111 + 0o23) + chr(0b110101 + 0o1) + chr(0b101100 + 0o12), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b110011) + chr(0b110100) + '\061', 36254 - 36246), nzTpIcepk0o8(chr(0b110000) + chr(11751 - 11640) + '\x33' + chr(1496 - 1446) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(0b110010) + chr(0b10110 + 0o41) + chr(1987 - 1939), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\061' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(0b11000 + 0o32) + '\x30' + chr(0b110000), 64145 - 64137), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101110 + 0o5) + '\x31' + chr(0b10110 + 0o34), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b110100) + '\x34', 8), nzTpIcepk0o8(chr(0b110000) + chr(484 - 373) + '\x32' + chr(0b110001) + chr(48), 54211 - 54203), nzTpIcepk0o8(chr(2104 - 2056) + chr(0b1101111) + chr(0b101111 + 0o2) + '\066' + chr(2064 - 2013), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(2211 - 2163) + chr(0b101011 + 0o104) + chr(0b110001) + chr(0b100100 + 0o14) + '\061', 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b110111) + chr(1955 - 1904), 0b1000), nzTpIcepk0o8(chr(934 - 886) + chr(6992 - 6881) + '\x32' + chr(53) + '\x33', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\065' + chr(2132 - 2084), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'='), chr(0b110011 + 0o61) + chr(101) + chr(99) + '\157' + chr(100) + chr(101))(chr(0b110111 + 0o76) + chr(5752 - 5636) + chr(0b101100 + 0o72) + chr(0b101101) + chr(0b11111 + 0o31)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nRE0z88Ps_zE(hXMPsSrOQzbh, D4ybylS07yGH): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'V\x1f\x89&\xe2\x81'), chr(0b101111 + 0o65) + chr(0b1000 + 0o135) + '\143' + chr(111) + '\x64' + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(0b101101) + chr(0b101111 + 0o11)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'@\x19\x873'), chr(100) + chr(0b1100101) + chr(0b1100001 + 0o2) + chr(6589 - 6478) + '\144' + chr(7153 - 7052))('\165' + chr(0b1110100) + chr(102) + chr(920 - 875) + chr(0b111000)))() roI3spqORKae(hXMPsSrOQzbh.magic_gui_frame, roI3spqORKae(ES5oEprVxulp(b'W\x14\x9b0\xfc\x8b\xc9'), '\144' + chr(0b1000001 + 0o44) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110 + 0o147) + '\164' + chr(6200 - 6098) + chr(0b101101) + '\x38'))()
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.on_menu_exit
def on_menu_exit(self, event): """ Exit the GUI """ # also delete appropriate copy file try: self.help_window.Destroy() except: pass if '-i' in sys.argv: self.Destroy() try: sys.exit() # can raise TypeError if wx inspector was used except Exception as ex: if isinstance(ex, TypeError): pass else: raise ex
python
def on_menu_exit(self, event): """ Exit the GUI """ # also delete appropriate copy file try: self.help_window.Destroy() except: pass if '-i' in sys.argv: self.Destroy() try: sys.exit() # can raise TypeError if wx inspector was used except Exception as ex: if isinstance(ex, TypeError): pass else: raise ex
[ "def", "on_menu_exit", "(", "self", ",", "event", ")", ":", "# also delete appropriate copy file", "try", ":", "self", ".", "help_window", ".", "Destroy", "(", ")", "except", ":", "pass", "if", "'-i'", "in", "sys", ".", "argv", ":", "self", ".", "Destroy", "(", ")", "try", ":", "sys", ".", "exit", "(", ")", "# can raise TypeError if wx inspector was used", "except", "Exception", "as", "ex", ":", "if", "isinstance", "(", "ex", ",", "TypeError", ")", ":", "pass", "else", ":", "raise", "ex" ]
Exit the GUI
[ "Exit", "the", "GUI" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L765-L782
train
Exit the GUI
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(8812 - 8701) + '\063' + '\x33' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(977 - 925) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b110010) + chr(0b10101 + 0o35), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(2007 - 1958) + chr(0b110110), 48108 - 48100), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + chr(921 - 866) + chr(1856 - 1807), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + '\062' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(959 - 911) + '\x6f' + chr(0b1010 + 0o50) + chr(54) + '\x34', 34016 - 34008), nzTpIcepk0o8('\060' + chr(1231 - 1120) + chr(0b101101 + 0o4) + chr(88 - 39) + chr(0b101001 + 0o11), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5909 - 5798) + chr(51) + chr(111 - 62) + chr(514 - 463), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b110011) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(53) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + chr(3944 - 3833) + chr(834 - 785) + chr(0b101110 + 0o4) + chr(0b1010 + 0o47), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(249 - 197) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(9427 - 9316) + chr(0b101100 + 0o7) + chr(0b101001 + 0o16) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1777 - 1727) + chr(52) + chr(1398 - 1343), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(218 - 167) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(2257 - 2206), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(0b110010) + '\x34' + chr(0b101000 + 0o17), 8), nzTpIcepk0o8(chr(821 - 773) + chr(2144 - 2033) + '\x32' + chr(52) + chr(49), 0b1000), nzTpIcepk0o8(chr(844 - 796) + chr(0b1101111) + chr(0b110010) + chr(1942 - 1893) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110110) + chr(0b11010 + 0o31), 0b1000), nzTpIcepk0o8(chr(650 - 602) + chr(111) + chr(0b110101) + chr(1605 - 1556), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(3220 - 3109) + '\061' + '\x31' + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1111 + 0o44) + chr(1194 - 1141) + chr(50), 8), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + chr(0b10000 + 0o43) + chr(0b110010), 60244 - 60236), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(53) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1777 - 1729) + chr(0b1001100 + 0o43) + chr(0b1111 + 0o42) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\066' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(0b110010) + '\061' + '\x36', 8), nzTpIcepk0o8(chr(1769 - 1721) + '\157' + chr(2182 - 2133) + '\062' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1185 - 1135) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b11 + 0o55), 27806 - 27798), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1367 - 1318) + '\065' + chr(0b1100 + 0o47), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1980 - 1929) + '\x32' + '\x30', 7142 - 7134), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b11000 + 0o127) + '\x32' + chr(0b110111) + chr(50), 0b1000), nzTpIcepk0o8(chr(1397 - 1349) + chr(0b1101111) + '\062' + '\x37' + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b111000 + 0o67) + chr(2379 - 2329) + chr(48) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(55) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(9427 - 9316) + chr(0b11 + 0o56) + chr(2145 - 2094), 24874 - 24866)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(0b100010 + 0o16), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf0'), chr(100) + chr(101) + '\x63' + '\x6f' + chr(100) + chr(0b1100101))(chr(5007 - 4890) + '\x74' + chr(102) + chr(608 - 563) + chr(0b1011 + 0o55)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def FL0e8t5kv0Rg(hXMPsSrOQzbh, D4ybylS07yGH): try: roI3spqORKae(hXMPsSrOQzbh.help_window, roI3spqORKae(ES5oEprVxulp(b'\x9a@\xa1\xfaK\xbb\xcd'), chr(100) + '\145' + '\143' + chr(0b1010010 + 0o35) + '\144' + chr(0b1010000 + 0o25))('\165' + '\x74' + chr(0b1100011 + 0o3) + '\x2d' + chr(0b111000)))() except UtiWT6f6p9yZ: pass if roI3spqORKae(ES5oEprVxulp(b'\xf3L'), '\144' + chr(0b111111 + 0o46) + chr(0b1001010 + 0o31) + chr(111) + chr(0b100111 + 0o75) + chr(4618 - 4517))(chr(0b1110101) + chr(0b111010 + 0o72) + chr(0b1100110) + chr(1596 - 1551) + chr(2717 - 2661)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xbfO\x9b\xcan\xad\xec\x07\x89?\xd93'), chr(3463 - 3363) + chr(0b111100 + 0o51) + '\143' + chr(0b1010111 + 0o30) + '\x64' + '\x65')('\165' + chr(0b1110100) + chr(6611 - 6509) + chr(0b101101) + chr(56))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9a@\xa1\xfaK\xbb\xcd'), chr(100) + chr(101) + '\143' + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(7786 - 7684) + '\055' + chr(0b11111 + 0o31)))() try: roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x84P\xa0\xe4Z\x81\xf8{\xb8-\xabi'), chr(100) + '\145' + chr(6763 - 6664) + chr(0b1101111) + chr(0b101000 + 0o74) + chr(0b1100101))(chr(5922 - 5805) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2183 - 2127)))() except zfo2Sgkz3IVJ as dclkBu6Bdnnh: if suIjIS24Zkqw(dclkBu6Bdnnh, jZIjKu8IFANs): pass else: raise dclkBu6Bdnnh
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.check_for_uncombined_files
def check_for_uncombined_files(self): """ Go through working directory and check for uncombined files. (I.e., location1_specimens.txt and location2_specimens.txt but no specimens.txt.) Show a warning if uncombined files are found. Return True if no uncombined files are found OR user elects to continue anyway. """ wd_files = os.listdir(self.WD) if self.data_model_num == 2: ftypes = ['er_specimens.txt', 'er_samples.txt', 'er_sites.txt', 'er_locations.txt', 'pmag_specimens.txt', 'pmag_samples.txt', 'pmag_sites.txt', 'rmag_specimens.txt', 'rmag_results.txt', 'rmag_anisotropy.txt'] else: ftypes = ['specimens.txt', 'samples.txt', 'sites.txt', 'locations.txt'] uncombined = set() for ftype in ftypes: if ftype not in wd_files: for f in wd_files: if f.endswith('_' + ftype): uncombined.add(ftype) if uncombined: msg = 'It looks like you may have uncombined files of type(s) {} in your working directory.\nYou may want to go back to Step 1 and finish combining all files.\nIf you continue, the program will try to extract as much information as possible from your measurement file.'.format(", ".join(list(uncombined))) dlg = pw.ChooseOne(self, 'Continue anyway', 'Go back', msg, title="Warning!") res = dlg.ShowModal() if res == wx.ID_NO: return return True
python
def check_for_uncombined_files(self): """ Go through working directory and check for uncombined files. (I.e., location1_specimens.txt and location2_specimens.txt but no specimens.txt.) Show a warning if uncombined files are found. Return True if no uncombined files are found OR user elects to continue anyway. """ wd_files = os.listdir(self.WD) if self.data_model_num == 2: ftypes = ['er_specimens.txt', 'er_samples.txt', 'er_sites.txt', 'er_locations.txt', 'pmag_specimens.txt', 'pmag_samples.txt', 'pmag_sites.txt', 'rmag_specimens.txt', 'rmag_results.txt', 'rmag_anisotropy.txt'] else: ftypes = ['specimens.txt', 'samples.txt', 'sites.txt', 'locations.txt'] uncombined = set() for ftype in ftypes: if ftype not in wd_files: for f in wd_files: if f.endswith('_' + ftype): uncombined.add(ftype) if uncombined: msg = 'It looks like you may have uncombined files of type(s) {} in your working directory.\nYou may want to go back to Step 1 and finish combining all files.\nIf you continue, the program will try to extract as much information as possible from your measurement file.'.format(", ".join(list(uncombined))) dlg = pw.ChooseOne(self, 'Continue anyway', 'Go back', msg, title="Warning!") res = dlg.ShowModal() if res == wx.ID_NO: return return True
[ "def", "check_for_uncombined_files", "(", "self", ")", ":", "wd_files", "=", "os", ".", "listdir", "(", "self", ".", "WD", ")", "if", "self", ".", "data_model_num", "==", "2", ":", "ftypes", "=", "[", "'er_specimens.txt'", ",", "'er_samples.txt'", ",", "'er_sites.txt'", ",", "'er_locations.txt'", ",", "'pmag_specimens.txt'", ",", "'pmag_samples.txt'", ",", "'pmag_sites.txt'", ",", "'rmag_specimens.txt'", ",", "'rmag_results.txt'", ",", "'rmag_anisotropy.txt'", "]", "else", ":", "ftypes", "=", "[", "'specimens.txt'", ",", "'samples.txt'", ",", "'sites.txt'", ",", "'locations.txt'", "]", "uncombined", "=", "set", "(", ")", "for", "ftype", "in", "ftypes", ":", "if", "ftype", "not", "in", "wd_files", ":", "for", "f", "in", "wd_files", ":", "if", "f", ".", "endswith", "(", "'_'", "+", "ftype", ")", ":", "uncombined", ".", "add", "(", "ftype", ")", "if", "uncombined", ":", "msg", "=", "'It looks like you may have uncombined files of type(s) {} in your working directory.\\nYou may want to go back to Step 1 and finish combining all files.\\nIf you continue, the program will try to extract as much information as possible from your measurement file.'", ".", "format", "(", "\", \"", ".", "join", "(", "list", "(", "uncombined", ")", ")", ")", "dlg", "=", "pw", ".", "ChooseOne", "(", "self", ",", "'Continue anyway'", ",", "'Go back'", ",", "msg", ",", "title", "=", "\"Warning!\"", ")", "res", "=", "dlg", ".", "ShowModal", "(", ")", "if", "res", "==", "wx", ".", "ID_NO", ":", "return", "return", "True" ]
Go through working directory and check for uncombined files. (I.e., location1_specimens.txt and location2_specimens.txt but no specimens.txt.) Show a warning if uncombined files are found. Return True if no uncombined files are found OR user elects to continue anyway.
[ "Go", "through", "working", "directory", "and", "check", "for", "uncombined", "files", ".", "(", "I", ".", "e", ".", "location1_specimens", ".", "txt", "and", "location2_specimens", ".", "txt", "but", "no", "specimens", ".", "txt", ".", ")", "Show", "a", "warning", "if", "uncombined", "files", "are", "found", ".", "Return", "True", "if", "no", "uncombined", "files", "are", "found", "OR", "user", "elects", "to", "continue", "anyway", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L784-L809
train
Check if uncombined files are found in the working directory and if not continue to extract as much information as possible.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(11240 - 11129) + chr(0b100100 + 0o16) + chr(53) + chr(1464 - 1412), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b1110 + 0o43) + chr(206 - 157) + chr(298 - 250), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(2048 - 1998) + chr(53) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + '\061' + chr(54) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1100 + 0o51) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8387 - 8276) + chr(239 - 190) + chr(1509 - 1461) + chr(0b1 + 0o64), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b10101 + 0o41) + '\063', ord("\x08")), nzTpIcepk0o8(chr(1428 - 1380) + chr(0b1101111) + chr(49) + '\x34' + '\x37', 54541 - 54533), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(11598 - 11487) + chr(998 - 948) + chr(48) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1456 - 1406) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b1001 + 0o50) + '\066' + chr(0b11100 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(0b110000) + chr(501 - 451), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9844 - 9733) + chr(0b101100 + 0o6) + '\063', ord("\x08")), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(338 - 287) + chr(0b101010 + 0o11) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(1625 - 1514) + chr(49) + chr(52) + chr(0b11000 + 0o37), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(50) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110011) + '\x34' + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x37' + chr(48), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1111 + 0o43) + chr(1602 - 1548) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + chr(11152 - 11041) + '\x31' + chr(0b110000) + chr(690 - 638), 2109 - 2101), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(1623 - 1568) + chr(0b111 + 0o56), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\062' + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1574 - 1520) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(53) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1110 + 0o141) + chr(0b110001) + '\x31' + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + chr(51) + chr(0b110010) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(52) + chr(1601 - 1553), 0o10), nzTpIcepk0o8(chr(354 - 306) + chr(0b1101111 + 0o0) + chr(0b101011 + 0o7) + '\x33' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + '\x31' + '\x31' + chr(53), 37400 - 37392), nzTpIcepk0o8(chr(48) + chr(0b111 + 0o150) + chr(696 - 647) + '\x34' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(55) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1251 - 1203) + chr(0b1100000 + 0o17) + chr(51) + chr(0b110110) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b100000 + 0o24) + chr(51), 0o10), nzTpIcepk0o8(chr(1082 - 1034) + chr(111) + '\063' + '\066' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(1057 - 1009) + '\157' + '\x31' + chr(0b110110) + chr(2035 - 1986), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2203 - 2152) + '\065' + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(756 - 707) + chr(0b1110 + 0o45) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + '\063' + chr(0b110001 + 0o6) + chr(0b10111 + 0o31), 8), nzTpIcepk0o8(chr(1370 - 1322) + chr(0b1101111) + chr(50) + chr(0b110001) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(1680 - 1629) + '\x31' + '\x37', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(727 - 679) + chr(0b1001111 + 0o40) + chr(0b101 + 0o60) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x82'), '\x64' + chr(101) + '\x63' + chr(0b110000 + 0o77) + chr(100) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def vKzAEIJQHuIo(hXMPsSrOQzbh): STyMr5keQODY = aHUqKstZLeS6.listdir(hXMPsSrOQzbh.GP1zEShDyCxL) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc8)\xdf\x10u(\xdc\x03\xe0x/,f\xb1'), chr(0b1100100) + '\145' + chr(99) + chr(3187 - 3076) + chr(3964 - 3864) + chr(8608 - 8507))(chr(0b1110101) + chr(116) + chr(0b1000110 + 0o40) + '\055' + chr(0b100001 + 0o27))) == nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111 + 0o0) + '\x32', 39969 - 39961): ZO2jucruSSgu = [roI3spqORKae(ES5oEprVxulp(b'\xc9:\xf4\x02Z \xd0\x0e\xe8q\x1e1=\xa8\x1f '), chr(100) + chr(302 - 201) + chr(0b11000 + 0o113) + '\157' + chr(0b1010100 + 0o20) + chr(0b1100101))(chr(0b1001011 + 0o52) + chr(116) + chr(102) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xc9:\xf4\x02K(\xc3\x0b\xe0g^6k\xa8'), chr(0b1100100) + '\145' + chr(6659 - 6560) + chr(0b1101111) + '\x64' + chr(5011 - 4910))(chr(117) + '\164' + '\146' + '\x2d' + chr(0b110000 + 0o10)), roI3spqORKae(ES5oEprVxulp(b'\xc9:\xf4\x02C1\xd6\x14\xab`\x086'), chr(0b1100100) + chr(0b100100 + 0o101) + '\x63' + chr(0b1101111) + chr(1859 - 1759) + '\145')(chr(0b1110101) + '\x74' + '\146' + chr(1161 - 1116) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xc9:\xf4\x1dE&\xd2\x13\xec{\x1e1=\xa8\x1f '), '\144' + '\x65' + chr(8616 - 8517) + '\157' + '\x64' + chr(0b1100101))(chr(5689 - 5572) + '\x74' + chr(0b1100011 + 0o3) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b"\xdc%\xca\x16u6\xc3\x02\xe6}\x1d'}\xafI \x9b\x8c"), '\x64' + chr(7753 - 7652) + chr(0b111111 + 0o44) + '\x6f' + chr(0b1100100) + chr(2559 - 2458))(chr(0b1 + 0o164) + '\x74' + chr(0b1100110) + chr(0b101001 + 0o4) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xdc%\xca\x16u6\xd2\n\xf5x\x151=\xa8\x1f '), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b100101 + 0o101) + chr(0b0 + 0o55) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xdc%\xca\x16u6\xda\x13\xe0g^6k\xa8'), chr(100) + chr(0b1011100 + 0o11) + chr(0b1100011) + chr(11426 - 11315) + '\144' + chr(0b10101 + 0o120))(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(1573 - 1517)), roI3spqORKae(ES5oEprVxulp(b"\xde%\xca\x16u6\xc3\x02\xe6}\x1d'}\xafI \x9b\x8c"), chr(2408 - 2308) + '\x65' + chr(0b1100000 + 0o3) + chr(111) + '\144' + chr(1751 - 1650))('\x75' + '\164' + chr(0b1000010 + 0o44) + '\x2d' + chr(614 - 558)), roI3spqORKae(ES5oEprVxulp(b'\xde%\xca\x16u7\xd6\x14\xf0x\x041=\xa8\x1f '), '\144' + '\x65' + chr(99) + chr(111) + chr(0b101111 + 0o65) + chr(0b1010111 + 0o16))(chr(0b1010010 + 0o43) + '\164' + chr(102) + chr(45) + chr(0b11011 + 0o35)), roI3spqORKae(ES5oEprVxulp(b'\xde%\xca\x16u$\xdd\x0e\xf6{\x040|\xac\x1ez\x97\x80\xc0'), '\144' + '\x65' + chr(0b1100011) + chr(0b1001110 + 0o41) + chr(100) + chr(9818 - 9717))(chr(0b1010111 + 0o36) + chr(11698 - 11582) + '\146' + chr(0b101101) + chr(2690 - 2634))] else: ZO2jucruSSgu = [roI3spqORKae(ES5oEprVxulp(b'\xdf8\xce\x12C(\xd6\t\xf6:\x04:g'), chr(0b1100 + 0o130) + chr(0b101000 + 0o75) + chr(9175 - 9076) + chr(0b1001110 + 0o41) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b100 + 0o51) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xdf)\xc6\x01F \xc0I\xf1l\x04'), chr(2416 - 2316) + chr(101) + chr(0b1000101 + 0o36) + '\x6f' + '\144' + chr(0b1001010 + 0o33))(chr(11577 - 11460) + '\x74' + '\x66' + chr(45) + chr(0b111000 + 0o0)), roI3spqORKae(ES5oEprVxulp(b'\xdf!\xdf\x14Yk\xc7\x1f\xf1'), '\x64' + chr(0b100100 + 0o101) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(0b1101100 + 0o10) + chr(102) + chr(0b1010 + 0o43) + chr(56)), roI3spqORKae(ES5oEprVxulp(b"\xc0'\xc8\x10^,\xdc\t\xf6:\x04:g"), '\x64' + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(0b1100101))('\165' + chr(0b10111 + 0o135) + chr(0b1100110) + '\x2d' + chr(0b101010 + 0o16))] pisirFLnX8uu = Bvi71nNyvlqO() for E_7xDwk9IR3s in ZO2jucruSSgu: if E_7xDwk9IR3s not in STyMr5keQODY: for _R8IKF5IwAfX in STyMr5keQODY: if roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xe5q\xcd:c\x06\xf2+\xe4a:0'), chr(100) + chr(101) + chr(0b1001010 + 0o31) + chr(0b1000110 + 0o51) + chr(100) + chr(0b100111 + 0o76))(chr(117) + '\164' + chr(1710 - 1608) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xf3'), '\x64' + chr(7993 - 7892) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(4431 - 4315) + '\146' + chr(0b100111 + 0o6) + '\x38') + E_7xDwk9IR3s): roI3spqORKae(pisirFLnX8uu, roI3spqORKae(ES5oEprVxulp(b'\xd9{\xfa\x15C6\xfa\x16\xc1r3&'), chr(5541 - 5441) + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + chr(891 - 775) + '\146' + chr(292 - 247) + '\070'))(E_7xDwk9IR3s) if pisirFLnX8uu: sldzbHve8G1S = roI3spqORKae(ES5oEprVxulp(b'\xe5<\x8b\x1dE*\xd8\x14\xa5x\x19)v\xfc\x1e;\x96\xd8\xd9%\x84uZM:\xb6\x80\xe8#\x02\x95\x9f\x01\x9d\x1f\x8e<\xd8\xed\xa6\xc0-\xd8QE#\x93\x13\xfcd\x15j`\xf5G/\x9e\xd8\xdd*\xdd,]Y>\xf3\xd7\xf2?\n\x93\x9c\x04\xd4\x15\x82*\x9d\xe8\xbb\xc3:\xd2_ \x1c\xdc\x12\xa5y\x11;3\xab\x06:\x97\xd8\xc0+\xdd2]\x0c.\xb2\xc3\xf6m\x15\x95\xd20\x80\x14\x9bx\xc9\xab\xae\xc2,\x8b\x17C+\xda\x14\xed4\x13-~\xbe\x0e:\x8a\x96\xd3d\x9c9^\x0c*\xba\xcc\xf8>O\xf0\xbb\x05\xd4\x08\x84-\xd8\xe8\xa0\xc2<\xc2\x1f_ \x9fG\xf1|\x15bc\xae\x083\x91\x99\xd9d\x8a<^@l\xa7\xd2\xe4m\x15\x95\xd2\x06\x8c\x05\x999\x9b\xff\xef\xcd;\x8b\x1c_&\xdbG\xecz\x16-a\xb1\x06 \x8a\x97\xdad\x9c&\x12\\#\xa0\xd3\xf4/\r\x9f\xd2\x05\x86\x1e\x86x\x81\xe4\xba\xdeh\xc6\x14K6\xc6\x15\xe0y\x15,g\xfc\x01=\x8f\x9d\x9a'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(0b1100100) + '\145')('\165' + '\x74' + chr(102) + chr(566 - 521) + '\070').q33KG3foQ_CJ(roI3spqORKae(ES5oEprVxulp(b'\x80h'), chr(100) + chr(5405 - 5304) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(0b1011100 + 0o31) + '\164' + chr(0b1100100 + 0o2) + chr(0b101100 + 0o1) + chr(0b111000)).Y4yM9BcfTCNq(H4NoA26ON7iG(pisirFLnX8uu))) mUA0duScFTh1 = saCGFe0zE73j.ChooseOne(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\xef'\xc5\x05C+\xc6\x02\xa5u\x1e;d\xbd\x1e"), chr(8615 - 8515) + '\145' + '\143' + chr(0b1101111) + chr(0b101110 + 0o66) + chr(0b1100101))(chr(0b1000111 + 0o56) + chr(0b1110100) + chr(0b1100110) + chr(0b10 + 0o53) + '\x38'), roI3spqORKae(ES5oEprVxulp(b"\xeb'\x8b\x13K&\xd8"), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1010 + 0o133))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b10101 + 0o30) + '\070'), sldzbHve8G1S, title=roI3spqORKae(ES5oEprVxulp(b'\xfb)\xd9\x1fC+\xd4F'), '\144' + chr(0b1 + 0o144) + '\143' + '\157' + chr(100) + '\x65')('\165' + '\164' + '\146' + chr(45) + chr(0b111000))) _XdQFJpnzJor = mUA0duScFTh1.ShowModal() if _XdQFJpnzJor == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xe5\x0c\xf4?e'), chr(0b1011110 + 0o6) + '\145' + '\143' + chr(111) + chr(2309 - 2209) + '\x65')(chr(6716 - 6599) + '\x74' + chr(102) + chr(45) + '\070')): return return nzTpIcepk0o8('\060' + '\x6f' + chr(1604 - 1555), 9835 - 9827)
PmagPy/PmagPy
programs/pmag_gui.py
MagMainFrame.check_for_meas_file
def check_for_meas_file(self): """ Check the working directory for a measurement file. If not found, show a warning and return False. Otherwise return True. """ if self.data_model_num == 2: meas_file_name = "magic_measurements.txt" dm = "2.5" else: meas_file_name = "measurements.txt" dm = "3.0" if not os.path.isfile(os.path.join(self.WD, meas_file_name)): pw.simple_warning("Your working directory must have a {} format {} file to run this step. Make sure you have fully completed step 1 (import magnetometer file) and ALSO converted to 3.0., if necessary), then try again.\n\nIf you are trying to look at data downloaded from MagIC, you must unpack the txt file first. Some contributions do not contain measurement data, in which case you won't be able to use this function.".format(dm, meas_file_name)) return False return True
python
def check_for_meas_file(self): """ Check the working directory for a measurement file. If not found, show a warning and return False. Otherwise return True. """ if self.data_model_num == 2: meas_file_name = "magic_measurements.txt" dm = "2.5" else: meas_file_name = "measurements.txt" dm = "3.0" if not os.path.isfile(os.path.join(self.WD, meas_file_name)): pw.simple_warning("Your working directory must have a {} format {} file to run this step. Make sure you have fully completed step 1 (import magnetometer file) and ALSO converted to 3.0., if necessary), then try again.\n\nIf you are trying to look at data downloaded from MagIC, you must unpack the txt file first. Some contributions do not contain measurement data, in which case you won't be able to use this function.".format(dm, meas_file_name)) return False return True
[ "def", "check_for_meas_file", "(", "self", ")", ":", "if", "self", ".", "data_model_num", "==", "2", ":", "meas_file_name", "=", "\"magic_measurements.txt\"", "dm", "=", "\"2.5\"", "else", ":", "meas_file_name", "=", "\"measurements.txt\"", "dm", "=", "\"3.0\"", "if", "not", "os", ".", "path", ".", "isfile", "(", "os", ".", "path", ".", "join", "(", "self", ".", "WD", ",", "meas_file_name", ")", ")", ":", "pw", ".", "simple_warning", "(", "\"Your working directory must have a {} format {} file to run this step. Make sure you have fully completed step 1 (import magnetometer file) and ALSO converted to 3.0., if necessary), then try again.\\n\\nIf you are trying to look at data downloaded from MagIC, you must unpack the txt file first. Some contributions do not contain measurement data, in which case you won't be able to use this function.\"", ".", "format", "(", "dm", ",", "meas_file_name", ")", ")", "return", "False", "return", "True" ]
Check the working directory for a measurement file. If not found, show a warning and return False. Otherwise return True.
[ "Check", "the", "working", "directory", "for", "a", "measurement", "file", ".", "If", "not", "found", "show", "a", "warning", "and", "return", "False", ".", "Otherwise", "return", "True", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_gui.py#L811-L826
train
Check the working directory for a measurement file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(52) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b110010 + 0o75) + chr(0b10010 + 0o41) + chr(1525 - 1472) + '\x30', 57257 - 57249), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11010 + 0o31) + chr(152 - 100) + chr(0b101001 + 0o7), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\060' + '\063', 0b1000), nzTpIcepk0o8(chr(1236 - 1188) + '\x6f' + chr(0b101101 + 0o4) + chr(0b110011) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\x37' + chr(1653 - 1601), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11001 + 0o30) + '\x36' + chr(0b100110 + 0o16), 0b1000), nzTpIcepk0o8(chr(1080 - 1032) + chr(0b1101111) + chr(52) + chr(51), 0b1000), nzTpIcepk0o8(chr(1659 - 1611) + chr(0b10111 + 0o130) + '\x31' + chr(49) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\067', ord("\x08")), nzTpIcepk0o8(chr(156 - 108) + '\157' + chr(1441 - 1391) + chr(0b101101 + 0o5) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\x37' + chr(326 - 274), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + chr(842 - 793) + '\x36' + chr(0b110111), 25323 - 25315), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(9622 - 9511) + chr(0b110011) + '\x34' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110010) + chr(81 - 29), 21157 - 21149), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\x37' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x34' + chr(0b101010 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1011110 + 0o21) + chr(0b10100 + 0o35) + '\x36' + '\x37', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b1110 + 0o47) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(2462 - 2351) + '\063' + chr(2744 - 2689) + '\066', 0o10), nzTpIcepk0o8(chr(796 - 748) + '\157' + chr(2414 - 2363) + chr(51) + '\066', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\x36' + chr(1196 - 1141), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1100100 + 0o13) + chr(51) + '\x33' + chr(0b110111), 50317 - 50309), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101110 + 0o5) + chr(53) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(0b10 + 0o61) + chr(0b11 + 0o64) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001001 + 0o46) + '\x33' + chr(48) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(111) + '\063' + chr(0b110011) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b11001 + 0o32) + chr(55), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2118 - 2067) + '\x35' + chr(0b101010 + 0o10), 31282 - 31274), nzTpIcepk0o8(chr(48) + chr(3594 - 3483) + chr(1530 - 1481) + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + '\063' + chr(0b110000 + 0o6) + chr(50), 2787 - 2779), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110111) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(52) + chr(972 - 922), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\067' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x33' + chr(0b100111 + 0o14), 10825 - 10817), nzTpIcepk0o8(chr(1583 - 1535) + '\157' + chr(1684 - 1633) + chr(1498 - 1443) + chr(0b110100), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + '\065' + '\060', 43063 - 43055)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'O'), chr(829 - 729) + '\x65' + chr(0b1111 + 0o124) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(7302 - 7186) + chr(0b10111 + 0o117) + chr(45) + chr(0b110111 + 0o1)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def _AAMkdDnZi7x(hXMPsSrOQzbh): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x05\x89\x94\xa2\x04\x11\x1bG-k\xc8s\xc9\x1a'), '\x64' + chr(2256 - 2155) + '\143' + '\157' + '\144' + chr(101))('\x75' + chr(12958 - 12842) + chr(0b100100 + 0o102) + '\x2d' + chr(56))) == nzTpIcepk0o8('\060' + chr(111) + chr(2144 - 2094), 8): Ij8eUFbJF6aC = roI3spqORKae(ES5oEprVxulp(b'\x0c\x89\x87\xaa8#\x19F)t\xe2o\xd9\x1a\x81:\x0cWY\x9c\x86\xaa'), chr(100) + chr(7620 - 7519) + chr(0b1000000 + 0o43) + '\157' + '\144' + chr(0b1001000 + 0o35))(chr(117) + chr(116) + '\146' + chr(45) + '\070') _zcxIoncSRlL = roI3spqORKae(ES5oEprVxulp(b'S\xc6\xd5'), chr(3662 - 3562) + chr(101) + chr(0b1100000 + 0o3) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(0b1110100) + chr(0b101 + 0o141) + chr(45) + chr(1609 - 1553)) else: Ij8eUFbJF6aC = roI3spqORKae(ES5oEprVxulp(b'\x0c\x8d\x81\xb0.\x0e\x11N-i\xe3n\x92\x03\x9c '), chr(5150 - 5050) + chr(101) + chr(0b1100011) + '\157' + chr(1071 - 971) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1356 - 1311) + chr(2570 - 2514)) _zcxIoncSRlL = roI3spqORKae(ES5oEprVxulp(b'R\xc6\xd0'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(3717 - 3600) + chr(0b100001 + 0o123) + chr(2934 - 2832) + chr(0b101101) + chr(794 - 738)) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\x08\x9b\x86\xaa7\x19'), chr(0b10100 + 0o120) + '\145' + chr(5479 - 5380) + chr(0b1101111) + '\x64' + '\145')(chr(0b1100111 + 0o16) + '\x74' + '\146' + chr(1476 - 1431) + '\070'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'8\xdc\x99\x8eb>\x17E\x1cD\xd9l'), chr(0b11101 + 0o107) + chr(0b1100101) + '\143' + '\x6f' + chr(6879 - 6779) + '\x65')(chr(117) + chr(116) + chr(0b100100 + 0o102) + '\x2d' + chr(0b101011 + 0o15)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'&\xb8\xd1\xb9\x1e/\x1cg1D\xefQ'), chr(0b101000 + 0o74) + chr(0b1001 + 0o134) + chr(3611 - 3512) + chr(0b1101111) + '\x64' + chr(0b1111 + 0o126))(chr(117) + '\164' + chr(6354 - 6252) + chr(667 - 622) + chr(0b111000))), Ij8eUFbJF6aC)): roI3spqORKae(saCGFe0zE73j, roI3spqORKae(ES5oEprVxulp(b'\x12\x81\x8d\xb37\x19+T)u\xf9t\xd2\x10'), chr(100) + chr(0b111111 + 0o46) + chr(0b110101 + 0o56) + chr(111) + chr(0b1010101 + 0o17) + chr(0b1100101))(chr(11299 - 11182) + chr(9524 - 9408) + chr(102) + chr(691 - 646) + chr(1366 - 1310)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'8\x87\x95\xb1{\x0b\x1bQ#n\xf9z\x9c\x13\x8d&\x1dG\x03\x87\x8c\xa7\x97\xb2\x9eg\x89\xe1\xb0{)\x8fP\x93"@\x9f\x1d\xfd\x93\x13\x85\x81\xb7{\x07\t\x03.n\xfbx\x9c\x03\x8bt\nQ\x19\xc8\x8a\xb6\xde\xac\xcbg\x89\xa4\xa84\x7f\xca=\x93i^\xc2N\xee\x8e\x04\xc8\x99\xac.\\\x1cB>b\xb7{\xc9\x1b\x88-XG\x18\x85\x8e\xb2\xd2\xab\x8ep\xdd\xb2\xac\x7f/\xcaA\xd2*R\x8fM\xf4\x8e\x15\xc8\x8d\xa2<\x12\x11W\'j\xf2i\xd9\x05\xc42\x11H\x12\xc1\xde\xbf\xd9\xbb\xcbU\xb1\x92\x97:<\x85\x1e\x84gI\x96X\xff\xdc\x15\x87\xc0\xf0uLZ\x0fhn\xf1=\xd2\x12\x871\x0bW\x16\x9a\x87\xf7\x9b\xff\x9f|\x98\xaf\xf8n-\x93P\x93eZ\x8bS\xb5\xf6k\xa1\x86\xe3"\x13\x01\x03)u\xf2=\xc8\x05\x9d=\x16CW\x9c\x91\xfe\xdb\xb0\x84\x7f\xdd\xa0\xac:;\x8b\x04\x93"_\x8dJ\xf5\x90\x0e\x89\x84\xa6?\\\x12Q\'j\xb7P\xdd\x10\xad\x17T\x04\x0e\x87\x8b\xfe\xda\xaa\x98`\xdd\xb4\xb6j>\x89\x1b\xd2vS\x87\x1d\xef\x84\x15\xc8\x86\xaa7\x19TE!u\xe4i\x92W\xb7;\x15AW\x8b\x91\xb0\xc3\xad\x82v\x88\xb5\xb1u1\x99P\x96m\x1b\x8cR\xef\xdc\x02\x87\x8e\xb7:\x15\x1a\x03%b\xf6n\xc9\x05\x819\x1dJ\x03\xc8\x9a\xbf\xc3\xbe\xc74\x94\xaf\xf8m7\x83\x13\x9a"X\x83N\xfe\xdc\x18\x87\x95\xe3,\x13\x1a\x04<\'\xf5x\x9c\x16\x868\x1d\x04\x03\x87\xde\xab\xc4\xba\xcb`\x95\xa8\xab:9\x9f\x1e\x91vR\x8dS\xb5'), chr(100) + '\145' + chr(0b1100001 + 0o2) + chr(0b1101101 + 0o2) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x10\xdb\xd3\x88\x1cO\x12L\x19X\xd4W'), chr(100) + chr(101) + chr(1971 - 1872) + '\157' + chr(100) + '\x65')('\x75' + chr(0b1001000 + 0o54) + chr(0b100111 + 0o77) + chr(0b100 + 0o51) + '\070'))(_zcxIoncSRlL, Ij8eUFbJF6aC)) return nzTpIcepk0o8(chr(1355 - 1307) + chr(2184 - 2073) + chr(48), ord("\x08")) return nzTpIcepk0o8('\060' + chr(964 - 853) + '\x31', 43973 - 43965)
PmagPy/PmagPy
programs/dayplot_magic.py
main
def main(): """ NAME dayplot_magic.py DESCRIPTION makes 'day plots' (Day et al. 1977) and squareness/coercivity, plots 'linear mixing' curve from Dunlop and Carter-Stiglitz (2006). squareness coercivity of remanence (Neel, 1955) plots after Tauxe et al. (2002) SYNTAX dayplot_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input hysteresis file, default is specimens.txt -fmt [svg,png,jpg] format for output plots, default svg -sav saves plots and quits quietly """ args = sys.argv if "-h" in args: print(main.__doc__) sys.exit() dir_path = pmag.get_named_arg('-WD', '.') fmt = pmag.get_named_arg('-fmt', 'svg') save_plots = False interactive = True if '-sav' in sys.argv: save_plots = True interactive = False infile = pmag.get_named_arg("-f", "specimens.txt") ipmag.dayplot_magic(dir_path, infile, save=save_plots, fmt=fmt, interactive=interactive)
python
def main(): """ NAME dayplot_magic.py DESCRIPTION makes 'day plots' (Day et al. 1977) and squareness/coercivity, plots 'linear mixing' curve from Dunlop and Carter-Stiglitz (2006). squareness coercivity of remanence (Neel, 1955) plots after Tauxe et al. (2002) SYNTAX dayplot_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input hysteresis file, default is specimens.txt -fmt [svg,png,jpg] format for output plots, default svg -sav saves plots and quits quietly """ args = sys.argv if "-h" in args: print(main.__doc__) sys.exit() dir_path = pmag.get_named_arg('-WD', '.') fmt = pmag.get_named_arg('-fmt', 'svg') save_plots = False interactive = True if '-sav' in sys.argv: save_plots = True interactive = False infile = pmag.get_named_arg("-f", "specimens.txt") ipmag.dayplot_magic(dir_path, infile, save=save_plots, fmt=fmt, interactive=interactive)
[ "def", "main", "(", ")", ":", "args", "=", "sys", ".", "argv", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "dir_path", "=", "pmag", ".", "get_named_arg", "(", "'-WD'", ",", "'.'", ")", "fmt", "=", "pmag", ".", "get_named_arg", "(", "'-fmt'", ",", "'svg'", ")", "save_plots", "=", "False", "interactive", "=", "True", "if", "'-sav'", "in", "sys", ".", "argv", ":", "save_plots", "=", "True", "interactive", "=", "False", "infile", "=", "pmag", ".", "get_named_arg", "(", "\"-f\"", ",", "\"specimens.txt\"", ")", "ipmag", ".", "dayplot_magic", "(", "dir_path", ",", "infile", ",", "save", "=", "save_plots", ",", "fmt", "=", "fmt", ",", "interactive", "=", "interactive", ")" ]
NAME dayplot_magic.py DESCRIPTION makes 'day plots' (Day et al. 1977) and squareness/coercivity, plots 'linear mixing' curve from Dunlop and Carter-Stiglitz (2006). squareness coercivity of remanence (Neel, 1955) plots after Tauxe et al. (2002) SYNTAX dayplot_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input hysteresis file, default is specimens.txt -fmt [svg,png,jpg] format for output plots, default svg -sav saves plots and quits quietly
[ "NAME", "dayplot_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/dayplot_magic.py#L12-L45
train
NAME dayplot_magic. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(400 - 352) + chr(0b1101111) + '\x33' + '\061' + chr(0b10 + 0o63), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + '\x30' + chr(0b11000 + 0o35), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\067' + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11010 + 0o125) + chr(0b110001) + chr(0b0 + 0o60) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(53) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(1319 - 1270) + chr(53), 8), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(50) + chr(52) + chr(52), 55485 - 55477), nzTpIcepk0o8('\x30' + '\157' + chr(0b101010 + 0o10) + '\x37', 0b1000), nzTpIcepk0o8(chr(896 - 848) + chr(0b11000 + 0o127) + '\x33' + chr(0b11010 + 0o32) + '\062', 3135 - 3127), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1095 - 1044) + chr(53) + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(190 - 141) + chr(680 - 626) + '\x36', 0b1000), nzTpIcepk0o8(chr(547 - 499) + chr(0b1101111) + '\063' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(11070 - 10959) + chr(0b110001) + chr(0b110000 + 0o0) + '\062', 9580 - 9572), nzTpIcepk0o8(chr(1438 - 1390) + chr(8944 - 8833) + chr(2090 - 2041) + chr(605 - 552) + chr(54), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\062', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b101111 + 0o2) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b101010 + 0o14) + chr(0b10010 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(691 - 636), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110100 + 0o0) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6990 - 6879) + '\062' + chr(0b110100) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1675 - 1627) + chr(0b1101111) + '\x32' + chr(0b10000 + 0o42) + chr(0b1110 + 0o43), 0b1000), nzTpIcepk0o8(chr(84 - 36) + chr(0b1101111) + chr(0b110010) + '\x32' + chr(0b10101 + 0o33), 64479 - 64471), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(0b1011 + 0o46) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + chr(10414 - 10303) + chr(0b110000 + 0o5) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b1101 + 0o50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b110111), 8), nzTpIcepk0o8('\060' + '\157' + chr(2042 - 1991) + chr(51) + chr(0b10100 + 0o42), 39486 - 39478), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(0b110010) + '\065', 0o10), nzTpIcepk0o8(chr(1143 - 1095) + chr(0b1101111) + chr(748 - 699) + chr(2541 - 2488) + '\060', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11110 + 0o25) + chr(0b110001) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x35' + '\x34', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(53) + chr(0b110110), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(0b110011) + '\065', 36437 - 36429), nzTpIcepk0o8(chr(1212 - 1164) + '\x6f' + chr(0b110011) + chr(49) + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11001 + 0o31) + '\066' + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + '\x30' + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(5380 - 5269) + chr(49) + chr(0b10 + 0o61) + chr(2698 - 2643), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(52) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1630 - 1582) + '\157' + '\x32' + chr(0b0 + 0o63) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(10644 - 10533) + chr(0b101011 + 0o10) + '\x36' + '\064', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(643 - 595) + chr(111) + chr(0b111 + 0o56) + chr(0b110000), 633 - 625)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe3'), '\144' + chr(0b1100101) + '\143' + chr(0b1000111 + 0o50) + chr(7019 - 6919) + chr(0b1100001 + 0o4))(chr(0b1100 + 0o151) + chr(116) + chr(2203 - 2101) + chr(0b10011 + 0o32) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): eemPYp2vtTSr = bpyfpu4kTbwL.ajIDWyXMBa3b if roI3spqORKae(ES5oEprVxulp(b'\xe0\xad'), chr(0b1100100) + chr(4158 - 4057) + '\x63' + chr(0b1101111) + chr(6583 - 6483) + chr(0b1100011 + 0o2))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + chr(56)) in eemPYp2vtTSr: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xb4\xa3\xf9#\x19\x9c\xcdB\x8d\x98!K'), '\144' + '\x65' + '\143' + chr(111) + chr(0b111110 + 0o46) + chr(101))('\x75' + '\x74' + chr(5053 - 4951) + chr(45) + '\070'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b"\x97\xb0\xce,\x0b\x98\xe8&\x91\x9a7'"), chr(100) + '\145' + '\x63' + chr(111) + chr(100) + chr(7428 - 7327))(chr(117) + chr(116) + chr(0b1101 + 0o131) + '\x2d' + chr(0b11111 + 0o31)))() qjksZ7GK0xkJ = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'\xe0\x92\xf8'), chr(100) + chr(0b1100101) + chr(99) + chr(0b10 + 0o155) + chr(0b1000001 + 0o43) + chr(101))(chr(117) + chr(10984 - 10868) + chr(0b10111 + 0o117) + chr(0b11111 + 0o16) + chr(2727 - 2671)), roI3spqORKae(ES5oEprVxulp(b'\xe3'), chr(0b1110 + 0o126) + chr(0b1000011 + 0o42) + '\x63' + '\x6f' + chr(0b1001 + 0o133) + chr(6277 - 6176))('\165' + chr(0b1001000 + 0o54) + '\146' + chr(0b1001 + 0o44) + chr(56))) JummcHpaNLEw = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'\xe0\xa3\xd12'), '\x64' + chr(101) + chr(0b100110 + 0o75) + chr(9725 - 9614) + chr(100) + chr(0b1100101))(chr(0b110000 + 0o105) + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xbe\xb3\xdb'), chr(0b11 + 0o141) + chr(101) + '\143' + '\x6f' + chr(0b111 + 0o135) + chr(101))(chr(5982 - 5865) + '\x74' + chr(0b1100110) + '\x2d' + '\070')) bxxuZm4I6LgY = nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o32), 0o10) f4XDWm__k5ZA = nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10111 + 0o32), 0o10) if roI3spqORKae(ES5oEprVxulp(b'\xe0\xb6\xdd0'), chr(4976 - 4876) + chr(101) + chr(466 - 367) + '\157' + '\144' + chr(585 - 484))(chr(117) + chr(0b1110100) + chr(0b1011000 + 0o16) + chr(0b101101) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xac\xaf\xf5\x02?\xb4\xfcZ\xa0\x88E}'), '\144' + chr(0b1100101) + '\x63' + chr(2746 - 2635) + chr(0b1100100) + '\145')('\165' + chr(4824 - 4708) + chr(6683 - 6581) + chr(0b101101) + chr(0b11110 + 0o32))): bxxuZm4I6LgY = nzTpIcepk0o8(chr(48) + chr(10492 - 10381) + chr(49), 8) f4XDWm__k5ZA = nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11111 + 0o21), 8) XvbvbiHwSGUb = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'\xe0\xa3'), chr(7452 - 7352) + chr(101) + '\143' + chr(111) + chr(100) + chr(0b11101 + 0o110))(chr(117) + '\164' + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xbe\xb5\xd9%\x01\xa0\xc1y\x91\xc7\x02g6'), '\x64' + '\145' + '\x63' + chr(0b10110 + 0o131) + chr(5554 - 5454) + chr(101))(chr(117) + '\164' + chr(0b100011 + 0o103) + chr(148 - 103) + chr(56))) roI3spqORKae(GL09QZtbvKPg, roI3spqORKae(ES5oEprVxulp(b'\xa9\xa4\xc56\x04\xa2\xd0H\x8f\x88\x11v!'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(7825 - 7725) + '\145')(chr(0b100001 + 0o124) + '\x74' + chr(102) + chr(0b10001 + 0o34) + chr(56)))(qjksZ7GK0xkJ, XvbvbiHwSGUb, save=bxxuZm4I6LgY, fmt=JummcHpaNLEw, interactive=f4XDWm__k5ZA)
PmagPy/PmagPy
dialogs/pmag_gui_menu2.py
MagICMenu.on_import1
def on_import1(self, event): """ initialize window to import an arbitrary file into the working directory """ pmag_menu_dialogs.MoveFileIntoWD(self.parent, self.parent.WD)
python
def on_import1(self, event): """ initialize window to import an arbitrary file into the working directory """ pmag_menu_dialogs.MoveFileIntoWD(self.parent, self.parent.WD)
[ "def", "on_import1", "(", "self", ",", "event", ")", ":", "pmag_menu_dialogs", ".", "MoveFileIntoWD", "(", "self", ".", "parent", ",", "self", ".", "parent", ".", "WD", ")" ]
initialize window to import an arbitrary file into the working directory
[ "initialize", "window", "to", "import", "an", "arbitrary", "file", "into", "the", "working", "directory" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/pmag_gui_menu2.py#L168-L172
train
initialize window to import an arbitrary file into the working directory
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1108 - 1060) + chr(0b1101111) + chr(1023 - 974) + chr(944 - 889) + chr(52), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(0b1100 + 0o51) + chr(214 - 166), 2081 - 2073), nzTpIcepk0o8(chr(253 - 205) + chr(0b1101101 + 0o2) + chr(0b110000 + 0o2) + '\x35' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(1462 - 1412) + chr(52) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(394 - 343) + chr(1982 - 1933), 0b1000), nzTpIcepk0o8(chr(305 - 257) + chr(2318 - 2207) + chr(1290 - 1241) + chr(1215 - 1163) + chr(0b101001 + 0o16), 0b1000), nzTpIcepk0o8(chr(117 - 69) + chr(0b111111 + 0o60) + chr(51) + chr(52) + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(178 - 129) + chr(0b110011) + chr(54), 25571 - 25563), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b1100 + 0o50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6183 - 6072) + chr(0b11111 + 0o22) + chr(1957 - 1906) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b110001) + '\064', 39397 - 39389), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + '\x33' + chr(0b100111 + 0o13) + chr(0b110110), 23000 - 22992), nzTpIcepk0o8(chr(48) + '\157' + chr(658 - 605) + chr(0b110001), 40073 - 40065), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x31' + chr(184 - 135), 11539 - 11531), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(53) + chr(0b100100 + 0o15), 8), nzTpIcepk0o8('\x30' + chr(6470 - 6359) + '\x31' + chr(0b110011) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1110 + 0o43) + chr(55) + chr(2296 - 2242), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(6692 - 6581) + chr(0b101000 + 0o12) + '\x36' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + '\063' + chr(0b110100) + chr(0b1011 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\067' + chr(0b110001), 54784 - 54776), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1001100 + 0o43) + chr(50) + chr(0b110010) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11010 + 0o32) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(0b101101 + 0o4) + chr(0b10111 + 0o40), 0o10), nzTpIcepk0o8(chr(1986 - 1938) + chr(8122 - 8011) + chr(0b110011) + chr(2865 - 2810) + chr(1799 - 1748), ord("\x08")), nzTpIcepk0o8(chr(2192 - 2144) + chr(111) + '\062' + '\063' + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + chr(11851 - 11740) + '\062' + chr(52), 8), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(1356 - 1307) + '\063' + chr(0b1001 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1000000 + 0o57) + '\x31' + chr(0b110100) + chr(1833 - 1784), 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110001) + chr(49) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(848 - 737) + chr(0b110101) + chr(0b1010 + 0o50), 50145 - 50137), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10000 + 0o42) + '\x33' + chr(0b1100 + 0o46), 8), nzTpIcepk0o8('\060' + chr(111) + chr(54) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1275 - 1224) + '\x37' + '\x33', 8), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1010 + 0o145) + '\061' + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + chr(4793 - 4682) + chr(0b11011 + 0o26) + '\x36', 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + '\061' + chr(0b100100 + 0o23), 60876 - 60868), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + '\x32', 28016 - 28008), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b1111 + 0o42) + chr(0b110000), 46472 - 46464)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(6113 - 6002) + '\x35' + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'R'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b101 + 0o152) + chr(4307 - 4207) + chr(0b1010000 + 0o25))(chr(4885 - 4768) + '\x74' + '\x66' + chr(0b101011 + 0o2) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def yjulndwsGNRn(hXMPsSrOQzbh, D4ybylS07yGH): roI3spqORKae(K3eM7qtCl3Uz, roI3spqORKae(ES5oEprVxulp(b'1o\xde\xcc\xe6p\x0b\x85\x17z/\xa3\x81m'), '\144' + chr(0b1000011 + 0o42) + chr(99) + chr(0b1101111) + chr(0b1010001 + 0o23) + chr(0b100110 + 0o77))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x1dY\x98\xc5\xd8m\x00\xd5?\x7f\x1f\xfe'), '\x64' + chr(101) + '\143' + '\157' + chr(1367 - 1267) + chr(0b1011111 + 0o6))('\165' + chr(6116 - 6000) + chr(102) + chr(0b11011 + 0o22) + chr(56))), roI3spqORKae(hXMPsSrOQzbh.parent, roI3spqORKae(ES5oEprVxulp(b";P\x99\xd3\xe5J\x0f\xa4'W#\x80"), chr(3876 - 3776) + chr(0b100110 + 0o77) + '\x63' + '\x6f' + chr(100) + '\x65')(chr(0b1101000 + 0o15) + chr(116) + chr(0b1100110) + chr(0b10 + 0o53) + chr(0b111000 + 0o0))))
PmagPy/PmagPy
dialogs/pmag_gui_menu2.py
MagICMenu.orient_import2
def orient_import2(self, event): """ initialize window to import an AzDip format file into the working directory """ pmag_menu_dialogs.ImportAzDipFile(self.parent, self.parent.WD)
python
def orient_import2(self, event): """ initialize window to import an AzDip format file into the working directory """ pmag_menu_dialogs.ImportAzDipFile(self.parent, self.parent.WD)
[ "def", "orient_import2", "(", "self", ",", "event", ")", ":", "pmag_menu_dialogs", ".", "ImportAzDipFile", "(", "self", ".", "parent", ",", "self", ".", "parent", ".", "WD", ")" ]
initialize window to import an AzDip format file into the working directory
[ "initialize", "window", "to", "import", "an", "AzDip", "format", "file", "into", "the", "working", "directory" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/pmag_gui_menu2.py#L177-L181
train
initialize window to import an AzDip format file into the working directory
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\157' + chr(0b101100 + 0o6) + '\x34' + chr(176 - 128), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + '\157' + '\061' + chr(0b110110) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010101 + 0o32) + chr(49) + chr(2251 - 2203) + chr(0b11001 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(994 - 945) + chr(52) + chr(158 - 107), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011000 + 0o27) + '\063' + chr(0b110000) + '\065', 0b1000), nzTpIcepk0o8(chr(2109 - 2061) + chr(9196 - 9085) + chr(109 - 58) + '\062' + chr(0b100010 + 0o22), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(553 - 505) + chr(111) + chr(50) + chr(0b110110) + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b110001) + chr(0b0 + 0o62), 24315 - 24307), nzTpIcepk0o8(chr(0b0 + 0o60) + '\x6f' + chr(55) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100011 + 0o14) + chr(0b101001 + 0o11) + chr(0b110110) + chr(718 - 670), 6695 - 6687), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + '\063' + '\x37' + chr(73 - 18), 18496 - 18488), nzTpIcepk0o8('\060' + chr(204 - 93) + chr(0b1010 + 0o54) + chr(0b110011), 53155 - 53147), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10011 + 0o37) + chr(0b11001 + 0o30) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\x36' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(0b11011 + 0o30) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(7751 - 7640) + '\x35' + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + '\x37' + '\062', 32327 - 32319), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(9810 - 9699) + chr(0b11011 + 0o27) + chr(52), 0b1000), nzTpIcepk0o8(chr(409 - 361) + chr(0b1101111) + '\063' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + '\x31' + chr(629 - 576), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(10753 - 10642) + chr(0b110001) + '\x37' + chr(0b11101 + 0o23), 31646 - 31638), nzTpIcepk0o8('\x30' + chr(0b110 + 0o151) + chr(0b110001) + chr(0b110 + 0o61) + chr(0b110000), 8), nzTpIcepk0o8(chr(1248 - 1200) + chr(111) + chr(0b110001) + chr(50) + '\x32', 34052 - 34044), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(211 - 158) + chr(0b10000 + 0o47), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1381 - 1332) + chr(0b110010) + chr(0b100100 + 0o16), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + '\x37', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100111 + 0o13) + '\x36' + chr(0b110101), 43355 - 43347), nzTpIcepk0o8('\060' + chr(1476 - 1365) + '\067' + chr(52), 32795 - 32787), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(0b10 + 0o61) + '\x37' + chr(55), 8), nzTpIcepk0o8(chr(48) + chr(0b11010 + 0o125) + '\x32' + chr(0b100100 + 0o15) + chr(0b101100 + 0o7), ord("\x08")), nzTpIcepk0o8(chr(632 - 584) + chr(6994 - 6883) + '\x32' + '\064' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(645 - 595) + chr(0b1110 + 0o43), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + chr(55) + chr(2131 - 2081), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1964 - 1914) + '\060' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1259 - 1210) + chr(2614 - 2561) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1421 - 1369) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101100 + 0o103) + chr(0b1011 + 0o46) + '\x31' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b10010 + 0o135) + '\062' + chr(52) + chr(83 - 29), 36962 - 36954), nzTpIcepk0o8(chr(0b110000) + chr(1990 - 1879) + chr(0b10100 + 0o36) + '\x33' + chr(0b101 + 0o56), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(0b101010 + 0o13) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x8e'), '\144' + '\145' + chr(4653 - 4554) + chr(0b1101111) + chr(8719 - 8619) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def kVCZOyCgR_3Y(hXMPsSrOQzbh, D4ybylS07yGH): roI3spqORKae(K3eM7qtCl3Uz, roI3spqORKae(ES5oEprVxulp(b'\xe9\x1f4\x0c\xb7\xa0Z\xc8\xceW\xc0\xb9Z\xe0\x11'), chr(0b110110 + 0o56) + chr(4550 - 4449) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100001 + 0o5) + '\x2d' + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xc1+t\x0f\xbd\xa0|\x87\xebU\xf4\xcd'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(12102 - 11985) + chr(116) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(56))), roI3spqORKae(hXMPsSrOQzbh.parent, roI3spqORKae(ES5oEprVxulp(b'\xe7"u\x19\x80\x87s\xf6\xf3}\xc8\xb3'), '\x64' + '\145' + chr(99) + '\157' + chr(8118 - 8018) + chr(0b111100 + 0o51))(chr(0b101 + 0o160) + chr(0b1100010 + 0o22) + '\146' + '\x2d' + '\070')))
PmagPy/PmagPy
programs/plot_map_pts.py
main
def main(): """ NAME plot_map_pts.py DESCRIPTION plots points on map SYNTAX plot_map_pts.py [command line options] OPTIONS -h prints help and quits -sym [ro, bs, g^, r., b-, etc.] [1,5,10] symbol and size for points colors are r=red,b=blue,g=green, etc. symbols are '.' for points, ^, for triangle, s for square, etc. -, for lines, -- for dotted lines, see matplotlib online documentation for plot() -eye ELAT ELON [specify eyeball location] -etp put on topography -cmap color map [default is jet] -f FILE, specify input file -o color ocean blue/land green (default is not) -res [c,l,i,h] specify resolution (crude, low, intermediate, high] -fmt [pdf,eps, png] specify output format (default is pdf) -R don't plot details of rivers -B don't plot national/state boundaries, etc. -pad [LAT LON] pad bounding box by LAT/LON (default is not) -grd SPACE specify grid spacing -sav save plot and quit -prj PROJ, specify one of the supported projections: pc = Plate Carree aea = Albers Equal Area aeqd = Azimuthal Equidistant lcc = Lambert Conformal lcyl = Lambert Cylindrical merc = Mercator mill = Miller Cylindrical moll = Mollweide [default] ortho = Orthographic robin = Robinson sinu = Sinusoidal stere = Stereographic tmerc = Transverse Mercator utm = UTM laea = Lambert Azimuthal Equal Area geos = Geostationary npstere = North-Polar Stereographic spstere = South-Polar Stereographic Special codes for MagIC formatted input files: -n -l INPUTS space or tab delimited LON LAT data OR: standard MagIC formatted er_sites or pmag_results table DEFAULTS res: c prj: mollweide; lcc for MagIC format files ELAT,ELON = 0,0 pad LAT,LON=0,0 NB: high resolution or lines can be very slow """ dir_path='.' plot=0 ocean=0 res='c' proj='moll' Lats,Lons=[],[] fmt='pdf' sym='ro' symsize=5 fancy=0 rivers,boundaries,ocean=1,1,0 latmin,latmax,lonmin,lonmax,lat_0,lon_0=-90,90,0.,360.,0.,0. padlat,padlon,gridspace=0,0,30 lat_0,lon_0="","" basemap=1 prn_name,prn_loc,names,locs=0,0,[],[] if '-WD' in sys.argv: ind = sys.argv.index('-WD') dir_path=sys.argv[ind+1] if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-fmt' in sys.argv: ind = sys.argv.index('-fmt') fmt=sys.argv[ind+1] if '-res' in sys.argv: ind = sys.argv.index('-res') res=sys.argv[ind+1] if res!= 'c' and res!='l': print('this resolution will take a while - be patient') if '-etp' in sys.argv: fancy=1 print ('-W- plotting will require patience!') if '-ctp' in sys.argv: basemap=0 if '-sav' in sys.argv: plot=1 if '-R' in sys.argv:rivers=0 if '-B' in sys.argv:boundaries=0 if '-o' in sys.argv:ocean=1 if '-cmap' in sys.argv: ind = sys.argv.index('-cmap') cmap=float(sys.argv[ind+1]) else: cmap='jet' if '-grd' in sys.argv: ind = sys.argv.index('-grd') gridspace=float(sys.argv[ind+1]) if '-eye' in sys.argv: ind = sys.argv.index('-eye') lat_0=float(sys.argv[ind+1]) lon_0=float(sys.argv[ind+2]) if '-sym' in sys.argv: ind = sys.argv.index('-sym') sym=sys.argv[ind+1] symsize=int(sys.argv[ind+2]) if '-pad' in sys.argv: ind = sys.argv.index('-pad') padlat=float(sys.argv[ind+1]) padlon=float(sys.argv[ind+2]) if '-f' in sys.argv: ind = sys.argv.index('-f') file=dir_path+'/'+sys.argv[ind+1] header=open(file,'r').readlines()[0].split('\t') if 'tab' in header[0]: proj='lcc' if 'sites' in header[1]: latkey='lat' lonkey='lon' namekey='site' lockey='' else: print('file type not supported') print(main.__doc__) sys.exit() Sites,file_type=pmag.magic_read(file) Lats=pmag.get_dictkey(Sites,latkey,'f') Lons=pmag.get_dictkey(Sites,lonkey,'f') if prn_name==1:names=pmag.get_dictkey(Sites,namekey,'') if prn_loc==1:names=pmag.get_dictkey(Sites,lockey,'') else: ptdata=numpy.loadtxt(file) Lons=ptdata.transpose()[0] Lats=ptdata.transpose()[1] latmin=numpy.min(Lats)-padlat lonmin=numpy.min(Lons)-padlon latmax=numpy.max(Lats)+padlat lonmax=numpy.max(Lons)+padlon if lon_0=="": lon_0=0.5*(lonmin+lonmax) lat_0=0.5*(latmin+latmax) else: print("input file must be specified") sys.exit() if '-prj' in sys.argv: ind = sys.argv.index('-prj') proj=sys.argv[ind+1] FIG={'map':1} pmagplotlib.plot_init(FIG['map'],6,6) cnt=0 Opts={'latmin':latmin,'latmax':latmax,'lonmin':lonmin,'lonmax':lonmax,'lat_0':lat_0,'lon_0':lon_0,'proj':proj,'sym':sym,'symsize':3,'pltgrid':1,'res':res,'boundinglat':0.,'padlon':padlon,'padlat':padlat,'gridspace':gridspace,'cmap':cmap} Opts['details']={} Opts['details']['coasts']=1 Opts['details']['rivers']=rivers Opts['details']['states']=boundaries Opts['details']['countries']=boundaries Opts['details']['ocean']=ocean Opts['details']['fancy']=fancy if len(names)>0:Opts['names']=names if len(locs)>0:Opts['loc_name']=locs if proj=='merc': Opts['latmin']=-70 Opts['latmax']=70 Opts['lonmin']=-180 Opts['lonmax']=180 print('please wait to draw points') Opts['sym']=sym Opts['symsize']=symsize if basemap: pmagplotlib.plot_map(FIG['map'],Lats,Lons,Opts) else: pmagplotlib.plot_map(FIG['map'],Lats,Lons,Opts) files={} titles={} titles['map']='PT Map' for key in list(FIG.keys()): files[key]='map_pts'+'.'+fmt if pmagplotlib.isServer: black = '#000000' purple = '#800080' FIG = pmagplotlib.add_borders(FIG,titles,black,purple) pmagplotlib.save_plots(FIG,files) if plot==1: pmagplotlib.save_plots(FIG,files) else: pmagplotlib.draw_figs(FIG) ans=input(" S[a]ve to save plot, Return to quit: ") if ans=="a": pmagplotlib.save_plots(FIG,files)
python
def main(): """ NAME plot_map_pts.py DESCRIPTION plots points on map SYNTAX plot_map_pts.py [command line options] OPTIONS -h prints help and quits -sym [ro, bs, g^, r., b-, etc.] [1,5,10] symbol and size for points colors are r=red,b=blue,g=green, etc. symbols are '.' for points, ^, for triangle, s for square, etc. -, for lines, -- for dotted lines, see matplotlib online documentation for plot() -eye ELAT ELON [specify eyeball location] -etp put on topography -cmap color map [default is jet] -f FILE, specify input file -o color ocean blue/land green (default is not) -res [c,l,i,h] specify resolution (crude, low, intermediate, high] -fmt [pdf,eps, png] specify output format (default is pdf) -R don't plot details of rivers -B don't plot national/state boundaries, etc. -pad [LAT LON] pad bounding box by LAT/LON (default is not) -grd SPACE specify grid spacing -sav save plot and quit -prj PROJ, specify one of the supported projections: pc = Plate Carree aea = Albers Equal Area aeqd = Azimuthal Equidistant lcc = Lambert Conformal lcyl = Lambert Cylindrical merc = Mercator mill = Miller Cylindrical moll = Mollweide [default] ortho = Orthographic robin = Robinson sinu = Sinusoidal stere = Stereographic tmerc = Transverse Mercator utm = UTM laea = Lambert Azimuthal Equal Area geos = Geostationary npstere = North-Polar Stereographic spstere = South-Polar Stereographic Special codes for MagIC formatted input files: -n -l INPUTS space or tab delimited LON LAT data OR: standard MagIC formatted er_sites or pmag_results table DEFAULTS res: c prj: mollweide; lcc for MagIC format files ELAT,ELON = 0,0 pad LAT,LON=0,0 NB: high resolution or lines can be very slow """ dir_path='.' plot=0 ocean=0 res='c' proj='moll' Lats,Lons=[],[] fmt='pdf' sym='ro' symsize=5 fancy=0 rivers,boundaries,ocean=1,1,0 latmin,latmax,lonmin,lonmax,lat_0,lon_0=-90,90,0.,360.,0.,0. padlat,padlon,gridspace=0,0,30 lat_0,lon_0="","" basemap=1 prn_name,prn_loc,names,locs=0,0,[],[] if '-WD' in sys.argv: ind = sys.argv.index('-WD') dir_path=sys.argv[ind+1] if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-fmt' in sys.argv: ind = sys.argv.index('-fmt') fmt=sys.argv[ind+1] if '-res' in sys.argv: ind = sys.argv.index('-res') res=sys.argv[ind+1] if res!= 'c' and res!='l': print('this resolution will take a while - be patient') if '-etp' in sys.argv: fancy=1 print ('-W- plotting will require patience!') if '-ctp' in sys.argv: basemap=0 if '-sav' in sys.argv: plot=1 if '-R' in sys.argv:rivers=0 if '-B' in sys.argv:boundaries=0 if '-o' in sys.argv:ocean=1 if '-cmap' in sys.argv: ind = sys.argv.index('-cmap') cmap=float(sys.argv[ind+1]) else: cmap='jet' if '-grd' in sys.argv: ind = sys.argv.index('-grd') gridspace=float(sys.argv[ind+1]) if '-eye' in sys.argv: ind = sys.argv.index('-eye') lat_0=float(sys.argv[ind+1]) lon_0=float(sys.argv[ind+2]) if '-sym' in sys.argv: ind = sys.argv.index('-sym') sym=sys.argv[ind+1] symsize=int(sys.argv[ind+2]) if '-pad' in sys.argv: ind = sys.argv.index('-pad') padlat=float(sys.argv[ind+1]) padlon=float(sys.argv[ind+2]) if '-f' in sys.argv: ind = sys.argv.index('-f') file=dir_path+'/'+sys.argv[ind+1] header=open(file,'r').readlines()[0].split('\t') if 'tab' in header[0]: proj='lcc' if 'sites' in header[1]: latkey='lat' lonkey='lon' namekey='site' lockey='' else: print('file type not supported') print(main.__doc__) sys.exit() Sites,file_type=pmag.magic_read(file) Lats=pmag.get_dictkey(Sites,latkey,'f') Lons=pmag.get_dictkey(Sites,lonkey,'f') if prn_name==1:names=pmag.get_dictkey(Sites,namekey,'') if prn_loc==1:names=pmag.get_dictkey(Sites,lockey,'') else: ptdata=numpy.loadtxt(file) Lons=ptdata.transpose()[0] Lats=ptdata.transpose()[1] latmin=numpy.min(Lats)-padlat lonmin=numpy.min(Lons)-padlon latmax=numpy.max(Lats)+padlat lonmax=numpy.max(Lons)+padlon if lon_0=="": lon_0=0.5*(lonmin+lonmax) lat_0=0.5*(latmin+latmax) else: print("input file must be specified") sys.exit() if '-prj' in sys.argv: ind = sys.argv.index('-prj') proj=sys.argv[ind+1] FIG={'map':1} pmagplotlib.plot_init(FIG['map'],6,6) cnt=0 Opts={'latmin':latmin,'latmax':latmax,'lonmin':lonmin,'lonmax':lonmax,'lat_0':lat_0,'lon_0':lon_0,'proj':proj,'sym':sym,'symsize':3,'pltgrid':1,'res':res,'boundinglat':0.,'padlon':padlon,'padlat':padlat,'gridspace':gridspace,'cmap':cmap} Opts['details']={} Opts['details']['coasts']=1 Opts['details']['rivers']=rivers Opts['details']['states']=boundaries Opts['details']['countries']=boundaries Opts['details']['ocean']=ocean Opts['details']['fancy']=fancy if len(names)>0:Opts['names']=names if len(locs)>0:Opts['loc_name']=locs if proj=='merc': Opts['latmin']=-70 Opts['latmax']=70 Opts['lonmin']=-180 Opts['lonmax']=180 print('please wait to draw points') Opts['sym']=sym Opts['symsize']=symsize if basemap: pmagplotlib.plot_map(FIG['map'],Lats,Lons,Opts) else: pmagplotlib.plot_map(FIG['map'],Lats,Lons,Opts) files={} titles={} titles['map']='PT Map' for key in list(FIG.keys()): files[key]='map_pts'+'.'+fmt if pmagplotlib.isServer: black = '#000000' purple = '#800080' FIG = pmagplotlib.add_borders(FIG,titles,black,purple) pmagplotlib.save_plots(FIG,files) if plot==1: pmagplotlib.save_plots(FIG,files) else: pmagplotlib.draw_figs(FIG) ans=input(" S[a]ve to save plot, Return to quit: ") if ans=="a": pmagplotlib.save_plots(FIG,files)
[ "def", "main", "(", ")", ":", "dir_path", "=", "'.'", "plot", "=", "0", "ocean", "=", "0", "res", "=", "'c'", "proj", "=", "'moll'", "Lats", ",", "Lons", "=", "[", "]", ",", "[", "]", "fmt", "=", "'pdf'", "sym", "=", "'ro'", "symsize", "=", "5", "fancy", "=", "0", "rivers", ",", "boundaries", ",", "ocean", "=", "1", ",", "1", ",", "0", "latmin", ",", "latmax", ",", "lonmin", ",", "lonmax", ",", "lat_0", ",", "lon_0", "=", "-", "90", ",", "90", ",", "0.", ",", "360.", ",", "0.", ",", "0.", "padlat", ",", "padlon", ",", "gridspace", "=", "0", ",", "0", ",", "30", "lat_0", ",", "lon_0", "=", "\"\"", ",", "\"\"", "basemap", "=", "1", "prn_name", ",", "prn_loc", ",", "names", ",", "locs", "=", "0", ",", "0", ",", "[", "]", ",", "[", "]", "if", "'-WD'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "dir_path", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-fmt'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-fmt'", ")", "fmt", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-res'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-res'", ")", "res", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "res", "!=", "'c'", "and", "res", "!=", "'l'", ":", "print", "(", "'this resolution will take a while - be patient'", ")", "if", "'-etp'", "in", "sys", ".", "argv", ":", "fancy", "=", "1", "print", "(", "'-W- plotting will require patience!'", ")", "if", "'-ctp'", "in", "sys", ".", "argv", ":", "basemap", "=", "0", "if", "'-sav'", "in", "sys", ".", "argv", ":", "plot", "=", "1", "if", "'-R'", "in", "sys", ".", "argv", ":", "rivers", "=", "0", "if", "'-B'", "in", "sys", ".", "argv", ":", "boundaries", "=", "0", "if", "'-o'", "in", "sys", ".", "argv", ":", "ocean", "=", "1", "if", "'-cmap'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-cmap'", ")", "cmap", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "else", ":", "cmap", "=", "'jet'", "if", "'-grd'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-grd'", ")", "gridspace", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "if", "'-eye'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-eye'", ")", "lat_0", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "lon_0", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "2", "]", ")", "if", "'-sym'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-sym'", ")", "sym", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "symsize", "=", "int", "(", "sys", ".", "argv", "[", "ind", "+", "2", "]", ")", "if", "'-pad'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-pad'", ")", "padlat", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "padlon", "=", "float", "(", "sys", ".", "argv", "[", "ind", "+", "2", "]", ")", "if", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "dir_path", "+", "'/'", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "header", "=", "open", "(", "file", ",", "'r'", ")", ".", "readlines", "(", ")", "[", "0", "]", ".", "split", "(", "'\\t'", ")", "if", "'tab'", "in", "header", "[", "0", "]", ":", "proj", "=", "'lcc'", "if", "'sites'", "in", "header", "[", "1", "]", ":", "latkey", "=", "'lat'", "lonkey", "=", "'lon'", "namekey", "=", "'site'", "lockey", "=", "''", "else", ":", "print", "(", "'file type not supported'", ")", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "Sites", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "file", ")", "Lats", "=", "pmag", ".", "get_dictkey", "(", "Sites", ",", "latkey", ",", "'f'", ")", "Lons", "=", "pmag", ".", "get_dictkey", "(", "Sites", ",", "lonkey", ",", "'f'", ")", "if", "prn_name", "==", "1", ":", "names", "=", "pmag", ".", "get_dictkey", "(", "Sites", ",", "namekey", ",", "''", ")", "if", "prn_loc", "==", "1", ":", "names", "=", "pmag", ".", "get_dictkey", "(", "Sites", ",", "lockey", ",", "''", ")", "else", ":", "ptdata", "=", "numpy", ".", "loadtxt", "(", "file", ")", "Lons", "=", "ptdata", ".", "transpose", "(", ")", "[", "0", "]", "Lats", "=", "ptdata", ".", "transpose", "(", ")", "[", "1", "]", "latmin", "=", "numpy", ".", "min", "(", "Lats", ")", "-", "padlat", "lonmin", "=", "numpy", ".", "min", "(", "Lons", ")", "-", "padlon", "latmax", "=", "numpy", ".", "max", "(", "Lats", ")", "+", "padlat", "lonmax", "=", "numpy", ".", "max", "(", "Lons", ")", "+", "padlon", "if", "lon_0", "==", "\"\"", ":", "lon_0", "=", "0.5", "*", "(", "lonmin", "+", "lonmax", ")", "lat_0", "=", "0.5", "*", "(", "latmin", "+", "latmax", ")", "else", ":", "print", "(", "\"input file must be specified\"", ")", "sys", ".", "exit", "(", ")", "if", "'-prj'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-prj'", ")", "proj", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "FIG", "=", "{", "'map'", ":", "1", "}", "pmagplotlib", ".", "plot_init", "(", "FIG", "[", "'map'", "]", ",", "6", ",", "6", ")", "cnt", "=", "0", "Opts", "=", "{", "'latmin'", ":", "latmin", ",", "'latmax'", ":", "latmax", ",", "'lonmin'", ":", "lonmin", ",", "'lonmax'", ":", "lonmax", ",", "'lat_0'", ":", "lat_0", ",", "'lon_0'", ":", "lon_0", ",", "'proj'", ":", "proj", ",", "'sym'", ":", "sym", ",", "'symsize'", ":", "3", ",", "'pltgrid'", ":", "1", ",", "'res'", ":", "res", ",", "'boundinglat'", ":", "0.", ",", "'padlon'", ":", "padlon", ",", "'padlat'", ":", "padlat", ",", "'gridspace'", ":", "gridspace", ",", "'cmap'", ":", "cmap", "}", "Opts", "[", "'details'", "]", "=", "{", "}", "Opts", "[", "'details'", "]", "[", "'coasts'", "]", "=", "1", "Opts", "[", "'details'", "]", "[", "'rivers'", "]", "=", "rivers", "Opts", "[", "'details'", "]", "[", "'states'", "]", "=", "boundaries", "Opts", "[", "'details'", "]", "[", "'countries'", "]", "=", "boundaries", "Opts", "[", "'details'", "]", "[", "'ocean'", "]", "=", "ocean", "Opts", "[", "'details'", "]", "[", "'fancy'", "]", "=", "fancy", "if", "len", "(", "names", ")", ">", "0", ":", "Opts", "[", "'names'", "]", "=", "names", "if", "len", "(", "locs", ")", ">", "0", ":", "Opts", "[", "'loc_name'", "]", "=", "locs", "if", "proj", "==", "'merc'", ":", "Opts", "[", "'latmin'", "]", "=", "-", "70", "Opts", "[", "'latmax'", "]", "=", "70", "Opts", "[", "'lonmin'", "]", "=", "-", "180", "Opts", "[", "'lonmax'", "]", "=", "180", "print", "(", "'please wait to draw points'", ")", "Opts", "[", "'sym'", "]", "=", "sym", "Opts", "[", "'symsize'", "]", "=", "symsize", "if", "basemap", ":", "pmagplotlib", ".", "plot_map", "(", "FIG", "[", "'map'", "]", ",", "Lats", ",", "Lons", ",", "Opts", ")", "else", ":", "pmagplotlib", ".", "plot_map", "(", "FIG", "[", "'map'", "]", ",", "Lats", ",", "Lons", ",", "Opts", ")", "files", "=", "{", "}", "titles", "=", "{", "}", "titles", "[", "'map'", "]", "=", "'PT Map'", "for", "key", "in", "list", "(", "FIG", ".", "keys", "(", ")", ")", ":", "files", "[", "key", "]", "=", "'map_pts'", "+", "'.'", "+", "fmt", "if", "pmagplotlib", ".", "isServer", ":", "black", "=", "'#000000'", "purple", "=", "'#800080'", "FIG", "=", "pmagplotlib", ".", "add_borders", "(", "FIG", ",", "titles", ",", "black", ",", "purple", ")", "pmagplotlib", ".", "save_plots", "(", "FIG", ",", "files", ")", "if", "plot", "==", "1", ":", "pmagplotlib", ".", "save_plots", "(", "FIG", ",", "files", ")", "else", ":", "pmagplotlib", ".", "draw_figs", "(", "FIG", ")", "ans", "=", "input", "(", "\" S[a]ve to save plot, Return to quit: \"", ")", "if", "ans", "==", "\"a\"", ":", "pmagplotlib", ".", "save_plots", "(", "FIG", ",", "files", ")" ]
NAME plot_map_pts.py DESCRIPTION plots points on map SYNTAX plot_map_pts.py [command line options] OPTIONS -h prints help and quits -sym [ro, bs, g^, r., b-, etc.] [1,5,10] symbol and size for points colors are r=red,b=blue,g=green, etc. symbols are '.' for points, ^, for triangle, s for square, etc. -, for lines, -- for dotted lines, see matplotlib online documentation for plot() -eye ELAT ELON [specify eyeball location] -etp put on topography -cmap color map [default is jet] -f FILE, specify input file -o color ocean blue/land green (default is not) -res [c,l,i,h] specify resolution (crude, low, intermediate, high] -fmt [pdf,eps, png] specify output format (default is pdf) -R don't plot details of rivers -B don't plot national/state boundaries, etc. -pad [LAT LON] pad bounding box by LAT/LON (default is not) -grd SPACE specify grid spacing -sav save plot and quit -prj PROJ, specify one of the supported projections: pc = Plate Carree aea = Albers Equal Area aeqd = Azimuthal Equidistant lcc = Lambert Conformal lcyl = Lambert Cylindrical merc = Mercator mill = Miller Cylindrical moll = Mollweide [default] ortho = Orthographic robin = Robinson sinu = Sinusoidal stere = Stereographic tmerc = Transverse Mercator utm = UTM laea = Lambert Azimuthal Equal Area geos = Geostationary npstere = North-Polar Stereographic spstere = South-Polar Stereographic Special codes for MagIC formatted input files: -n -l INPUTS space or tab delimited LON LAT data OR: standard MagIC formatted er_sites or pmag_results table DEFAULTS res: c prj: mollweide; lcc for MagIC format files ELAT,ELON = 0,0 pad LAT,LON=0,0 NB: high resolution or lines can be very slow
[ "NAME", "plot_map_pts", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/plot_map_pts.py#L14-L213
train
This function is the main function for the base plot of the base map.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b1100 + 0o50) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + chr(0b10110 + 0o33) + '\060', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11001 + 0o32) + '\x35' + chr(0b1010 + 0o55), 57765 - 57757), nzTpIcepk0o8(chr(48) + chr(234 - 123) + '\x32' + chr(53) + chr(1351 - 1302), 22273 - 22265), nzTpIcepk0o8('\060' + chr(3992 - 3881) + chr(0b110010) + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(54) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1 + 0o62) + '\x34' + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(53) + chr(54), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(0b110001) + chr(54) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(711 - 663) + '\x6f' + '\061' + chr(0b110111) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + '\063' + chr(0b11011 + 0o33) + chr(0b10000 + 0o47), 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(1535 - 1424) + chr(1463 - 1412) + '\x36' + chr(50), 3860 - 3852), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(54) + '\x32', 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b111010 + 0o65) + chr(49) + chr(0b110110) + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(9282 - 9171) + chr(1276 - 1227) + chr(742 - 693) + chr(0b1100 + 0o47), 33098 - 33090), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\x30' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(949 - 901) + '\157' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + '\x34' + '\065', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(508 - 456) + chr(0b11100 + 0o33), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b10100 + 0o40) + chr(53), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x30' + chr(2340 - 2285), 40572 - 40564), nzTpIcepk0o8('\060' + chr(9757 - 9646) + chr(49) + '\061' + '\x31', 46721 - 46713), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x35' + chr(53), 0o10), nzTpIcepk0o8(chr(157 - 109) + chr(0b11111 + 0o120) + chr(51) + chr(0b101011 + 0o14) + chr(0b10001 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(49) + '\x37' + chr(716 - 666), 30093 - 30085), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b110011) + chr(54) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b101010 + 0o15) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(12271 - 12160) + chr(49) + chr(2198 - 2148) + '\x35', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + chr(49) + chr(0b10001 + 0o42) + chr(0b10001 + 0o46), 45285 - 45277), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1049 - 999) + chr(0b101 + 0o53) + chr(0b110111), 38790 - 38782), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(55), 64847 - 64839), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x34' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1693 - 1645) + '\x6f' + chr(51) + chr(0b110110) + chr(0b110100 + 0o0), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\066' + '\067', 8), nzTpIcepk0o8(chr(1189 - 1141) + chr(0b100001 + 0o116) + chr(0b110010) + '\062' + chr(52), 0b1000), nzTpIcepk0o8(chr(2112 - 2064) + chr(0b101101 + 0o102) + chr(1416 - 1365) + '\x34' + chr(601 - 546), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1485 - 1431) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9904 - 9793) + chr(0b100011 + 0o17) + '\x36', 31583 - 31575), nzTpIcepk0o8(chr(48) + '\157' + chr(347 - 297) + chr(2759 - 2705) + chr(0b111 + 0o54), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + chr(0b11000 + 0o35) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1010010 + 0o35) + chr(9761 - 9661) + chr(0b1100101))(chr(0b10010 + 0o143) + chr(0b1110100) + chr(208 - 106) + chr(161 - 116) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): qjksZ7GK0xkJ = roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1100100) + chr(5433 - 5332) + chr(0b100011 + 0o100) + chr(0b11111 + 0o120) + '\144' + chr(0b10111 + 0o116))(chr(0b110101 + 0o100) + chr(116) + chr(8710 - 8608) + chr(1638 - 1593) + chr(0b111 + 0o61)) mocO8sWgkzH7 = nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110000), 8) h7esp1k_GvOk = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1106 - 1058), 8) _XdQFJpnzJor = roI3spqORKae(ES5oEprVxulp(b'\x00'), '\x64' + '\x65' + chr(5872 - 5773) + chr(7740 - 7629) + chr(0b1011110 + 0o6) + chr(101))(chr(0b101100 + 0o111) + chr(296 - 180) + chr(0b1100110) + chr(663 - 618) + chr(56)) yNS8IgQS0ymV = roI3spqORKae(ES5oEprVxulp(b'\x0eg\x83\xc5'), chr(0b101000 + 0o74) + '\x65' + chr(99) + chr(0b100 + 0o153) + chr(5638 - 5538) + chr(5834 - 5733))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)) (fgznbtl5yjUN, nLP6wFcmuZ8n) = ([], []) JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'\x13l\x89'), chr(0b1001010 + 0o32) + chr(101) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + chr(56)) ap75Y_eaMZLk = roI3spqORKae(ES5oEprVxulp(b'\x11g'), '\144' + chr(101) + chr(4484 - 4385) + chr(7335 - 7224) + '\144' + '\145')('\x75' + '\x74' + '\146' + '\x2d' + chr(942 - 886)) a6DuPeQDkIk8 = nzTpIcepk0o8(chr(48) + chr(0b1100111 + 0o10) + chr(53), 36252 - 36244) vVMRKIXM85FE = nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1189 - 1141), 8) (LFxG4Y_j1rKQ, jYlMl12aUHJk, h7esp1k_GvOk) = (nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110000), 8)) (bRjAQX79rGXr, ddj9EnUwD2PU, ijQ_nKiOtnwO, fIkXEvDuFsXE, vvGqd7Fkqgfw, E7x0t9AdiILk) = (-nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(111) + chr(49) + '\063' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(2487 - 2436) + chr(0b110010), 8), 0.0, 360.0, 0.0, 0.0) (qC3ESDmoG5GA, ZiRm3lqqJWWX, FG5VV9N8A9pf) = (nzTpIcepk0o8(chr(0b110000) + '\157' + '\060', 8), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b11011 + 0o124) + chr(0b110000), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(0b11010 + 0o34), 0b1000)) (vvGqd7Fkqgfw, E7x0t9AdiILk) = (roI3spqORKae(ES5oEprVxulp(b''), chr(2845 - 2745) + chr(7966 - 7865) + '\x63' + chr(2445 - 2334) + chr(5203 - 5103) + chr(10040 - 9939))(chr(0b1110101) + '\164' + '\146' + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), chr(4589 - 4489) + '\145' + chr(0b1010001 + 0o22) + chr(0b1101111) + '\144' + chr(101))(chr(5734 - 5617) + chr(0b1110100) + chr(3445 - 3343) + chr(45) + chr(0b1001 + 0o57))) sM8dizQ2GmL6 = nzTpIcepk0o8('\x30' + chr(8651 - 8540) + '\x31', 8) (w0D3EGfkrN0B, uNdqFoirSJWM, TMMrjsiU6eED, c7RydVE5Qw9u) = (nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(4369 - 4258) + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1416 - 1368), 8), [], []) if roI3spqORKae(ES5oEprVxulp(b'N_\xab'), chr(0b1100100) + '\145' + chr(915 - 816) + chr(0b1101111) + '\144' + '\145')(chr(2997 - 2880) + chr(0b1110100) + chr(0b0 + 0o146) + chr(45) + chr(2148 - 2092)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(0b100111 + 0o75) + chr(101) + '\x63' + chr(111) + '\x64' + chr(101))(chr(117) + chr(3300 - 3184) + '\146' + '\055' + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'N_\xab'), chr(7594 - 7494) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1011001 + 0o13) + chr(2367 - 2266))('\165' + '\x74' + chr(0b1001001 + 0o35) + chr(1991 - 1946) + chr(0b101100 + 0o14))) qjksZ7GK0xkJ = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49), 8)] if roI3spqORKae(ES5oEprVxulp(b'N`'), chr(100) + '\145' + chr(0b1 + 0o142) + chr(111) + '\144' + chr(0b1100101))('\165' + chr(116) + chr(0b1100110) + '\055' + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\144' + '\145' + chr(99) + '\157' + '\x64' + chr(101))('\x75' + '\x74' + '\146' + '\055' + '\070')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x1an\xaa\xcc`\xa6\x8f\xbb\x1e\x08\xa0\xa6'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(0b1011110 + 0o7))(chr(0b1001 + 0o154) + '\x74' + '\146' + chr(0b101101) + '\070'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9}\x9d\xc3r\xa2\xaa\xdf\x02\n\xb6\xca'), '\144' + '\145' + '\143' + chr(0b101011 + 0o104) + '\x64' + chr(0b1100101))(chr(8039 - 7922) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b1101 + 0o53)))() if roI3spqORKae(ES5oEprVxulp(b'Nn\x82\xdd'), chr(7725 - 7625) + chr(6648 - 6547) + '\x63' + '\157' + chr(0b1011010 + 0o12) + chr(7452 - 7351))('\x75' + '\x74' + chr(0b110101 + 0o61) + '\x2d' + chr(0b0 + 0o70)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(2837 - 2737) + chr(0b11111 + 0o106) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b1101 + 0o150) + chr(0b1110 + 0o146) + chr(102) + chr(45) + '\070')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nn\x82\xdd'), chr(0b1010110 + 0o16) + '\145' + '\143' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(0b111000))) JummcHpaNLEw = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(111) + chr(0b1000 + 0o51), 8)] if roI3spqORKae(ES5oEprVxulp(b'Nz\x8a\xda'), chr(0b1011011 + 0o11) + chr(10037 - 9936) + chr(0b1010110 + 0o15) + chr(4463 - 4352) + '\144' + '\145')(chr(0b111000 + 0o75) + chr(0b1011000 + 0o34) + '\x66' + chr(347 - 302) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\144' + '\x65')(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nz\x8a\xda'), chr(100) + chr(101) + '\143' + chr(0b1101111) + chr(5809 - 5709) + '\x65')('\165' + chr(0b111000 + 0o74) + chr(2470 - 2368) + chr(0b101101) + '\x38')) _XdQFJpnzJor = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(2289 - 2178) + '\x31', 8)] if _XdQFJpnzJor != roI3spqORKae(ES5oEprVxulp(b'\x00'), chr(0b100110 + 0o76) + chr(0b10000 + 0o125) + chr(99) + chr(111) + chr(0b1100100) + '\145')(chr(11747 - 11630) + '\x74' + '\146' + chr(1655 - 1610) + chr(2003 - 1947)) and _XdQFJpnzJor != roI3spqORKae(ES5oEprVxulp(b'\x0f'), '\x64' + chr(101) + chr(0b1001110 + 0o25) + chr(0b110101 + 0o72) + '\144' + chr(0b100 + 0o141))(chr(117) + chr(116) + '\146' + chr(45) + chr(56)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x17`\x86\xda1\x85\x83\x9d\x1e\x15\x82\x86\x9b\x19%ew\xcc\x0b\xc9g=\x0c\x91\x1f\xd6o\xdc"7\xeecD\xd4\xda\xb4\x85U6\xc3\x02|\x86\xcc\x7f\x83'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + '\145')(chr(0b11011 + 0o132) + '\164' + '\x66' + chr(0b1010 + 0o43) + '\070')) if roI3spqORKae(ES5oEprVxulp(b'Nm\x9b\xd9'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b11000 + 0o115))(chr(0b110100 + 0o101) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(0b1100100) + chr(0b1100101) + chr(6253 - 6154) + '\157' + '\144' + chr(0b1110 + 0o127))(chr(0b111100 + 0o71) + chr(11335 - 11219) + chr(102) + chr(1445 - 1400) + chr(56))): vVMRKIXM85FE = nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(5640 - 5529) + chr(49), 8) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'N_\xc2\x89a\x9b\x89\x9a\x05\x10\x99\x95\xd2\x01")l\x85\x15\xc06<\x04\x88\x1f\xd6~\x9d!6\xe2aB\x91\xd6'), chr(6376 - 6276) + chr(0b110010 + 0o63) + '\x63' + chr(111) + chr(3267 - 3167) + chr(0b110110 + 0o57))(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(0b110 + 0o62))) if roI3spqORKae(ES5oEprVxulp(b'Nk\x9b\xd9'), '\x64' + '\145' + '\143' + '\157' + '\x64' + '\145')(chr(0b1110101) + '\164' + '\146' + '\x2d' + chr(1712 - 1656)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\144' + chr(0b1100101) + chr(6312 - 6213) + chr(111) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + chr(56))): sM8dizQ2GmL6 = nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + chr(0b110000), 8) if roI3spqORKae(ES5oEprVxulp(b'N{\x8e\xdf'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(0b1010010 + 0o23))(chr(0b1010001 + 0o44) + chr(0b1101101 + 0o7) + chr(1978 - 1876) + '\055' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(821 - 721) + chr(6412 - 6311) + chr(99) + chr(2678 - 2567) + chr(0b111100 + 0o50) + '\x65')(chr(117) + chr(0b1110100) + '\146' + chr(0b100000 + 0o15) + '\070')): mocO8sWgkzH7 = nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(0b110001), 8) if roI3spqORKae(ES5oEprVxulp(b'NZ'), chr(0b11010 + 0o112) + '\145' + '\143' + '\157' + chr(0b1010000 + 0o24) + chr(0b101110 + 0o67))('\x75' + chr(7889 - 7773) + chr(0b1010 + 0o134) + chr(791 - 746) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(0b1100100) + chr(6179 - 6078) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1000010 + 0o43))(chr(0b1110101) + '\x74' + '\146' + chr(0b100111 + 0o6) + '\x38')): LFxG4Y_j1rKQ = nzTpIcepk0o8('\x30' + chr(0b1011000 + 0o27) + chr(1602 - 1554), 8) if roI3spqORKae(ES5oEprVxulp(b'NJ'), chr(100) + chr(101) + chr(0b1100011) + chr(0b110011 + 0o74) + chr(2756 - 2656) + '\x65')(chr(0b1110101) + chr(5244 - 5128) + chr(2397 - 2295) + chr(1182 - 1137) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1100110 + 0o11) + '\x64' + chr(101))(chr(0b110111 + 0o76) + chr(0b1001101 + 0o47) + chr(102) + '\055' + chr(0b111000))): jYlMl12aUHJk = nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + '\060', 8) if roI3spqORKae(ES5oEprVxulp(b'Ng'), chr(0b101101 + 0o67) + '\145' + chr(5537 - 5438) + '\157' + chr(5268 - 5168) + chr(0b1100101))(chr(3955 - 3838) + chr(0b1110 + 0o146) + chr(0b1100110) + '\055' + chr(0b100110 + 0o22)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(6388 - 6288) + chr(9477 - 9376) + chr(0b111010 + 0o51) + chr(111) + chr(9516 - 9416) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + '\x38')): h7esp1k_GvOk = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100110 + 0o13), 8) if roI3spqORKae(ES5oEprVxulp(b'Nk\x82\xc8a'), chr(0b0 + 0o144) + chr(0b1000101 + 0o40) + chr(99) + chr(7238 - 7127) + chr(100) + '\145')('\x75' + '\164' + '\146' + chr(1839 - 1794) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1000110 + 0o36) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(0b10000 + 0o35) + chr(2988 - 2932))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nk\x82\xc8a'), chr(0b1100100) + '\x65' + chr(99) + '\157' + '\x64' + chr(0b1001011 + 0o32))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(0b10010 + 0o46))) Yd7Rjip5B5Mk = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1357 - 1309) + chr(2152 - 2041) + chr(1274 - 1225), 8)]) else: Yd7Rjip5B5Mk = roI3spqORKae(ES5oEprVxulp(b'\tm\x9b'), '\144' + '\x65' + chr(6892 - 6793) + '\x6f' + chr(3993 - 3893) + chr(315 - 214))(chr(0b1110101) + chr(116) + '\146' + chr(0b10111 + 0o26) + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'No\x9d\xcd'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + chr(100) + '\145')('\165' + '\164' + chr(0b1011111 + 0o7) + '\055' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\144' + chr(101) + chr(0b111100 + 0o47) + chr(111) + chr(7101 - 7001) + chr(0b1100101))(chr(0b1001101 + 0o50) + chr(0b110 + 0o156) + chr(102) + '\055' + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'No\x9d\xcd'), chr(0b1100100) + '\145' + '\143' + '\157' + '\144' + chr(0b1000011 + 0o42))(chr(117) + chr(116) + chr(0b1011110 + 0o10) + '\055' + '\x38')) FG5VV9N8A9pf = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(0b1010 + 0o47), 8)]) if roI3spqORKae(ES5oEprVxulp(b'Nm\x96\xcc'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(2361 - 2260))(chr(0b1010 + 0o153) + chr(0b1110100) + chr(0b1001111 + 0o27) + '\x2d' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(100) + chr(424 - 323) + chr(0b10110 + 0o115) + chr(111) + chr(100) + chr(101))('\165' + chr(116) + '\146' + chr(0b101101) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nm\x96\xcc'), '\x64' + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')(chr(117) + '\x74' + chr(0b0 + 0o146) + chr(0b11101 + 0o20) + chr(0b101111 + 0o11))) vvGqd7Fkqgfw = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + '\157' + chr(49), 8)]) E7x0t9AdiILk = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + '\x6f' + chr(0b101010 + 0o10), 0b1000)]) if roI3spqORKae(ES5oEprVxulp(b'N{\x96\xc4'), chr(0b100010 + 0o102) + chr(2191 - 2090) + chr(6935 - 6836) + chr(0b1101111) + chr(0b1110 + 0o126) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(0b100 + 0o51) + chr(0b1001 + 0o57)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\x64' + chr(2280 - 2179) + chr(0b1001001 + 0o32) + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'N{\x96\xc4'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + chr(0b10 + 0o143))(chr(0b1110101) + chr(0b110000 + 0o104) + '\146' + '\055' + chr(0b11 + 0o65))) ap75Y_eaMZLk = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + chr(5424 - 5313) + chr(0b100000 + 0o21), 8)] a6DuPeQDkIk8 = nzTpIcepk0o8(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(50), 8)]) if roI3spqORKae(ES5oEprVxulp(b'Nx\x8e\xcd'), chr(0b110101 + 0o57) + chr(0b1100101) + '\x63' + chr(111) + chr(100) + chr(7855 - 7754))('\165' + chr(116) + chr(3889 - 3787) + chr(1333 - 1288) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(100) + '\x65' + '\143' + '\x6f' + chr(100) + chr(1631 - 1530))(chr(0b1110101) + chr(0b110010 + 0o102) + chr(2670 - 2568) + chr(1584 - 1539) + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nx\x8e\xcd'), '\x64' + '\145' + chr(4076 - 3977) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b101011 + 0o112) + '\164' + chr(0b1100110) + '\x2d' + '\070')) qC3ESDmoG5GA = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(9111 - 9000) + chr(0b10011 + 0o36), 8)]) ZiRm3lqqJWWX = jLW6pRf2DSRk(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110 + 0o52) + '\x6f' + chr(355 - 305), 8)]) if roI3spqORKae(ES5oEprVxulp(b'Nn'), chr(0b1001 + 0o133) + chr(8316 - 8215) + '\143' + '\x6f' + chr(0b1001110 + 0o26) + chr(0b100001 + 0o104))(chr(0b1110101) + chr(0b0 + 0o164) + chr(0b10 + 0o144) + chr(0b1010 + 0o43) + chr(0b110100 + 0o4)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), '\x64' + chr(101) + '\143' + chr(940 - 829) + chr(3045 - 2945) + '\145')('\x75' + chr(116) + chr(0b111001 + 0o55) + chr(0b11101 + 0o20) + '\070')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nn'), chr(2115 - 2015) + chr(0b10010 + 0o123) + chr(0b1100011) + '\x6f' + chr(0b10010 + 0o122) + chr(0b110111 + 0o56))(chr(8129 - 8012) + '\164' + '\x66' + '\055' + chr(56))) GtsVUCYulgYX = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'L'), chr(0b111010 + 0o52) + '\145' + chr(6051 - 5952) + '\157' + '\144' + '\145')('\165' + chr(116) + '\x66' + '\x2d' + chr(56)) + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + chr(8993 - 8882) + chr(0b110001), 8)] jkp_M8Pp8CIt = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'\x11'), chr(0b1010000 + 0o24) + chr(0b1100001 + 0o4) + chr(0b1100011) + '\x6f' + '\144' + '\145')('\165' + chr(0b1110100) + chr(0b101111 + 0o67) + chr(45) + chr(56))).readlines()[nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b101000 + 0o107) + chr(1779 - 1731), 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'j'), chr(0b1011111 + 0o5) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b110010 + 0o62) + '\145')('\165' + chr(0b1000 + 0o154) + '\146' + chr(1005 - 960) + chr(0b100111 + 0o21))) if roI3spqORKae(ES5oEprVxulp(b'\x17i\x8d'), chr(280 - 180) + '\x65' + chr(0b1000011 + 0o40) + chr(0b11110 + 0o121) + chr(0b110000 + 0o64) + '\x65')(chr(4075 - 3958) + chr(0b111111 + 0o65) + chr(0b1000010 + 0o44) + chr(0b101101) + chr(0b111000)) in jkp_M8Pp8CIt[nzTpIcepk0o8(chr(48) + chr(111) + chr(48), 8)]: yNS8IgQS0ymV = roI3spqORKae(ES5oEprVxulp(b'\x0fk\x8c'), '\x64' + chr(0b100 + 0o141) + '\143' + '\157' + chr(416 - 316) + '\145')(chr(1154 - 1037) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(395 - 339)) if roI3spqORKae(ES5oEprVxulp(b'\x10a\x9b\xccb'), chr(100) + chr(1256 - 1155) + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(116) + '\146' + '\x2d' + '\070') in jkp_M8Pp8CIt[nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(11194 - 11083) + chr(49), 8)]: Gc_keET5uUzD = roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b'), '\x64' + chr(7490 - 7389) + chr(0b101110 + 0o65) + chr(111) + chr(0b110001 + 0o63) + chr(9232 - 9131))(chr(0b111000 + 0o75) + chr(0b11101 + 0o127) + chr(102) + '\055' + '\x38') _pJ6FvCXBJV8 = roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81'), chr(100) + '\145' + chr(0b1100011) + chr(111) + chr(4098 - 3998) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + chr(0b110110 + 0o2)) Gk6NqLMFkhGR = roI3spqORKae(ES5oEprVxulp(b'\x10a\x9b\xcc'), chr(0b1100100) + chr(10002 - 9901) + chr(0b111101 + 0o46) + chr(111) + chr(100) + chr(101))('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(56)) dDpJEhdToiU6 = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(2297 - 2196) + '\x63' + chr(0b11000 + 0o127) + chr(100) + chr(0b110001 + 0o64))(chr(5394 - 5277) + '\x74' + chr(0b1100110) + chr(1278 - 1233) + chr(0b1110 + 0o52)) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x05a\x83\xcc1\x83\x9f\x9e\x14Y\x99\x9d\x86V80p\xd5\x08\xd73,\t'), '\144' + chr(0b1000111 + 0o36) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(4667 - 4550) + chr(11088 - 10972) + chr(0b1100110) + '\x2d' + chr(56))) v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x1an\xaa\xcc`\xa6\x8f\xbb\x1e\x08\xa0\xa6'), '\x64' + chr(0b101000 + 0o75) + chr(0b1100011) + chr(0b1011101 + 0o22) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110000 + 0o4) + chr(0b110111 + 0o57) + chr(0b101101) + chr(869 - 813)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9}\x9d\xc3r\xa2\xaa\xdf\x02\n\xb6\xca'), chr(4323 - 4223) + chr(0b101011 + 0o72) + '\x63' + chr(0b1101111) + chr(6740 - 6640) + '\145')('\165' + chr(116) + '\x66' + chr(45) + chr(740 - 684)))() (qjkl7z2LqGMq, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(GtsVUCYulgYX) fgznbtl5yjUN = hUcsWwAd0nE_.get_dictkey(qjkl7z2LqGMq, Gc_keET5uUzD, roI3spqORKae(ES5oEprVxulp(b'\x05'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1000100 + 0o53) + chr(100) + chr(0b110111 + 0o56))(chr(117) + '\x74' + chr(0b1100110) + chr(45) + '\070')) nLP6wFcmuZ8n = hUcsWwAd0nE_.get_dictkey(qjkl7z2LqGMq, _pJ6FvCXBJV8, roI3spqORKae(ES5oEprVxulp(b'\x05'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + chr(249 - 193))) if w0D3EGfkrN0B == nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + '\x31', 8): TMMrjsiU6eED = hUcsWwAd0nE_.get_dictkey(qjkl7z2LqGMq, Gk6NqLMFkhGR, roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + '\x63' + chr(8944 - 8833) + '\x64' + chr(101))(chr(8861 - 8744) + chr(0b1110100) + chr(102) + chr(0b101101) + '\070')) if uNdqFoirSJWM == nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + '\x31', 8): TMMrjsiU6eED = hUcsWwAd0nE_.get_dictkey(qjkl7z2LqGMq, dDpJEhdToiU6, roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(7181 - 7081) + '\145')(chr(0b111100 + 0o71) + '\164' + chr(0b1100110) + chr(0b101001 + 0o4) + chr(56))) else: AQfhBv4b3vUy = L6YB9g87uxKh.loadtxt(GtsVUCYulgYX) nLP6wFcmuZ8n = AQfhBv4b3vUy.transpose()[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110000), 8)] fgznbtl5yjUN = AQfhBv4b3vUy.transpose()[nzTpIcepk0o8(chr(76 - 28) + chr(11484 - 11373) + '\061', 8)] bRjAQX79rGXr = L6YB9g87uxKh.XURpmPuEWCNF(fgznbtl5yjUN) - qC3ESDmoG5GA ijQ_nKiOtnwO = L6YB9g87uxKh.XURpmPuEWCNF(nLP6wFcmuZ8n) - ZiRm3lqqJWWX ddj9EnUwD2PU = L6YB9g87uxKh.KV9ckIhroIia(fgznbtl5yjUN) + qC3ESDmoG5GA fIkXEvDuFsXE = L6YB9g87uxKh.KV9ckIhroIia(nLP6wFcmuZ8n) + ZiRm3lqqJWWX if E7x0t9AdiILk == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + chr(99) + chr(0b1101111) + '\144' + chr(3214 - 3113))(chr(0b11011 + 0o132) + '\x74' + chr(6144 - 6042) + chr(45) + '\070'): E7x0t9AdiILk = 0.5 * (ijQ_nKiOtnwO + fIkXEvDuFsXE) vvGqd7Fkqgfw = 0.5 * (bRjAQX79rGXr + ddj9EnUwD2PU) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\nf\x9f\xdce\xd7\x80\x87\x1d\x1c\xd7\x9f\x87\x05?eb\xc0G\xd67,\x0e\x93\x1c\x9fk\x98'), '\144' + '\x65' + chr(944 - 845) + chr(5753 - 5642) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(0b101101) + chr(56))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9}\x9d\xc3r\xa2\xaa\xdf\x02\n\xb6\xca'), chr(0b100010 + 0o102) + chr(0b100010 + 0o103) + chr(0b11 + 0o140) + chr(7453 - 7342) + '\144' + '\145')(chr(117) + '\164' + chr(1143 - 1041) + chr(590 - 545) + '\070'))() if roI3spqORKae(ES5oEprVxulp(b'Nx\x9d\xc3'), '\x64' + '\x65' + chr(99) + '\157' + chr(6085 - 5985) + chr(101))(chr(13530 - 13413) + chr(116) + '\x66' + chr(0b1 + 0o54) + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02b\xa6\xedF\x8e\xbe\xa33\x18\xc4\x90'), chr(100) + chr(3867 - 3766) + chr(99) + chr(1912 - 1801) + chr(0b1010011 + 0o21) + chr(0b110000 + 0o65))(chr(9330 - 9213) + '\164' + chr(4225 - 4123) + chr(1140 - 1095) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'Nx\x9d\xc3'), chr(3606 - 3506) + chr(4208 - 4107) + '\x63' + chr(9664 - 9553) + chr(0b1010000 + 0o24) + chr(0b1100101))(chr(0b10100 + 0o141) + '\x74' + '\x66' + chr(0b101101) + chr(3010 - 2954))) yNS8IgQS0ymV = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + chr(0b110001), 8)] rKSToK9WUVwu = {roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f'), chr(100) + '\145' + chr(99) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b1010 + 0o56)): nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\x31', 8)} roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13d\x80\xddN\x9e\x88\x87\x05'), '\144' + '\x65' + chr(99) + '\x6f' + '\x64' + chr(8006 - 7905))('\x75' + chr(116) + chr(102) + '\055' + '\x38'))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + '\144' + chr(2955 - 2854))(chr(0b1110101) + chr(0b1010111 + 0o35) + '\x66' + chr(45) + '\x38')], nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110110), 19856 - 19848), nzTpIcepk0o8(chr(48) + '\x6f' + '\066', 8)) xwRuRFbC5fsf = nzTpIcepk0o8('\x30' + '\157' + '\060', 8) KS0fj7r4N6zr = {roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b\xc4x\x99'), '\x64' + chr(0b1010100 + 0o21) + '\x63' + chr(0b110110 + 0o71) + chr(0b1100100) + chr(101))('\165' + '\164' + '\146' + chr(750 - 705) + chr(0b1101 + 0o53)): bRjAQX79rGXr, roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b\xc4p\x8f'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(2957 - 2857) + '\x65')(chr(0b111010 + 0o73) + '\x74' + chr(0b110101 + 0o61) + chr(0b101101) + '\070'): ddj9EnUwD2PU, roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81\xc4x\x99'), chr(7400 - 7300) + chr(0b1011 + 0o132) + chr(6638 - 6539) + chr(0b1101111) + chr(100) + chr(5676 - 5575))('\165' + '\x74' + chr(102) + chr(45) + chr(464 - 408)): ijQ_nKiOtnwO, roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81\xc4p\x8f'), chr(0b1010111 + 0o15) + chr(8293 - 8192) + chr(0b1100011) + chr(111) + chr(2898 - 2798) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b101101) + '\x38'): fIkXEvDuFsXE, roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b\xf6!'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b100011 + 0o114) + '\144' + chr(0b110000 + 0o65))(chr(0b1110101) + chr(0b1011100 + 0o30) + '\146' + chr(727 - 682) + '\070'): vvGqd7Fkqgfw, roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81\xf6!'), chr(100) + chr(0b101000 + 0o75) + '\x63' + '\x6f' + chr(0b111110 + 0o46) + '\x65')('\x75' + '\164' + '\x66' + chr(384 - 339) + chr(0b100000 + 0o30)): E7x0t9AdiILk, roI3spqORKae(ES5oEprVxulp(b'\x13z\x80\xc3'), chr(100) + chr(0b1100101) + '\x63' + chr(2039 - 1928) + '\x64' + chr(0b1010 + 0o133))('\x75' + '\164' + '\146' + '\x2d' + '\x38'): yNS8IgQS0ymV, roI3spqORKae(ES5oEprVxulp(b'\x10q\x82'), '\144' + chr(101) + '\x63' + '\x6f' + '\x64' + chr(0b101011 + 0o72))(chr(0b11100 + 0o131) + chr(0b1110100) + chr(102) + chr(1731 - 1686) + chr(0b100101 + 0o23)): ap75Y_eaMZLk, roI3spqORKae(ES5oEprVxulp(b'\x10q\x82\xdax\x8d\x83'), chr(0b1100100) + chr(0b1010111 + 0o16) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + '\x74' + chr(0b101100 + 0o72) + '\055' + chr(0b111000)): nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11101 + 0o26), ord("\x08")), roI3spqORKae(ES5oEprVxulp(b'\x13d\x9b\xcec\x9e\x82'), '\144' + chr(101) + '\143' + chr(2149 - 2038) + chr(100) + '\145')('\x75' + chr(116) + chr(0b1100110) + '\055' + '\070'): nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100101 + 0o14), 8), roI3spqORKae(ES5oEprVxulp(b'\x11m\x9c'), '\144' + chr(101) + chr(99) + '\x6f' + chr(3585 - 3485) + '\x65')('\x75' + chr(116) + chr(0b110000 + 0o66) + chr(0b1110 + 0o37) + '\070'): _XdQFJpnzJor, roI3spqORKae(ES5oEprVxulp(b'\x01g\x9a\xc7u\x9e\x88\x89\x1d\x18\x83'), '\144' + '\145' + chr(0b100001 + 0o102) + '\157' + chr(100) + '\x65')(chr(117) + '\x74' + chr(102) + '\055' + chr(56)): 0.0, roI3spqORKae(ES5oEprVxulp(b'\x13i\x8b\xc5~\x99'), chr(0b1100100) + '\145' + chr(484 - 385) + chr(7157 - 7046) + chr(0b1100100) + chr(0b1011110 + 0o7))('\165' + chr(116) + chr(0b10010 + 0o124) + chr(0b101101) + chr(0b10010 + 0o46)): ZiRm3lqqJWWX, roI3spqORKae(ES5oEprVxulp(b'\x13i\x8b\xc5p\x83'), chr(0b1000110 + 0o36) + chr(0b1000 + 0o135) + chr(7282 - 7183) + chr(111) + chr(100) + '\x65')(chr(0b10 + 0o163) + '\x74' + '\x66' + chr(0b101101) + chr(964 - 908)): qC3ESDmoG5GA, roI3spqORKae(ES5oEprVxulp(b'\x04z\x86\xcdb\x87\x87\x8d\x14'), '\144' + chr(1079 - 978) + chr(0b1100011) + '\x6f' + chr(0b1011010 + 0o12) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + '\x38'): FG5VV9N8A9pf, roI3spqORKae(ES5oEprVxulp(b'\x00e\x8e\xd9'), chr(0b10 + 0o142) + chr(101) + '\x63' + chr(0b1101111) + chr(0b1001111 + 0o25) + chr(101))('\165' + '\x74' + chr(0b1100001 + 0o5) + '\055' + chr(1917 - 1861)): Yd7Rjip5B5Mk} KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), chr(0b101111 + 0o65) + chr(101) + '\143' + '\x6f' + chr(4975 - 4875) + chr(0b1001001 + 0o34))('\x75' + '\164' + '\x66' + chr(1657 - 1612) + chr(0b11110 + 0o32))] = {} KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), chr(0b1000100 + 0o40) + chr(101) + chr(99) + chr(0b100010 + 0o115) + '\144' + chr(4316 - 4215))('\165' + chr(8014 - 7898) + '\146' + chr(0b11101 + 0o20) + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\x00g\x8e\xdae\x84'), chr(0b1100100) + chr(101) + chr(99) + chr(9505 - 9394) + '\x64' + chr(0b1000110 + 0o37))(chr(0b11101 + 0o130) + chr(0b111001 + 0o73) + chr(102) + chr(0b10100 + 0o31) + '\x38')] = nzTpIcepk0o8(chr(78 - 30) + chr(0b1011001 + 0o26) + '\x31', 8) KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), chr(2559 - 2459) + chr(101) + chr(99) + chr(0b11010 + 0o125) + chr(0b1100100) + '\145')('\x75' + chr(116) + chr(0b1000111 + 0o37) + '\055' + chr(2959 - 2903))][roI3spqORKae(ES5oEprVxulp(b'\x11a\x99\xccc\x84'), '\144' + chr(0b1100101) + chr(99) + chr(0b101100 + 0o103) + chr(6035 - 5935) + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(2206 - 2150))] = LFxG4Y_j1rKQ KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), '\x64' + chr(3056 - 2955) + chr(99) + chr(4258 - 4147) + chr(100) + '\145')(chr(117) + '\x74' + '\x66' + '\055' + '\x38')][roI3spqORKae(ES5oEprVxulp(b'\x10|\x8e\xddt\x84'), chr(0b1011110 + 0o6) + chr(0b1100101) + chr(0b11 + 0o140) + chr(111) + '\x64' + chr(3819 - 3718))('\x75' + '\164' + '\146' + chr(45) + chr(0b111000))] = jYlMl12aUHJk KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), chr(0b1000111 + 0o35) + '\145' + chr(0b111110 + 0o45) + '\x6f' + '\x64' + chr(2709 - 2608))(chr(117) + chr(1958 - 1842) + chr(0b1000001 + 0o45) + chr(895 - 850) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\x00g\x9a\xc7e\x85\x8f\x8b\x02'), chr(0b1100100 + 0o0) + chr(101) + chr(0b110000 + 0o63) + chr(0b1101111) + chr(0b11111 + 0o105) + chr(0b1100101))('\x75' + chr(0b11011 + 0o131) + '\x66' + chr(45) + chr(0b10101 + 0o43))] = jYlMl12aUHJk KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), chr(100) + '\x65' + chr(99) + chr(6854 - 6743) + '\144' + chr(0b1100101))('\165' + chr(116) + chr(4646 - 4544) + chr(0b11010 + 0o23) + '\070')][roI3spqORKae(ES5oEprVxulp(b'\x0ck\x8a\xc8\x7f'), '\x64' + chr(1773 - 1672) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1000100 + 0o60) + chr(0b1101 + 0o131) + '\055' + chr(56))] = h7esp1k_GvOk KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x07m\x9b\xc8x\x9b\x95'), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(4501 - 4401) + chr(101))(chr(0b1110101) + '\164' + chr(0b1010101 + 0o21) + chr(389 - 344) + chr(0b111000))][roI3spqORKae(ES5oEprVxulp(b'\x05i\x81\xcah'), chr(397 - 297) + '\x65' + chr(9463 - 9364) + '\157' + chr(0b1100100) + chr(101))(chr(0b110101 + 0o100) + '\164' + '\146' + chr(45) + chr(0b111000))] = vVMRKIXM85FE if ftfygxgFas5X(TMMrjsiU6eED) > nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + '\060', 8): KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\ri\x82\xccb'), chr(0b1100100) + chr(0b1100101) + chr(8711 - 8612) + chr(111) + '\144' + '\x65')(chr(117) + chr(1337 - 1221) + '\x66' + '\x2d' + chr(0b111000))] = TMMrjsiU6eED if ftfygxgFas5X(c7RydVE5Qw9u) > nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(2111 - 2063), 8): KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x0fg\x8c\xf6\x7f\x96\x8b\x8b'), chr(100) + chr(0b1000111 + 0o36) + chr(3494 - 3395) + chr(0b1101111) + chr(0b1100100) + chr(0b10110 + 0o117))(chr(0b10010 + 0o143) + '\x74' + chr(0b11101 + 0o111) + chr(246 - 201) + chr(56))] = c7RydVE5Qw9u if yNS8IgQS0ymV == roI3spqORKae(ES5oEprVxulp(b'\x0em\x9d\xca'), chr(100) + chr(0b1010010 + 0o23) + '\143' + chr(111) + chr(0b1000001 + 0o43) + '\x65')(chr(117) + chr(0b1110100) + chr(102) + chr(0b11011 + 0o22) + '\070'): KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b\xc4x\x99'), chr(0b10110 + 0o116) + '\x65' + chr(0b10 + 0o141) + chr(0b1010 + 0o145) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1000101 + 0o57) + chr(0b110000 + 0o66) + '\055' + '\070')] = -nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x30' + chr(0b110110), 0b1000) KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x0fi\x9b\xc4p\x8f'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1000110 + 0o40) + chr(745 - 700) + chr(0b10101 + 0o43))] = nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + chr(1315 - 1266) + '\x30' + chr(0b10110 + 0o40), 8) KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81\xc4x\x99'), chr(0b1100100) + chr(7621 - 7520) + chr(107 - 8) + chr(111) + chr(0b1100100) + chr(0b111111 + 0o46))('\165' + '\164' + chr(102) + chr(0b1111 + 0o36) + chr(0b111000))] = -nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(54) + '\064', 56342 - 56334) KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x0fg\x81\xc4p\x8f'), chr(100) + '\145' + chr(7731 - 7632) + chr(0b1101111) + chr(0b11111 + 0o105) + chr(0b1010011 + 0o22))(chr(117) + chr(0b1110100) + chr(0b11000 + 0o116) + '\055' + chr(0b111000))] = nzTpIcepk0o8('\x30' + chr(111) + chr(1983 - 1933) + '\066' + chr(0b100101 + 0o17), 8) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x13d\x8a\xc8b\x92\xc6\x99\x10\x10\x83\xd2\x86\x19k!r\xc4\x10\x857&\x04\x94\x0e\x85'), '\144' + '\145' + chr(0b10 + 0o141) + '\x6f' + '\x64' + chr(101))(chr(0b1100010 + 0o23) + chr(0b100100 + 0o120) + chr(490 - 388) + '\x2d' + chr(0b100100 + 0o24))) KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x10q\x82'), chr(622 - 522) + chr(101) + chr(0b1100011) + chr(10549 - 10438) + chr(7229 - 7129) + chr(101))('\165' + chr(4161 - 4045) + chr(8697 - 8595) + '\x2d' + '\x38')] = ap75Y_eaMZLk KS0fj7r4N6zr[roI3spqORKae(ES5oEprVxulp(b'\x10q\x82\xdax\x8d\x83'), chr(0b100000 + 0o104) + chr(583 - 482) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(1609 - 1492) + chr(10299 - 10183) + chr(0b11111 + 0o107) + chr(0b100001 + 0o14) + chr(0b1111 + 0o51))] = a6DuPeQDkIk8 if sM8dizQ2GmL6: roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13d\x80\xddN\x9a\x87\x9e'), chr(0b101001 + 0o73) + chr(0b110100 + 0o61) + '\x63' + chr(0b110 + 0o151) + chr(100) + '\x65')(chr(11270 - 11153) + '\164' + chr(0b1100110) + chr(0b100010 + 0o13) + chr(56)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f'), chr(2524 - 2424) + '\145' + chr(99) + chr(0b10010 + 0o135) + '\x64' + chr(0b1010010 + 0o23))('\x75' + chr(12549 - 12433) + chr(102) + '\055' + chr(0b10 + 0o66))], fgznbtl5yjUN, nLP6wFcmuZ8n, KS0fj7r4N6zr) else: roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13d\x80\xddN\x9a\x87\x9e'), chr(0b1011100 + 0o10) + chr(9620 - 9519) + chr(1900 - 1801) + chr(111) + chr(100) + '\x65')(chr(7769 - 7652) + chr(12654 - 12538) + '\146' + chr(1217 - 1172) + chr(0b101011 + 0o15)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f'), chr(1244 - 1144) + chr(101) + chr(0b110101 + 0o56) + chr(111) + '\144' + '\x65')(chr(5034 - 4917) + '\164' + chr(0b1100010 + 0o4) + chr(0b10011 + 0o32) + chr(56))], fgznbtl5yjUN, nLP6wFcmuZ8n, KS0fj7r4N6zr) wR5_YWECjaY7 = {} SzNH87oHZc7X = {} SzNH87oHZc7X[roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f'), chr(0b1011101 + 0o7) + '\145' + '\143' + '\157' + '\144' + chr(101))(chr(0b101101 + 0o110) + chr(0b1001110 + 0o46) + chr(0b1100110) + chr(0b101101) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'3\\\xcf\xe4p\x87'), chr(0b1010101 + 0o17) + chr(3450 - 3349) + '\143' + '\157' + '\x64' + chr(101))(chr(0b111110 + 0o67) + chr(12223 - 12107) + chr(102) + chr(0b100 + 0o51) + chr(56)) for QYodcsDtoGq7 in H4NoA26ON7iG(roI3spqORKae(rKSToK9WUVwu, roI3spqORKae(ES5oEprVxulp(b'\x08m\x96\xda'), '\x64' + chr(0b1100101) + chr(2775 - 2676) + chr(0b1000001 + 0o56) + chr(532 - 432) + chr(0b1010110 + 0o17))(chr(0b1101011 + 0o12) + chr(116) + chr(0b101100 + 0o72) + chr(45) + chr(0b111000)))()): wR5_YWECjaY7[QYodcsDtoGq7] = roI3spqORKae(ES5oEprVxulp(b'\x0ei\x9f\xf6a\x83\x95'), chr(0b1001110 + 0o26) + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(101))('\x75' + '\x74' + chr(0b1100000 + 0o6) + chr(1954 - 1909) + '\x38') + roI3spqORKae(ES5oEprVxulp(b'M'), chr(1725 - 1625) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1001000 + 0o54) + '\146' + chr(0b100 + 0o51) + chr(0b100111 + 0o21)) + JummcHpaNLEw if roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\n{\xbc\xccc\x81\x83\x9c'), chr(100) + chr(2755 - 2654) + chr(99) + '\157' + chr(100) + chr(0b10010 + 0o123))(chr(117) + '\x74' + '\x66' + chr(45) + chr(1597 - 1541))): ZO9i32_He2bR = roI3spqORKae(ES5oEprVxulp(b'@8\xdf\x99!\xc7\xd6'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(5205 - 5105) + '\x65')(chr(8273 - 8156) + chr(0b1110100) + chr(0b1100110) + chr(0b101000 + 0o5) + '\070') pikDWCDWa5T8 = roI3spqORKae(ES5oEprVxulp(b'@0\xdf\x99!\xcf\xd6'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(6134 - 6033))(chr(0b1110101) + chr(0b1011011 + 0o31) + chr(0b1011 + 0o133) + '\055' + '\x38') rKSToK9WUVwu = o77KS_r9H7AX.add_borders(rKSToK9WUVwu, SzNH87oHZc7X, ZO9i32_He2bR, pikDWCDWa5T8) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x10i\x99\xccN\x87\x8a\x81\x05\n'), chr(0b1010111 + 0o15) + chr(101) + chr(99) + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(0b1110100) + chr(513 - 411) + '\x2d' + chr(56)))(rKSToK9WUVwu, wR5_YWECjaY7) if mocO8sWgkzH7 == nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11001 + 0o30), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x10i\x99\xccN\x87\x8a\x81\x05\n'), chr(0b101101 + 0o67) + '\145' + '\x63' + chr(0b1000101 + 0o52) + chr(7370 - 7270) + '\x65')('\x75' + '\164' + chr(102) + '\x2d' + chr(56)))(rKSToK9WUVwu, wR5_YWECjaY7) else: roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x07z\x8e\xdeN\x91\x8f\x89\x02'), '\x64' + chr(0b1100101) + chr(0b111000 + 0o53) + chr(0b1101111) + '\144' + chr(101))(chr(0b111111 + 0o66) + chr(0b1101 + 0o147) + chr(6344 - 6242) + '\x2d' + '\070'))(rKSToK9WUVwu) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'C[\xb4\xc8L\x81\x83\xce\x05\x16\xd7\x81\x93\x00.ep\xc9\x08\xd1ki?\x9f\x0e\x83|\x92u+\xe8/P\x81\x9e\xe0\xdd\x106'), chr(0b1100100) + chr(7713 - 7612) + chr(0b10 + 0o141) + '\157' + '\x64' + chr(101))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(0b111000))) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'\x02'), '\x64' + chr(0b110000 + 0o65) + chr(99) + chr(111) + '\x64' + '\145')('\x75' + '\x74' + '\x66' + chr(1525 - 1480) + chr(56)): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x10i\x99\xccN\x87\x8a\x81\x05\n'), '\144' + chr(0b110111 + 0o56) + '\143' + chr(111) + '\144' + chr(0b1100101))('\x75' + chr(0b1001000 + 0o54) + chr(0b1100110) + chr(0b101101) + chr(0b10101 + 0o43)))(rKSToK9WUVwu, wR5_YWECjaY7)
PmagPy/PmagPy
programs/s_hext.py
main
def main(): """ NAME s_hext.py DESCRIPTION calculates Hext statistics for tensor data SYNTAX s_hext.py [-h][-i][-f file] [<filename] OPTIONS -h prints help message and quits -f file specifies filename on command line -l NMEAS do line by line instead of whole file, use number of measurements NMEAS for degrees of freedom < filename, reads from standard input (Unix like operating systems only) INPUT x11,x22,x33,x12,x23,x13,sigma [sigma only if line by line] OUTPUT F F12 F23 sigma and three sets of: tau dec inc Eij dec inc Eik dec inc DEFAULT average whole file """ ave=1 if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-l' in sys.argv: ind=sys.argv.index('-l') npts=int(sys.argv[ind+1]) ave=0 if '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') data=f.readlines() f.close() else: data=sys.stdin.readlines() Ss=[] for line in data: s=[] rec=line.split() for i in range(6): s.append(float(rec[i])) if ave==0: sig=float(rec[6]) hpars=pmag.dohext(npts-6,sig,s) print('%s %4.2f %s %4.2f %s %4.2f'%('F = ',hpars['F'],'F12 = ',hpars['F12'],'F23 = ',hpars['F23'])) print('%s %i %s %14.12f'%('Nmeas = ',npts,' sigma = ',sig)) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t1"],hpars["v1_dec"],hpars["v1_inc"],hpars["e12"],hpars["v2_dec"],hpars["v2_inc"],hpars["e13"],hpars["v3_dec"],hpars["v3_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t2"],hpars["v2_dec"],hpars["v2_inc"],hpars["e23"],hpars["v3_dec"],hpars["v3_inc"],hpars["e12"],hpars["v1_dec"],hpars["v1_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t3"],hpars["v3_dec"],hpars["v3_inc"],hpars["e13"],hpars["v1_dec"],hpars["v1_inc"],hpars["e23"],hpars["v2_dec"],hpars["v2_inc"] )) else: Ss.append(s) if ave==1: npts=len(Ss) nf,sigma,avs=pmag.sbar(Ss) hpars=pmag.dohext(nf,sigma,avs) print('%s %4.2f %s %4.2f %s %4.2f'%('F = ',hpars['F'],'F12 = ',hpars['F12'],'F23 = ',hpars['F23'])) print('%s %i %s %14.12f'%('N = ',npts,' sigma = ',sigma)) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t1"],hpars["v1_dec"],hpars["v1_inc"],hpars["e12"],hpars["v2_dec"],hpars["v2_inc"],hpars["e13"],hpars["v3_dec"],hpars["v3_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t2"],hpars["v2_dec"],hpars["v2_inc"],hpars["e23"],hpars["v3_dec"],hpars["v3_inc"],hpars["e12"],hpars["v1_dec"],hpars["v1_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t3"],hpars["v3_dec"],hpars["v3_inc"],hpars["e13"],hpars["v1_dec"],hpars["v1_inc"],hpars["e23"],hpars["v2_dec"],hpars["v2_inc"] ))
python
def main(): """ NAME s_hext.py DESCRIPTION calculates Hext statistics for tensor data SYNTAX s_hext.py [-h][-i][-f file] [<filename] OPTIONS -h prints help message and quits -f file specifies filename on command line -l NMEAS do line by line instead of whole file, use number of measurements NMEAS for degrees of freedom < filename, reads from standard input (Unix like operating systems only) INPUT x11,x22,x33,x12,x23,x13,sigma [sigma only if line by line] OUTPUT F F12 F23 sigma and three sets of: tau dec inc Eij dec inc Eik dec inc DEFAULT average whole file """ ave=1 if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-l' in sys.argv: ind=sys.argv.index('-l') npts=int(sys.argv[ind+1]) ave=0 if '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') data=f.readlines() f.close() else: data=sys.stdin.readlines() Ss=[] for line in data: s=[] rec=line.split() for i in range(6): s.append(float(rec[i])) if ave==0: sig=float(rec[6]) hpars=pmag.dohext(npts-6,sig,s) print('%s %4.2f %s %4.2f %s %4.2f'%('F = ',hpars['F'],'F12 = ',hpars['F12'],'F23 = ',hpars['F23'])) print('%s %i %s %14.12f'%('Nmeas = ',npts,' sigma = ',sig)) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t1"],hpars["v1_dec"],hpars["v1_inc"],hpars["e12"],hpars["v2_dec"],hpars["v2_inc"],hpars["e13"],hpars["v3_dec"],hpars["v3_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t2"],hpars["v2_dec"],hpars["v2_inc"],hpars["e23"],hpars["v3_dec"],hpars["v3_inc"],hpars["e12"],hpars["v1_dec"],hpars["v1_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t3"],hpars["v3_dec"],hpars["v3_inc"],hpars["e13"],hpars["v1_dec"],hpars["v1_inc"],hpars["e23"],hpars["v2_dec"],hpars["v2_inc"] )) else: Ss.append(s) if ave==1: npts=len(Ss) nf,sigma,avs=pmag.sbar(Ss) hpars=pmag.dohext(nf,sigma,avs) print('%s %4.2f %s %4.2f %s %4.2f'%('F = ',hpars['F'],'F12 = ',hpars['F12'],'F23 = ',hpars['F23'])) print('%s %i %s %14.12f'%('N = ',npts,' sigma = ',sigma)) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t1"],hpars["v1_dec"],hpars["v1_inc"],hpars["e12"],hpars["v2_dec"],hpars["v2_inc"],hpars["e13"],hpars["v3_dec"],hpars["v3_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t2"],hpars["v2_dec"],hpars["v2_inc"],hpars["e23"],hpars["v3_dec"],hpars["v3_inc"],hpars["e12"],hpars["v1_dec"],hpars["v1_inc"] )) print('%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'%(hpars["t3"],hpars["v3_dec"],hpars["v3_inc"],hpars["e13"],hpars["v1_dec"],hpars["v1_inc"],hpars["e23"],hpars["v2_dec"],hpars["v2_inc"] ))
[ "def", "main", "(", ")", ":", "ave", "=", "1", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-l'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-l'", ")", "npts", "=", "int", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "ave", "=", "0", "if", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", ")", "data", "=", "f", ".", "readlines", "(", ")", "f", ".", "close", "(", ")", "else", ":", "data", "=", "sys", ".", "stdin", ".", "readlines", "(", ")", "Ss", "=", "[", "]", "for", "line", "in", "data", ":", "s", "=", "[", "]", "rec", "=", "line", ".", "split", "(", ")", "for", "i", "in", "range", "(", "6", ")", ":", "s", ".", "append", "(", "float", "(", "rec", "[", "i", "]", ")", ")", "if", "ave", "==", "0", ":", "sig", "=", "float", "(", "rec", "[", "6", "]", ")", "hpars", "=", "pmag", ".", "dohext", "(", "npts", "-", "6", ",", "sig", ",", "s", ")", "print", "(", "'%s %4.2f %s %4.2f %s %4.2f'", "%", "(", "'F = '", ",", "hpars", "[", "'F'", "]", ",", "'F12 = '", ",", "hpars", "[", "'F12'", "]", ",", "'F23 = '", ",", "hpars", "[", "'F23'", "]", ")", ")", "print", "(", "'%s %i %s %14.12f'", "%", "(", "'Nmeas = '", ",", "npts", ",", "' sigma = '", ",", "sig", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t1\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ",", "hpars", "[", "\"e12\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ",", "hpars", "[", "\"e13\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t2\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ",", "hpars", "[", "\"e23\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ",", "hpars", "[", "\"e12\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t3\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ",", "hpars", "[", "\"e13\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ",", "hpars", "[", "\"e23\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ")", ")", "else", ":", "Ss", ".", "append", "(", "s", ")", "if", "ave", "==", "1", ":", "npts", "=", "len", "(", "Ss", ")", "nf", ",", "sigma", ",", "avs", "=", "pmag", ".", "sbar", "(", "Ss", ")", "hpars", "=", "pmag", ".", "dohext", "(", "nf", ",", "sigma", ",", "avs", ")", "print", "(", "'%s %4.2f %s %4.2f %s %4.2f'", "%", "(", "'F = '", ",", "hpars", "[", "'F'", "]", ",", "'F12 = '", ",", "hpars", "[", "'F12'", "]", ",", "'F23 = '", ",", "hpars", "[", "'F23'", "]", ")", ")", "print", "(", "'%s %i %s %14.12f'", "%", "(", "'N = '", ",", "npts", ",", "' sigma = '", ",", "sigma", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t1\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ",", "hpars", "[", "\"e12\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ",", "hpars", "[", "\"e13\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t2\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ",", "hpars", "[", "\"e23\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ",", "hpars", "[", "\"e12\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ")", ")", "print", "(", "'%7.5f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f %7.1f'", "%", "(", "hpars", "[", "\"t3\"", "]", ",", "hpars", "[", "\"v3_dec\"", "]", ",", "hpars", "[", "\"v3_inc\"", "]", ",", "hpars", "[", "\"e13\"", "]", ",", "hpars", "[", "\"v1_dec\"", "]", ",", "hpars", "[", "\"v1_inc\"", "]", ",", "hpars", "[", "\"e23\"", "]", ",", "hpars", "[", "\"v2_dec\"", "]", ",", "hpars", "[", "\"v2_inc\"", "]", ")", ")" ]
NAME s_hext.py DESCRIPTION calculates Hext statistics for tensor data SYNTAX s_hext.py [-h][-i][-f file] [<filename] OPTIONS -h prints help message and quits -f file specifies filename on command line -l NMEAS do line by line instead of whole file, use number of measurements NMEAS for degrees of freedom < filename, reads from standard input (Unix like operating systems only) INPUT x11,x22,x33,x12,x23,x13,sigma [sigma only if line by line] OUTPUT F F12 F23 sigma and three sets of: tau dec inc Eij dec inc Eik dec inc DEFAULT average whole file
[ "NAME", "s_hext", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/s_hext.py#L8-L76
train
NAME n_h is the main function of the pmag. dohext function.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(533 - 485) + chr(0b1101111) + chr(0b110101) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(1155 - 1105) + chr(367 - 312) + chr(0b110100), 49898 - 49890), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b100 + 0o56) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b1101 + 0o46) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11736 - 11625) + chr(0b110001) + '\062' + chr(51), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1 + 0o156) + chr(1614 - 1565) + chr(53) + chr(707 - 658), 22953 - 22945), nzTpIcepk0o8(chr(48) + chr(3883 - 3772) + chr(0b100100 + 0o16) + chr(52) + '\x34', 30389 - 30381), nzTpIcepk0o8('\x30' + chr(111) + chr(1733 - 1684) + chr(2293 - 2245) + chr(0b11111 + 0o24), ord("\x08")), nzTpIcepk0o8(chr(132 - 84) + '\157' + chr(50) + chr(0b100101 + 0o21) + chr(0b11011 + 0o30), 0b1000), nzTpIcepk0o8(chr(1656 - 1608) + '\x6f' + chr(51) + '\065' + chr(0b0 + 0o64), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(274 - 223) + chr(1215 - 1164) + '\x35', 0b1000), nzTpIcepk0o8(chr(325 - 277) + chr(0b1101111) + '\061' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2136 - 2087) + '\062' + '\060', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(0b110011) + '\063' + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110011) + '\066', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1327 - 1278) + chr(387 - 334) + chr(407 - 358), 8), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1010010 + 0o35) + '\x31' + '\x37' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(0b1101 + 0o45) + chr(0b10 + 0o64) + chr(1625 - 1576), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b101011 + 0o7) + chr(2016 - 1968) + '\x33', 0o10), nzTpIcepk0o8(chr(1173 - 1125) + chr(0b1101111) + '\x33' + '\061' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b110101) + chr(920 - 869), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1010110 + 0o31) + chr(1348 - 1297) + chr(1951 - 1899) + chr(383 - 332), ord("\x08")), nzTpIcepk0o8(chr(609 - 561) + chr(111) + chr(0b1110 + 0o44) + '\065' + '\062', 0o10), nzTpIcepk0o8(chr(976 - 928) + chr(111) + '\063' + chr(0b110110) + '\061', ord("\x08")), nzTpIcepk0o8(chr(829 - 781) + chr(0b1000001 + 0o56) + chr(0b110110) + chr(0b11111 + 0o23), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x36' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010010 + 0o35) + chr(0b100010 + 0o17) + chr(338 - 287) + chr(49), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + '\065' + chr(2507 - 2453), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b101111 + 0o100) + '\x31' + chr(0b110100) + chr(0b101101 + 0o11), 8129 - 8121), nzTpIcepk0o8(chr(0b110000) + chr(0b1000111 + 0o50) + '\x32' + chr(1622 - 1573) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111011 + 0o64) + chr(0b100001 + 0o22) + '\x30' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + '\066' + chr(0b110100), 18565 - 18557), nzTpIcepk0o8('\x30' + chr(3578 - 3467) + chr(0b101010 + 0o7) + '\x36' + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + '\x31' + chr(2481 - 2429), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b110100 + 0o73) + chr(106 - 52) + chr(1728 - 1677), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8849 - 8738) + chr(0b110011) + chr(262 - 214) + chr(479 - 430), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\062' + chr(492 - 438), 60763 - 60755), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(8460 - 8349) + chr(0b100000 + 0o24), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011011 + 0o24) + '\063' + '\062' + chr(2199 - 2147), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2167 - 2119) + '\157' + chr(608 - 555) + chr(1413 - 1365), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x07'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1100011 + 0o14) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + '\x66' + chr(0b101101 + 0o0) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): p5Ia43RajU39 = nzTpIcepk0o8('\060' + chr(0b101011 + 0o104) + chr(0b110 + 0o53), ord("\x08")) if roI3spqORKae(ES5oEprVxulp(b'\x04\xd4'), '\x64' + chr(6540 - 6439) + chr(99) + chr(111) + chr(5810 - 5710) + chr(101))(chr(10818 - 10701) + chr(6220 - 6104) + chr(0b1100110) + chr(45) + chr(0b110011 + 0o5)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'H\xd6\x1d\x1b\x04\x10\xfc\x0e\xf1\x8d\xeeh'), chr(0b1100100) + '\145' + chr(99) + chr(0b1011010 + 0o25) + chr(5055 - 4955) + chr(101))(chr(0b100100 + 0o121) + chr(0b1110100) + '\x66' + chr(0b11101 + 0o20) + '\070')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'P\xda\x11:"8\xcd\x16\xdc\x9d\x8a^'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + chr(100) + chr(0b111 + 0o136))(chr(9057 - 8940) + chr(0b1110100) + '\146' + chr(730 - 685) + '\x38'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b's\xc9&50<\xe8r\xc0\x9f\x9c2'), '\x64' + '\x65' + chr(6020 - 5921) + chr(111) + '\x64' + '\145')(chr(117) + chr(116) + chr(0b101010 + 0o74) + chr(45) + '\070'))() if roI3spqORKae(ES5oEprVxulp(b'\x04\xd0'), chr(0b1100100) + chr(101) + chr(879 - 780) + chr(0b111010 + 0o65) + '\x64' + '\x65')(chr(0b1110011 + 0o2) + chr(0b111011 + 0o71) + '\x66' + '\x2d' + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'H\xd6\x1d\x1b\x04\x10\xfc\x0e\xf1\x8d\xeeh'), '\x64' + '\145' + chr(99) + chr(0b111010 + 0o65) + chr(0b111000 + 0o54) + '\x65')(chr(0b1001111 + 0o46) + '\164' + chr(9219 - 9117) + chr(45) + '\070')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x04\xd0'), chr(0b100111 + 0o75) + chr(101) + chr(9110 - 9011) + chr(11329 - 11218) + '\144' + '\x65')(chr(179 - 62) + chr(0b111 + 0o155) + chr(0b11100 + 0o112) + '\x2d' + '\x38')) YBFHwuqm3Jy9 = nzTpIcepk0o8(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 8)]) p5Ia43RajU39 = nzTpIcepk0o8(chr(2032 - 1984) + chr(111) + chr(48), 63063 - 63055) if roI3spqORKae(ES5oEprVxulp(b'\x04\xda'), '\x64' + chr(0b1100101) + chr(8880 - 8781) + '\x6f' + chr(100) + chr(0b11110 + 0o107))(chr(0b1 + 0o164) + '\x74' + chr(102) + '\x2d' + chr(0b10001 + 0o47)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'H\xd6\x1d\x1b\x04\x10\xfc\x0e\xf1\x8d\xeeh'), chr(7203 - 7103) + chr(0b1100101) + chr(0b11111 + 0o104) + '\x6f' + chr(0b111110 + 0o46) + chr(3520 - 3419))('\165' + chr(0b1100011 + 0o21) + chr(9437 - 9335) + '\055' + chr(2666 - 2610))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x04\xda'), '\144' + chr(101) + chr(5452 - 5353) + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1110 + 0o130) + '\055' + chr(1056 - 1000))) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100010 + 0o17), 8)] _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'['), chr(0b101 + 0o137) + '\x65' + '\x63' + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(2359 - 2257) + '\x2d' + chr(0b111000))) FfKOThdpoDTb = _R8IKF5IwAfX.TKmlmUjNQ4dY() roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b's\xd9%h\x10\n\xc2z\xe6\x88\xe5`'), '\x64' + '\145' + '\143' + chr(111) + '\144' + '\x65')('\165' + chr(0b1000001 + 0o63) + chr(0b10010 + 0o124) + chr(1070 - 1025) + chr(56)))() else: FfKOThdpoDTb = bpyfpu4kTbwL.stdin.TKmlmUjNQ4dY() HgFdy4pMURor = [] for ffiOpFBWGmZU in FfKOThdpoDTb: PmE5_h409JAA = [] FKO_XxLfWbYt = ffiOpFBWGmZU.LfRrQOxuDvnC() for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8(chr(0b110000) + chr(11481 - 11370) + chr(54), 0b1000)): roI3spqORKae(PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'a\xe8\x07k+\x0e\xe3,\xd9\x83\x88?'), chr(0b1001000 + 0o34) + chr(7795 - 7694) + chr(0b1100011) + chr(0b111100 + 0o63) + chr(1374 - 1274) + '\145')(chr(0b10111 + 0o136) + chr(116) + chr(9902 - 9800) + '\055' + chr(56)))(jLW6pRf2DSRk(FKO_XxLfWbYt[ZlbFMSG8gCoF])) if p5Ia43RajU39 == nzTpIcepk0o8(chr(1165 - 1117) + chr(0b1101111) + '\060', 8): TR_IwUloMMVU = jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110110), 8)]) n_FL9vrrf8Wb = hUcsWwAd0nE_.dohext(YBFHwuqm3Jy9 - nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + '\066', 8), TR_IwUloMMVU, PmE5_h409JAA) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\xcftzgG\x96%\x93\xc9\xae*u\xe9p[\x1f\x91\xa6\xb8\x0b\xc6\x9e\xdf\x00V'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(5192 - 5092) + chr(2472 - 2371))(chr(9604 - 9487) + '\164' + '\146' + chr(0b101101) + chr(0b100 + 0o64)) % (roI3spqORKae(ES5oEprVxulp(b'o\x9ci\x7f'), chr(8802 - 8702) + chr(804 - 703) + chr(99) + chr(0b1011110 + 0o21) + '\144' + '\145')(chr(117) + chr(8921 - 8805) + chr(1719 - 1617) + chr(45) + '\x38'), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o'), chr(0b110100 + 0o60) + '\x65' + chr(0b1100011) + chr(0b1010010 + 0o35) + chr(0b1100100) + chr(7630 - 7529))(chr(117) + '\x74' + chr(0b1100110) + chr(486 - 441) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'o\x8df\x7fnI'), '\144' + '\x65' + chr(5386 - 5287) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(159 - 57) + '\055' + '\070'), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o\x8df'), chr(5637 - 5537) + chr(101) + '\143' + chr(0b1101111) + chr(6573 - 6473) + chr(2736 - 2635))(chr(117) + chr(0b101101 + 0o107) + chr(102) + chr(0b101101) + '\070')], roI3spqORKae(ES5oEprVxulp(b'o\x8eg\x7fnI'), chr(7807 - 7707) + chr(101) + chr(7499 - 7400) + '\x6f' + chr(100) + '\x65')(chr(0b1001 + 0o154) + chr(449 - 333) + chr(102) + chr(0b1111 + 0o36) + chr(0b1 + 0o67)), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o\x8eg'), chr(100) + chr(5233 - 5132) + '\x63' + chr(7919 - 7808) + '\x64' + chr(9351 - 9250))(chr(0b1110101) + chr(0b1100111 + 0o15) + chr(0b1100110) + '\055' + chr(2771 - 2715))])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\xcftz:I\x810\x93\xc9\xec>~\xecl\x0f'), '\144' + '\145' + '\143' + chr(111) + '\144' + '\145')('\165' + chr(795 - 679) + chr(0b100111 + 0o77) + chr(0b101101) + chr(0b10011 + 0o45)) % (roI3spqORKae(ES5oEprVxulp(b'g\xd11> I\x99c'), chr(0b1001011 + 0o31) + '\145' + chr(1463 - 1364) + '\157' + '\144' + chr(3343 - 3242))(chr(0b0 + 0o165) + '\164' + chr(0b1100110) + chr(0b100001 + 0o14) + chr(0b10011 + 0o45)), YBFHwuqm3Jy9, roI3spqORKae(ES5oEprVxulp(b'\t\xcf=8>\x08\x84~\x93'), chr(0b100010 + 0o102) + chr(101) + '\143' + chr(0b1100001 + 0o16) + chr(0b1100100) + '\x65')(chr(0b110100 + 0o101) + '\164' + chr(0b110101 + 0o61) + '\055' + '\x38'), TR_IwUloMMVU)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), '\144' + chr(9100 - 8999) + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(0b111101 + 0o70) + chr(8360 - 8244) + chr(102) + chr(0b101101) + chr(2092 - 2036)) % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8d'), chr(0b1011001 + 0o13) + chr(101) + chr(2603 - 2504) + '\157' + chr(100) + chr(0b1000111 + 0o36))(chr(0b1110101) + '\164' + chr(9444 - 9342) + chr(0b101101) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), '\144' + '\145' + '\143' + '\157' + chr(100) + '\x65')(chr(799 - 682) + chr(0b1110100) + '\x66' + '\055' + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), chr(0b101010 + 0o72) + chr(3086 - 2985) + chr(99) + '\x6f' + '\144' + chr(0b1100101))(chr(0b11110 + 0o127) + chr(5175 - 5059) + '\x66' + chr(0b101101) + '\x38')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8df'), '\x64' + chr(5488 - 5387) + chr(0b1001001 + 0o32) + chr(111) + '\144' + chr(0b1001110 + 0o27))(chr(0b110010 + 0o103) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), chr(100) + chr(0b1010011 + 0o22) + chr(0b1100011) + chr(4121 - 4010) + '\x64' + '\x65')(chr(5240 - 5123) + '\x74' + '\146' + chr(55 - 10) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), '\x64' + chr(0b100011 + 0o102) + chr(0b1100011) + '\157' + chr(5351 - 5251) + chr(101))(chr(3752 - 3635) + chr(0b1110100) + chr(102) + '\055' + chr(2267 - 2211))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8dg'), chr(100) + '\145' + chr(484 - 385) + '\x6f' + chr(2124 - 2024) + '\145')(chr(0b1110101) + chr(116) + chr(0b1000000 + 0o46) + chr(0b1101 + 0o40) + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), '\x64' + chr(0b111001 + 0o54) + chr(99) + chr(0b1010000 + 0o37) + chr(3455 - 3355) + '\x65')('\x75' + '\164' + chr(0b10110 + 0o120) + chr(0b10110 + 0o27) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), '\x64' + chr(101) + chr(99) + '\x6f' + '\144' + chr(6901 - 6800))(chr(3988 - 3871) + chr(0b1011000 + 0o34) + chr(102) + chr(1288 - 1243) + '\x38')])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), chr(7207 - 7107) + chr(0b111100 + 0o51) + chr(0b1100011) + '\157' + chr(100) + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b101101) + chr(2215 - 2159)) % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8e'), '\144' + chr(101) + '\x63' + chr(111) + chr(0b111000 + 0o54) + chr(101))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), '\x64' + chr(101) + chr(99) + chr(10427 - 10316) + chr(2435 - 2335) + chr(101))('\x75' + chr(11016 - 10900) + chr(0b1100110) + chr(45) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), chr(6876 - 6776) + '\145' + chr(0b111010 + 0o51) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b11100 + 0o131) + chr(0b1000000 + 0o64) + '\x66' + '\055' + chr(0b10010 + 0o46))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8eg'), '\144' + chr(936 - 835) + chr(7836 - 7737) + chr(0b11000 + 0o127) + chr(0b10100 + 0o120) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + '\x2d' + chr(2393 - 2337))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), '\x64' + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(45) + chr(1862 - 1806))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + chr(0b110010 + 0o62) + chr(7928 - 7827))('\165' + '\164' + '\146' + '\x2d' + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8df'), chr(4929 - 4829) + chr(0b1010100 + 0o21) + chr(0b1100011) + '\157' + '\144' + chr(0b1001010 + 0o33))('\165' + chr(116) + chr(0b1001100 + 0o32) + chr(0b101101) + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), chr(8343 - 8243) + chr(8212 - 8111) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1001011 + 0o52) + chr(0b1110100) + chr(8271 - 8169) + chr(574 - 529) + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), '\144' + chr(7950 - 7849) + chr(0b1011 + 0o130) + chr(111) + chr(2863 - 2763) + chr(101))(chr(0b1100001 + 0o24) + chr(11002 - 10886) + '\146' + '\055' + '\070')])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), chr(5439 - 5339) + '\145' + chr(0b1000010 + 0o41) + chr(0b1101111) + chr(8915 - 8815) + chr(0b1100101))('\x75' + chr(116) + chr(102) + '\055' + '\070') % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8f'), chr(8438 - 8338) + chr(6266 - 6165) + '\x63' + '\157' + chr(0b101 + 0o137) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(1767 - 1722) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), chr(3133 - 3033) + chr(3264 - 3163) + chr(0b1100011) + chr(111) + chr(100) + chr(5240 - 5139))('\165' + chr(0b1000000 + 0o64) + chr(0b1011010 + 0o14) + chr(1932 - 1887) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), chr(0b1101 + 0o127) + chr(0b1100101) + chr(2493 - 2394) + chr(7740 - 7629) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b11111 + 0o16) + chr(2592 - 2536))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8dg'), chr(100) + '\x65' + '\143' + '\157' + '\144' + chr(101))(chr(12690 - 12573) + '\x74' + chr(0b1000010 + 0o44) + '\x2d' + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), '\144' + chr(9446 - 9345) + '\x63' + chr(4273 - 4162) + chr(0b1100100) + chr(0b101110 + 0o67))('\165' + chr(0b1110100) + '\146' + chr(45) + chr(0b100000 + 0o30))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), chr(8894 - 8794) + chr(101) + chr(4203 - 4104) + chr(0b10000 + 0o137) + chr(100) + chr(0b101101 + 0o70))(chr(0b1110101) + chr(10261 - 10145) + chr(0b11000 + 0o116) + chr(0b11100 + 0o21) + chr(0b100000 + 0o30))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8eg'), chr(0b10110 + 0o116) + chr(0b1100101) + chr(99) + chr(111) + chr(0b10010 + 0o122) + '\x65')('\165' + '\164' + chr(9915 - 9813) + '\x2d' + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), chr(0b11001 + 0o113) + chr(0b1100101) + chr(8658 - 8559) + '\x6f' + chr(100) + '\x65')(chr(7135 - 7018) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), chr(0b1100100) + chr(0b1011000 + 0o15) + chr(0b1100011) + chr(0b1101011 + 0o4) + chr(8357 - 8257) + chr(0b1100101))(chr(117) + chr(116) + chr(102) + '\055' + chr(0b111000))])) else: roI3spqORKae(HgFdy4pMURor, roI3spqORKae(ES5oEprVxulp(b'a\xe8\x07k+\x0e\xe3,\xd9\x83\x88?'), '\x64' + '\x65' + chr(0b1 + 0o142) + chr(111) + chr(0b1011000 + 0o14) + chr(0b1100101))('\165' + chr(116) + chr(102) + '\055' + chr(56)))(PmE5_h409JAA) if p5Ia43RajU39 == nzTpIcepk0o8('\060' + '\x6f' + chr(0b111 + 0o52), 8): YBFHwuqm3Jy9 = ftfygxgFas5X(HgFdy4pMURor) (o8wB6rLEskY2, uc4gGmjAvJP3, myuPKyAjl27S) = hUcsWwAd0nE_.sbar(HgFdy4pMURor) n_FL9vrrf8Wb = hUcsWwAd0nE_.dohext(o8wB6rLEskY2, uc4gGmjAvJP3, myuPKyAjl27S) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\xcftzgG\x96%\x93\xc9\xae*u\xe9p[\x1f\x91\xa6\xb8\x0b\xc6\x9e\xdf\x00V'), chr(100) + '\145' + chr(0b1011001 + 0o12) + '\x6f' + chr(8342 - 8242) + chr(0b111010 + 0o53))(chr(0b1110101) + '\164' + '\146' + '\055' + chr(0b111000)) % (roI3spqORKae(ES5oEprVxulp(b'o\x9ci\x7f'), chr(0b100011 + 0o101) + '\145' + chr(6670 - 6571) + chr(0b101000 + 0o107) + chr(100) + '\x65')(chr(117) + chr(0b1010100 + 0o40) + chr(0b1100110) + chr(45) + chr(56)), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o'), chr(0b110111 + 0o55) + chr(6464 - 6363) + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + chr(116) + '\146' + '\055' + chr(791 - 735))], roI3spqORKae(ES5oEprVxulp(b'o\x8df\x7fnI'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(100) + '\145')(chr(117) + '\x74' + chr(102) + chr(1501 - 1456) + '\x38'), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o\x8df'), '\144' + chr(0b1001000 + 0o35) + '\143' + chr(111) + '\x64' + '\x65')(chr(7389 - 7272) + '\164' + '\146' + chr(986 - 941) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'o\x8eg\x7fnI'), chr(0b1100100) + chr(753 - 652) + chr(0b1001101 + 0o26) + '\x6f' + chr(0b1100100) + chr(0b111000 + 0o55))(chr(0b0 + 0o165) + chr(116) + chr(8220 - 8118) + chr(0b1110 + 0o37) + '\x38'), n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'o\x8eg'), chr(0b1010000 + 0o24) + '\x65' + chr(99) + '\x6f' + chr(0b1100000 + 0o4) + chr(0b1100100 + 0o1))(chr(2806 - 2689) + chr(0b1110100) + chr(102) + chr(0b10101 + 0o30) + chr(56))])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\xcftz:I\x810\x93\xc9\xec>~\xecl\x0f'), chr(9089 - 8989) + '\145' + '\x63' + chr(0b11110 + 0o121) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(576 - 531) + '\x38') % (roI3spqORKae(ES5oEprVxulp(b'g\x9ci\x7f'), chr(0b110000 + 0o64) + chr(6907 - 6806) + chr(99) + chr(6527 - 6416) + chr(0b1100100) + chr(0b1100101))(chr(7453 - 7336) + chr(0b1110100) + '\x66' + chr(0b10011 + 0o32) + chr(0b111000)), YBFHwuqm3Jy9, roI3spqORKae(ES5oEprVxulp(b'\t\xcf=8>\x08\x84~\x93'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b101101 + 0o102) + chr(100) + chr(101))('\x75' + '\164' + chr(102) + '\055' + '\070'), uc4gGmjAvJP3)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), chr(0b1100100) + chr(101) + '\143' + '\157' + '\x64' + '\145')(chr(6525 - 6408) + '\164' + chr(9026 - 8924) + '\x2d' + chr(0b111000)) % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8d'), chr(100) + chr(9575 - 9474) + chr(4071 - 3972) + '\x6f' + chr(0b1000000 + 0o44) + chr(101))(chr(10038 - 9921) + chr(116) + chr(0b1100110) + chr(0b101101 + 0o0) + chr(1790 - 1734))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), '\144' + '\x65' + '\x63' + '\x6f' + '\x64' + chr(0b1000011 + 0o42))('\165' + '\x74' + '\x66' + chr(0b101101) + '\x38')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), chr(0b1010110 + 0o16) + '\145' + chr(99) + chr(5566 - 5455) + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(102) + chr(45) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8df'), chr(0b1100100) + '\x65' + '\x63' + '\157' + chr(0b1001011 + 0o31) + '\x65')('\165' + chr(0b1101010 + 0o12) + chr(4440 - 4338) + '\055' + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), chr(1232 - 1132) + chr(9080 - 8979) + chr(7217 - 7118) + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(12159 - 12043) + '\146' + chr(0b100100 + 0o11) + chr(1480 - 1424))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), '\x64' + '\145' + '\x63' + chr(0b1101111) + '\x64' + chr(0b101001 + 0o74))('\x75' + '\x74' + chr(0b1010110 + 0o20) + chr(0b101101) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8dg'), chr(9606 - 9506) + chr(5256 - 5155) + chr(0b1100011) + chr(9586 - 9475) + chr(0b1100100) + chr(101))(chr(117) + chr(11761 - 11645) + '\x66' + chr(686 - 641) + chr(0b101011 + 0o15))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), chr(0b1000111 + 0o35) + chr(101) + '\143' + '\157' + '\144' + chr(101))('\x75' + '\x74' + '\146' + chr(0b1110 + 0o37) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), chr(0b1100100) + '\x65' + '\x63' + '\157' + chr(100) + '\x65')(chr(117) + '\x74' + chr(102) + chr(72 - 27) + chr(0b111000))])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), '\x64' + chr(0b1100101) + chr(0b1011001 + 0o12) + chr(0b1101111) + chr(9996 - 9896) + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(0b10 + 0o53) + chr(0b110 + 0o62)) % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8e'), chr(6898 - 6798) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\x65')(chr(6149 - 6032) + chr(0b1110100) + '\x66' + '\055' + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(102) + '\055' + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), chr(100) + chr(101) + chr(0b1100011) + chr(6899 - 6788) + '\144' + '\145')(chr(0b1110101) + '\164' + chr(0b100000 + 0o106) + chr(0b101101) + chr(0b101000 + 0o20))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8eg'), chr(100) + '\x65' + chr(3365 - 3266) + chr(111) + chr(100) + chr(101))(chr(12903 - 12786) + chr(9716 - 9600) + chr(102) + chr(236 - 191) + chr(966 - 910))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), '\144' + chr(3741 - 3640) + chr(1122 - 1023) + chr(0b0 + 0o157) + chr(100) + chr(8455 - 8354))(chr(4054 - 3937) + chr(0b1010 + 0o152) + '\x66' + chr(326 - 281) + chr(1543 - 1487))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), '\144' + chr(7218 - 7117) + chr(6508 - 6409) + chr(0b1111 + 0o140) + '\144' + chr(9899 - 9798))('\x75' + '\164' + '\x66' + '\055' + '\x38')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8df'), chr(100) + chr(101) + '\143' + chr(0b1000100 + 0o53) + chr(6289 - 6189) + '\x65')(chr(2052 - 1935) + chr(116) + '\146' + '\x2d' + '\x38')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), '\144' + chr(101) + chr(99) + '\157' + chr(3698 - 3598) + chr(0b1100101))(chr(0b111101 + 0o70) + chr(1998 - 1882) + chr(0b1011100 + 0o12) + chr(0b10100 + 0o31) + chr(0b110101 + 0o3))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), chr(0b110110 + 0o56) + chr(0b1100101) + '\143' + '\x6f' + chr(100) + '\145')(chr(117) + '\x74' + chr(3526 - 3424) + chr(990 - 945) + chr(491 - 435))])) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\x8bzj5I\x81t\x9d\xdd\xbb*u\xeapX\x1f\x91\xa6\xfc\x05\xd2\xcc\xd1\x17\x07w_\x00\xaf\xe3\x03X=U\xe1s3\xfa3O\x9cqh}X\xc2c\x96\xdb\xf3;6'), chr(0b1100100) + '\145' + chr(7722 - 7623) + chr(0b1011101 + 0o22) + '\144' + chr(6204 - 6103))(chr(0b11001 + 0o134) + '\x74' + '\x66' + '\055' + chr(0b111000)) % (n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b']\x8f'), chr(0b1100100) + '\x65' + chr(0b10000 + 0o123) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + '\x2d' + chr(0b11 + 0o65))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b;6\n'), chr(9344 - 9244) + chr(0b1100 + 0o131) + chr(1022 - 923) + '\x6f' + chr(0b10110 + 0o116) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101101) + chr(0b1000 + 0o60))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8f\x0b6=\n'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(0b11000 + 0o115))(chr(0b11 + 0o162) + '\164' + chr(10079 - 9977) + chr(418 - 373) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8dg'), '\144' + '\145' + chr(6213 - 6114) + chr(111) + chr(0b1100100) + '\145')('\x75' + chr(0b1011101 + 0o27) + chr(0b111001 + 0o55) + chr(45) + chr(56))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b;6\n'), chr(360 - 260) + '\x65' + chr(0b1011100 + 0o7) + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(0b100 + 0o141))(chr(0b1110101) + chr(116) + '\146' + '\055' + chr(0b100110 + 0o22))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8d\x0b6=\n'), chr(0b111011 + 0o51) + chr(6327 - 6226) + chr(0b1100011) + chr(8733 - 8622) + '\144' + chr(0b1100101))('\165' + '\x74' + chr(8338 - 8236) + '\x2d' + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'L\x8eg'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(8298 - 8198) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + '\070')], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b;6\n'), chr(6008 - 5908) + chr(0b1100101) + chr(5368 - 5269) + chr(0b1001101 + 0o42) + '\144' + '\x65')(chr(10939 - 10822) + chr(1089 - 973) + chr(0b1000100 + 0o42) + chr(0b1001 + 0o44) + chr(0b111000))], n_FL9vrrf8Wb[roI3spqORKae(ES5oEprVxulp(b'_\x8e\x0b6=\n'), chr(8950 - 8850) + '\145' + chr(5358 - 5259) + '\x6f' + '\144' + chr(0b1100101))('\x75' + '\x74' + chr(2155 - 2053) + chr(45) + '\070')]))
PmagPy/PmagPy
data_files/LearningPython/UTM.py
_UTMLetterDesignator
def _UTMLetterDesignator(Lat): """ This routine determines the correct UTM letter designator for the given latitude returns 'Z' if latitude is outside the UTM limits of 84N to 80S Written by Chuck Gantz- chuck.gantz@globalstar.com """ if 84 >= Lat >= 72: return 'X' elif 72 > Lat >= 64: return 'W' elif 64 > Lat >= 56: return 'V' elif 56 > Lat >= 48: return 'U' elif 48 > Lat >= 40: return 'T' elif 40 > Lat >= 32: return 'S' elif 32 > Lat >= 24: return 'R' elif 24 > Lat >= 16: return 'Q' elif 16 > Lat >= 8: return 'P' elif 8 > Lat >= 0: return 'N' elif 0 > Lat >=-8: return 'M' elif -8 > Lat >=-16: return 'L' elif -16 > Lat >=-24: return 'K' elif -24 > Lat >=-32: return 'J' elif -32 > Lat >=-40: return 'H' elif -40 > Lat >=-48: return 'G' elif -48 > Lat >=-56: return 'F' elif -56 > Lat >=-64: return 'E' elif -64 > Lat >=-72: return 'D' elif -72 > Lat >=-80: return 'C' else: return 'Z'
python
def _UTMLetterDesignator(Lat): """ This routine determines the correct UTM letter designator for the given latitude returns 'Z' if latitude is outside the UTM limits of 84N to 80S Written by Chuck Gantz- chuck.gantz@globalstar.com """ if 84 >= Lat >= 72: return 'X' elif 72 > Lat >= 64: return 'W' elif 64 > Lat >= 56: return 'V' elif 56 > Lat >= 48: return 'U' elif 48 > Lat >= 40: return 'T' elif 40 > Lat >= 32: return 'S' elif 32 > Lat >= 24: return 'R' elif 24 > Lat >= 16: return 'Q' elif 16 > Lat >= 8: return 'P' elif 8 > Lat >= 0: return 'N' elif 0 > Lat >=-8: return 'M' elif -8 > Lat >=-16: return 'L' elif -16 > Lat >=-24: return 'K' elif -24 > Lat >=-32: return 'J' elif -32 > Lat >=-40: return 'H' elif -40 > Lat >=-48: return 'G' elif -48 > Lat >=-56: return 'F' elif -56 > Lat >=-64: return 'E' elif -64 > Lat >=-72: return 'D' elif -72 > Lat >=-80: return 'C' else: return 'Z'
[ "def", "_UTMLetterDesignator", "(", "Lat", ")", ":", "if", "84", ">=", "Lat", ">=", "72", ":", "return", "'X'", "elif", "72", ">", "Lat", ">=", "64", ":", "return", "'W'", "elif", "64", ">", "Lat", ">=", "56", ":", "return", "'V'", "elif", "56", ">", "Lat", ">=", "48", ":", "return", "'U'", "elif", "48", ">", "Lat", ">=", "40", ":", "return", "'T'", "elif", "40", ">", "Lat", ">=", "32", ":", "return", "'S'", "elif", "32", ">", "Lat", ">=", "24", ":", "return", "'R'", "elif", "24", ">", "Lat", ">=", "16", ":", "return", "'Q'", "elif", "16", ">", "Lat", ">=", "8", ":", "return", "'P'", "elif", "8", ">", "Lat", ">=", "0", ":", "return", "'N'", "elif", "0", ">", "Lat", ">=", "-", "8", ":", "return", "'M'", "elif", "-", "8", ">", "Lat", ">=", "-", "16", ":", "return", "'L'", "elif", "-", "16", ">", "Lat", ">=", "-", "24", ":", "return", "'K'", "elif", "-", "24", ">", "Lat", ">=", "-", "32", ":", "return", "'J'", "elif", "-", "32", ">", "Lat", ">=", "-", "40", ":", "return", "'H'", "elif", "-", "40", ">", "Lat", ">=", "-", "48", ":", "return", "'G'", "elif", "-", "48", ">", "Lat", ">=", "-", "56", ":", "return", "'F'", "elif", "-", "56", ">", "Lat", ">=", "-", "64", ":", "return", "'E'", "elif", "-", "64", ">", "Lat", ">=", "-", "72", ":", "return", "'D'", "elif", "-", "72", ">", "Lat", ">=", "-", "80", ":", "return", "'C'", "else", ":", "return", "'Z'" ]
This routine determines the correct UTM letter designator for the given latitude returns 'Z' if latitude is outside the UTM limits of 84N to 80S Written by Chuck Gantz- chuck.gantz@globalstar.com
[ "This", "routine", "determines", "the", "correct", "UTM", "letter", "designator", "for", "the", "given", "latitude", "returns", "Z", "if", "latitude", "is", "outside", "the", "UTM", "limits", "of", "84N", "to", "80S", "Written", "by", "Chuck", "Gantz", "-", "chuck", ".", "gantz" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/data_files/LearningPython/UTM.py#L123-L150
train
This routine determines the correct UTM letter designator for the given latitude.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(12188 - 12077) + '\061' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(109 - 57) + '\x35', 38693 - 38685), nzTpIcepk0o8('\060' + '\157' + chr(0b101 + 0o54) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(133 - 84) + '\x33' + chr(2250 - 2202), 3923 - 3915), nzTpIcepk0o8(chr(1961 - 1913) + '\157' + chr(2111 - 2062) + chr(574 - 522) + chr(53), 0o10), nzTpIcepk0o8('\x30' + chr(0b11000 + 0o127) + chr(516 - 467) + '\x31' + chr(0b110100), 43767 - 43759), nzTpIcepk0o8(chr(1143 - 1095) + chr(0b1101111) + chr(51) + '\x36' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\066' + chr(1511 - 1461), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\066' + chr(1648 - 1599), 15308 - 15300), nzTpIcepk0o8(chr(890 - 842) + chr(6916 - 6805) + '\066' + chr(332 - 280), 0o10), nzTpIcepk0o8('\x30' + chr(200 - 89) + chr(0b110011) + chr(0b101110 + 0o4) + chr(0b11011 + 0o25), 30777 - 30769), nzTpIcepk0o8(chr(48) + chr(0b1000001 + 0o56) + chr(0b110001) + chr(0b100 + 0o61) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(111) + chr(1026 - 977) + chr(50) + chr(395 - 347), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010 + 0o1) + '\066' + chr(48), 0b1000), nzTpIcepk0o8(chr(182 - 134) + chr(0b1101111) + '\065' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(75 - 27) + chr(0b101101 + 0o102) + chr(50) + chr(51) + chr(0b11001 + 0o35), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\x33' + chr(52), 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101110 + 0o1) + chr(91 - 41) + '\067' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11101 + 0o122) + chr(2153 - 2102) + chr(0b101100 + 0o6) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + '\x33' + chr(0b110010) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011010 + 0o25) + chr(1517 - 1467) + chr(0b111 + 0o52) + chr(0b100001 + 0o26), 30271 - 30263), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101 + 0o142) + chr(0b100110 + 0o15) + chr(2332 - 2280), 0b1000), nzTpIcepk0o8(chr(866 - 818) + chr(7816 - 7705) + chr(0b110010) + chr(0b110011) + '\062', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1000010 + 0o55) + '\x34', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\060' + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011010 + 0o25) + chr(530 - 480) + chr(0b110110), 51433 - 51425), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\060' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(145 - 92) + chr(1240 - 1187), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(1008 - 959) + '\x31', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + '\x30' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(11873 - 11762) + chr(0b100010 + 0o24) + '\067', 34278 - 34270), nzTpIcepk0o8(chr(48) + chr(0b111010 + 0o65) + chr(0b101101 + 0o4), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b110 + 0o151) + chr(0b101011 + 0o12) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(0b111101 + 0o62) + chr(198 - 147) + chr(51), 0o10), nzTpIcepk0o8(chr(2220 - 2172) + chr(859 - 748) + chr(49) + chr(1111 - 1061) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(51) + chr(52), 8), nzTpIcepk0o8(chr(48) + chr(111) + '\x34' + '\x36', 26618 - 26610), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10101 + 0o35) + '\061' + chr(0b0 + 0o60), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\066' + chr(0b100101 + 0o20), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1218 - 1170) + '\x6f' + chr(456 - 403) + chr(2038 - 1990), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b"'"), chr(0b100 + 0o140) + chr(1495 - 1394) + chr(5475 - 5376) + chr(0b1001110 + 0o41) + '\x64' + chr(101))(chr(117) + chr(7897 - 7781) + '\146' + chr(1491 - 1446) + chr(0b10 + 0o66)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def vuVYlRViqrHD(SukGkD0_zubM): if nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(50) + '\064', 0b1000) >= SukGkD0_zubM >= nzTpIcepk0o8(chr(1925 - 1877) + chr(0b101 + 0o152) + chr(0b110000 + 0o1) + chr(987 - 938) + chr(0b1 + 0o57), ord("\x08")): return roI3spqORKae(ES5oEprVxulp(b'Q'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(1622 - 1522) + '\x65')(chr(0b1110101) + chr(10320 - 10204) + '\x66' + '\055' + chr(1034 - 978)) elif nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\061' + chr(0b110000), 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(1959 - 1910) + chr(48) + '\x30', 40497 - 40489): return roI3spqORKae(ES5oEprVxulp(b'^'), chr(0b1001101 + 0o27) + chr(5753 - 5652) + chr(0b111 + 0o134) + chr(0b1101111) + chr(0b1100100) + chr(3169 - 3068))(chr(117) + chr(1919 - 1803) + chr(102) + '\055' + '\x38') elif nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(784 - 736) + chr(0b101110 + 0o2), 8) > SukGkD0_zubM >= nzTpIcepk0o8('\x30' + chr(11494 - 11383) + '\067' + chr(1918 - 1870), ord("\x08")): return roI3spqORKae(ES5oEprVxulp(b'_'), '\144' + chr(0b1001001 + 0o34) + chr(2923 - 2824) + '\x6f' + chr(0b11000 + 0o114) + chr(101))('\165' + chr(0b0 + 0o164) + chr(0b1 + 0o145) + chr(1306 - 1261) + chr(0b110100 + 0o4)) elif nzTpIcepk0o8('\x30' + chr(111) + chr(55) + chr(0b110000), 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(48) + chr(0b10010 + 0o135) + chr(0b110110 + 0o0) + chr(2048 - 2000), 0b1000): return roI3spqORKae(ES5oEprVxulp(b'\\'), chr(7756 - 7656) + '\x65' + '\143' + '\157' + chr(0b1011100 + 0o10) + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38') elif nzTpIcepk0o8(chr(0b110000) + chr(1215 - 1104) + '\x36' + chr(2201 - 2153), 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1100111 + 0o10) + '\065' + '\x30', 8): return roI3spqORKae(ES5oEprVxulp(b']'), '\144' + chr(101) + chr(0b1011111 + 0o4) + chr(111) + chr(6541 - 6441) + '\145')('\x75' + chr(116) + chr(3773 - 3671) + '\055' + '\070') elif nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065' + chr(0b110000), 8) > SukGkD0_zubM >= nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11 + 0o61) + chr(0b101111 + 0o1), 0b1000): return roI3spqORKae(ES5oEprVxulp(b'Z'), chr(0b100011 + 0o101) + chr(0b111011 + 0o52) + chr(2443 - 2344) + chr(3517 - 3406) + chr(0b1001111 + 0o25) + chr(101))('\x75' + chr(3921 - 3805) + '\x66' + chr(0b11100 + 0o21) + '\070') elif nzTpIcepk0o8(chr(0b110000) + chr(0b111 + 0o150) + chr(2307 - 2255) + '\x30', 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(2062 - 2014) + chr(9251 - 9140) + chr(1164 - 1113) + '\060', 0b1000): return roI3spqORKae(ES5oEprVxulp(b'['), '\144' + chr(101) + '\x63' + chr(0b1011000 + 0o27) + '\144' + chr(0b1100101))(chr(2946 - 2829) + chr(0b1111 + 0o145) + chr(6874 - 6772) + '\x2d' + '\x38') elif nzTpIcepk0o8('\060' + chr(111) + chr(0b1010 + 0o51) + chr(0b110000), 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + chr(329 - 279) + '\x30', 21162 - 21154): return roI3spqORKae(ES5oEprVxulp(b'X'), chr(0b1100100) + chr(0b1100101) + chr(2241 - 2142) + chr(11551 - 11440) + chr(0b1100100) + chr(331 - 230))(chr(0b1110101) + chr(116) + '\146' + '\055' + chr(0b100001 + 0o27)) elif nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110000), 8) > SukGkD0_zubM >= nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b1 + 0o60) + chr(48), 0b1000): return roI3spqORKae(ES5oEprVxulp(b'Y'), chr(100) + chr(7084 - 6983) + chr(7174 - 7075) + chr(111) + chr(0b1100100) + chr(6836 - 6735))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b1101 + 0o53)) elif nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + chr(0b101100 + 0o5) + '\x30', 8) > SukGkD0_zubM >= nzTpIcepk0o8('\060' + chr(1619 - 1508) + chr(0b110000), ord("\x08")): return roI3spqORKae(ES5oEprVxulp(b'G'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(0b1110 + 0o126) + chr(0b1100101))(chr(117) + '\x74' + '\146' + '\x2d' + chr(0b111000)) elif nzTpIcepk0o8(chr(48) + chr(0b1001110 + 0o41) + chr(191 - 143), 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(1392 - 1344) + chr(8916 - 8805) + '\061' + '\x30', 8): return roI3spqORKae(ES5oEprVxulp(b'D'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))('\165' + chr(0b100101 + 0o117) + chr(3823 - 3721) + '\x2d' + '\070') elif -nzTpIcepk0o8(chr(0b110000) + chr(0b1100111 + 0o10) + '\061' + '\x30', 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + chr(606 - 556) + '\060', 8): return roI3spqORKae(ES5oEprVxulp(b'E'), chr(0b1100100) + '\145' + '\x63' + chr(0b1001 + 0o146) + '\144' + chr(101))('\165' + chr(10469 - 10353) + chr(0b1100110) + '\x2d' + '\070') elif -nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110000), 8) > SukGkD0_zubM >= -nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(428 - 380), 8): return roI3spqORKae(ES5oEprVxulp(b'B'), '\x64' + chr(101) + chr(99) + chr(11227 - 11116) + '\x64' + chr(101))('\x75' + chr(116) + chr(7359 - 7257) + chr(363 - 318) + chr(0b10010 + 0o46)) elif -nzTpIcepk0o8(chr(0b110000) + chr(0b1110 + 0o141) + chr(0b101110 + 0o5) + chr(0b110000), 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + chr(2201 - 2153), 8): return roI3spqORKae(ES5oEprVxulp(b'C'), chr(100) + chr(101) + chr(99) + '\157' + chr(8553 - 8453) + '\145')(chr(0b1110101) + chr(116) + chr(0b110100 + 0o62) + '\x2d' + chr(2227 - 2171)) elif -nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(1362 - 1310) + chr(0b1 + 0o57), 8) > SukGkD0_zubM >= -nzTpIcepk0o8('\060' + '\157' + chr(0b110101) + chr(0b110000), 8): return roI3spqORKae(ES5oEprVxulp(b'A'), chr(100) + '\145' + chr(0b1001101 + 0o26) + chr(0b100110 + 0o111) + '\x64' + chr(8309 - 8208))(chr(11341 - 11224) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)) elif -nzTpIcepk0o8('\x30' + chr(0b100 + 0o153) + chr(53) + chr(48), 8) > SukGkD0_zubM >= -nzTpIcepk0o8('\x30' + chr(9330 - 9219) + '\x36' + '\x30', 8): return roI3spqORKae(ES5oEprVxulp(b'N'), '\x64' + '\x65' + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + chr(355 - 310) + chr(0b111000)) elif -nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + '\x30', 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b111000 + 0o67) + '\067' + '\x30', 8): return roI3spqORKae(ES5oEprVxulp(b'O'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(2720 - 2620) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + '\x38') elif -nzTpIcepk0o8(chr(48) + chr(0b101011 + 0o104) + chr(55) + chr(0b110000), 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + '\x31' + chr(48) + chr(0b110000), 8): return roI3spqORKae(ES5oEprVxulp(b'L'), '\x64' + chr(0b1100101) + chr(3574 - 3475) + chr(0b1011011 + 0o24) + '\144' + '\x65')(chr(0b1000 + 0o155) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2700 - 2644)) elif -nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(111) + '\061' + chr(48) + chr(386 - 338), 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10111 + 0o32) + chr(1588 - 1539) + chr(0b101101 + 0o3), 8): return roI3spqORKae(ES5oEprVxulp(b'M'), '\x64' + chr(0b1001100 + 0o31) + '\143' + chr(0b1101111) + '\144' + chr(0b1000000 + 0o45))(chr(0b1001011 + 0o52) + '\164' + '\146' + chr(1675 - 1630) + chr(0b111000)) elif -nzTpIcepk0o8(chr(1249 - 1201) + '\157' + '\x31' + chr(0b100011 + 0o16) + '\x30', 8) > SukGkD0_zubM >= -nzTpIcepk0o8(chr(837 - 789) + chr(111) + chr(0b110001) + '\062' + chr(0b110000), 8): return roI3spqORKae(ES5oEprVxulp(b'J'), chr(0b1100100) + '\145' + chr(1754 - 1655) + '\x6f' + chr(0b100010 + 0o102) + '\145')(chr(117) + chr(0b101000 + 0o114) + chr(9383 - 9281) + chr(0b100100 + 0o11) + chr(0b11110 + 0o32)) else: return roI3spqORKae(ES5oEprVxulp(b'S'), chr(118 - 18) + '\145' + chr(498 - 399) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b110001 + 0o104) + chr(0b1110100) + chr(0b10111 + 0o117) + chr(0b111 + 0o46) + '\x38')
PmagPy/PmagPy
data_files/LearningPython/UTM.py
UTMtoLL
def UTMtoLL(ReferenceEllipsoid, easting, northing, zone): """ converts UTM coords to lat/long. Equations from USGS Bulletin 1532 East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in decimal degrees. Written by Chuck Gantz- chuck.gantz@globalstar.com Converted to Python by Russ Nelson <nelson@crynwr.com> """ k0 = 0.9996 a = _ellipsoid[ReferenceEllipsoid][_EquatorialRadius] eccSquared = _ellipsoid[ReferenceEllipsoid][_eccentricitySquared] e1 = old_div((1-sqrt(1-eccSquared)),(1+sqrt(1-eccSquared))) #NorthernHemisphere; //1 for northern hemispher, 0 for southern x = easting-500000.0 #remove 500,000 meter offset for longitude y = northing ZoneLetter = zone[-1] if ZoneLetter == 'Z': raise Exception("Latitude is outside the UTM limits") ZoneNumber = int(zone[:-1]) if ZoneLetter >= 'N': NorthernHemisphere = 1 # point is in northern hemisphere else: NorthernHemisphere = 0 # point is in southern hemisphere y-= 10000000.0 # remove 10,000,000 meter offset used for southern hemisphere LongOrigin = (ZoneNumber-1)*6-180+3 # +3 puts origin in middle of zone eccPrimeSquared = old_div((eccSquared),(1-eccSquared)) M = old_div(y, k0) mu = old_div(M,(a*(1-old_div(eccSquared,4)-3*eccSquared*eccSquared/64-5*eccSquared*eccSquared*eccSquared/256))) phi1Rad = (mu+(3*e1/2-27*e1*e1*e1/32)*sin(2*mu) +(21*e1*e1/16-55*e1*e1*e1*e1/32)*sin(4*mu) +(151*e1*e1*e1/96)*sin(6*mu)) phi1 = degrees(phi1Rad); N1 = old_div(a,sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad))) T1 = tan(phi1Rad)*tan(phi1Rad) C1 = eccPrimeSquared*cos(phi1Rad)*cos(phi1Rad) R1 = a*(1-eccSquared)/pow(1-eccSquared*sin(phi1Rad)*sin(phi1Rad), 1.5) D = old_div(x,(N1*k0)) Lat = phi1Rad-(N1*tan(phi1Rad)/R1)*(D*D/2-(5+3*T1+10*C1-4*C1*C1-9*eccPrimeSquared)*D*D*D*D/24 +(61+90*T1+298*C1+45*T1*T1-252*eccPrimeSquared-3*C1*C1)*D*D*D*D*D*D/720) Lat = degrees(Lat) Long = old_div((D-(1+2*T1+C1)*D*D*D/6+(5-2*C1+28*T1-3*C1*C1+8*eccPrimeSquared+24*T1*T1)*D*D*D*D*D/120),cos(phi1Rad)) Long = LongOrigin+degrees(Long) return (Long, Lat)
python
def UTMtoLL(ReferenceEllipsoid, easting, northing, zone): """ converts UTM coords to lat/long. Equations from USGS Bulletin 1532 East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in decimal degrees. Written by Chuck Gantz- chuck.gantz@globalstar.com Converted to Python by Russ Nelson <nelson@crynwr.com> """ k0 = 0.9996 a = _ellipsoid[ReferenceEllipsoid][_EquatorialRadius] eccSquared = _ellipsoid[ReferenceEllipsoid][_eccentricitySquared] e1 = old_div((1-sqrt(1-eccSquared)),(1+sqrt(1-eccSquared))) #NorthernHemisphere; //1 for northern hemispher, 0 for southern x = easting-500000.0 #remove 500,000 meter offset for longitude y = northing ZoneLetter = zone[-1] if ZoneLetter == 'Z': raise Exception("Latitude is outside the UTM limits") ZoneNumber = int(zone[:-1]) if ZoneLetter >= 'N': NorthernHemisphere = 1 # point is in northern hemisphere else: NorthernHemisphere = 0 # point is in southern hemisphere y-= 10000000.0 # remove 10,000,000 meter offset used for southern hemisphere LongOrigin = (ZoneNumber-1)*6-180+3 # +3 puts origin in middle of zone eccPrimeSquared = old_div((eccSquared),(1-eccSquared)) M = old_div(y, k0) mu = old_div(M,(a*(1-old_div(eccSquared,4)-3*eccSquared*eccSquared/64-5*eccSquared*eccSquared*eccSquared/256))) phi1Rad = (mu+(3*e1/2-27*e1*e1*e1/32)*sin(2*mu) +(21*e1*e1/16-55*e1*e1*e1*e1/32)*sin(4*mu) +(151*e1*e1*e1/96)*sin(6*mu)) phi1 = degrees(phi1Rad); N1 = old_div(a,sqrt(1-eccSquared*sin(phi1Rad)*sin(phi1Rad))) T1 = tan(phi1Rad)*tan(phi1Rad) C1 = eccPrimeSquared*cos(phi1Rad)*cos(phi1Rad) R1 = a*(1-eccSquared)/pow(1-eccSquared*sin(phi1Rad)*sin(phi1Rad), 1.5) D = old_div(x,(N1*k0)) Lat = phi1Rad-(N1*tan(phi1Rad)/R1)*(D*D/2-(5+3*T1+10*C1-4*C1*C1-9*eccPrimeSquared)*D*D*D*D/24 +(61+90*T1+298*C1+45*T1*T1-252*eccPrimeSquared-3*C1*C1)*D*D*D*D*D*D/720) Lat = degrees(Lat) Long = old_div((D-(1+2*T1+C1)*D*D*D/6+(5-2*C1+28*T1-3*C1*C1+8*eccPrimeSquared+24*T1*T1)*D*D*D*D*D/120),cos(phi1Rad)) Long = LongOrigin+degrees(Long) return (Long, Lat)
[ "def", "UTMtoLL", "(", "ReferenceEllipsoid", ",", "easting", ",", "northing", ",", "zone", ")", ":", "k0", "=", "0.9996", "a", "=", "_ellipsoid", "[", "ReferenceEllipsoid", "]", "[", "_EquatorialRadius", "]", "eccSquared", "=", "_ellipsoid", "[", "ReferenceEllipsoid", "]", "[", "_eccentricitySquared", "]", "e1", "=", "old_div", "(", "(", "1", "-", "sqrt", "(", "1", "-", "eccSquared", ")", ")", ",", "(", "1", "+", "sqrt", "(", "1", "-", "eccSquared", ")", ")", ")", "#NorthernHemisphere; //1 for northern hemispher, 0 for southern", "x", "=", "easting", "-", "500000.0", "#remove 500,000 meter offset for longitude", "y", "=", "northing", "ZoneLetter", "=", "zone", "[", "-", "1", "]", "if", "ZoneLetter", "==", "'Z'", ":", "raise", "Exception", "(", "\"Latitude is outside the UTM limits\"", ")", "ZoneNumber", "=", "int", "(", "zone", "[", ":", "-", "1", "]", ")", "if", "ZoneLetter", ">=", "'N'", ":", "NorthernHemisphere", "=", "1", "# point is in northern hemisphere", "else", ":", "NorthernHemisphere", "=", "0", "# point is in southern hemisphere", "y", "-=", "10000000.0", "# remove 10,000,000 meter offset used for southern hemisphere", "LongOrigin", "=", "(", "ZoneNumber", "-", "1", ")", "*", "6", "-", "180", "+", "3", "# +3 puts origin in middle of zone", "eccPrimeSquared", "=", "old_div", "(", "(", "eccSquared", ")", ",", "(", "1", "-", "eccSquared", ")", ")", "M", "=", "old_div", "(", "y", ",", "k0", ")", "mu", "=", "old_div", "(", "M", ",", "(", "a", "*", "(", "1", "-", "old_div", "(", "eccSquared", ",", "4", ")", "-", "3", "*", "eccSquared", "*", "eccSquared", "/", "64", "-", "5", "*", "eccSquared", "*", "eccSquared", "*", "eccSquared", "/", "256", ")", ")", ")", "phi1Rad", "=", "(", "mu", "+", "(", "3", "*", "e1", "/", "2", "-", "27", "*", "e1", "*", "e1", "*", "e1", "/", "32", ")", "*", "sin", "(", "2", "*", "mu", ")", "+", "(", "21", "*", "e1", "*", "e1", "/", "16", "-", "55", "*", "e1", "*", "e1", "*", "e1", "*", "e1", "/", "32", ")", "*", "sin", "(", "4", "*", "mu", ")", "+", "(", "151", "*", "e1", "*", "e1", "*", "e1", "/", "96", ")", "*", "sin", "(", "6", "*", "mu", ")", ")", "phi1", "=", "degrees", "(", "phi1Rad", ")", "N1", "=", "old_div", "(", "a", ",", "sqrt", "(", "1", "-", "eccSquared", "*", "sin", "(", "phi1Rad", ")", "*", "sin", "(", "phi1Rad", ")", ")", ")", "T1", "=", "tan", "(", "phi1Rad", ")", "*", "tan", "(", "phi1Rad", ")", "C1", "=", "eccPrimeSquared", "*", "cos", "(", "phi1Rad", ")", "*", "cos", "(", "phi1Rad", ")", "R1", "=", "a", "*", "(", "1", "-", "eccSquared", ")", "/", "pow", "(", "1", "-", "eccSquared", "*", "sin", "(", "phi1Rad", ")", "*", "sin", "(", "phi1Rad", ")", ",", "1.5", ")", "D", "=", "old_div", "(", "x", ",", "(", "N1", "*", "k0", ")", ")", "Lat", "=", "phi1Rad", "-", "(", "N1", "*", "tan", "(", "phi1Rad", ")", "/", "R1", ")", "*", "(", "D", "*", "D", "/", "2", "-", "(", "5", "+", "3", "*", "T1", "+", "10", "*", "C1", "-", "4", "*", "C1", "*", "C1", "-", "9", "*", "eccPrimeSquared", ")", "*", "D", "*", "D", "*", "D", "*", "D", "/", "24", "+", "(", "61", "+", "90", "*", "T1", "+", "298", "*", "C1", "+", "45", "*", "T1", "*", "T1", "-", "252", "*", "eccPrimeSquared", "-", "3", "*", "C1", "*", "C1", ")", "*", "D", "*", "D", "*", "D", "*", "D", "*", "D", "*", "D", "/", "720", ")", "Lat", "=", "degrees", "(", "Lat", ")", "Long", "=", "old_div", "(", "(", "D", "-", "(", "1", "+", "2", "*", "T1", "+", "C1", ")", "*", "D", "*", "D", "*", "D", "/", "6", "+", "(", "5", "-", "2", "*", "C1", "+", "28", "*", "T1", "-", "3", "*", "C1", "*", "C1", "+", "8", "*", "eccPrimeSquared", "+", "24", "*", "T1", "*", "T1", ")", "*", "D", "*", "D", "*", "D", "*", "D", "*", "D", "/", "120", ")", ",", "cos", "(", "phi1Rad", ")", ")", "Long", "=", "LongOrigin", "+", "degrees", "(", "Long", ")", "return", "(", "Long", ",", "Lat", ")" ]
converts UTM coords to lat/long. Equations from USGS Bulletin 1532 East Longitudes are positive, West longitudes are negative. North latitudes are positive, South latitudes are negative Lat and Long are in decimal degrees. Written by Chuck Gantz- chuck.gantz@globalstar.com Converted to Python by Russ Nelson <nelson@crynwr.com>
[ "converts", "UTM", "coords", "to", "lat", "/", "long", ".", "Equations", "from", "USGS", "Bulletin", "1532", "East", "Longitudes", "are", "positive", "West", "longitudes", "are", "negative", ".", "North", "latitudes", "are", "positive", "South", "latitudes", "are", "negative", "Lat", "and", "Long", "are", "in", "decimal", "degrees", ".", "Written", "by", "Chuck", "Gantz", "-", "chuck", ".", "gantz" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/data_files/LearningPython/UTM.py#L152-L206
train
Convert UTM coordinates to Lat Long.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x35' + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2315 - 2204) + chr(51) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(0b110110) + '\063', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + chr(0b110011) + '\x37' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b110011) + chr(0b110100) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1101110 + 0o1) + chr(0b101000 + 0o12) + chr(0b110110) + chr(0b1 + 0o62), 0b1000), nzTpIcepk0o8(chr(1856 - 1808) + chr(111) + '\063' + chr(0b110111) + chr(0b110010), 8), nzTpIcepk0o8('\060' + chr(0b1011010 + 0o25) + chr(0b110011) + '\064' + chr(727 - 678), 64762 - 64754), nzTpIcepk0o8(chr(332 - 284) + '\x6f' + chr(49) + chr(1961 - 1906) + chr(0b110010), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + chr(2891 - 2836), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x37' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\x31' + '\066' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(0b101001 + 0o12) + chr(0b110100) + chr(1904 - 1854), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6998 - 6887) + chr(269 - 219) + '\x32' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(7698 - 7587) + chr(0b101011 + 0o10) + chr(1133 - 1079) + '\062', 34425 - 34417), nzTpIcepk0o8(chr(2173 - 2125) + chr(0b1101111 + 0o0) + chr(0b110001) + chr(0b110101 + 0o2) + chr(52), 0b1000), nzTpIcepk0o8(chr(991 - 943) + chr(111) + chr(2160 - 2110) + '\063' + chr(452 - 400), 56886 - 56878), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(0b1010 + 0o47) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5952 - 5841) + chr(2112 - 2061) + chr(53) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(51) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b100 + 0o56) + chr(0b110101), 45809 - 45801), nzTpIcepk0o8(chr(865 - 817) + '\157' + chr(2235 - 2185) + chr(48) + '\067', 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(50) + chr(0b10 + 0o56) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8('\x30' + chr(8967 - 8856) + chr(0b11110 + 0o24) + chr(0b100100 + 0o16), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1033 - 982) + chr(53) + '\x33', 17280 - 17272), nzTpIcepk0o8(chr(1303 - 1255) + '\x6f' + '\x33' + '\x35' + chr(0b110100 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(1527 - 1475) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + chr(1857 - 1808) + chr(0b110111) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(0b11110 + 0o30) + '\067', 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(50) + chr(0b110101) + chr(344 - 294), ord("\x08")), nzTpIcepk0o8(chr(342 - 294) + chr(111) + '\x33' + '\063' + '\061', 0b1000), nzTpIcepk0o8(chr(1940 - 1892) + chr(0b1101111) + chr(51) + chr(0b111 + 0o53) + chr(53), 8), nzTpIcepk0o8('\x30' + chr(1495 - 1384) + chr(2273 - 2223) + chr(53) + chr(789 - 737), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\x34' + chr(0b101101 + 0o6), 8), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + chr(0b110110) + chr(0b101010 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\062' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5839 - 5728) + chr(110 - 60) + chr(0b110101) + chr(2161 - 2113), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b110000) + chr(1902 - 1853), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1500 - 1447) + chr(48), 34861 - 34853)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'@'), '\x64' + chr(3399 - 3298) + chr(99) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + chr(1013 - 897) + '\x66' + chr(0b101101) + chr(1889 - 1833)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def gnRg_u0UQTTj(psRMlS_YUWNc, yuC9Uzuh2aM1, E0Hh2nyVaSxD, zsP6VpqK5G6W): IXXLfaGd3hJ0 = 0.9996 AQ9ceR9AaoT1 = q5HHiOfdWzpZ[psRMlS_YUWNc][Deov3lU7HNKi] kPsEjncL8PdO = q5HHiOfdWzpZ[psRMlS_YUWNc][Q6pnEKn9IjCI] CKQNB3xZKUK0 = SVfYwQaP38MC(nzTpIcepk0o8(chr(1635 - 1587) + chr(111) + '\x31', 0b1000) - fkzrQlJFiMyY(nzTpIcepk0o8(chr(48) + chr(111) + chr(49), 8) - kPsEjncL8PdO), nzTpIcepk0o8(chr(0b110000) + chr(741 - 630) + '\x31', 8) + fkzrQlJFiMyY(nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + '\x31', 8) - kPsEjncL8PdO)) bI5jsQ9OkQtj = yuC9Uzuh2aM1 - 500000.0 Fi3yzxctM1zW = E0Hh2nyVaSxD GZ7HtAQzdUi1 = zsP6VpqK5G6W[-nzTpIcepk0o8(chr(1303 - 1255) + '\x6f' + chr(0b100101 + 0o14), 8)] if GZ7HtAQzdUi1 == roI3spqORKae(ES5oEprVxulp(b'4'), chr(100) + '\145' + '\143' + '\x6f' + '\x64' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(791 - 746) + chr(1114 - 1058)): raise zfo2Sgkz3IVJ(roI3spqORKae(ES5oEprVxulp(b'"+o\x9a\x8e\x7f\x84\xd6\xda\x88\t\x17W\x07\x96\xe3\x9b\x18\xf9\xe8\x9d\xf1\xb0\xa7\xd7F\xa6\xcd\x8f\x14Z\xc3\xad\xa6'), chr(100) + '\x65' + '\143' + chr(3777 - 3666) + '\144' + chr(0b111100 + 0o51))(chr(0b11101 + 0o130) + chr(116) + '\146' + chr(0b101101) + chr(0b100100 + 0o24))) fMhDzKUpwRCg = nzTpIcepk0o8(zsP6VpqK5G6W[:-nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(1790 - 1741), 8)]) if GZ7HtAQzdUi1 >= roI3spqORKae(ES5oEprVxulp(b' '), chr(0b1100100) + chr(3300 - 3199) + chr(99) + chr(0b1000010 + 0o55) + chr(0b1010100 + 0o20) + chr(101))(chr(0b1110101) + chr(10388 - 10272) + chr(1977 - 1875) + chr(1862 - 1817) + '\070'): OTOF_it2RnuM = nzTpIcepk0o8(chr(2278 - 2230) + '\x6f' + '\061', 8) else: OTOF_it2RnuM = nzTpIcepk0o8(chr(1386 - 1338) + chr(0b110111 + 0o70) + chr(48), 42212 - 42204) Fi3yzxctM1zW -= 10000000.0 _CeBPSKe61en = (fMhDzKUpwRCg - nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1542 - 1493), 8)) * nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + '\x36', 0o10) - nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\x36' + chr(0b10110 + 0o36), 35648 - 35640) + nzTpIcepk0o8(chr(48) + chr(111) + '\063', ord("\x08")) Uj6fgiwJHXu5 = SVfYwQaP38MC(kPsEjncL8PdO, nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(49), 8) - kPsEjncL8PdO) lY8v4DfEhTNv = SVfYwQaP38MC(Fi3yzxctM1zW, IXXLfaGd3hJ0) fMeL_z1DIoxw = SVfYwQaP38MC(lY8v4DfEhTNv, AQ9ceR9AaoT1 * (nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 8) - SVfYwQaP38MC(kPsEjncL8PdO, nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + '\x34', 0o10)) - nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011), 8) * kPsEjncL8PdO * kPsEjncL8PdO / nzTpIcepk0o8(chr(48) + '\157' + chr(2386 - 2337) + chr(48) + chr(1526 - 1478), 64620 - 64612) - nzTpIcepk0o8('\060' + chr(0b1100101 + 0o12) + chr(0b110101), 0o10) * kPsEjncL8PdO * kPsEjncL8PdO * kPsEjncL8PdO / nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + chr(0b110000) + chr(1496 - 1448), ord("\x08")))) juZdMeYFrEZD = fMeL_z1DIoxw + (nzTpIcepk0o8(chr(1243 - 1195) + chr(11738 - 11627) + chr(51), 8) * CKQNB3xZKUK0 / nzTpIcepk0o8(chr(677 - 629) + chr(0b1101111) + chr(682 - 632), ord("\x08")) - nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b110011) + chr(51), 8) * CKQNB3xZKUK0 * CKQNB3xZKUK0 * CKQNB3xZKUK0 / nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\064' + chr(0b110000), 22168 - 22160)) * TMleLVztqSLZ(nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1001110 + 0o41) + chr(0b1010 + 0o50), 8) * fMeL_z1DIoxw) + (nzTpIcepk0o8('\060' + chr(111) + '\062' + '\065', 20067 - 20059) * CKQNB3xZKUK0 * CKQNB3xZKUK0 / nzTpIcepk0o8('\x30' + chr(0b111110 + 0o61) + chr(0b110010) + '\x30', 0o10) - nzTpIcepk0o8('\060' + chr(0b1101111) + '\x36' + chr(0b110111), 8) * CKQNB3xZKUK0 * CKQNB3xZKUK0 * CKQNB3xZKUK0 * CKQNB3xZKUK0 / nzTpIcepk0o8(chr(48) + chr(232 - 121) + chr(2195 - 2143) + chr(0b1111 + 0o41), 8)) * TMleLVztqSLZ(nzTpIcepk0o8(chr(48) + '\157' + chr(0b110100), 8) * fMeL_z1DIoxw) + nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(50) + chr(465 - 410), 0b1000) * CKQNB3xZKUK0 * CKQNB3xZKUK0 * CKQNB3xZKUK0 / nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b100 + 0o153) + chr(0b1000 + 0o51) + chr(2604 - 2552) + chr(48), 0b1000) * TMleLVztqSLZ(nzTpIcepk0o8(chr(0b110000) + '\157' + '\x36', 8) * fMeL_z1DIoxw) SaHxtpAFHRoa = sDVO5zpHoxlZ(juZdMeYFrEZD) d1u9wxzLWWm0 = SVfYwQaP38MC(AQ9ceR9AaoT1, fkzrQlJFiMyY(nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(0b110001), 8) - kPsEjncL8PdO * TMleLVztqSLZ(juZdMeYFrEZD) * TMleLVztqSLZ(juZdMeYFrEZD))) ii7EwBizdUCP = AiOJfSmbFV0S(juZdMeYFrEZD) * AiOJfSmbFV0S(juZdMeYFrEZD) UzOnO3JJa97h = Uj6fgiwJHXu5 * mLriLohwQ9NU(juZdMeYFrEZD) * mLriLohwQ9NU(juZdMeYFrEZD) GKn5DCKIppoD = AQ9ceR9AaoT1 * (nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8) - kPsEjncL8PdO) / JEroPXRTriYU(nzTpIcepk0o8(chr(0b110000) + chr(10429 - 10318) + chr(49), 8) - kPsEjncL8PdO * TMleLVztqSLZ(juZdMeYFrEZD) * TMleLVztqSLZ(juZdMeYFrEZD), 1.5) hOjrMKpaybfC = SVfYwQaP38MC(bI5jsQ9OkQtj, d1u9wxzLWWm0 * IXXLfaGd3hJ0) SukGkD0_zubM = juZdMeYFrEZD - d1u9wxzLWWm0 * AiOJfSmbFV0S(juZdMeYFrEZD) / GKn5DCKIppoD * (hOjrMKpaybfC * hOjrMKpaybfC / nzTpIcepk0o8('\x30' + chr(0b1010111 + 0o30) + chr(50), 8) - (nzTpIcepk0o8('\060' + '\x6f' + chr(0b110 + 0o57), 8) + nzTpIcepk0o8(chr(1131 - 1083) + chr(0b1101111) + '\063', 8) * ii7EwBizdUCP + nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1010011 + 0o34) + chr(0b110001) + chr(50), 8) * UzOnO3JJa97h - nzTpIcepk0o8('\x30' + '\157' + '\x34', 8) * UzOnO3JJa97h * UzOnO3JJa97h - nzTpIcepk0o8(chr(2183 - 2135) + '\x6f' + '\061' + chr(0b11001 + 0o30), 26726 - 26718) * Uj6fgiwJHXu5) * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC / nzTpIcepk0o8('\060' + chr(8669 - 8558) + chr(0b110011) + chr(0b11110 + 0o22), 39251 - 39243) + (nzTpIcepk0o8(chr(0b110000) + '\157' + chr(55) + '\065', ord("\x08")) + nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\063' + chr(50), 38658 - 38650) * ii7EwBizdUCP + nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(52) + chr(53) + chr(1145 - 1095), 0b1000) * UzOnO3JJa97h + nzTpIcepk0o8(chr(1814 - 1766) + '\x6f' + '\065' + chr(53), 0b1000) * ii7EwBizdUCP * ii7EwBizdUCP - nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(493 - 442) + chr(0b110111) + '\x34', ord("\x08")) * Uj6fgiwJHXu5 - nzTpIcepk0o8('\060' + chr(0b1000010 + 0o55) + chr(0b101111 + 0o4), 8) * UzOnO3JJa97h * UzOnO3JJa97h) * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC / nzTpIcepk0o8(chr(48) + chr(0b110101 + 0o72) + chr(0b110001) + '\x33' + chr(937 - 887) + chr(0b110000), 0b1000)) SukGkD0_zubM = sDVO5zpHoxlZ(SukGkD0_zubM) oSGvzV_aEg1t = SVfYwQaP38MC(hOjrMKpaybfC - (nzTpIcepk0o8('\x30' + chr(0b1010100 + 0o33) + '\061', 8) + nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101000 + 0o12), 8) * ii7EwBizdUCP + UzOnO3JJa97h) * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC / nzTpIcepk0o8(chr(48) + '\x6f' + chr(54), 8) + (nzTpIcepk0o8('\060' + chr(111) + chr(53), 8) - nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101000 + 0o7) + chr(2093 - 2043), 8) * UzOnO3JJa97h + nzTpIcepk0o8(chr(48) + chr(0b101110 + 0o101) + chr(0b110011) + '\x34', 10120 - 10112) * ii7EwBizdUCP - nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51), 8) * UzOnO3JJa97h * UzOnO3JJa97h + nzTpIcepk0o8('\060' + chr(9509 - 9398) + chr(595 - 546) + chr(48), 1595 - 1587) * Uj6fgiwJHXu5 + nzTpIcepk0o8(chr(48) + chr(0b100110 + 0o111) + chr(51) + chr(0b110000), 8) * ii7EwBizdUCP * ii7EwBizdUCP) * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC * hOjrMKpaybfC / nzTpIcepk0o8(chr(48) + chr(0b101100 + 0o103) + chr(0b110001) + chr(55) + chr(0b110000), 32086 - 32078), mLriLohwQ9NU(juZdMeYFrEZD)) oSGvzV_aEg1t = _CeBPSKe61en + sDVO5zpHoxlZ(oSGvzV_aEg1t) return (oSGvzV_aEg1t, SukGkD0_zubM)
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.InitUI
def InitUI(self): """ Make main user interface """ bSizer0 = wx.StaticBoxSizer( wx.StaticBox(self.panel, wx.ID_ANY, "Choose MagIC project directory", name='bSizer0'), wx.HORIZONTAL ) self.dir_path = wx.TextCtrl(self.panel, id=-1, size=(600, 25), style=wx.TE_READONLY) self.dir_path.SetValue(self.WD) self.change_dir_button = buttons.GenButton( self.panel, id=-1, label="change directory", size=(-1, -1), name='change_dir_btn' ) self.change_dir_button.SetBackgroundColour("#F8F8FF") self.change_dir_button.InitColours() self.Bind(wx.EVT_BUTTON, self.on_change_dir_button, self.change_dir_button) bSizer0.Add(self.change_dir_button, wx.ALIGN_LEFT) bSizer0.AddSpacer(40) bSizer0.Add(self.dir_path, wx.ALIGN_CENTER_VERTICAL) self.bSizer_msg = wx.StaticBoxSizer(wx.StaticBox( self.panel, wx.ID_ANY, "Message", name='bsizer_msg'), wx.HORIZONTAL) self.message = wx.StaticText(self.panel, -1, label="Some text will be here", name='messages') self.bSizer_msg.Add(self.message) #---sizer 1 ---- bSizer1 = wx.StaticBoxSizer(wx.StaticBox( self.panel, wx.ID_ANY, "Add information to the data model", name='bSizer1'), wx.HORIZONTAL) text = "1. add location data" self.btn1 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='locations_btn') self.btn1.SetBackgroundColour("#FDC68A") self.btn1.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn1) text = "2. add site data" self.btn2 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='sites_btn') self.btn2.SetBackgroundColour("#6ECFF6") self.btn2.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn2) text = "3. add sample data" self.btn3 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='samples_btn') self.btn3.SetBackgroundColour("#C4DF9B") self.btn3.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn3) text = "4. add specimen data" self.btn4 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='specimens_btn') self.btn4.SetBackgroundColour("#FDC68A") self.btn4.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn4) text = "5. add age data" self.btn5 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='ages_btn') self.btn5.SetBackgroundColour("#6ECFF6") self.btn5.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn5) text = "6. add measurements data" self.btn6 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='measurements_btn') self.btn6.SetBackgroundColour("#C4DF9B") self.btn6.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn6) bsizer1a = wx.BoxSizer(wx.VERTICAL) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn1, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn2, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn3, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bSizer1.Add(bsizer1a, wx.ALIGN_CENTER, wx.EXPAND) bSizer1.AddSpacer(20) #bSizer1.Add(OR, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) bsizer1b = wx.BoxSizer(wx.VERTICAL) #__init__(self, parent, id, label, pos, size, style, validator, name bsizer1b.Add(self.btn4, flag=wx.ALIGN_CENTER|wx.BOTTOM, border=20) bsizer1b.Add(self.btn5, 0, flag=wx.ALIGN_CENTER|wx.BOTTOM, border=20) bsizer1b.Add(self.btn6, 0, wx.ALIGN_CENTER, 0) bSizer1.Add(bsizer1b, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) #---sizer 2 ---- self.bSizer2 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Create file for upload to MagIC database", name='bSizer2'), wx.HORIZONTAL) text = "prepare upload txt file" self.btn_upload = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='upload_btn') self.btn_upload.SetBackgroundColour("#C4DF9B") self.btn_upload.InitColours() self.Bind(wx.EVT_BUTTON, self.on_upload_file, self.btn_upload) self.bSizer2.AddSpacer(20) self.bSizer2.Add(self.btn_upload, 0, wx.ALIGN_CENTER, 0) self.bSizer2.AddSpacer(20) #self.Bind(wx.EVT_BUTTON, self.on_btn_upload, self.btn_upload) #---arrange sizers ---- self.hbox = wx.BoxSizer(wx.HORIZONTAL) vbox = wx.BoxSizer(wx.VERTICAL) vbox.AddSpacer(5) #vbox.Add(self.logo,0,wx.ALIGN_CENTER,0) vbox.AddSpacer(5) vbox.Add(bSizer0, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) #vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0) #vbox.AddSpacer(10) vbox.Add(self.bSizer_msg, 0, wx.ALIGN_CENTER, 0) self.bSizer_msg.ShowItems(False) vbox.Add(bSizer1, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.AddSpacer(10) self.hbox.AddSpacer(10) vbox.Add(self.bSizer2, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) self.hbox.Add(vbox, 0, wx.ALIGN_CENTER, 0) self.hbox.AddSpacer(5) self.panel.SetSizer(self.hbox) self.hbox.Fit(self) # do menu print("-I- Initializing menu") menubar = MagICMenu(self) self.SetMenuBar(menubar) self.menubar = menubar
python
def InitUI(self): """ Make main user interface """ bSizer0 = wx.StaticBoxSizer( wx.StaticBox(self.panel, wx.ID_ANY, "Choose MagIC project directory", name='bSizer0'), wx.HORIZONTAL ) self.dir_path = wx.TextCtrl(self.panel, id=-1, size=(600, 25), style=wx.TE_READONLY) self.dir_path.SetValue(self.WD) self.change_dir_button = buttons.GenButton( self.panel, id=-1, label="change directory", size=(-1, -1), name='change_dir_btn' ) self.change_dir_button.SetBackgroundColour("#F8F8FF") self.change_dir_button.InitColours() self.Bind(wx.EVT_BUTTON, self.on_change_dir_button, self.change_dir_button) bSizer0.Add(self.change_dir_button, wx.ALIGN_LEFT) bSizer0.AddSpacer(40) bSizer0.Add(self.dir_path, wx.ALIGN_CENTER_VERTICAL) self.bSizer_msg = wx.StaticBoxSizer(wx.StaticBox( self.panel, wx.ID_ANY, "Message", name='bsizer_msg'), wx.HORIZONTAL) self.message = wx.StaticText(self.panel, -1, label="Some text will be here", name='messages') self.bSizer_msg.Add(self.message) #---sizer 1 ---- bSizer1 = wx.StaticBoxSizer(wx.StaticBox( self.panel, wx.ID_ANY, "Add information to the data model", name='bSizer1'), wx.HORIZONTAL) text = "1. add location data" self.btn1 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='locations_btn') self.btn1.SetBackgroundColour("#FDC68A") self.btn1.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn1) text = "2. add site data" self.btn2 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='sites_btn') self.btn2.SetBackgroundColour("#6ECFF6") self.btn2.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn2) text = "3. add sample data" self.btn3 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='samples_btn') self.btn3.SetBackgroundColour("#C4DF9B") self.btn3.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn3) text = "4. add specimen data" self.btn4 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='specimens_btn') self.btn4.SetBackgroundColour("#FDC68A") self.btn4.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn4) text = "5. add age data" self.btn5 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='ages_btn') self.btn5.SetBackgroundColour("#6ECFF6") self.btn5.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn5) text = "6. add measurements data" self.btn6 = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='measurements_btn') self.btn6.SetBackgroundColour("#C4DF9B") self.btn6.InitColours() self.Bind(wx.EVT_BUTTON, self.make_grid_frame, self.btn6) bsizer1a = wx.BoxSizer(wx.VERTICAL) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn1, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn2, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bsizer1a.Add(self.btn3, wx.ALIGN_TOP) bsizer1a.AddSpacer(20) bSizer1.Add(bsizer1a, wx.ALIGN_CENTER, wx.EXPAND) bSizer1.AddSpacer(20) #bSizer1.Add(OR, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) bsizer1b = wx.BoxSizer(wx.VERTICAL) #__init__(self, parent, id, label, pos, size, style, validator, name bsizer1b.Add(self.btn4, flag=wx.ALIGN_CENTER|wx.BOTTOM, border=20) bsizer1b.Add(self.btn5, 0, flag=wx.ALIGN_CENTER|wx.BOTTOM, border=20) bsizer1b.Add(self.btn6, 0, wx.ALIGN_CENTER, 0) bSizer1.Add(bsizer1b, 0, wx.ALIGN_CENTER, 0) bSizer1.AddSpacer(20) #---sizer 2 ---- self.bSizer2 = wx.StaticBoxSizer(wx.StaticBox(self.panel, wx.ID_ANY, "Create file for upload to MagIC database", name='bSizer2'), wx.HORIZONTAL) text = "prepare upload txt file" self.btn_upload = buttons.GenButton(self.panel, id=-1, label=text, size=(300, 50), name='upload_btn') self.btn_upload.SetBackgroundColour("#C4DF9B") self.btn_upload.InitColours() self.Bind(wx.EVT_BUTTON, self.on_upload_file, self.btn_upload) self.bSizer2.AddSpacer(20) self.bSizer2.Add(self.btn_upload, 0, wx.ALIGN_CENTER, 0) self.bSizer2.AddSpacer(20) #self.Bind(wx.EVT_BUTTON, self.on_btn_upload, self.btn_upload) #---arrange sizers ---- self.hbox = wx.BoxSizer(wx.HORIZONTAL) vbox = wx.BoxSizer(wx.VERTICAL) vbox.AddSpacer(5) #vbox.Add(self.logo,0,wx.ALIGN_CENTER,0) vbox.AddSpacer(5) vbox.Add(bSizer0, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) #vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0) #vbox.AddSpacer(10) vbox.Add(self.bSizer_msg, 0, wx.ALIGN_CENTER, 0) self.bSizer_msg.ShowItems(False) vbox.Add(bSizer1, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) vbox.AddSpacer(10) self.hbox.AddSpacer(10) vbox.Add(self.bSizer2, 0, wx.ALIGN_CENTER, 0) vbox.AddSpacer(10) self.hbox.Add(vbox, 0, wx.ALIGN_CENTER, 0) self.hbox.AddSpacer(5) self.panel.SetSizer(self.hbox) self.hbox.Fit(self) # do menu print("-I- Initializing menu") menubar = MagICMenu(self) self.SetMenuBar(menubar) self.menubar = menubar
[ "def", "InitUI", "(", "self", ")", ":", "bSizer0", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Choose MagIC project directory\"", ",", "name", "=", "'bSizer0'", ")", ",", "wx", ".", "HORIZONTAL", ")", "self", ".", "dir_path", "=", "wx", ".", "TextCtrl", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "size", "=", "(", "600", ",", "25", ")", ",", "style", "=", "wx", ".", "TE_READONLY", ")", "self", ".", "dir_path", ".", "SetValue", "(", "self", ".", "WD", ")", "self", ".", "change_dir_button", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "\"change directory\"", ",", "size", "=", "(", "-", "1", ",", "-", "1", ")", ",", "name", "=", "'change_dir_btn'", ")", "self", ".", "change_dir_button", ".", "SetBackgroundColour", "(", "\"#F8F8FF\"", ")", "self", ".", "change_dir_button", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_change_dir_button", ",", "self", ".", "change_dir_button", ")", "bSizer0", ".", "Add", "(", "self", ".", "change_dir_button", ",", "wx", ".", "ALIGN_LEFT", ")", "bSizer0", ".", "AddSpacer", "(", "40", ")", "bSizer0", ".", "Add", "(", "self", ".", "dir_path", ",", "wx", ".", "ALIGN_CENTER_VERTICAL", ")", "self", ".", "bSizer_msg", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Message\"", ",", "name", "=", "'bsizer_msg'", ")", ",", "wx", ".", "HORIZONTAL", ")", "self", ".", "message", "=", "wx", ".", "StaticText", "(", "self", ".", "panel", ",", "-", "1", ",", "label", "=", "\"Some text will be here\"", ",", "name", "=", "'messages'", ")", "self", ".", "bSizer_msg", ".", "Add", "(", "self", ".", "message", ")", "#---sizer 1 ----", "bSizer1", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Add information to the data model\"", ",", "name", "=", "'bSizer1'", ")", ",", "wx", ".", "HORIZONTAL", ")", "text", "=", "\"1. add location data\"", "self", ".", "btn1", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'locations_btn'", ")", "self", ".", "btn1", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn1", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn1", ")", "text", "=", "\"2. add site data\"", "self", ".", "btn2", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'sites_btn'", ")", "self", ".", "btn2", ".", "SetBackgroundColour", "(", "\"#6ECFF6\"", ")", "self", ".", "btn2", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn2", ")", "text", "=", "\"3. add sample data\"", "self", ".", "btn3", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'samples_btn'", ")", "self", ".", "btn3", ".", "SetBackgroundColour", "(", "\"#C4DF9B\"", ")", "self", ".", "btn3", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn3", ")", "text", "=", "\"4. add specimen data\"", "self", ".", "btn4", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'specimens_btn'", ")", "self", ".", "btn4", ".", "SetBackgroundColour", "(", "\"#FDC68A\"", ")", "self", ".", "btn4", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn4", ")", "text", "=", "\"5. add age data\"", "self", ".", "btn5", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'ages_btn'", ")", "self", ".", "btn5", ".", "SetBackgroundColour", "(", "\"#6ECFF6\"", ")", "self", ".", "btn5", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn5", ")", "text", "=", "\"6. add measurements data\"", "self", ".", "btn6", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'measurements_btn'", ")", "self", ".", "btn6", ".", "SetBackgroundColour", "(", "\"#C4DF9B\"", ")", "self", ".", "btn6", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "make_grid_frame", ",", "self", ".", "btn6", ")", "bsizer1a", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "bsizer1a", ".", "AddSpacer", "(", "20", ")", "bsizer1a", ".", "Add", "(", "self", ".", "btn1", ",", "wx", ".", "ALIGN_TOP", ")", "bsizer1a", ".", "AddSpacer", "(", "20", ")", "bsizer1a", ".", "Add", "(", "self", ".", "btn2", ",", "wx", ".", "ALIGN_TOP", ")", "bsizer1a", ".", "AddSpacer", "(", "20", ")", "bsizer1a", ".", "Add", "(", "self", ".", "btn3", ",", "wx", ".", "ALIGN_TOP", ")", "bsizer1a", ".", "AddSpacer", "(", "20", ")", "bSizer1", ".", "Add", "(", "bsizer1a", ",", "wx", ".", "ALIGN_CENTER", ",", "wx", ".", "EXPAND", ")", "bSizer1", ".", "AddSpacer", "(", "20", ")", "#bSizer1.Add(OR, 0, wx.ALIGN_CENTER, 0)", "bSizer1", ".", "AddSpacer", "(", "20", ")", "bsizer1b", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "#__init__(self, parent, id, label, pos, size, style, validator, name", "bsizer1b", ".", "Add", "(", "self", ".", "btn4", ",", "flag", "=", "wx", ".", "ALIGN_CENTER", "|", "wx", ".", "BOTTOM", ",", "border", "=", "20", ")", "bsizer1b", ".", "Add", "(", "self", ".", "btn5", ",", "0", ",", "flag", "=", "wx", ".", "ALIGN_CENTER", "|", "wx", ".", "BOTTOM", ",", "border", "=", "20", ")", "bsizer1b", ".", "Add", "(", "self", ".", "btn6", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer1", ".", "Add", "(", "bsizer1b", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "bSizer1", ".", "AddSpacer", "(", "20", ")", "#---sizer 2 ----", "self", ".", "bSizer2", "=", "wx", ".", "StaticBoxSizer", "(", "wx", ".", "StaticBox", "(", "self", ".", "panel", ",", "wx", ".", "ID_ANY", ",", "\"Create file for upload to MagIC database\"", ",", "name", "=", "'bSizer2'", ")", ",", "wx", ".", "HORIZONTAL", ")", "text", "=", "\"prepare upload txt file\"", "self", ".", "btn_upload", "=", "buttons", ".", "GenButton", "(", "self", ".", "panel", ",", "id", "=", "-", "1", ",", "label", "=", "text", ",", "size", "=", "(", "300", ",", "50", ")", ",", "name", "=", "'upload_btn'", ")", "self", ".", "btn_upload", ".", "SetBackgroundColour", "(", "\"#C4DF9B\"", ")", "self", ".", "btn_upload", ".", "InitColours", "(", ")", "self", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "on_upload_file", ",", "self", ".", "btn_upload", ")", "self", ".", "bSizer2", ".", "AddSpacer", "(", "20", ")", "self", ".", "bSizer2", ".", "Add", "(", "self", ".", "btn_upload", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "self", ".", "bSizer2", ".", "AddSpacer", "(", "20", ")", "#self.Bind(wx.EVT_BUTTON, self.on_btn_upload, self.btn_upload)", "#---arrange sizers ----", "self", ".", "hbox", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "HORIZONTAL", ")", "vbox", "=", "wx", ".", "BoxSizer", "(", "wx", ".", "VERTICAL", ")", "vbox", ".", "AddSpacer", "(", "5", ")", "#vbox.Add(self.logo,0,wx.ALIGN_CENTER,0)", "vbox", ".", "AddSpacer", "(", "5", ")", "vbox", ".", "Add", "(", "bSizer0", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "#vbox.Add(bSizer0_1, 0, wx.ALIGN_CENTER, 0)", "#vbox.AddSpacer(10)", "vbox", ".", "Add", "(", "self", ".", "bSizer_msg", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "self", ".", "bSizer_msg", ".", "ShowItems", "(", "False", ")", "vbox", ".", "Add", "(", "bSizer1", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "self", ".", "hbox", ".", "AddSpacer", "(", "10", ")", "vbox", ".", "Add", "(", "self", ".", "bSizer2", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "vbox", ".", "AddSpacer", "(", "10", ")", "self", ".", "hbox", ".", "Add", "(", "vbox", ",", "0", ",", "wx", ".", "ALIGN_CENTER", ",", "0", ")", "self", ".", "hbox", ".", "AddSpacer", "(", "5", ")", "self", ".", "panel", ".", "SetSizer", "(", "self", ".", "hbox", ")", "self", ".", "hbox", ".", "Fit", "(", "self", ")", "# do menu", "print", "(", "\"-I- Initializing menu\"", ")", "menubar", "=", "MagICMenu", "(", "self", ")", "self", ".", "SetMenuBar", "(", "menubar", ")", "self", ".", "menubar", "=", "menubar" ]
Make main user interface
[ "Make", "main", "user", "interface" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L89-L235
train
Initialize the main user interface.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2196 - 2148) + chr(0b110101 + 0o72) + '\x33' + '\060' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(713 - 663) + chr(0b110101) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b110011) + '\061' + '\x30', 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(50) + chr(2358 - 2308) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x30' + '\064', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b1101 + 0o51) + chr(2044 - 1992), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b10001 + 0o136) + '\x34' + '\062', 26049 - 26041), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b100111 + 0o14) + chr(0b1100 + 0o45), 0b1000), nzTpIcepk0o8(chr(48) + chr(968 - 857) + chr(49) + chr(0b11101 + 0o27) + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(10367 - 10256) + chr(49) + chr(0b110111) + chr(807 - 755), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(67 - 17) + '\062', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\x35' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + '\063' + chr(0b110000) + chr(547 - 499), 6198 - 6190), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(51) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\062' + chr(963 - 915), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + '\x32' + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1647 - 1597) + chr(49) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b10101 + 0o40), 0o10), nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + chr(0b110010) + chr(51) + chr(844 - 792), 9052 - 9044), nzTpIcepk0o8('\x30' + chr(0b1010010 + 0o35) + chr(0b1011 + 0o50) + '\x32', 59627 - 59619), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1 + 0o62) + '\x37' + chr(51), 0b1000), nzTpIcepk0o8(chr(1367 - 1319) + chr(0b1101111) + '\x36' + chr(0b110101), 10170 - 10162), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(0b110011) + chr(0b10110 + 0o40) + chr(48), 32296 - 32288), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b101101 + 0o12) + '\067', 36128 - 36120), nzTpIcepk0o8(chr(177 - 129) + '\x6f' + '\x36' + chr(49), 7916 - 7908), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(9331 - 9220) + '\x33' + chr(0b11001 + 0o36), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(1400 - 1352) + '\157' + chr(49) + chr(48) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(176 - 121) + chr(0b11011 + 0o32), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(0b100101 + 0o20) + chr(0b11011 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(592 - 544) + '\x6f' + '\062' + chr(0b11000 + 0o32), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b11110 + 0o24) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + chr(854 - 805) + '\x34' + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(0b100110 + 0o111) + chr(0b110001) + chr(0b1010 + 0o51) + chr(0b110011), 8687 - 8679), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(4799 - 4688) + '\x37' + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(55) + '\066', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + '\066' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(54) + '\x32', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b110010 + 0o75) + chr(247 - 194) + chr(0b110000), 1424 - 1416)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xeb'), chr(3691 - 3591) + chr(6035 - 5934) + '\143' + '\x6f' + '\x64' + chr(7731 - 7630))('\165' + chr(6297 - 6181) + '\146' + chr(0b11111 + 0o16) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def RkmL_XCqAVHH(hXMPsSrOQzbh): XaTzYdbUQt2h = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\x86\xc7\xa7\xfa\xb7\x91\x02S8\x065Q\xcc\xb0,\xbfw4\xe9q\xbc~\x92G\x95\x9cEp\\;'), chr(6293 - 6193) + chr(1819 - 1718) + chr(0b1010 + 0o131) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + '\x74' + '\x66' + '\x2d' + '\x38'), name=roI3spqORKae(ES5oEprVxulp(b'\xa7\xfc\xa1\xef\xa1\x86\x12'), chr(100) + chr(2889 - 2788) + '\143' + chr(5133 - 5022) + chr(100) + '\145')(chr(117) + chr(3843 - 3727) + chr(0b1010011 + 0o23) + chr(0b101101) + chr(418 - 362))), FHAk5xm055cs.HORIZONTAL) hXMPsSrOQzbh.qjksZ7GK0xkJ = FHAk5xm055cs.TextCtrl(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8('\x30' + chr(111) + chr(0b1 + 0o60), ord("\x08")), size=(nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(0b1 + 0o60) + '\x31' + chr(51) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(849 - 798) + chr(0b110001), 40439 - 40431)), style=FHAk5xm055cs.TE_READONLY) roI3spqORKae(hXMPsSrOQzbh.dir_path, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xc3\xa5\x98W{'), '\x64' + chr(0b1100101) + '\x63' + chr(0b11000 + 0o127) + chr(0b101000 + 0o74) + chr(101))('\x75' + chr(116) + chr(102) + '\x2d' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x82\xff\xf9\xef\x81\xa7JZ "\x04^'), '\x64' + '\145' + chr(0b1000100 + 0o37) + chr(111) + '\144' + chr(0b1011000 + 0o15))(chr(117) + chr(4544 - 4428) + '\x66' + '\x2d' + chr(0b111000)))) hXMPsSrOQzbh.iHb1mkvABu8n = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + chr(0b100010 + 0o115) + '\x31', 8), label=roI3spqORKae(ES5oEprVxulp(b'\xa6\xc7\xa9\xfb\xa3\x91\x02z0\x13\x19q\x98\xaf,\xa9'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(1369 - 1268))('\x75' + chr(0b1110100) + chr(0b10011 + 0o123) + '\x2d' + '\x38'), size=(-nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(5495 - 5384) + chr(0b11110 + 0o23), 8), -nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + '\061', 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xa6\xc7\xa9\xfb\xa3\x91}z0\x13#p\x98\xae'), chr(100) + chr(4929 - 4828) + chr(99) + chr(0b11011 + 0o124) + chr(822 - 722) + chr(0b11101 + 0o110))(chr(7568 - 7451) + chr(11788 - 11672) + chr(6614 - 6512) + chr(0b101010 + 0o3) + '\x38')) roI3spqORKae(hXMPsSrOQzbh.change_dir_button, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(0b1100100) + chr(4109 - 4008) + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1010110 + 0o37) + '\164' + chr(0b1100110) + chr(0b101101) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xe9\xf0\xd3\xfc\xb2d'), '\144' + '\145' + '\143' + '\157' + chr(0b1011000 + 0o14) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.change_dir_button, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), chr(100) + '\145' + chr(0b11100 + 0o107) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + chr(12574 - 12458) + '\x66' + chr(45) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(100) + '\x65' + chr(99) + chr(2207 - 2096) + chr(100) + '\145')(chr(11494 - 11377) + chr(116) + '\x66' + '\x2d' + chr(0b101 + 0o63)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), chr(0b1100100) + '\145' + '\143' + chr(111) + '\144' + chr(8388 - 8287))('\x75' + chr(0b111010 + 0o72) + '\146' + '\x2d' + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xaa\xc1\x97\xf6\xac\x95Ly<>\x18{\x9e\x9f<\xa5i%\xe5k'), chr(0b1100100) + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b10101 + 0o120))('\165' + '\164' + '\146' + '\x2d' + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xac\xe7\xaa\xa4\xa9\x9fT_\x1b\x14D|'), chr(100) + chr(8110 - 8009) + '\x63' + chr(0b1101111) + chr(3516 - 3416) + '\145')('\165' + '\x74' + chr(0b1000 + 0o136) + '\x2d' + '\x38'))) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b1100100) + chr(0b1100101) + chr(0b1000110 + 0o35) + '\157' + chr(7660 - 7560) + chr(101))(chr(0b1100000 + 0o25) + chr(0b1001111 + 0o45) + '\146' + chr(50 - 5) + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xac\xe7\xaa\xa4\xa9\x9fT_\x1b\x14D|'), '\144' + chr(101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(0b1101101 + 0o7) + '\x66' + chr(45) + '\x38')), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xabn[\x1f5'), chr(5806 - 5706) + '\x65' + chr(0b1100011) + chr(0b1000010 + 0o55) + '\x64' + chr(0b1100010 + 0o3))(chr(5386 - 5269) + '\164' + '\x66' + chr(1584 - 1539) + chr(0b101011 + 0o15)))) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(100) + chr(9039 - 8938) + chr(3440 - 3341) + chr(0b1001001 + 0o46) + chr(100) + '\145')('\x75' + chr(7143 - 7027) + chr(0b11110 + 0o110) + chr(0b101101) + chr(56)))(nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(0b110101) + chr(1480 - 1432), 8)) roI3spqORKae(XaTzYdbUQt2h, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\144' + chr(0b111000 + 0o55))('\165' + '\164' + chr(102) + '\055' + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\xc5\xa3\xe6\x9e\xc3eUi\x19\x17X'), chr(0b1100100) + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(0b1101111) + '\x64' + '\145')(chr(117) + '\164' + chr(0b1011110 + 0o10) + chr(0b101101) + '\x38')), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@\xb3\x96\x1b\x82I\x18\xc9D\xd0'), chr(0b100110 + 0o76) + chr(0b1100101) + '\143' + chr(0b1010010 + 0o35) + chr(100) + chr(3942 - 3841))(chr(5057 - 4940) + chr(0b1110100) + '\x66' + chr(0b101010 + 0o3) + '\x38'))) hXMPsSrOQzbh.fraON8LKrbRl = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\x88\xca\xbb\xe6\xa5\x93G'), chr(3331 - 3231) + chr(101) + chr(0b1100011) + '\157' + '\x64' + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(56)), name=roI3spqORKae(ES5oEprVxulp(b'\xa7\xdc\xa1\xef\xa1\x86}s*\x06'), '\144' + '\145' + chr(6139 - 6040) + chr(111) + chr(0b1100100) + chr(101))(chr(9765 - 9648) + chr(0b111111 + 0o65) + chr(2187 - 2085) + '\x2d' + chr(56))), FHAk5xm055cs.HORIZONTAL) hXMPsSrOQzbh.FksNMH1w_ns6 = FHAk5xm055cs.StaticText(hXMPsSrOQzbh.panel, -nzTpIcepk0o8(chr(48) + chr(0b10011 + 0o134) + chr(0b11011 + 0o26), 8), label=roI3spqORKae(ES5oEprVxulp(b'\x96\xc0\xa5\xf0\xe4\x80Gf-A\x0b{\x80\xac~\xb2xq\xe2`\xee\x7f'), chr(100) + '\145' + chr(0b1000100 + 0o37) + '\x6f' + chr(0b1100100) + chr(2637 - 2536))(chr(117) + '\x74' + chr(102) + chr(0b101101) + chr(56)), name=roI3spqORKae(ES5oEprVxulp(b'\xa8\xca\xbb\xe6\xa5\x93Gm'), chr(0b1100100) + chr(0b1100101) + chr(0b1010111 + 0o14) + '\x6f' + '\x64' + chr(101))(chr(4086 - 3969) + chr(116) + chr(7244 - 7142) + '\x2d' + chr(0b101100 + 0o14))) roI3spqORKae(hXMPsSrOQzbh.bSizer_msg, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(100) + chr(3767 - 3666) + '\143' + chr(111) + '\x64' + chr(0b1011011 + 0o12))('\165' + '\x74' + '\x66' + chr(45) + chr(0b100100 + 0o24)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x83\xc4\xbb\xdb\x89\xbc\x13i\x06\x0f\x0f$'), chr(100) + chr(0b1100101 + 0o0) + '\x63' + chr(11254 - 11143) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(7892 - 7790) + chr(402 - 357) + chr(0b11100 + 0o34)))) pP0z61Wt_wOE = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xb5\xad\x9aDq+\x0c\x1df\x85\xaf0\xf0i>\xaaq\xf4\x7f\xdbQ\x91\x8bP?C-\x99\xcb~'), chr(0b1001101 + 0o27) + chr(0b1100101) + chr(0b1100011) + chr(0b1101001 + 0o6) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'), name=roI3spqORKae(ES5oEprVxulp(b'\xa7\xfc\xa1\xef\xa1\x86\x13'), '\144' + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(8359 - 8258))('\165' + chr(0b1110100) + chr(0b1011111 + 0o7) + '\055' + chr(587 - 531))), FHAk5xm055cs.HORIZONTAL) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf4\x81\xe8\xf4\xa0\x90\x02r6\x02\x1df\x85\xaf0\xf0y0\xfed'), chr(0b1100100) + chr(6712 - 6611) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(6060 - 5943) + chr(0b1110100) + '\x66' + chr(1224 - 1179) + chr(56)) hXMPsSrOQzbh.lnqVISeobKzS = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b11100 + 0o25), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + chr(53) + chr(0b101000 + 0o14), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + chr(0b101110 + 0o10) + chr(245 - 195), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xa9\xc0\xab\xf4\xb0\x9dMp*>\x1ef\x82'), chr(5703 - 5603) + chr(9007 - 8906) + chr(0b10100 + 0o117) + chr(111) + chr(0b1100100) + chr(101))(chr(5619 - 5502) + chr(0b1111 + 0o145) + '\146' + '\x2d' + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn1, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(0b11001 + 0o113) + chr(5086 - 4985))(chr(0b1110101) + chr(116) + '\x66' + chr(181 - 136) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xe9\x8c\xd6\xf2\xccc'), '\x64' + chr(0b1100101) + chr(0b111101 + 0o46) + chr(0b1101111) + chr(100) + chr(0b1100101 + 0o0))(chr(0b1001111 + 0o46) + '\164' + chr(102) + chr(960 - 915) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn1, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(8124 - 8024) + '\145')(chr(0b1010000 + 0o45) + chr(116) + chr(0b1100110) + '\x2d' + '\070'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(0b110000 + 0o64) + '\145' + '\143' + chr(111) + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(10101 - 9999) + chr(0b101101) + '\x38'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + chr(0b1001 + 0o134))(chr(0b1110101) + chr(0b1010011 + 0o41) + '\146' + chr(478 - 433) + chr(458 - 402))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), '\x64' + '\145' + chr(0b1100011) + chr(0b101100 + 0o103) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1010001 + 0o25) + chr(324 - 279) + '\x38')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa9\xc1\xb9\xc3\x8d\xa7Gq;*\x06A'), chr(0b1000 + 0o134) + chr(0b10 + 0o143) + '\x63' + '\157' + chr(2457 - 2357) + chr(0b1100101))('\x75' + '\x74' + '\146' + chr(1823 - 1778) + '\x38'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf7\x81\xe8\xf4\xa0\x90\x02m0\x15\x192\x88\xa1*\xb1'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(9023 - 8923) + chr(0b1100101))(chr(3656 - 3539) + chr(675 - 559) + chr(3106 - 3004) + chr(158 - 113) + chr(1359 - 1303)) hXMPsSrOQzbh.wdrfDv55hkzC = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(337 - 226) + chr(0b110011 + 0o1) + chr(537 - 484) + chr(52), 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + '\157' + chr(54) + '\062', 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xb6\xc6\xbc\xf0\xb7\xab@j7'), '\x64' + '\145' + chr(3855 - 3756) + '\x6f' + chr(0b110 + 0o136) + '\x65')(chr(0b1100101 + 0o20) + '\x74' + '\x66' + '\x2d' + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn2, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(0b1100100) + '\x65' + '\143' + chr(0b1100110 + 0o11) + '\x64' + chr(0b1100000 + 0o5))('\165' + chr(8719 - 8603) + chr(0b111010 + 0o54) + chr(45) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xe6\x99\x8d\xd6\x82\xb2\x14'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(8415 - 8315) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + chr(1658 - 1613) + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn2, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), chr(0b1001000 + 0o34) + chr(101) + chr(4823 - 4724) + chr(12013 - 11902) + '\x64' + chr(2077 - 1976))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(2908 - 2852)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(100) + chr(5250 - 5149) + chr(0b1100011) + chr(111) + '\x64' + '\x65')(chr(1683 - 1566) + chr(116) + '\x66' + '\055' + chr(56)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), chr(0b0 + 0o144) + chr(0b100000 + 0o105) + chr(0b101111 + 0o64) + chr(0b11011 + 0o124) + chr(100) + chr(7126 - 7025))(chr(0b10 + 0o163) + chr(4506 - 4390) + '\x66' + chr(0b101101) + '\x38')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), chr(100) + '\145' + '\143' + chr(0b1101111) + chr(0b11 + 0o141) + '\145')(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb2\xcb\xba\xf3\x80\x82\x17+1\n\x06Q'), chr(0b1100011 + 0o1) + chr(0b1100101) + chr(0b1100011) + chr(11689 - 11578) + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(9226 - 9124) + '\055' + chr(0b111000)))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf6\x81\xe8\xf4\xa0\x90\x02m8\x0c\x0c~\x89\xe0:\xb1i0'), '\144' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b111110 + 0o46) + chr(101))('\x75' + chr(10610 - 10494) + chr(0b1100110) + chr(96 - 51) + chr(56)) hXMPsSrOQzbh.Ppjs4U5BNyrf = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + '\x6f' + '\x31', 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110100) + '\065' + '\064', 8), nzTpIcepk0o8('\x30' + '\157' + '\066' + chr(0b110010), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xb6\xce\xa5\xe5\xa8\x91QA;\x15\x12'), chr(0b1001100 + 0o30) + chr(935 - 834) + chr(0b1100011) + chr(111) + chr(0b111101 + 0o47) + chr(101))('\x75' + chr(0b1110100) + '\146' + '\x2d' + '\x38')) roI3spqORKae(hXMPsSrOQzbh.btn3, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(0b1000001 + 0o43) + '\x65' + chr(99) + '\157' + chr(0b1000110 + 0o36) + chr(7840 - 7739))(chr(0b1110101) + '\164' + '\x66' + '\x2d' + chr(2502 - 2446)))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xec\xfc\xd1\x82\xcd`'), chr(0b110 + 0o136) + chr(0b1100000 + 0o5) + chr(99) + '\157' + '\144' + chr(0b1100101))('\165' + '\164' + chr(4619 - 4517) + chr(1732 - 1687) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn3, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), chr(0b1 + 0o143) + '\x65' + chr(0b1100011) + '\157' + chr(7749 - 7649) + chr(101))(chr(0b1110101) + chr(0b101101 + 0o107) + '\146' + '\x2d' + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(4866 - 4766) + '\145' + chr(0b1100011) + chr(111) + chr(0b1011101 + 0o7) + '\x65')(chr(0b1001010 + 0o53) + chr(0b1001101 + 0o47) + '\x66' + chr(45) + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), chr(0b1 + 0o143) + chr(2284 - 2183) + '\143' + '\x6f' + '\x64' + chr(0b1100011 + 0o2))(chr(4363 - 4246) + chr(12926 - 12810) + '\x66' + '\x2d' + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), chr(0b1100100) + chr(0b1001101 + 0o30) + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b1011010 + 0o33) + '\x74' + chr(411 - 309) + chr(45) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x95\xdf\xa2\xe6\xf0\xa1\x17\\\x17\x18\x0et'), chr(8231 - 8131) + chr(4031 - 3930) + chr(99) + chr(2683 - 2572) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1101 + 0o131) + chr(0b10101 + 0o30) + chr(0b100010 + 0o26)))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf1\x81\xe8\xf4\xa0\x90\x02m)\x04\x1f{\x81\xa50\xf0y0\xfed'), chr(295 - 195) + chr(101) + '\x63' + '\x6f' + chr(7859 - 7759) + '\145')(chr(0b1110101) + chr(12459 - 12343) + chr(6831 - 6729) + '\055' + chr(0b11011 + 0o35)) hXMPsSrOQzbh.dSLJUoXFA37C = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(48) + chr(111) + chr(293 - 244), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(118 - 70) + '\157' + '\x34' + '\065' + chr(0b110100), 8), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(0b110110) + chr(0b110010), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xb6\xdf\xad\xf6\xad\x99Gp*>\x1ef\x82'), chr(4268 - 4168) + chr(4983 - 4882) + chr(99) + chr(111) + chr(0b110100 + 0o60) + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b101110 + 0o12))) roI3spqORKae(hXMPsSrOQzbh.btn4, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(100) + '\x65' + '\x63' + chr(0b1100100 + 0o13) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1001100 + 0o50) + chr(102) + '\x2d' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xe9\x8c\xd6\xf2\xccc'), '\x64' + chr(0b1100101) + chr(7591 - 7492) + chr(0b1001101 + 0o42) + chr(0b1100100) + chr(3311 - 3210))('\165' + '\x74' + '\x66' + chr(0b101101 + 0o0) + chr(852 - 796))) roI3spqORKae(hXMPsSrOQzbh.btn4, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), '\x64' + '\x65' + chr(0b1100011) + chr(5969 - 5858) + chr(0b1 + 0o143) + chr(1060 - 959))(chr(117) + '\x74' + '\x66' + chr(0b10111 + 0o26) + '\x38'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(0b1100100) + '\145' + '\x63' + chr(111) + '\144' + chr(101))(chr(12988 - 12871) + chr(0b10000 + 0o144) + chr(0b1100110) + chr(0b101101) + '\070'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), chr(100) + '\x65' + '\143' + chr(111) + chr(100) + '\x65')(chr(828 - 711) + chr(116) + chr(0b1100110) + '\055' + chr(0b110011 + 0o5))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), '\144' + '\x65' + chr(9380 - 9281) + '\x6f' + chr(4199 - 4099) + '\x65')(chr(10131 - 10014) + chr(116) + chr(0b1100110) + chr(0b100110 + 0o7) + chr(0b1101 + 0o53))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa1\xfc\x84\xdf\x91\x9bzX\x18RKQ'), '\144' + '\x65' + chr(2000 - 1901) + chr(0b1011011 + 0o24) + '\x64' + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(1400 - 1355) + '\x38'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf0\x81\xe8\xf4\xa0\x90\x02\x7f>\x04\\v\x8d\xb4?'), '\144' + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) hXMPsSrOQzbh.w7PDao5mvdPl = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8('\x30' + chr(0b1011011 + 0o24) + '\x34' + chr(0b11 + 0o62) + chr(2689 - 2637), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x36' + chr(1897 - 1847), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xa4\xc8\xad\xe6\x9b\x96Vp'), chr(2546 - 2446) + '\145' + chr(0b1100011) + '\x6f' + '\144' + chr(101))(chr(0b10011 + 0o142) + chr(11945 - 11829) + '\146' + chr(595 - 550) + chr(0b1111 + 0o51))) roI3spqORKae(hXMPsSrOQzbh.btn5, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(3370 - 3270) + '\145' + '\x63' + chr(0b100010 + 0o115) + chr(100) + chr(0b1100101))(chr(0b1101000 + 0o15) + '\164' + chr(0b1100110) + chr(1189 - 1144) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xe6\x99\x8d\xd6\x82\xb2\x14'), '\144' + '\x65' + chr(99) + chr(0b1001001 + 0o46) + '\x64' + chr(2229 - 2128))(chr(117) + chr(116) + chr(1291 - 1189) + '\x2d' + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.btn5, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), chr(1889 - 1789) + chr(0b1100101) + '\x63' + '\x6f' + chr(676 - 576) + chr(8017 - 7916))(chr(117) + chr(6021 - 5905) + chr(861 - 759) + '\055' + chr(0b110 + 0o62)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(0b100000 + 0o104) + '\145' + chr(0b1100011) + chr(5428 - 5317) + '\144' + '\145')(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), chr(0b1100100) + chr(101) + '\x63' + '\x6f' + '\144' + '\x65')(chr(0b101101 + 0o110) + chr(0b1110100) + chr(102) + chr(45) + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), '\x64' + '\x65' + chr(0b1000001 + 0o42) + '\157' + '\144' + chr(0b1100101))(chr(0b1000001 + 0o64) + chr(0b1110100) + chr(0b1010001 + 0o25) + chr(0b10011 + 0o32) + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb2\x98\x98\xd1\xa5\x9b\x17s/\x05,~'), '\144' + chr(3483 - 3382) + chr(0b1001011 + 0o30) + chr(0b1101111) + '\x64' + chr(0b101111 + 0o66))(chr(11004 - 10887) + chr(0b1001011 + 0o51) + '\x66' + chr(0b101101) + '\070'))) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xf3\x81\xe8\xf4\xa0\x90\x02s<\x00\x0fg\x9e\xa53\xb5s%\xf9%\xf8{\x8fT'), chr(2689 - 2589) + chr(101) + chr(0b10110 + 0o115) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + chr(0b10110 + 0o120) + chr(45) + '\070') hXMPsSrOQzbh.cws9XEd7BUIB = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8('\x30' + chr(0b1010 + 0o145) + chr(49), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8(chr(48) + chr(0b1011111 + 0o20) + chr(0b110100) + chr(53) + chr(0b101001 + 0o13), 8), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(0b110010), 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xa8\xca\xa9\xe6\xb1\x86Gs<\x0f\x08a\xb3\xa2*\xbe'), '\x64' + chr(0b1100101) + chr(0b111111 + 0o44) + chr(111) + '\144' + chr(3496 - 3395))('\165' + chr(0b100001 + 0o123) + chr(102) + '\x2d' + chr(767 - 711))) roI3spqORKae(hXMPsSrOQzbh.btn6, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(0b1100100) + chr(5652 - 5551) + '\x63' + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1001 + 0o153) + '\146' + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xec\xfc\xd1\x82\xcd`'), '\144' + chr(101) + '\143' + '\157' + '\x64' + chr(0b10 + 0o143))(chr(117) + chr(116) + chr(0b1010110 + 0o20) + '\x2d' + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn6, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), '\x64' + chr(0b1011011 + 0o12) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(0b100111 + 0o6) + chr(56)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), chr(6171 - 6071) + chr(0b1100101) + chr(0b1100011) + chr(0b1111 + 0o140) + '\x64' + chr(0b110000 + 0o65))('\x75' + chr(0b1110100) + chr(102) + '\x2d' + chr(0b11001 + 0o37)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(237 - 137) + chr(962 - 861))(chr(0b1110101) + '\x74' + chr(102) + chr(0b110 + 0o47) + '\070')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa8\xce\xa3\xf0\x9b\x93Pw=>\x1a`\x8d\xad;'), chr(0b1100100) + chr(101) + '\x63' + chr(595 - 484) + '\144' + chr(101))(chr(6760 - 6643) + '\164' + '\146' + chr(45) + '\x38')), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa6\xd8\xbb\xac\x9c\xb1F)\x1b45P'), '\144' + chr(0b1100101) + '\x63' + chr(111) + chr(5665 - 5565) + chr(0b1101 + 0o130))('\x75' + chr(0b111111 + 0o65) + '\x66' + chr(0b10001 + 0o34) + '\070'))) J7e8Yu8O7dm_ = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\x64' + chr(101) + chr(0b111010 + 0o51) + chr(9095 - 8984) + '\144' + '\x65')(chr(117) + '\164' + '\146' + chr(0b1010 + 0o43) + '\070'))(nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(52), 0o10)) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(0b1111 + 0o126))('\165' + chr(7025 - 6909) + '\x66' + chr(1055 - 1010) + chr(938 - 882)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa9\xc1\xb9\xc3\x8d\xa7Gq;*\x06A'), chr(2240 - 2140) + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1000101 + 0o57) + chr(0b1100110) + '\x2d' + chr(1449 - 1393))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xabvQ\t'), chr(0b1001010 + 0o32) + chr(101) + chr(99) + chr(0b1100010 + 0o15) + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(56)))) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(3269 - 3169) + chr(0b1010011 + 0o22) + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(0b1001111 + 0o27) + '\055' + '\x38'))(nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(52), 8)) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), '\144' + chr(0b101001 + 0o74) + '\143' + '\157' + chr(2550 - 2450) + chr(1691 - 1590))(chr(0b110000 + 0o105) + '\x74' + '\x66' + chr(1247 - 1202) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb2\xcb\xba\xf3\x80\x82\x17+1\n\x06Q'), '\x64' + '\x65' + chr(99) + chr(0b11010 + 0o125) + chr(100) + chr(0b1100101))('\x75' + chr(9672 - 9556) + chr(102) + chr(0b101000 + 0o5) + chr(56))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xabvQ\t'), chr(100) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100 + 0o130) + chr(0b11011 + 0o112))(chr(11306 - 11189) + chr(0b1101 + 0o147) + chr(4305 - 4203) + chr(992 - 947) + chr(56)))) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\144' + chr(0b1100101) + chr(0b110101 + 0o56) + chr(0b100111 + 0o110) + chr(3743 - 3643) + chr(1307 - 1206))('\x75' + '\x74' + chr(0b10 + 0o144) + chr(897 - 852) + chr(0b111000)))(nzTpIcepk0o8(chr(0b110000) + chr(0b1000100 + 0o53) + chr(0b110010) + chr(1666 - 1614), 8)) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(100) + chr(0b1000110 + 0o37) + chr(0b10110 + 0o115) + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x95\xdf\xa2\xe6\xf0\xa1\x17\\\x17\x18\x0et'), chr(100) + chr(0b101110 + 0o67) + chr(99) + chr(2854 - 2743) + '\144' + '\x65')('\165' + chr(116) + '\146' + chr(0b11010 + 0o23) + chr(0b111000))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xabvQ\t'), chr(100) + chr(101) + '\143' + chr(2352 - 2241) + chr(100) + chr(0b110000 + 0o65))(chr(0b1110101) + chr(0b111001 + 0o73) + chr(0b110000 + 0o66) + chr(0b111 + 0o46) + chr(1945 - 1889)))) roI3spqORKae(J7e8Yu8O7dm_, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(3459 - 3359) + '\x65' + chr(0b100 + 0o137) + '\157' + '\144' + chr(0b101110 + 0o67))('\165' + chr(116) + chr(0b1100110) + chr(1406 - 1361) + chr(56)))(nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b101 + 0o55) + chr(0b110 + 0o56), 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(2012 - 1912) + chr(527 - 426) + chr(0b1100011) + '\x6f' + '\x64' + chr(2739 - 2638))('\165' + '\x74' + chr(1579 - 1477) + chr(0b101010 + 0o3) + '\070'))(J7e8Yu8O7dm_, roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(100) + '\x65' + chr(0b1100011) + '\157' + chr(4086 - 3986) + chr(0b1100010 + 0o3))(chr(0b1110101) + '\164' + chr(0b11 + 0o143) + chr(0b101101) + chr(1686 - 1630))), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf7\x98\xd4\x8a\xb0'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + chr(0b1010110 + 0o16) + chr(2200 - 2099))('\165' + chr(6717 - 6601) + chr(0b101100 + 0o72) + '\x2d' + chr(1984 - 1928)))) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b1100100) + chr(6854 - 6753) + '\x63' + '\x6f' + chr(6406 - 6306) + chr(0b110100 + 0o61))(chr(0b1110101) + chr(12989 - 12873) + chr(0b101010 + 0o74) + chr(0b101101) + chr(2408 - 2352)))(nzTpIcepk0o8(chr(1238 - 1190) + chr(0b1101111) + '\x32' + '\064', 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b100110 + 0o76) + '\145' + '\x63' + '\x6f' + '\144' + chr(7777 - 7676))('\x75' + chr(116) + chr(0b1100110) + chr(1475 - 1430) + '\x38'))(nzTpIcepk0o8(chr(175 - 127) + '\x6f' + chr(50) + chr(1636 - 1584), 8)) xPAxsQaXPPZS = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) roI3spqORKae(xPAxsQaXPPZS, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(7454 - 7354) + '\145' + chr(8080 - 7981) + chr(0b10100 + 0o133) + '\144' + '\x65')(chr(0b100110 + 0o117) + chr(2230 - 2114) + chr(0b11101 + 0o111) + '\x2d' + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa1\xfc\x84\xdf\x91\x9bzX\x18RKQ'), chr(0b101000 + 0o74) + chr(101) + chr(99) + chr(5564 - 5453) + '\x64' + '\145')(chr(0b111000 + 0o75) + '\x74' + chr(102) + chr(45) + '\x38')), flag=roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(100) + chr(101) + chr(0b1100011) + chr(0b110110 + 0o71) + chr(8386 - 8286) + chr(0b1010111 + 0o16))(chr(0b1110000 + 0o5) + chr(0b1110100) + chr(102) + '\055' + '\x38')) | roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x87\xe0\x9c\xc1\x8b\xb9'), chr(7371 - 7271) + chr(0b1010111 + 0o16) + chr(99) + '\157' + '\144' + chr(5563 - 5462))(chr(117) + chr(2474 - 2358) + chr(0b1011110 + 0o10) + chr(688 - 643) + chr(0b101010 + 0o16))), border=nzTpIcepk0o8(chr(48) + '\157' + chr(129 - 79) + chr(52), 8)) roI3spqORKae(xPAxsQaXPPZS, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100 + 0o0) + chr(0b1010100 + 0o21))('\165' + chr(0b1110100) + chr(6537 - 6435) + '\055' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb2\x98\x98\xd1\xa5\x9b\x17s/\x05,~'), '\144' + '\145' + chr(0b101010 + 0o71) + '\x6f' + '\144' + '\x65')(chr(117) + '\164' + chr(0b1010 + 0o134) + '\055' + chr(56))), nzTpIcepk0o8('\060' + '\x6f' + '\060', ord("\x08")), flag=roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(3726 - 3626) + chr(101) + chr(0b1100011) + chr(11323 - 11212) + chr(0b0 + 0o144) + chr(0b1000010 + 0o43))('\165' + chr(12645 - 12529) + chr(102) + chr(1311 - 1266) + chr(56))) | roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x87\xe0\x9c\xc1\x8b\xb9'), chr(0b1100100) + '\x65' + chr(0b1011100 + 0o7) + '\157' + '\x64' + chr(0b110111 + 0o56))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + chr(0b111000))), border=nzTpIcepk0o8(chr(48) + chr(10405 - 10294) + chr(0b100101 + 0o15) + '\x34', 8)) roI3spqORKae(xPAxsQaXPPZS, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b1100100) + '\x65' + chr(99) + chr(842 - 731) + chr(0b1000110 + 0o36) + '\x65')(chr(117) + chr(0b1100 + 0o150) + chr(0b10 + 0o144) + chr(0b10000 + 0o35) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa6\xd8\xbb\xac\x9c\xb1F)\x1b45P'), chr(0b110000 + 0o64) + chr(6559 - 6458) + chr(0b101110 + 0o65) + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + chr(6685 - 6569) + chr(0b11001 + 0o115) + '\055' + chr(1506 - 1450))), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(0b110000), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(0b11111 + 0o105) + chr(0b1100101) + chr(5905 - 5806) + chr(9244 - 9133) + chr(5411 - 5311) + chr(5496 - 5395))('\x75' + chr(116) + chr(102) + '\055' + '\070')), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(48), 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b1001110 + 0o26) + chr(0b10100 + 0o121) + '\x63' + chr(0b1101111) + '\144' + chr(0b101 + 0o140))(chr(8559 - 8442) + chr(1228 - 1112) + '\x66' + '\x2d' + '\x38'))(xPAxsQaXPPZS, nzTpIcepk0o8(chr(1311 - 1263) + chr(0b1101111) + '\x30', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(0b10010 + 0o122) + '\x65' + chr(99) + chr(3526 - 3415) + chr(100) + '\145')('\x75' + '\164' + '\146' + chr(1514 - 1469) + '\x38')), nzTpIcepk0o8('\x30' + '\157' + chr(0b10010 + 0o36), 8)) roI3spqORKae(pP0z61Wt_wOE, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\x64' + chr(0b101 + 0o140) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(10069 - 9968))(chr(0b1110101) + chr(0b1110100) + chr(3322 - 3220) + '\055' + chr(56)))(nzTpIcepk0o8(chr(48) + chr(2165 - 2054) + chr(0b110010) + '\064', 8)) hXMPsSrOQzbh.kpubFJSyKXFP = FHAk5xm055cs.StaticBoxSizer(FHAk5xm055cs.StaticBox(hXMPsSrOQzbh.panel, FHAk5xm055cs.ID_ANY, roI3spqORKae(ES5oEprVxulp(b'\x86\xdd\xad\xf4\xb0\x91\x02x0\r\x192\x8a\xaf,\xf0h!\xe6j\xfd~\xdbA\x9f\xdf|~I\x0b\xbe\x8ev\xf4\x14:_\x1fCW'), chr(0b1001111 + 0o25) + chr(0b100 + 0o141) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(1671 - 1554) + chr(0b1110100) + chr(102) + chr(45) + chr(56)), name=roI3spqORKae(ES5oEprVxulp(b'\xa7\xfc\xa1\xef\xa1\x86\x10'), '\x64' + '\145' + '\143' + chr(2777 - 2666) + '\144' + '\145')(chr(0b11010 + 0o133) + '\x74' + chr(10029 - 9927) + '\x2d' + chr(0b110110 + 0o2))), FHAk5xm055cs.HORIZONTAL) cpStk7cY1TJd = roI3spqORKae(ES5oEprVxulp(b'\xb5\xdd\xad\xe5\xa5\x86G>,\x11\x10}\x8d\xa4~\xa4e%\xaac\xf5v\x9e'), chr(0b1100100) + chr(0b101110 + 0o67) + '\x63' + chr(111) + chr(100) + chr(0b1010101 + 0o20))(chr(0b101001 + 0o114) + chr(116) + '\146' + chr(0b101101) + chr(0b111000)) hXMPsSrOQzbh.L5He1JWH3dvi = ZKC8afPhNI_8.GenButton(hXMPsSrOQzbh.panel, id=-nzTpIcepk0o8(chr(0b110000) + chr(7128 - 7017) + chr(0b110001), 8), label=cpStk7cY1TJd, size=(nzTpIcepk0o8('\060' + chr(3147 - 3036) + '\064' + chr(940 - 887) + chr(0b110100), 8), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + chr(0b110110) + '\x32', 8)), name=roI3spqORKae(ES5oEprVxulp(b'\xb0\xdf\xa4\xfa\xa5\x90}|-\x0f'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111 + 0o0) + chr(0b110000 + 0o64) + '\x65')(chr(10142 - 10025) + '\164' + chr(3266 - 3164) + '\x2d' + chr(56))) roI3spqORKae(hXMPsSrOQzbh.btn_upload, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd7\xa5\x97Iy+\x0e\t|\x88\x831\xbcr$\xf8'), chr(0b11010 + 0o112) + '\145' + chr(9007 - 8908) + chr(0b1000011 + 0o54) + chr(100) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b11 + 0o52) + chr(1537 - 1481)))(roI3spqORKae(ES5oEprVxulp(b'\xe6\xec\xfc\xd1\x82\xcd`'), chr(0b1100100) + chr(4740 - 4639) + chr(99) + '\157' + chr(2355 - 2255) + chr(6371 - 6270))(chr(0b1100111 + 0o16) + chr(7666 - 7550) + chr(0b1100110) + chr(1115 - 1070) + '\070')) roI3spqORKae(hXMPsSrOQzbh.btn_upload, roI3spqORKae(ES5oEprVxulp(b'\x8c\xc1\xa1\xe1\x87\x9bNq,\x13\x0f'), chr(0b101101 + 0o67) + chr(0b1110 + 0o127) + chr(99) + chr(0b1101111) + chr(1863 - 1763) + '\145')(chr(0b1010111 + 0o36) + chr(116) + '\146' + chr(0b11010 + 0o23) + '\x38'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x87\xc6\xa6\xf1'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b1011 + 0o55)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x80\xf9\x9c\xca\x86\xa1vJ\x16/'), '\x64' + chr(3200 - 3099) + chr(99) + chr(111) + '\x64' + '\x65')(chr(117) + '\164' + chr(0b1000111 + 0o37) + chr(45) + chr(56))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xaa\xc1\x97\xe0\xb4\x98M\x7f=>\x1a{\x80\xa5'), chr(0b1100100) + '\x65' + '\143' + chr(111) + '\x64' + chr(0b111000 + 0o55))('\x75' + '\x74' + '\146' + '\055' + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89\x9a\x80\xf0\xf5\xbeuVj\x05\n{'), '\x64' + chr(0b1100101) + chr(99) + chr(0b100010 + 0o115) + '\144' + chr(0b1100101))('\x75' + chr(6656 - 6540) + chr(102) + chr(0b101101) + chr(918 - 862)))) roI3spqORKae(hXMPsSrOQzbh.bSizer2, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b111001 + 0o53) + '\x65' + chr(4175 - 4076) + '\157' + '\x64' + '\145')(chr(2943 - 2826) + '\x74' + chr(0b1100110) + chr(0b1001 + 0o44) + '\070'))(nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + '\064', 8)) roI3spqORKae(hXMPsSrOQzbh.bSizer2, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), '\x64' + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(3090 - 2973) + chr(0b1110100) + chr(102) + chr(0b10010 + 0o33) + chr(0b111 + 0o61)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x89\x9a\x80\xf0\xf5\xbeuVj\x05\n{'), chr(0b1100100) + chr(101) + chr(0b100110 + 0o75) + chr(0b1101111) + chr(0b1100100) + chr(0b101101 + 0o70))('\165' + chr(116) + chr(2722 - 2620) + '\x2d' + '\x38')), nzTpIcepk0o8(chr(48) + '\157' + chr(781 - 733), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), '\144' + chr(101) + '\143' + chr(12104 - 11993) + chr(0b1100100) + '\145')('\x75' + '\164' + '\x66' + chr(0b101101) + '\x38')), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(6441 - 6330) + chr(1787 - 1739), 8)) roI3spqORKae(hXMPsSrOQzbh.bSizer2, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\144' + '\145' + chr(6120 - 6021) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b11100 + 0o21) + chr(0b111000)))(nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110100), 8)) hXMPsSrOQzbh.WB5DqLl1wXpg = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.HORIZONTAL) ATU5rnBLE1hw = FHAk5xm055cs.BoxSizer(FHAk5xm055cs.VERTICAL) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\x64' + chr(0b100101 + 0o100) + chr(382 - 283) + chr(0b1100 + 0o143) + chr(0b111110 + 0o46) + '\145')('\165' + '\164' + '\146' + chr(0b101101) + '\070'))(nzTpIcepk0o8('\060' + '\157' + chr(0b110101), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\144' + chr(0b11110 + 0o107) + '\x63' + '\157' + '\144' + chr(101))(chr(0b101010 + 0o113) + chr(116) + chr(102) + '\055' + chr(2781 - 2725)))(nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2178 - 2125), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(285 - 185) + '\x65' + chr(0b1111 + 0o124) + chr(111) + '\144' + chr(1024 - 923))(chr(117) + chr(0b1011100 + 0o30) + '\x66' + chr(45) + chr(2751 - 2695)))(XaTzYdbUQt2h, nzTpIcepk0o8('\060' + '\157' + chr(48), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), '\x64' + chr(0b10100 + 0o121) + chr(0b1100011) + chr(0b1101111) + chr(0b100 + 0o140) + chr(101))(chr(117) + '\164' + '\x66' + '\055' + chr(0b101010 + 0o16))), nzTpIcepk0o8('\060' + chr(111) + chr(48), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b1100100) + chr(0b1100101) + chr(9316 - 9217) + '\x6f' + '\144' + chr(0b1100011 + 0o2))(chr(0b110111 + 0o76) + '\x74' + '\x66' + chr(0b11010 + 0o23) + chr(56)))(nzTpIcepk0o8('\x30' + chr(111) + chr(2334 - 2285) + chr(50), 29367 - 29359)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b100101 + 0o77) + chr(0b1100101) + chr(0b1010111 + 0o14) + chr(0b1101111) + '\x64' + '\145')('\x75' + chr(3536 - 3420) + chr(0b1100110) + chr(45) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa3\xdd\xa9\xda\x8a\xccnU+\x03.~'), chr(100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(73 - 28) + chr(0b111000))), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b100100 + 0o14), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), '\x64' + '\145' + chr(99) + '\157' + chr(2027 - 1927) + chr(1566 - 1465))(chr(9125 - 9008) + chr(116) + chr(0b11 + 0o143) + '\x2d' + chr(447 - 391))), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b110000), 8)) roI3spqORKae(hXMPsSrOQzbh.bSizer_msg, roI3spqORKae(ES5oEprVxulp(b'\x96\xc7\xa7\xe2\x8d\x80Gs*'), '\144' + '\145' + chr(99) + chr(11635 - 11524) + chr(0b1010111 + 0o15) + chr(0b1100101))(chr(3523 - 3406) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b101101 + 0o13)))(nzTpIcepk0o8(chr(48) + chr(2125 - 2014) + '\060', 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b100101 + 0o77) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b110101 + 0o57) + chr(0b1100101))(chr(117) + '\164' + chr(102) + '\x2d' + chr(56)))(pP0z61Wt_wOE, nzTpIcepk0o8(chr(48) + '\x6f' + '\060', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(4318 - 4218) + chr(101) + chr(99) + chr(0b11000 + 0o127) + '\x64' + '\x65')(chr(12472 - 12355) + '\x74' + chr(0b1100110) + '\055' + chr(1667 - 1611))), nzTpIcepk0o8('\x30' + chr(10635 - 10524) + chr(0b1111 + 0o41), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b11 + 0o141) + chr(0b1001 + 0o134) + '\x63' + chr(0b11001 + 0o126) + '\144' + chr(0b101110 + 0o67))(chr(0b1110101 + 0o0) + '\x74' + chr(7785 - 7683) + chr(45) + '\070'))(nzTpIcepk0o8('\060' + '\157' + chr(1479 - 1430) + '\x32', 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\144' + '\x65' + chr(99) + chr(0b101110 + 0o101) + chr(8795 - 8695) + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + '\x38'))(nzTpIcepk0o8('\060' + chr(0b11 + 0o154) + '\061' + '\x32', 8)) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(4854 - 4743) + '\x64' + '\x65')('\x75' + '\164' + chr(4683 - 4581) + chr(0b11 + 0o52) + chr(0b111000)))(nzTpIcepk0o8('\060' + chr(111) + chr(0b11111 + 0o22) + chr(1269 - 1219), 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(0b1100100) + '\x65' + chr(8924 - 8825) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b10000 + 0o144) + chr(5870 - 5768) + chr(45) + chr(56)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xae\xdf\xbd\xf7\x82\xbeqg\x129:B'), chr(0b1100100) + chr(0b1011011 + 0o12) + '\143' + chr(2750 - 2639) + chr(4944 - 4844) + chr(0b1100101))(chr(0b1100000 + 0o25) + chr(0b1110100) + '\x66' + '\x2d' + chr(548 - 492))), nzTpIcepk0o8('\060' + chr(0b1101111) + '\060', 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), chr(100) + chr(0b1100101) + chr(0b100000 + 0o103) + chr(0b1101111) + chr(0b1100100) + chr(6887 - 6786))('\165' + chr(116) + chr(4078 - 3976) + chr(45) + chr(0b111000))), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(0b1101111) + '\060', 8)) roI3spqORKae(ATU5rnBLE1hw, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(0b1010011 + 0o21) + chr(6013 - 5912) + chr(0b111011 + 0o50) + '\157' + chr(0b1100100) + '\145')(chr(0b1101011 + 0o12) + '\164' + '\146' + chr(0b101101) + chr(56)))(nzTpIcepk0o8('\060' + chr(9475 - 9364) + chr(0b110001) + chr(0b110010), 8)) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac'), chr(140 - 40) + chr(2066 - 1965) + chr(0b1100011) + '\157' + '\144' + '\x65')('\165' + '\x74' + chr(2665 - 2563) + chr(45) + '\070'))(ATU5rnBLE1hw, nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1125 - 1077), 8), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x84\xe3\x81\xd2\x8a\xaba[\x1759@'), '\x64' + chr(0b1100101) + chr(0b1011 + 0o130) + '\x6f' + chr(0b1000001 + 0o43) + chr(0b1100101))(chr(0b1001100 + 0o51) + chr(0b100100 + 0o120) + chr(0b1100110) + chr(135 - 90) + chr(309 - 253))), nzTpIcepk0o8('\060' + '\157' + chr(48), 8)) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x84\xcb\xac\xc6\xb4\x95A{+'), chr(1437 - 1337) + chr(0b11011 + 0o112) + chr(0b10111 + 0o114) + chr(0b1101111) + chr(0b101 + 0o137) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b1001 + 0o57)))(nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53), 8)) roI3spqORKae(hXMPsSrOQzbh.panel, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xc6\xad\x8eGl'), '\144' + '\145' + chr(5590 - 5491) + '\157' + chr(0b1100100) + chr(0b1000011 + 0o42))(chr(0b1110101) + '\x74' + chr(102) + chr(0b101101) + chr(0b101110 + 0o12)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x92\xed\xfd\xd1\xb5\xb8N/.9\x0cu'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + chr(812 - 711))('\165' + chr(349 - 233) + chr(0b1100110) + '\055' + chr(0b111000)))) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x83\xc6\xbc'), '\144' + chr(0b10111 + 0o116) + chr(99) + chr(2386 - 2275) + '\x64' + '\145')('\x75' + chr(116) + '\x66' + chr(0b100010 + 0o13) + '\x38'))(hXMPsSrOQzbh) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xe8\xe6\xe5\xb5\x8d\x9aKj0\x00\x10{\x96\xa90\xb7=<\xefk\xe9'), '\x64' + chr(0b1100101) + '\x63' + chr(2925 - 2814) + chr(0b1000 + 0o134) + chr(101))(chr(0b11000 + 0o135) + chr(116) + chr(3603 - 3501) + chr(1332 - 1287) + chr(2787 - 2731))) BJbLFMbCf3Is = sgF4S2oQoLnT(hXMPsSrOQzbh) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x96\xca\xbc\xd8\xa1\x9aW\\8\x13'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b10111 + 0o115) + '\x65')('\165' + chr(11871 - 11755) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(0b100110 + 0o22)))(BJbLFMbCf3Is) hXMPsSrOQzbh.BJbLFMbCf3Is = BJbLFMbCf3Is
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.on_change_dir_button
def on_change_dir_button(self, event=None): """ create change directory frame """ currentDirectory = self.WD #os.getcwd() change_dir_dialog = wx.DirDialog(self.panel, "Choose your working directory to create or edit a MagIC contribution:", defaultPath=currentDirectory, style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON | wx.DD_CHANGE_DIR) result = change_dir_dialog.ShowModal() if result == wx.ID_CANCEL: return if result == wx.ID_OK: self.WD = change_dir_dialog.GetPath() self.dir_path.SetValue(self.WD) change_dir_dialog.Destroy() self.get_wd_data()
python
def on_change_dir_button(self, event=None): """ create change directory frame """ currentDirectory = self.WD #os.getcwd() change_dir_dialog = wx.DirDialog(self.panel, "Choose your working directory to create or edit a MagIC contribution:", defaultPath=currentDirectory, style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON | wx.DD_CHANGE_DIR) result = change_dir_dialog.ShowModal() if result == wx.ID_CANCEL: return if result == wx.ID_OK: self.WD = change_dir_dialog.GetPath() self.dir_path.SetValue(self.WD) change_dir_dialog.Destroy() self.get_wd_data()
[ "def", "on_change_dir_button", "(", "self", ",", "event", "=", "None", ")", ":", "currentDirectory", "=", "self", ".", "WD", "#os.getcwd()", "change_dir_dialog", "=", "wx", ".", "DirDialog", "(", "self", ".", "panel", ",", "\"Choose your working directory to create or edit a MagIC contribution:\"", ",", "defaultPath", "=", "currentDirectory", ",", "style", "=", "wx", ".", "DD_DEFAULT_STYLE", "|", "wx", ".", "DD_NEW_DIR_BUTTON", "|", "wx", ".", "DD_CHANGE_DIR", ")", "result", "=", "change_dir_dialog", ".", "ShowModal", "(", ")", "if", "result", "==", "wx", ".", "ID_CANCEL", ":", "return", "if", "result", "==", "wx", ".", "ID_OK", ":", "self", ".", "WD", "=", "change_dir_dialog", ".", "GetPath", "(", ")", "self", ".", "dir_path", ".", "SetValue", "(", "self", ".", "WD", ")", "change_dir_dialog", ".", "Destroy", "(", ")", "self", ".", "get_wd_data", "(", ")" ]
create change directory frame
[ "create", "change", "directory", "frame" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L238-L254
train
create change directory frame
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\062' + chr(2543 - 2491) + '\x36', 50185 - 50177), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(690 - 640) + chr(0b110100), 46861 - 46853), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(403 - 348) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + chr(0b100100 + 0o15) + '\x37' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(970 - 922) + '\x6f' + '\x33' + chr(48) + chr(0b110011), 57645 - 57637), nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + '\062' + chr(48) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + chr(2451 - 2400) + '\x35' + '\062', 0b1000), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(11281 - 11170) + chr(0b110001) + '\060' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b101110 + 0o101) + '\062' + '\066' + '\063', 40807 - 40799), nzTpIcepk0o8('\060' + chr(1040 - 929) + '\x32' + chr(0b101101 + 0o4) + chr(2380 - 2327), 0b1000), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + chr(0b110010) + chr(55), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100011 + 0o17) + '\x36' + chr(2228 - 2173), 17619 - 17611), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(967 - 917) + chr(0b110100), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(612 - 562) + '\x31', 0o10), nzTpIcepk0o8(chr(1880 - 1832) + '\x6f' + chr(0b10000 + 0o46) + chr(0b100000 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2453 - 2402) + '\066' + chr(0b11100 + 0o32), 0b1000), nzTpIcepk0o8(chr(1930 - 1882) + chr(0b1101111) + chr(0b110011) + '\061' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(2159 - 2111) + '\157' + '\061' + chr(52) + chr(0b10111 + 0o36), 31061 - 31053), nzTpIcepk0o8(chr(48) + chr(692 - 581) + chr(0b110010) + '\065' + chr(2633 - 2581), 46244 - 46236), nzTpIcepk0o8(chr(2089 - 2041) + chr(0b111000 + 0o67) + chr(272 - 221) + chr(54) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(53) + chr(51), 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(1304 - 1193) + chr(51) + chr(48) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(54) + chr(1007 - 956), 8), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(50) + '\065' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(1769 - 1720) + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(7149 - 7038) + chr(0b100101 + 0o16) + chr(55) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10100 + 0o36) + chr(1020 - 969) + chr(0b1010 + 0o53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(848 - 795) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100111 + 0o10) + chr(0b10110 + 0o33) + '\x33' + chr(1188 - 1140), 4668 - 4660), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1000101 + 0o52) + chr(51) + chr(0b110011) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(0b11100 + 0o27) + chr(0b1001 + 0o51) + chr(0b101100 + 0o10), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x31' + chr(0b11101 + 0o23), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101011 + 0o6) + '\x31' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b111 + 0o51) + '\x6f' + '\061' + '\061' + chr(0b10000 + 0o41), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + chr(0b100101 + 0o16) + chr(48) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + '\x33' + chr(0b110111) + chr(49), 16933 - 16925), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10010 + 0o41) + chr(0b101110 + 0o11) + chr(0b110110), 51043 - 51035), nzTpIcepk0o8('\060' + chr(9876 - 9765) + chr(0b1111 + 0o43) + chr(0b110001) + chr(0b1100 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\060' + chr(1396 - 1341), 57876 - 57868)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(7932 - 7821) + chr(1357 - 1304) + chr(519 - 471), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'9'), chr(3225 - 3125) + chr(0b111101 + 0o50) + chr(9006 - 8907) + chr(111) + chr(5048 - 4948) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nayKLvoct5ff(hXMPsSrOQzbh, D4ybylS07yGH=None): oaftFQIyeasP = hXMPsSrOQzbh.GP1zEShDyCxL S69ZuXjyQZRy = FHAk5xm055cs.DirDialog(hXMPsSrOQzbh.panel, roI3spqORKae(ES5oEprVxulp(b'T\xce;V\x0b\xa6\xa3\x93(\xc6\xff7\xc0;\xa3]\x9f\xa3\x02\x8c\x93\xc2\xb6\xd6\xce?\x92\xef\x15x\xaf\xbb\xe8);\xa4\x98\x8a\xea\xa7x\xd4t\\\x1c\xaa\xf7\xca&\x93\xc0v\xd0\x1d\x92\x16\x95\xa2\x0b\xd8\x85\xc2\xa6\xc6\xd9"\x92\xf3V'), chr(0b1100100) + '\145' + chr(0b1010 + 0o131) + chr(111) + chr(4919 - 4819) + chr(0b1100101))('\165' + '\164' + '\146' + chr(0b10100 + 0o31) + chr(1763 - 1707)), defaultPath=oaftFQIyeasP, style=FHAk5xm055cs.DD_DEFAULT_STYLE | FHAk5xm055cs.DD_NEW_DIR_BUTTON | FHAk5xm055cs.DD_CHANGE_DIR) POx95m7SPOVy = S69ZuXjyQZRy.ShowModal() if POx95m7SPOVy == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'^\xe2\x0bz9\x8d\xc0\xaf\x0b'), chr(1970 - 1870) + chr(0b1100101) + chr(1636 - 1537) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(4435 - 4319) + '\x66' + '\055' + chr(0b1111 + 0o51))): return if POx95m7SPOVy == roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'^\xe2\x0bv3'), chr(100) + chr(8474 - 8373) + '\x63' + '\x6f' + chr(0b1100100) + chr(6528 - 6427))(chr(11728 - 11611) + '\x74' + '\146' + chr(0b101101) + chr(56))): hXMPsSrOQzbh.GP1zEShDyCxL = S69ZuXjyQZRy.GetPath() roI3spqORKae(hXMPsSrOQzbh.dir_path, roI3spqORKae(ES5oEprVxulp(b'D\xc3 o\x19\xaf\xf6\x8f'), '\x64' + '\x65' + chr(0b1100011) + chr(111) + '\144' + chr(529 - 428))(chr(117) + chr(0b100000 + 0o124) + chr(0b1100110) + '\x2d' + chr(0b10011 + 0o45)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'P\xf6eC=\x90\xeb\xae>\xf0\xf5['), chr(100) + chr(0b100110 + 0o77) + '\x63' + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(102) + '\x2d' + '\x38'))) roI3spqORKae(S69ZuXjyQZRy, roI3spqORKae(ES5oEprVxulp(b"S\xc3'M\n\xac\xfa"), chr(100) + chr(101) + chr(0b11110 + 0o105) + chr(0b1101111) + chr(6127 - 6027) + chr(0b1010100 + 0o21))('\x75' + chr(0b1010011 + 0o41) + '\x66' + chr(45) + '\x38'))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'p\xc3 f\x0f\xa7\xdc\x8e&\xc7\xec'), chr(4894 - 4794) + '\x65' + chr(0b1101 + 0o126) + chr(12052 - 11941) + '\144' + chr(0b1110 + 0o127))(chr(0b1110101) + chr(6605 - 6489) + chr(0b1100110) + chr(0b1011 + 0o42) + '\070'))()
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.make_grid_frame
def make_grid_frame(self, event): """ Create a GridFrame for data type of the button that was clicked """ if self.grid_frame: print('-I- You already have a grid frame open') pw.simple_warning("You already have a grid open") return try: grid_type = event.GetButtonObj().Name[:-4] # remove '_btn' except AttributeError: grid_type = self.FindWindowById(event.Id).Name[:-4] # remove ('_btn') wait = wx.BusyInfo('Making {} grid, please wait...'.format(grid_type)) wx.SafeYield() # propagate site lat/lon info into locations if necessary if grid_type == 'locations' and 'sites' in self.contribution.tables: self.contribution.get_min_max_lat_lon() self.contribution.propagate_cols_up(['lithologies', 'geologic_classes'], 'locations', 'sites') # propagate lithologies/type/class information from sites to samples/specimens if grid_type in ['specimens', 'samples']: self.contribution.propagate_lithology_cols() # propagate average lat/lon info from samples table if # available in samples and missing in sites if grid_type == 'sites': self.contribution.propagate_average_up(cols=['lat', 'lon', 'height'], target_df_name='sites', source_df_name='samples') self.contribution.propagate_lithology_cols() # hide mainframe self.on_open_grid_frame() # choose appropriate size for grid if grid_type == 'measurements': huge = True else: huge = False # make grid frame self.grid_frame = grid_frame.GridFrame(self.contribution, self.WD, grid_type, grid_type, self.panel, huge=huge) row_string = "" # paint validations if appropriate if self.validation_mode: if grid_type in self.validation_mode: if grid_type == 'measurements': skip_cell_render = True else: skip_cell_render = False self.grid_frame.toggle_help(None, "open") row_problems = self.failing_items[grid_type]["rows"] missing_columns = self.failing_items[grid_type]["missing_columns"] missing_groups = self.failing_items[grid_type]["missing_groups"] #all_cols = row_problems.columns #col_nums = range(len(all_cols)) #col_pos = dict(zip(all_cols, col_nums)) if len(row_problems): row_string = "Columns and rows with problem data have been highlighted in blue.\n" if not skip_cell_render: row_string += "Cells with problem data are highlighted according to the type of problem.\nRed: incorrect data\n" row_string += "For full error messages, see {}.".format(grid_type + "_errors.txt") # reset codes button to show error file instead self.grid_frame.toggle_codes_btn.SetLabel("Show errors") self.grid_frame.Bind(wx.EVT_BUTTON, self.grid_frame.show_errors, self.grid_frame.toggle_codes_btn) # paint cells for row in row_problems['num']: self.grid_frame.grid.paint_invalid_row(row) mask = row_problems["num"] == row items = row_problems[mask] cols = items.dropna(how="all", axis=1).drop(["num", "issues"], axis=1) for col in cols: pre, col_name = val_up3.extract_col_name(col) col_ind = self.grid_frame.grid.col_labels.index(col_name) self.grid_frame.grid.paint_invalid_cell(row, col_ind, skip_cell=skip_cell_render) current_label = self.grid_frame.msg_text.GetLabel() if len(missing_columns): col_string = "You are missing the following required columns: {}\n\n".format(", ".join(missing_columns)) else: col_string = "" if len(missing_groups): group_string = "You must have at least one column from each of the following groups: {}\n\n".format(", ".join(missing_groups)) else: group_string = "" # add_text = """{}{}{}""".format(col_string, group_string, row_string) self.grid_frame.msg_text.SetLabel(add_text) #self.on_finish_change_dir(self.change_dir_dialog) self.grid_frame.do_fit(None) del wait
python
def make_grid_frame(self, event): """ Create a GridFrame for data type of the button that was clicked """ if self.grid_frame: print('-I- You already have a grid frame open') pw.simple_warning("You already have a grid open") return try: grid_type = event.GetButtonObj().Name[:-4] # remove '_btn' except AttributeError: grid_type = self.FindWindowById(event.Id).Name[:-4] # remove ('_btn') wait = wx.BusyInfo('Making {} grid, please wait...'.format(grid_type)) wx.SafeYield() # propagate site lat/lon info into locations if necessary if grid_type == 'locations' and 'sites' in self.contribution.tables: self.contribution.get_min_max_lat_lon() self.contribution.propagate_cols_up(['lithologies', 'geologic_classes'], 'locations', 'sites') # propagate lithologies/type/class information from sites to samples/specimens if grid_type in ['specimens', 'samples']: self.contribution.propagate_lithology_cols() # propagate average lat/lon info from samples table if # available in samples and missing in sites if grid_type == 'sites': self.contribution.propagate_average_up(cols=['lat', 'lon', 'height'], target_df_name='sites', source_df_name='samples') self.contribution.propagate_lithology_cols() # hide mainframe self.on_open_grid_frame() # choose appropriate size for grid if grid_type == 'measurements': huge = True else: huge = False # make grid frame self.grid_frame = grid_frame.GridFrame(self.contribution, self.WD, grid_type, grid_type, self.panel, huge=huge) row_string = "" # paint validations if appropriate if self.validation_mode: if grid_type in self.validation_mode: if grid_type == 'measurements': skip_cell_render = True else: skip_cell_render = False self.grid_frame.toggle_help(None, "open") row_problems = self.failing_items[grid_type]["rows"] missing_columns = self.failing_items[grid_type]["missing_columns"] missing_groups = self.failing_items[grid_type]["missing_groups"] #all_cols = row_problems.columns #col_nums = range(len(all_cols)) #col_pos = dict(zip(all_cols, col_nums)) if len(row_problems): row_string = "Columns and rows with problem data have been highlighted in blue.\n" if not skip_cell_render: row_string += "Cells with problem data are highlighted according to the type of problem.\nRed: incorrect data\n" row_string += "For full error messages, see {}.".format(grid_type + "_errors.txt") # reset codes button to show error file instead self.grid_frame.toggle_codes_btn.SetLabel("Show errors") self.grid_frame.Bind(wx.EVT_BUTTON, self.grid_frame.show_errors, self.grid_frame.toggle_codes_btn) # paint cells for row in row_problems['num']: self.grid_frame.grid.paint_invalid_row(row) mask = row_problems["num"] == row items = row_problems[mask] cols = items.dropna(how="all", axis=1).drop(["num", "issues"], axis=1) for col in cols: pre, col_name = val_up3.extract_col_name(col) col_ind = self.grid_frame.grid.col_labels.index(col_name) self.grid_frame.grid.paint_invalid_cell(row, col_ind, skip_cell=skip_cell_render) current_label = self.grid_frame.msg_text.GetLabel() if len(missing_columns): col_string = "You are missing the following required columns: {}\n\n".format(", ".join(missing_columns)) else: col_string = "" if len(missing_groups): group_string = "You must have at least one column from each of the following groups: {}\n\n".format(", ".join(missing_groups)) else: group_string = "" # add_text = """{}{}{}""".format(col_string, group_string, row_string) self.grid_frame.msg_text.SetLabel(add_text) #self.on_finish_change_dir(self.change_dir_dialog) self.grid_frame.do_fit(None) del wait
[ "def", "make_grid_frame", "(", "self", ",", "event", ")", ":", "if", "self", ".", "grid_frame", ":", "print", "(", "'-I- You already have a grid frame open'", ")", "pw", ".", "simple_warning", "(", "\"You already have a grid open\"", ")", "return", "try", ":", "grid_type", "=", "event", ".", "GetButtonObj", "(", ")", ".", "Name", "[", ":", "-", "4", "]", "# remove '_btn'", "except", "AttributeError", ":", "grid_type", "=", "self", ".", "FindWindowById", "(", "event", ".", "Id", ")", ".", "Name", "[", ":", "-", "4", "]", "# remove ('_btn')", "wait", "=", "wx", ".", "BusyInfo", "(", "'Making {} grid, please wait...'", ".", "format", "(", "grid_type", ")", ")", "wx", ".", "SafeYield", "(", ")", "# propagate site lat/lon info into locations if necessary", "if", "grid_type", "==", "'locations'", "and", "'sites'", "in", "self", ".", "contribution", ".", "tables", ":", "self", ".", "contribution", ".", "get_min_max_lat_lon", "(", ")", "self", ".", "contribution", ".", "propagate_cols_up", "(", "[", "'lithologies'", ",", "'geologic_classes'", "]", ",", "'locations'", ",", "'sites'", ")", "# propagate lithologies/type/class information from sites to samples/specimens", "if", "grid_type", "in", "[", "'specimens'", ",", "'samples'", "]", ":", "self", ".", "contribution", ".", "propagate_lithology_cols", "(", ")", "# propagate average lat/lon info from samples table if", "# available in samples and missing in sites", "if", "grid_type", "==", "'sites'", ":", "self", ".", "contribution", ".", "propagate_average_up", "(", "cols", "=", "[", "'lat'", ",", "'lon'", ",", "'height'", "]", ",", "target_df_name", "=", "'sites'", ",", "source_df_name", "=", "'samples'", ")", "self", ".", "contribution", ".", "propagate_lithology_cols", "(", ")", "# hide mainframe", "self", ".", "on_open_grid_frame", "(", ")", "# choose appropriate size for grid", "if", "grid_type", "==", "'measurements'", ":", "huge", "=", "True", "else", ":", "huge", "=", "False", "# make grid frame", "self", ".", "grid_frame", "=", "grid_frame", ".", "GridFrame", "(", "self", ".", "contribution", ",", "self", ".", "WD", ",", "grid_type", ",", "grid_type", ",", "self", ".", "panel", ",", "huge", "=", "huge", ")", "row_string", "=", "\"\"", "# paint validations if appropriate", "if", "self", ".", "validation_mode", ":", "if", "grid_type", "in", "self", ".", "validation_mode", ":", "if", "grid_type", "==", "'measurements'", ":", "skip_cell_render", "=", "True", "else", ":", "skip_cell_render", "=", "False", "self", ".", "grid_frame", ".", "toggle_help", "(", "None", ",", "\"open\"", ")", "row_problems", "=", "self", ".", "failing_items", "[", "grid_type", "]", "[", "\"rows\"", "]", "missing_columns", "=", "self", ".", "failing_items", "[", "grid_type", "]", "[", "\"missing_columns\"", "]", "missing_groups", "=", "self", ".", "failing_items", "[", "grid_type", "]", "[", "\"missing_groups\"", "]", "#all_cols = row_problems.columns", "#col_nums = range(len(all_cols))", "#col_pos = dict(zip(all_cols, col_nums))", "if", "len", "(", "row_problems", ")", ":", "row_string", "=", "\"Columns and rows with problem data have been highlighted in blue.\\n\"", "if", "not", "skip_cell_render", ":", "row_string", "+=", "\"Cells with problem data are highlighted according to the type of problem.\\nRed: incorrect data\\n\"", "row_string", "+=", "\"For full error messages, see {}.\"", ".", "format", "(", "grid_type", "+", "\"_errors.txt\"", ")", "# reset codes button to show error file instead", "self", ".", "grid_frame", ".", "toggle_codes_btn", ".", "SetLabel", "(", "\"Show errors\"", ")", "self", ".", "grid_frame", ".", "Bind", "(", "wx", ".", "EVT_BUTTON", ",", "self", ".", "grid_frame", ".", "show_errors", ",", "self", ".", "grid_frame", ".", "toggle_codes_btn", ")", "# paint cells", "for", "row", "in", "row_problems", "[", "'num'", "]", ":", "self", ".", "grid_frame", ".", "grid", ".", "paint_invalid_row", "(", "row", ")", "mask", "=", "row_problems", "[", "\"num\"", "]", "==", "row", "items", "=", "row_problems", "[", "mask", "]", "cols", "=", "items", ".", "dropna", "(", "how", "=", "\"all\"", ",", "axis", "=", "1", ")", ".", "drop", "(", "[", "\"num\"", ",", "\"issues\"", "]", ",", "axis", "=", "1", ")", "for", "col", "in", "cols", ":", "pre", ",", "col_name", "=", "val_up3", ".", "extract_col_name", "(", "col", ")", "col_ind", "=", "self", ".", "grid_frame", ".", "grid", ".", "col_labels", ".", "index", "(", "col_name", ")", "self", ".", "grid_frame", ".", "grid", ".", "paint_invalid_cell", "(", "row", ",", "col_ind", ",", "skip_cell", "=", "skip_cell_render", ")", "current_label", "=", "self", ".", "grid_frame", ".", "msg_text", ".", "GetLabel", "(", ")", "if", "len", "(", "missing_columns", ")", ":", "col_string", "=", "\"You are missing the following required columns: {}\\n\\n\"", ".", "format", "(", "\", \"", ".", "join", "(", "missing_columns", ")", ")", "else", ":", "col_string", "=", "\"\"", "if", "len", "(", "missing_groups", ")", ":", "group_string", "=", "\"You must have at least one column from each of the following groups: {}\\n\\n\"", ".", "format", "(", "\", \"", ".", "join", "(", "missing_groups", ")", ")", "else", ":", "group_string", "=", "\"\"", "#", "add_text", "=", "\"\"\"{}{}{}\"\"\"", ".", "format", "(", "col_string", ",", "group_string", ",", "row_string", ")", "self", ".", "grid_frame", ".", "msg_text", ".", "SetLabel", "(", "add_text", ")", "#self.on_finish_change_dir(self.change_dir_dialog)", "self", ".", "grid_frame", ".", "do_fit", "(", "None", ")", "del", "wait" ]
Create a GridFrame for data type of the button that was clicked
[ "Create", "a", "GridFrame", "for", "data", "type", "of", "the", "button", "that", "was", "clicked" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L287-L378
train
Create a grid frame for the current event
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\062' + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110) + '\061', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111 + 0o0) + chr(0b11100 + 0o25) + chr(75 - 25) + chr(0b1111 + 0o43), 45421 - 45413), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + '\063' + '\x36' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b11101 + 0o122) + chr(50) + '\x30' + chr(48), 55918 - 55910), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(157 - 107) + chr(0b1110 + 0o50) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3108 - 2997) + '\x31' + '\x35' + '\064', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\x32' + chr(0b10101 + 0o35), 8), nzTpIcepk0o8(chr(145 - 97) + chr(11591 - 11480) + '\x32' + chr(0b110101) + '\x35', 16435 - 16427), nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\x34' + '\x34', 0b1000), nzTpIcepk0o8(chr(352 - 304) + '\157' + chr(49) + chr(0b110011) + chr(0b10111 + 0o34), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1199 - 1148) + chr(0b1011 + 0o47) + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b101100 + 0o5) + chr(0b11100 + 0o24), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110101 + 0o72) + chr(0b110111) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(424 - 376) + chr(0b1001000 + 0o47) + '\x31' + chr(0b110000) + chr(0b1110 + 0o42), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(0b11 + 0o57) + '\062', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(0b1001 + 0o50) + chr(711 - 660), 0o10), nzTpIcepk0o8(chr(2098 - 2050) + '\x6f' + chr(0b11111 + 0o22) + '\x31' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(4428 - 4317) + chr(51) + chr(0b110111) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100000 + 0o23) + chr(55) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1000 + 0o51) + '\066' + '\x37', 23880 - 23872), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\x30' + chr(202 - 153), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\067' + chr(2361 - 2307), 8), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + '\x31' + chr(0b110001) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + '\061' + chr(99 - 48), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + '\066' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1100 + 0o143) + chr(0b110001) + chr(0b110000) + chr(183 - 132), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1817 - 1767) + chr(133 - 79) + chr(0b10000 + 0o47), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(1126 - 1075) + chr(50) + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + chr(2593 - 2482) + chr(51) + '\x31' + chr(0b11110 + 0o23), 60501 - 60493), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10110 + 0o33) + chr(0b110010) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11 + 0o56) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(0b1010100 + 0o33) + '\x33' + chr(49) + chr(52), 0o10), nzTpIcepk0o8(chr(1393 - 1345) + chr(111) + '\x31' + chr(0b100100 + 0o22) + chr(0b110010), 37225 - 37217), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(0b110010) + chr(0b11110 + 0o23) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100011 + 0o114) + '\x33' + chr(0b1001 + 0o50) + chr(52), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(48) + '\066', ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(53) + chr(348 - 299), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(528 - 478) + '\x36' + chr(0b10000 + 0o46), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(53) + chr(0b11000 + 0o30), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xff'), chr(0b101010 + 0o72) + '\x65' + '\x63' + chr(0b1101111) + '\144' + chr(101))('\165' + chr(13439 - 13323) + chr(0b1100110) + chr(1856 - 1811) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def SSzJNobFT_Ml(hXMPsSrOQzbh, D4ybylS07yGH): if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb6C;\x92\xdf\xd3\x1e3\xc0\x01'), '\x64' + '\145' + chr(4365 - 4266) + chr(111) + chr(9432 - 9332) + chr(0b10110 + 0o117))(chr(117) + chr(6573 - 6457) + '\146' + '\055' + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xfcx\x7f\xd6\xd9\xda\x19r\xcc\x08)\xb6\xe9\\9\xb2\xa3+\x88\x9dW\xe0\xde*9\x7f\xd3c\xd1\xa1\xa8;l\xec\x1d\xff\xa9\xa8'), chr(100) + chr(2126 - 2025) + '\x63' + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1011100 + 0o12) + chr(0b101101) + chr(56))) roI3spqORKae(saCGFe0zE73j, roI3spqORKae(ES5oEprVxulp(b'\xa2X?\x86\xec\xd03%\xcc\x165\xba\xe6_'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(9703 - 9592) + '\x64' + chr(463 - 362))('\x75' + '\164' + chr(444 - 342) + chr(0b10111 + 0o26) + chr(1122 - 1066)))(roI3spqORKae(ES5oEprVxulp(b'\x88^\'\xd6\xe1\xd9\x1e7\xcc\x00"\xf3\xe0Y6\xf7\xeb+\xde\x9f\x05\xe8\x9am$f\xd2-'), '\144' + chr(598 - 497) + '\143' + '\x6f' + chr(8871 - 8771) + '\145')(chr(0b111011 + 0o72) + chr(6570 - 6454) + chr(0b11110 + 0o110) + chr(45) + chr(738 - 682))) return try: _SP0Zz5v1x7l = D4ybylS07yGH.GetButtonObj().cnJ4Wewue9ok[:-nzTpIcepk0o8(chr(0b110000) + chr(0b1010010 + 0o35) + chr(2006 - 1954), 0o10)] except bIsJhlpYrrU2: _SP0Zz5v1x7l = hXMPsSrOQzbh.FindWindowById(D4ybylS07yGH.Id).cnJ4Wewue9ok[:-nzTpIcepk0o8('\x30' + chr(11632 - 11521) + '\x34', 8)] VBnaM0jy14aO = FHAk5xm055cs.BusyInfo(roI3spqORKae(ES5oEprVxulp(b'\x9cP9\x9f\xee\xd2L)\xd0D<\xa1\xe1\\l\xb2\xbb&\x9b\x99\x04\xe4\xde:*\x7f\xc3m\x99\xfd'), chr(0b1100100) + chr(5993 - 5892) + chr(0b1110 + 0o125) + '\157' + chr(0b1100100) + chr(0b1000101 + 0o40))(chr(117) + '\x74' + '\146' + chr(45) + '\x38').q33KG3foQ_CJ(_SP0Zz5v1x7l)) roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x82P4\x93\xd9\xdc\t>\xc9'), '\144' + chr(4191 - 4090) + chr(1174 - 1075) + chr(4092 - 3981) + chr(0b111101 + 0o47) + '\x65')(chr(0b1110101) + '\164' + chr(0b100011 + 0o103) + chr(0b1101 + 0o40) + chr(2945 - 2889)))() if _SP0Zz5v1x7l == roI3spqORKae(ES5oEprVxulp(b'\xbd^1\x97\xf4\xdc\x03<\xde'), chr(5435 - 5335) + chr(0b1010000 + 0o25) + '\143' + chr(11003 - 10892) + '\x64' + chr(0b11010 + 0o113))(chr(0b1110101) + chr(0b1101110 + 0o6) + chr(0b1100110) + '\055' + chr(0b110100 + 0o4)) and roI3spqORKae(ES5oEprVxulp(b'\xa2X&\x93\xf3'), '\144' + chr(4299 - 4198) + chr(0b1100001 + 0o2) + chr(111) + '\x64' + '\x65')('\165' + chr(0b11110 + 0o126) + '\x66' + chr(45) + chr(0b111000)) in roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\x86V&\xa5\xca\xed\\!\xe4=+\x9f'), chr(0b1100100) + chr(0b1100101) + chr(7574 - 7475) + chr(12042 - 11931) + '\144' + '\x65')(chr(0b1011001 + 0o34) + chr(0b1011011 + 0o31) + chr(102) + chr(0b101101) + '\070')): roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xb6T&\xa9\xed\xdc\x02\r\xc0\x05#\x8c\xe4Y4\xcd\xa7%\x90'), chr(0b1011000 + 0o14) + chr(8866 - 8765) + chr(0b101000 + 0o73) + '\157' + '\144' + chr(5403 - 5302))(chr(10481 - 10364) + '\164' + chr(0b1001001 + 0o35) + chr(557 - 512) + chr(2005 - 1949)))() roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xa1C=\x86\xe1\xd2\r&\xc8;8\xbc\xe4K\x1f\xe7\xbb'), chr(100) + '\x65' + chr(0b1100011) + chr(1393 - 1282) + chr(0b1100100) + chr(101))(chr(7933 - 7816) + chr(0b1110100) + '\146' + chr(45) + chr(2946 - 2890)))([roI3spqORKae(ES5oEprVxulp(b'\xbdX&\x9e\xef\xd9\x035\xc4\x01('), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(116) + chr(0b11101 + 0o111) + chr(0b1000 + 0o45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb6T=\x9a\xef\xd2\x051\xf2\x077\xb2\xfbK%\xe1'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1011100 + 0o11))(chr(0b1011100 + 0o31) + chr(12226 - 12110) + '\146' + chr(0b101101) + chr(0b110010 + 0o6))], roI3spqORKae(ES5oEprVxulp(b'\xbd^1\x97\xf4\xdc\x03<\xde'), chr(168 - 68) + '\145' + chr(99) + chr(11863 - 11752) + chr(0b100 + 0o140) + chr(7236 - 7135))(chr(0b1010111 + 0o36) + chr(116) + chr(0b1100110) + '\x2d' + chr(1097 - 1041)), roI3spqORKae(ES5oEprVxulp(b'\xa2X&\x93\xf3'), chr(0b11 + 0o141) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b10010 + 0o122) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b110 + 0o140) + chr(1227 - 1182) + chr(186 - 130))) if _SP0Zz5v1x7l in [roI3spqORKae(ES5oEprVxulp(b'\xa2A7\x95\xe9\xd8\t<\xde'), chr(100) + chr(101) + chr(2795 - 2696) + '\x6f' + '\144' + '\145')('\165' + '\164' + chr(102) + chr(964 - 919) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xa2P?\x86\xec\xd0\x1f'), chr(0b1100100) + '\x65' + '\143' + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + chr(116) + chr(0b1011110 + 0o10) + '\055' + chr(0b111000))]: roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xa1C=\x86\xe1\xd2\r&\xc8;7\xba\xfcP/\xfe\xa4-\x87\xa7\x14\xee\x92>'), chr(6493 - 6393) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1011000 + 0o14) + chr(0b110 + 0o137))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(0b1111 + 0o51)))() if _SP0Zz5v1x7l == roI3spqORKae(ES5oEprVxulp(b'\xa2X&\x93\xf3'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\144' + chr(0b1100101))(chr(2288 - 2171) + '\164' + '\146' + chr(1210 - 1165) + chr(56)): roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xa1C=\x86\xe1\xd2\r&\xc8;:\xa5\xedJ!\xf5\xae\x15\x8b\x88'), chr(0b1100100) + chr(3345 - 3244) + chr(2930 - 2831) + chr(0b1101111) + chr(0b111100 + 0o50) + chr(101))(chr(117) + chr(116) + '\x66' + chr(0b1100 + 0o41) + '\x38'))(cols=[roI3spqORKae(ES5oEprVxulp(b'\xbdP&'), chr(100) + '\145' + '\143' + '\x6f' + chr(9483 - 9383) + chr(0b1100101))(chr(5279 - 5162) + '\x74' + chr(0b1001101 + 0o31) + chr(1475 - 1430) + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'\xbd^<'), '\x64' + '\145' + '\x63' + chr(12296 - 12185) + chr(0b1100100 + 0o0) + chr(0b1100101))(chr(117) + chr(8273 - 8157) + '\146' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb9T;\x91\xe8\xc1'), chr(0b1100100) + '\145' + '\143' + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b101011 + 0o2) + chr(1698 - 1642))], target_df_name=roI3spqORKae(ES5oEprVxulp(b'\xa2X&\x93\xf3'), '\x64' + chr(2606 - 2505) + chr(0b10110 + 0o115) + chr(0b1001110 + 0o41) + '\x64' + chr(0b1000011 + 0o42))(chr(0b1001011 + 0o52) + '\164' + chr(0b111100 + 0o52) + chr(1399 - 1354) + chr(2876 - 2820)), source_df_name=roI3spqORKae(ES5oEprVxulp(b'\xa2P?\x86\xec\xd0\x1f'), '\144' + chr(0b0 + 0o145) + chr(8426 - 8327) + chr(0b111010 + 0o65) + '\144' + chr(101))(chr(10251 - 10134) + chr(0b1010111 + 0o35) + chr(102) + '\x2d' + '\x38')) roI3spqORKae(hXMPsSrOQzbh.contribution, roI3spqORKae(ES5oEprVxulp(b'\xa1C=\x86\xe1\xd2\r&\xc8;7\xba\xfcP/\xfe\xa4-\x87\xa7\x14\xee\x92>'), '\144' + chr(101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1011010 + 0o13))(chr(0b1111 + 0o146) + '\164' + chr(0b1100110) + chr(128 - 83) + chr(1346 - 1290)))() roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbe_\r\x99\xf0\xd0\x02\r\xca\x162\xb7\xd7^2\xf3\xa6/'), '\144' + chr(0b1011000 + 0o15) + '\x63' + chr(111) + chr(100) + chr(3164 - 3063))(chr(0b1110101) + chr(0b1011011 + 0o31) + chr(0b1100110) + chr(48 - 3) + chr(0b100100 + 0o24)))() if _SP0Zz5v1x7l == roI3spqORKae(ES5oEprVxulp(b'\xbcT3\x85\xf5\xc7\t?\xc8\n/\xa0'), chr(100) + chr(0b1000110 + 0o37) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(6047 - 5946))(chr(0b1110101) + '\164' + chr(0b1001011 + 0o33) + chr(45) + chr(0b10111 + 0o41)): Vv9iQxsg5S0E = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001), ord("\x08")) else: Vv9iQxsg5S0E = nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(274 - 226), 0b1000) hXMPsSrOQzbh.RMJhrnxxE28l = RMJhrnxxE28l.GridFrame(hXMPsSrOQzbh.bSiGoWKHgDdJ, hXMPsSrOQzbh.GP1zEShDyCxL, _SP0Zz5v1x7l, _SP0Zz5v1x7l, hXMPsSrOQzbh.panel, huge=Vv9iQxsg5S0E) o96X8El29TqY = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(3102 - 3001) + chr(0b0 + 0o143) + '\157' + '\x64' + chr(0b1000 + 0o135))(chr(10245 - 10128) + '\164' + chr(102) + '\055' + chr(0b111000)) if roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4R3\x81\xf6\xda<j\x997?\xbc'), '\x64' + '\145' + chr(683 - 584) + chr(0b1101111) + chr(0b1000101 + 0o37) + chr(101))(chr(117) + chr(0b1011100 + 0o30) + chr(102) + chr(0b1101 + 0o40) + chr(3116 - 3060))): if _SP0Zz5v1x7l in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4R3\x81\xf6\xda<j\x997?\xbc'), chr(100) + '\x65' + chr(0b1010011 + 0o20) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1101101 + 0o7) + chr(6545 - 6443) + chr(1522 - 1477) + '\070')): if _SP0Zz5v1x7l == roI3spqORKae(ES5oEprVxulp(b'\xbcT3\x85\xf5\xc7\t?\xc8\n/\xa0'), '\x64' + chr(0b10010 + 0o123) + chr(0b1001110 + 0o25) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + '\055' + '\070'): PrYrj8sHumBw = nzTpIcepk0o8(chr(48) + '\157' + chr(0b11000 + 0o31), 8) else: PrYrj8sHumBw = nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b111 + 0o51), 8) roI3spqORKae(hXMPsSrOQzbh.grid_frame, roI3spqORKae(ES5oEprVxulp(b'\xa5^5\x91\xec\xd03:\xc8\x08+'), chr(1653 - 1553) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + '\145')('\165' + '\x74' + chr(0b1010010 + 0o24) + chr(45) + '\x38'))(None, roI3spqORKae(ES5oEprVxulp(b'\xbeA7\x98'), chr(0b111000 + 0o54) + chr(0b1100101) + chr(1711 - 1612) + chr(0b1101111) + chr(0b111111 + 0o45) + '\x65')(chr(0b1101100 + 0o11) + '\x74' + chr(8418 - 8316) + chr(45) + chr(0b11011 + 0o35))) tivFcUZX2qjc = hXMPsSrOQzbh.NjwWpmQazbRM[_SP0Zz5v1x7l][roI3spqORKae(ES5oEprVxulp(b'\xa3^%\x85'), chr(0b1100100) + '\x65' + chr(99) + '\157' + chr(0b111101 + 0o47) + chr(0b1100101))('\x75' + chr(0b10011 + 0o141) + chr(0b1100110) + chr(0b101000 + 0o5) + chr(122 - 66))] nFvQkk85xvG4 = hXMPsSrOQzbh.NjwWpmQazbRM[_SP0Zz5v1x7l][roI3spqORKae(ES5oEprVxulp(b'\xbcX!\x85\xe9\xdb\x0b\r\xce\x0b7\xa6\xe5V3'), '\x64' + '\145' + chr(99) + chr(7854 - 7743) + chr(0b1100100) + chr(101))(chr(0b100000 + 0o125) + chr(0b11101 + 0o127) + '\x66' + chr(118 - 73) + chr(1286 - 1230))] IfMT1ERVP5HO = hXMPsSrOQzbh.NjwWpmQazbRM[_SP0Zz5v1x7l][roI3spqORKae(ES5oEprVxulp(b'\xbcX!\x85\xe9\xdb\x0b\r\xca\x164\xa6\xf8K'), chr(100) + chr(1860 - 1759) + chr(0b11111 + 0o104) + '\157' + chr(0b11000 + 0o114) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(1423 - 1378) + '\070')] if ftfygxgFas5X(tivFcUZX2qjc): o96X8El29TqY = roI3spqORKae(ES5oEprVxulp(b'\x92^>\x83\xed\xdb\x1fr\xcc\n?\xf3\xfaW7\xe1\xeb=\x97\x8c\x1f\xa1\x8e?$t\xdb&\xda\xf3\xad7}\xadR\xe7\xad\xb0L\x96\xb3T7\x98\xa0\xdd\x055\xc5\x082\xb4\xe0L%\xf6\xeb#\x90\xd8\x15\xed\x8b(e\x1c'), '\x64' + '\x65' + chr(99) + chr(0b1101111 + 0o0) + chr(0b1100100) + chr(101))('\x75' + '\164' + '\146' + '\055' + '\070') if not PrYrj8sHumBw: o96X8El29TqY += roI3spqORKae(ES5oEprVxulp(b'\x92T>\x9a\xf3\x95\x1b;\xd9\x0c{\xa3\xfaW"\xfe\xae\'\xde\x9c\x16\xf5\x9fm*d\xd2c\xdf\xba\xae>e\xa5\x15\xe7\xb8\xa3M\x96\xb0R1\x99\xf2\xd1\x05<\xcaD/\xbc\xa8L(\xf7\xeb>\x87\x88\x12\xa1\x91+kf\xc5,\xd5\xbf\xac;\'\xc6 \xea\xa8\xfc\t\xdf\xbfR=\x84\xf2\xd0\x0f&\x8d\x00:\xa7\xe92'), chr(7183 - 7083) + chr(7208 - 7107) + chr(99) + chr(8419 - 8308) + '\x64' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(1851 - 1806) + '\x38') o96X8El29TqY += roI3spqORKae(ES5oEprVxulp(b'\x97^ \xd6\xe6\xc0\x00>\x8d\x01)\xa1\xe7J`\xff\xae9\x8d\x99\x10\xe4\x8dake\xd2&\x97\xa8\xb4x'), chr(0b11 + 0o141) + '\145' + '\x63' + '\x6f' + chr(0b1100000 + 0o4) + chr(0b10110 + 0o117))(chr(0b1110 + 0o147) + '\x74' + chr(4376 - 4274) + chr(0b100010 + 0o13) + '\x38').q33KG3foQ_CJ(_SP0Zz5v1x7l + roI3spqORKae(ES5oEprVxulp(b'\x8eT \x84\xef\xc7\x1f|\xd9\x1c/'), '\144' + chr(0b101100 + 0o71) + '\143' + '\157' + chr(100) + chr(114 - 13))('\x75' + '\164' + chr(7671 - 7569) + chr(45) + chr(56))) roI3spqORKae(hXMPsSrOQzbh.grid_frame.toggle_codes_btn, roI3spqORKae(ES5oEprVxulp(b'\x82T&\xba\xe1\xd7\t>'), chr(5675 - 5575) + chr(101) + chr(0b1001001 + 0o32) + chr(217 - 106) + chr(0b1100100) + '\x65')(chr(8900 - 8783) + '\164' + chr(102) + chr(0b10010 + 0o33) + chr(0b110000 + 0o10)))(roI3spqORKae(ES5oEprVxulp(b'\x82Y=\x81\xa0\xd0\x1e \xc2\x16('), chr(0b1100100) + chr(2317 - 2216) + '\x63' + '\x6f' + chr(0b1100100) + chr(4932 - 4831))(chr(0b1110101) + chr(8102 - 7986) + chr(0b1100100 + 0o2) + chr(0b1101 + 0o40) + chr(1510 - 1454))) roI3spqORKae(hXMPsSrOQzbh.grid_frame, roI3spqORKae(ES5oEprVxulp(b'\x93X<\x92'), '\x64' + chr(101) + chr(0b100011 + 0o100) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(9144 - 9027) + chr(0b1110100) + '\146' + '\055' + chr(1097 - 1041)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x94g\x06\xa9\xc2\xe08\x06\xe2*'), chr(5441 - 5341) + chr(0b1100101) + chr(8590 - 8491) + chr(0b1101111) + '\x64' + chr(298 - 197))('\x75' + chr(0b111101 + 0o67) + chr(9118 - 9016) + chr(45) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh.grid_frame, roI3spqORKae(ES5oEprVxulp(b'\xa2Y=\x81\xdf\xd0\x1e \xc2\x16('), chr(100) + chr(0b1100101) + '\x63' + chr(11124 - 11013) + '\x64' + '\145')('\x75' + chr(116) + '\146' + chr(45) + '\070')), roI3spqORKae(hXMPsSrOQzbh.grid_frame, roI3spqORKae(ES5oEprVxulp(b'\xa5^5\x91\xec\xd031\xc2\x00>\xa0\xd7Z4\xfc'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(117) + chr(0b1110100) + chr(3635 - 3533) + chr(71 - 26) + chr(0b110000 + 0o10)))) for o6UWUO21mH25 in tivFcUZX2qjc[roI3spqORKae(ES5oEprVxulp(b'\xbfD?'), '\144' + chr(0b100001 + 0o104) + chr(7204 - 7105) + '\157' + chr(7687 - 7587) + chr(0b101011 + 0o72))(chr(13138 - 13021) + '\x74' + '\x66' + chr(1055 - 1010) + chr(56))]: roI3spqORKae(hXMPsSrOQzbh.grid_frame.grid, roI3spqORKae(ES5oEprVxulp(b'\xa1P;\x98\xf4\xea\x05<\xdb\x057\xba\xecg2\xfd\xbc'), chr(9132 - 9032) + chr(0b1000000 + 0o45) + chr(0b11010 + 0o111) + '\x6f' + '\144' + chr(1841 - 1740))(chr(0b1101011 + 0o12) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(o6UWUO21mH25) BBM8dxm7YWge = tivFcUZX2qjc[roI3spqORKae(ES5oEprVxulp(b'\xbfD?'), '\144' + chr(0b1000011 + 0o42) + chr(99) + '\x6f' + chr(0b1100100) + '\x65')(chr(2666 - 2549) + '\164' + chr(0b1100110) + '\055' + chr(0b111000))] == o6UWUO21mH25 Y_nNEzH43vXi = tivFcUZX2qjc[BBM8dxm7YWge] Y2QfnnvVOo8E = Y_nNEzH43vXi.dropna(how=roI3spqORKae(ES5oEprVxulp(b'\xb0]>'), chr(0b111010 + 0o52) + '\145' + chr(99) + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b1111 + 0o36) + '\070'), axis=nzTpIcepk0o8(chr(48) + chr(0b1110 + 0o141) + chr(0b100000 + 0o21), 8)).drop([roI3spqORKae(ES5oEprVxulp(b'\xbfD?'), chr(0b1100100) + chr(6560 - 6459) + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(102) + chr(45) + chr(0b100101 + 0o23)), roI3spqORKae(ES5oEprVxulp(b'\xb8B!\x83\xe5\xc6'), chr(100) + chr(101) + chr(0b110001 + 0o62) + chr(0b1101111) + chr(5174 - 5074) + chr(0b101000 + 0o75))(chr(0b1110101) + chr(116) + chr(0b1100001 + 0o5) + '\x2d' + '\070')], axis=nzTpIcepk0o8('\x30' + chr(111) + chr(0b101110 + 0o3), 8)) for hRTUxJgvuslu in Y2QfnnvVOo8E: (LtsSR25KaYhL, VuRTNmVdcYm1) = VEZ9_n6_6L81.extract_col_name(hRTUxJgvuslu) LzgSSkT0xSZf = hXMPsSrOQzbh.grid_frame.grid.col_labels.ZpfN5tSLaZze(VuRTNmVdcYm1) roI3spqORKae(hXMPsSrOQzbh.grid_frame.grid, roI3spqORKae(ES5oEprVxulp(b'\xa1P;\x98\xf4\xea\x05<\xdb\x057\xba\xecg#\xf7\xa7&'), '\144' + '\145' + chr(0b1000001 + 0o42) + '\x6f' + chr(100) + chr(1452 - 1351))(chr(12782 - 12665) + '\164' + '\x66' + chr(45) + chr(56)))(o6UWUO21mH25, LzgSSkT0xSZf, skip_cell=PrYrj8sHumBw) hybyBh7sijpV = hXMPsSrOQzbh.grid_frame.msg_text.GetLabel() if ftfygxgFas5X(nFvQkk85xvG4): zJmpuOvw4bQW = roI3spqORKae(ES5oEprVxulp(b'\x88^\'\xd6\xe1\xc7\tr\xc0\r(\xa0\xe1V\'\xb2\xbf"\x9b\xd8\x11\xee\x92!$a\xde-\xd0\xf3\xbb3x\xb9\x1b\xfd\xa9\xa2\t\xd5\xbe]\'\x9b\xee\xc6Vr\xd6\x19Q\xd9'), chr(1173 - 1073) + chr(0b100 + 0o141) + chr(0b1100011) + chr(0b111000 + 0o67) + chr(0b1100100) + '\145')(chr(12585 - 12468) + chr(116) + '\x66' + chr(0b1101 + 0o40) + chr(56)).q33KG3foQ_CJ(roI3spqORKae(ES5oEprVxulp(b'\xfd\x11'), '\x64' + chr(101) + '\143' + '\157' + chr(100) + chr(1480 - 1379))('\x75' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070').Y4yM9BcfTCNq(nFvQkk85xvG4)) else: zJmpuOvw4bQW = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + chr(99) + chr(0b101010 + 0o105) + chr(3135 - 3035) + chr(0b111011 + 0o52))('\165' + '\164' + chr(0b1010011 + 0o23) + '\055' + chr(0b111000)) if ftfygxgFas5X(IfMT1ERVP5HO): RCsWRxWY8VKv = roI3spqORKae(ES5oEprVxulp(b'\x88^\'\xd6\xed\xc0\x1f&\x8d\x0c:\xa5\xed\x18!\xe6\xeb&\x9b\x99\x04\xf5\xde"%s\x97 \xd8\xbf\xbc;g\xec\x14\xfd\xa3\xab\t\xd3\xb0R:\xd6\xef\xd3L&\xc5\x01{\xb5\xe7T,\xfd\xbc#\x90\x9fW\xe6\x8c">f\xc4y\x97\xa8\xb4\\\x03'), chr(0b1100100) + chr(0b1100101) + chr(0b1000011 + 0o40) + chr(11445 - 11334) + '\144' + chr(0b1111 + 0o126))(chr(0b1110101) + chr(1442 - 1326) + chr(0b1100110) + chr(45) + chr(0b111000)).q33KG3foQ_CJ(roI3spqORKae(ES5oEprVxulp(b'\xfd\x11'), '\x64' + chr(101) + chr(99) + '\157' + '\144' + '\145')(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(0b1101 + 0o53)).Y4yM9BcfTCNq(IfMT1ERVP5HO)) else: RCsWRxWY8VKv = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b100000 + 0o117) + chr(100) + chr(101))(chr(6466 - 6349) + chr(0b1000111 + 0o55) + chr(0b1100110) + chr(0b101101) + chr(0b10101 + 0o43)) uM322pqJAZqA = roI3spqORKae(ES5oEprVxulp(b'\xaaL)\x8b\xfb\xc8'), chr(1499 - 1399) + chr(4468 - 4367) + chr(99) + chr(6067 - 5956) + chr(0b1001111 + 0o25) + '\145')(chr(0b1100010 + 0o23) + chr(0b1110010 + 0o2) + chr(0b11110 + 0o110) + chr(397 - 352) + chr(56)).q33KG3foQ_CJ(zJmpuOvw4bQW, RCsWRxWY8VKv, o96X8El29TqY) roI3spqORKae(hXMPsSrOQzbh.grid_frame.msg_text, roI3spqORKae(ES5oEprVxulp(b'\x82T&\xba\xe1\xd7\t>'), chr(0b1100100) + chr(0b1100101) + chr(8858 - 8759) + chr(0b111001 + 0o66) + chr(100) + chr(101))(chr(117) + chr(551 - 435) + '\x66' + '\x2d' + '\x38'))(uM322pqJAZqA) roI3spqORKae(hXMPsSrOQzbh.grid_frame, roI3spqORKae(ES5oEprVxulp(b'\xb5^\r\x90\xe9\xc1'), '\144' + chr(0b1011 + 0o132) + chr(0b110010 + 0o61) + chr(0b1101111) + chr(100) + chr(101))('\165' + '\164' + chr(0b1010101 + 0o21) + chr(0b101101) + '\070'))(None) del VBnaM0jy14aO
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.highlight_problems
def highlight_problems(self, has_problems): """ Outline grid buttons in red if they have validation errors """ if has_problems: self.validation_mode = set(has_problems) # highlighting doesn't work with Windows if sys.platform in ['win32', 'win62']: self.message.SetLabel('The following grid(s) have incorrect or incomplete data:\n{}'.format(', '.join(self.validation_mode))) # highlighting does work with OSX else: for dtype in ["specimens", "samples", "sites", "locations", "ages", "measurements"]: wind = self.FindWindowByName(dtype + '_btn') if dtype not in has_problems: wind.Unbind(wx.EVT_PAINT, handler=self.highlight_button) else: wind.Bind(wx.EVT_PAINT, self.highlight_button) self.Refresh() self.message.SetLabel('Highlighted grids have incorrect or incomplete data') self.bSizer_msg.ShowItems(True) # manually fire a paint event to make sure all buttons # are highlighted/unhighlighted appropriately paintEvent = wx.CommandEvent(wx.wxEVT_PAINT, self.GetId()) self.GetEventHandler().ProcessEvent(paintEvent) else: self.message.SetLabel("Validated!") self.bSizer_msg.ShowItems(True) self.hbox.Fit(self)
python
def highlight_problems(self, has_problems): """ Outline grid buttons in red if they have validation errors """ if has_problems: self.validation_mode = set(has_problems) # highlighting doesn't work with Windows if sys.platform in ['win32', 'win62']: self.message.SetLabel('The following grid(s) have incorrect or incomplete data:\n{}'.format(', '.join(self.validation_mode))) # highlighting does work with OSX else: for dtype in ["specimens", "samples", "sites", "locations", "ages", "measurements"]: wind = self.FindWindowByName(dtype + '_btn') if dtype not in has_problems: wind.Unbind(wx.EVT_PAINT, handler=self.highlight_button) else: wind.Bind(wx.EVT_PAINT, self.highlight_button) self.Refresh() self.message.SetLabel('Highlighted grids have incorrect or incomplete data') self.bSizer_msg.ShowItems(True) # manually fire a paint event to make sure all buttons # are highlighted/unhighlighted appropriately paintEvent = wx.CommandEvent(wx.wxEVT_PAINT, self.GetId()) self.GetEventHandler().ProcessEvent(paintEvent) else: self.message.SetLabel("Validated!") self.bSizer_msg.ShowItems(True) self.hbox.Fit(self)
[ "def", "highlight_problems", "(", "self", ",", "has_problems", ")", ":", "if", "has_problems", ":", "self", ".", "validation_mode", "=", "set", "(", "has_problems", ")", "# highlighting doesn't work with Windows", "if", "sys", ".", "platform", "in", "[", "'win32'", ",", "'win62'", "]", ":", "self", ".", "message", ".", "SetLabel", "(", "'The following grid(s) have incorrect or incomplete data:\\n{}'", ".", "format", "(", "', '", ".", "join", "(", "self", ".", "validation_mode", ")", ")", ")", "# highlighting does work with OSX", "else", ":", "for", "dtype", "in", "[", "\"specimens\"", ",", "\"samples\"", ",", "\"sites\"", ",", "\"locations\"", ",", "\"ages\"", ",", "\"measurements\"", "]", ":", "wind", "=", "self", ".", "FindWindowByName", "(", "dtype", "+", "'_btn'", ")", "if", "dtype", "not", "in", "has_problems", ":", "wind", ".", "Unbind", "(", "wx", ".", "EVT_PAINT", ",", "handler", "=", "self", ".", "highlight_button", ")", "else", ":", "wind", ".", "Bind", "(", "wx", ".", "EVT_PAINT", ",", "self", ".", "highlight_button", ")", "self", ".", "Refresh", "(", ")", "self", ".", "message", ".", "SetLabel", "(", "'Highlighted grids have incorrect or incomplete data'", ")", "self", ".", "bSizer_msg", ".", "ShowItems", "(", "True", ")", "# manually fire a paint event to make sure all buttons", "# are highlighted/unhighlighted appropriately", "paintEvent", "=", "wx", ".", "CommandEvent", "(", "wx", ".", "wxEVT_PAINT", ",", "self", ".", "GetId", "(", ")", ")", "self", ".", "GetEventHandler", "(", ")", ".", "ProcessEvent", "(", "paintEvent", ")", "else", ":", "self", ".", "message", ".", "SetLabel", "(", "\"Validated!\"", ")", "self", ".", "bSizer_msg", ".", "ShowItems", "(", "True", ")", "self", ".", "hbox", ".", "Fit", "(", "self", ")" ]
Outline grid buttons in red if they have validation errors
[ "Outline", "grid", "buttons", "in", "red", "if", "they", "have", "validation", "errors" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L402-L431
train
Highlights grids in red if they have validation errors
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2008 - 1960) + chr(2093 - 1982) + chr(51) + '\063' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(55) + '\x32', 25944 - 25936), nzTpIcepk0o8(chr(2210 - 2162) + chr(0b1101111) + chr(0b110010) + chr(1502 - 1448) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b111101 + 0o62) + chr(1952 - 1903) + chr(51) + chr(1370 - 1320), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1772 - 1723) + '\065' + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\060' + chr(476 - 365) + '\x31' + chr(0b110010) + chr(0b1 + 0o57), 42904 - 42896), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101010 + 0o10) + chr(55) + chr(0b110011), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x37', 0o10), nzTpIcepk0o8(chr(612 - 564) + chr(0b1101111) + chr(50) + '\060' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(0b110110 + 0o1) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + '\x31' + '\x31' + '\062', 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + chr(2350 - 2295) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110111) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(1828 - 1780) + chr(8370 - 8259) + chr(50) + chr(0b110010) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(824 - 772), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(2685 - 2633) + chr(1571 - 1523), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(519 - 465) + '\x37', 0b1000), nzTpIcepk0o8(chr(281 - 233) + '\x6f' + '\x33' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b1101111) + chr(0b100010 + 0o20) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + '\x33' + chr(0b110110) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + '\x31' + chr(0b100100 + 0o17) + '\x30', ord("\x08")), nzTpIcepk0o8('\x30' + chr(6056 - 5945) + chr(0b101100 + 0o7) + chr(0b110011) + chr(273 - 220), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(1827 - 1777) + '\x36', 1130 - 1122), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(2283 - 2230) + '\061', ord("\x08")), nzTpIcepk0o8(chr(1380 - 1332) + chr(0b111111 + 0o60) + chr(0b110011) + '\066' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(1460 - 1410) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(0b110100) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(482 - 430) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101111) + chr(49) + chr(917 - 863) + chr(613 - 558), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x35' + chr(0b10000 + 0o43), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x32' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + '\x32' + '\060' + chr(0b1010 + 0o46), 48549 - 48541), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(55) + '\067', 63689 - 63681), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100000 + 0o21) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10101 + 0o34) + '\x37', 0o10), nzTpIcepk0o8(chr(2090 - 2042) + '\x6f' + chr(0b10001 + 0o40) + chr(0b110000) + chr(0b100110 + 0o14), 48577 - 48569), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b100011 + 0o17) + chr(49) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11100 + 0o25) + '\067' + chr(55), 9938 - 9930), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + chr(1385 - 1334) + chr(0b110110) + chr(1190 - 1136), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + chr(0b1101 + 0o44) + '\060' + chr(156 - 101), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1367 - 1319) + chr(0b1011010 + 0o25) + chr(0b110101) + '\060', 26281 - 26273)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf6'), chr(3654 - 3554) + chr(0b1100101) + chr(3593 - 3494) + '\157' + chr(0b10 + 0o142) + chr(0b1100101))(chr(117) + '\164' + chr(0b1000100 + 0o42) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def kTVI0hmOZMTN(hXMPsSrOQzbh, LGgTam7m_H31): if LGgTam7m_H31: hXMPsSrOQzbh.ecawvoP84Sdo = Bvi71nNyvlqO(LGgTam7m_H31) if roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95H\xd0i\x13a\xfcV\xb7\x8f\t\r'), chr(0b101100 + 0o70) + chr(0b1100101) + '\143' + chr(5200 - 5089) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b11110 + 0o17) + chr(0b111000))) in [roI3spqORKae(ES5oEprVxulp(b'\xafS\xd9iX'), chr(0b1011011 + 0o11) + chr(9161 - 9060) + chr(0b1001011 + 0o30) + chr(6609 - 6498) + chr(9164 - 9064) + chr(1885 - 1784))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xafS\xd9lX'), chr(0b101010 + 0o72) + chr(0b1011 + 0o132) + chr(99) + chr(0b1001001 + 0o46) + chr(100) + chr(0b1010 + 0o133))('\x75' + chr(0b1110100) + '\146' + chr(1523 - 1478) + chr(1463 - 1407))]: roI3spqORKae(hXMPsSrOQzbh.message, roI3spqORKae(ES5oEprVxulp(b'\x8b_\xc3\x16\x0b2\xdek'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(3568 - 3457) + chr(7180 - 7080) + chr(101))('\x75' + chr(116) + chr(102) + chr(0b100 + 0o51) + chr(0b10111 + 0o41)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x8cR\xd2z\x0c?\xd7k\xed\xcd#S\x98\xb6c\x12^|;\x80q\xfd>H\x86\xf2\x84K\x19\x88\xbc\xf2\xcdll6\xad\x10\x84g\xb1T\xd45\x07 \xd7b\xf6\xdfjY\x9e\xe2eZ=cn'), chr(0b1100100) + '\145' + '\x63' + '\157' + '\144' + '\x65')(chr(977 - 860) + chr(0b1110100) + chr(0b1100101 + 0o1) + chr(0b111 + 0o46) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xa9\t\x84\x11-c\xddh\xd3\xe5\tw'), '\144' + '\145' + chr(2242 - 2143) + chr(5029 - 4918) + chr(100) + '\145')(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(5686 - 5584) + '\055' + chr(2491 - 2435)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf4\x1a'), chr(0b1010010 + 0o22) + '\145' + '\143' + chr(0b1000000 + 0o57) + chr(0b1100100) + chr(101))('\165' + '\x74' + chr(725 - 623) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x81\x0e\xce\x17S\x12\xd8a\xd6\xf9\x04L'), chr(0b111111 + 0o45) + chr(0b1100101) + '\x63' + chr(111) + '\x64' + chr(0b1100101))(chr(11899 - 11782) + '\x74' + '\x66' + '\x2d' + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbdY\xd6-\x1c?\xeb?\xb6\xe9.R'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(5149 - 5049) + '\145')(chr(0b1100011 + 0o22) + chr(116) + '\146' + '\055' + chr(56)))))) else: for RcX9bbuOzh5L in [roI3spqORKae(ES5oEprVxulp(b'\xabJ\xd29\x03=\xdei\xf1'), '\x64' + chr(0b11000 + 0o115) + chr(5870 - 5771) + '\157' + chr(100) + '\145')('\x75' + chr(0b1110100) + chr(0b1110 + 0o130) + '\x2d' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xab[\xda*\x065\xc8'), chr(100) + '\x65' + chr(2169 - 2070) + chr(3413 - 3302) + chr(0b1010110 + 0o16) + chr(101))('\165' + '\164' + '\x66' + '\055' + chr(0b1011 + 0o55)), roI3spqORKae(ES5oEprVxulp(b'\xabS\xc3?\x19'), '\144' + chr(0b1001100 + 0o31) + '\143' + '\x6f' + '\x64' + chr(9069 - 8968))('\165' + chr(9623 - 9507) + chr(0b1100110) + chr(602 - 557) + chr(2896 - 2840)), roI3spqORKae(ES5oEprVxulp(b'\xb4U\xd4;\x1e9\xd4i\xf1'), chr(0b1100100) + '\145' + '\x63' + chr(5345 - 5234) + chr(7005 - 6905) + chr(101))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xb9]\xd2)'), '\x64' + chr(8603 - 8502) + chr(1620 - 1521) + '\157' + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(3350 - 3248) + chr(0b100110 + 0o7) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xb5_\xd6)\x1f"\xdej\xe7\xd4>N'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + chr(116) + '\146' + chr(0b100000 + 0o15) + '\070')]: NStcDksP1S9L = hXMPsSrOQzbh.FindWindowByName(RcX9bbuOzh5L + roI3spqORKae(ES5oEprVxulp(b'\x87X\xc34'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(744 - 627) + '\164' + '\x66' + chr(45) + chr(2766 - 2710))) if RcX9bbuOzh5L not in LGgTam7m_H31: roI3spqORKae(NStcDksP1S9L, roI3spqORKae(ES5oEprVxulp(b'\x8dT\xd53\x044'), chr(1819 - 1719) + '\x65' + '\x63' + chr(0b11011 + 0o124) + '\x64' + chr(101))('\x75' + '\x74' + '\146' + chr(1167 - 1122) + chr(56)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x9dl\xe3\x05:\x11\xf2I\xd6'), chr(9631 - 9531) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(4264 - 4163))(chr(0b1010101 + 0o40) + chr(0b1110100) + chr(0b1100110) + chr(967 - 922) + chr(0b111 + 0o61))), handler=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb0S\xd02\x069\xdco\xf6\xe5(H\x8b\xe2k\x0e'), chr(0b1110 + 0o126) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(3394 - 3294) + '\145')(chr(6144 - 6027) + chr(0b1101111 + 0o5) + '\146' + chr(45) + '\070'))) else: roI3spqORKae(NStcDksP1S9L, roI3spqORKae(ES5oEprVxulp(b'\x9aS\xd9>'), chr(963 - 863) + chr(0b110101 + 0o60) + '\143' + chr(0b10011 + 0o134) + chr(0b110011 + 0o61) + chr(0b1100101))(chr(117) + chr(0b111001 + 0o73) + chr(0b1111 + 0o127) + chr(45) + chr(3037 - 2981)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x9dl\xe3\x05:\x11\xf2I\xd6'), '\144' + '\145' + chr(762 - 663) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100 + 0o132) + chr(917 - 872) + chr(0b111000))), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb0S\xd02\x069\xdco\xf6\xe5(H\x8b\xe2k\x0e'), chr(100) + chr(0b10110 + 0o117) + chr(99) + '\x6f' + chr(0b1100100) + chr(670 - 569))('\165' + chr(11978 - 11862) + chr(9943 - 9841) + '\x2d' + '\070'))) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8a_\xd1(\x0f#\xd3'), '\x64' + chr(101) + chr(0b1100011 + 0o0) + chr(0b10000 + 0o137) + chr(7705 - 7605) + '\x65')(chr(0b1100010 + 0o23) + chr(0b11011 + 0o131) + chr(5151 - 5049) + chr(740 - 695) + chr(0b111000)))() roI3spqORKae(hXMPsSrOQzbh.message, roI3spqORKae(ES5oEprVxulp(b'\x8b_\xc3\x16\x0b2\xdek'), '\144' + '\145' + chr(0b1100011) + chr(6120 - 6009) + '\x64' + '\145')(chr(0b1110001 + 0o4) + '\x74' + '\x66' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x90S\xd02\x069\xdco\xf6\xdf.\x1d\x98\xe4m\x04D8{\x92.\xb8v@\x9e\xf4\xcbP\x05\x8e\xb0\xf4\x9ff}b\xe4\x11\x95(\xb5J\xdb?\x1e5\x9bc\xe3\xce+'), '\x64' + chr(0b101100 + 0o71) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(10467 - 10350) + '\x74' + chr(0b1100110) + chr(1413 - 1368) + '\x38')) roI3spqORKae(hXMPsSrOQzbh.bSizer_msg, roI3spqORKae(ES5oEprVxulp(b'\x8bR\xd8-#$\xdej\xf1'), '\x64' + chr(101) + '\x63' + chr(7139 - 7028) + '\144' + chr(0b1100011 + 0o2))(chr(0b1000 + 0o155) + chr(1446 - 1330) + chr(0b1011010 + 0o14) + '\055' + chr(2570 - 2514)))(nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b110001), 1461 - 1453)) KgrhhMumQPkY = FHAk5xm055cs.CommandEvent(FHAk5xm055cs.wxEVT_PAINT, hXMPsSrOQzbh.GetId()) roI3spqORKae(hXMPsSrOQzbh.GetEventHandler(), roI3spqORKae(ES5oEprVxulp(b'\x88H\xd89\x0f#\xc8B\xf4\xdf$I'), chr(0b1100100) + '\x65' + '\x63' + chr(7352 - 7241) + chr(0b1100100) + chr(0b1011 + 0o132))(chr(0b101100 + 0o111) + '\x74' + chr(0b1010 + 0o134) + chr(45) + '\x38'))(KgrhhMumQPkY) else: roI3spqORKae(hXMPsSrOQzbh.message, roI3spqORKae(ES5oEprVxulp(b'\x8b_\xc3\x16\x0b2\xdek'), chr(0b1100100) + chr(0b100111 + 0o76) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(8639 - 8522) + chr(116) + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x8e[\xdb3\x0e1\xcfb\xe6\x9b'), '\144' + '\x65' + chr(0b1011100 + 0o7) + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(0b1011110 + 0o26) + chr(8833 - 8731) + chr(1376 - 1331) + chr(0b111000))) roI3spqORKae(hXMPsSrOQzbh.bSizer_msg, roI3spqORKae(ES5oEprVxulp(b'\x8bR\xd8-#$\xdej\xf1'), chr(0b10010 + 0o122) + chr(0b10101 + 0o120) + '\x63' + chr(0b1101111) + '\144' + chr(544 - 443))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)))(nzTpIcepk0o8('\x30' + chr(111) + '\x31', 8)) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x9eS\xc3'), '\x64' + '\x65' + '\x63' + chr(11666 - 11555) + '\144' + '\x65')('\165' + chr(9583 - 9467) + chr(0b1100110) + chr(0b101101) + chr(0b10000 + 0o50)))(hXMPsSrOQzbh)
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.reset_highlights
def reset_highlights(self): """ Remove red outlines from all buttons """ for dtype in ["specimens", "samples", "sites", "locations", "ages"]: wind = self.FindWindowByName(dtype + '_btn') wind.Unbind(wx.EVT_PAINT, handler=self.highlight_button) self.Refresh() #self.message.SetLabel('Highlighted grids have incorrect or incomplete data') self.bSizer_msg.ShowItems(False) self.hbox.Fit(self)
python
def reset_highlights(self): """ Remove red outlines from all buttons """ for dtype in ["specimens", "samples", "sites", "locations", "ages"]: wind = self.FindWindowByName(dtype + '_btn') wind.Unbind(wx.EVT_PAINT, handler=self.highlight_button) self.Refresh() #self.message.SetLabel('Highlighted grids have incorrect or incomplete data') self.bSizer_msg.ShowItems(False) self.hbox.Fit(self)
[ "def", "reset_highlights", "(", "self", ")", ":", "for", "dtype", "in", "[", "\"specimens\"", ",", "\"samples\"", ",", "\"sites\"", ",", "\"locations\"", ",", "\"ages\"", "]", ":", "wind", "=", "self", ".", "FindWindowByName", "(", "dtype", "+", "'_btn'", ")", "wind", ".", "Unbind", "(", "wx", ".", "EVT_PAINT", ",", "handler", "=", "self", ".", "highlight_button", ")", "self", ".", "Refresh", "(", ")", "#self.message.SetLabel('Highlighted grids have incorrect or incomplete data')", "self", ".", "bSizer_msg", ".", "ShowItems", "(", "False", ")", "self", ".", "hbox", ".", "Fit", "(", "self", ")" ]
Remove red outlines from all buttons
[ "Remove", "red", "outlines", "from", "all", "buttons" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L433-L443
train
Remove red outlines from all buttons and update the grids
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\062' + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(50) + chr(61 - 9) + chr(2897 - 2843), 52550 - 52542), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(51) + chr(0b110001) + chr(1956 - 1904), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(53) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100111 + 0o20) + chr(1232 - 1183), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b101000 + 0o10), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1662 - 1613) + chr(55) + chr(53), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\157' + chr(844 - 795) + chr(0b110111) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1796 - 1748) + '\157' + chr(50) + '\064' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + chr(0b10101 + 0o132) + '\061' + chr(0b11001 + 0o27) + chr(50), 14516 - 14508), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b10 + 0o62) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(52) + '\060', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(49) + chr(0b110111) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010111 + 0o30) + chr(51) + chr(54) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(681 - 633) + chr(0b110010 + 0o75) + '\063' + chr(0b11001 + 0o30) + chr(1013 - 965), 41608 - 41600), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b10011 + 0o134) + chr(1462 - 1411) + '\063' + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\x33' + chr(2038 - 1986), 0o10), nzTpIcepk0o8('\060' + chr(0b10100 + 0o133) + '\066', 5836 - 5828), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110110) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1 + 0o62) + chr(0b101011 + 0o10) + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(1430 - 1375) + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(12093 - 11982) + '\x32' + chr(49) + chr(0b11110 + 0o30), 54457 - 54449), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49), 0b1000), nzTpIcepk0o8(chr(1044 - 996) + chr(111) + chr(0b110001) + '\065' + '\x35', 0o10), nzTpIcepk0o8(chr(1135 - 1087) + chr(2135 - 2024) + '\x32' + chr(54) + chr(0b11011 + 0o25), 64095 - 64087), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + chr(50) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1036 - 987) + chr(0b1101 + 0o44) + chr(1581 - 1526), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(1932 - 1879) + chr(476 - 425), ord("\x08")), nzTpIcepk0o8('\x30' + chr(1330 - 1219) + chr(0b110011) + '\061', 0o10), nzTpIcepk0o8(chr(469 - 421) + chr(111) + '\063' + '\x31' + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + '\062' + chr(52) + chr(51), 10763 - 10755), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1100 + 0o46) + chr(0b10110 + 0o36) + chr(926 - 873), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101001 + 0o15) + '\062', 62550 - 62542), nzTpIcepk0o8(chr(0b110000) + chr(0b101001 + 0o106) + chr(0b101110 + 0o4) + chr(53) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + chr(1290 - 1238) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\065' + '\x34', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b110 + 0o52) + chr(504 - 454), 8), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + '\061' + chr(1525 - 1477) + chr(50), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x34', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(8143 - 8032) + chr(0b110101) + chr(48), 6927 - 6919)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfc'), chr(0b1100100) + chr(3177 - 3076) + '\143' + '\157' + '\144' + '\145')('\165' + chr(6845 - 6729) + '\x66' + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ORdeTGHGjYkw(hXMPsSrOQzbh): for RcX9bbuOzh5L in [roI3spqORKae(ES5oEprVxulp(b'\xa1\xd6\xa9\tPm\x18\x12\xd3'), '\144' + chr(101) + '\x63' + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + chr(0b1000100 + 0o42) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xa1\xc7\xa1\x1aUe\x0e'), chr(0b101000 + 0o74) + chr(101) + chr(7924 - 7825) + '\x6f' + chr(0b1100100) + chr(101))(chr(8193 - 8076) + chr(0b1110100) + '\146' + chr(0b10011 + 0o32) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xa1\xcf\xb8\x0fJ'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + '\x64' + '\145')(chr(1965 - 1848) + chr(116) + chr(5903 - 5801) + chr(45) + chr(2335 - 2279)), roI3spqORKae(ES5oEprVxulp(b'\xbe\xc9\xaf\x0bMi\x12\x12\xd3'), chr(6265 - 6165) + chr(0b1100101) + chr(109 - 10) + chr(111) + chr(0b1000110 + 0o36) + chr(101))(chr(0b1110101) + chr(0b1100101 + 0o17) + '\x66' + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xb3\xc1\xa9\x19'), chr(100) + '\145' + chr(99) + chr(0b1000101 + 0o52) + '\x64' + chr(0b11111 + 0o106))(chr(10824 - 10707) + '\x74' + '\146' + chr(0b101101) + chr(0b111000))]: NStcDksP1S9L = hXMPsSrOQzbh.FindWindowByName(RcX9bbuOzh5L + roI3spqORKae(ES5oEprVxulp(b'\x8d\xc4\xb8\x04'), '\144' + chr(0b100 + 0o141) + chr(8098 - 7999) + chr(111) + '\x64' + chr(3051 - 2950))('\165' + chr(0b10111 + 0o135) + '\146' + '\055' + chr(0b111000))) roI3spqORKae(NStcDksP1S9L, roI3spqORKae(ES5oEprVxulp(b'\x87\xc8\xae\x03Wd'), chr(0b110100 + 0o60) + chr(4502 - 4401) + chr(7319 - 7220) + chr(0b111000 + 0o67) + chr(100) + chr(5553 - 5452))(chr(0b100100 + 0o121) + chr(0b1011011 + 0o31) + chr(102) + '\x2d' + '\x38'))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\x97\xf0\x985iA42\xf4'), chr(2850 - 2750) + chr(4006 - 3905) + '\143' + chr(0b1011111 + 0o20) + chr(0b1101 + 0o127) + '\145')(chr(117) + '\164' + chr(0b1010000 + 0o26) + chr(0b101101) + chr(944 - 888))), handler=roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xba\xcf\xab\x02Ui\x1a\x14\xd4\x1d\x01U\x0c\x83\xa7\xb7'), '\144' + chr(0b1100011 + 0o2) + '\143' + chr(0b1101111) + chr(2515 - 2415) + chr(0b1100101))('\165' + chr(4219 - 4103) + chr(0b100001 + 0o105) + chr(0b101101) + chr(100 - 44)))) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x80\xc3\xaa\x18\\s\x15'), '\144' + chr(0b10 + 0o143) + '\143' + chr(0b1011101 + 0o22) + chr(0b111001 + 0o53) + chr(0b1010111 + 0o16))(chr(117) + chr(13291 - 13175) + '\x66' + '\x2d' + '\070'))() roI3spqORKae(hXMPsSrOQzbh.bSizer_msg, roI3spqORKae(ES5oEprVxulp(b'\x81\xce\xa3\x1dpt\x18\x11\xd3'), '\144' + chr(0b100000 + 0o105) + chr(0b101110 + 0o65) + chr(2434 - 2323) + chr(0b11010 + 0o112) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(186 - 141) + '\x38'))(nzTpIcepk0o8('\060' + chr(0b1000100 + 0o53) + chr(0b110000), 8)) roI3spqORKae(hXMPsSrOQzbh.hbox, roI3spqORKae(ES5oEprVxulp(b'\x94\xcf\xb8'), '\144' + chr(101) + '\x63' + '\x6f' + chr(4531 - 4431) + '\145')(chr(3725 - 3608) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)))(hXMPsSrOQzbh)
PmagPy/PmagPy
programs/magic_gui.py
MainFrame.highlight_button
def highlight_button(self, event): """ Draw a red highlight line around the event object """ wind = event.GetEventObject() pos = wind.GetPosition() size = wind.GetSize() try: dc = wx.PaintDC(self) except wx._core.PyAssertionError: # if it's not a native paint event, we can't us wx.PaintDC dc = wx.ClientDC(self) dc.SetPen(wx.Pen('red', 5, wx.SOLID)) dc.DrawRectangle(pos[0], pos[1], size[0], size[1]) event.Skip()
python
def highlight_button(self, event): """ Draw a red highlight line around the event object """ wind = event.GetEventObject() pos = wind.GetPosition() size = wind.GetSize() try: dc = wx.PaintDC(self) except wx._core.PyAssertionError: # if it's not a native paint event, we can't us wx.PaintDC dc = wx.ClientDC(self) dc.SetPen(wx.Pen('red', 5, wx.SOLID)) dc.DrawRectangle(pos[0], pos[1], size[0], size[1]) event.Skip()
[ "def", "highlight_button", "(", "self", ",", "event", ")", ":", "wind", "=", "event", ".", "GetEventObject", "(", ")", "pos", "=", "wind", ".", "GetPosition", "(", ")", "size", "=", "wind", ".", "GetSize", "(", ")", "try", ":", "dc", "=", "wx", ".", "PaintDC", "(", "self", ")", "except", "wx", ".", "_core", ".", "PyAssertionError", ":", "# if it's not a native paint event, we can't us wx.PaintDC", "dc", "=", "wx", ".", "ClientDC", "(", "self", ")", "dc", ".", "SetPen", "(", "wx", ".", "Pen", "(", "'red'", ",", "5", ",", "wx", ".", "SOLID", ")", ")", "dc", ".", "DrawRectangle", "(", "pos", "[", "0", "]", ",", "pos", "[", "1", "]", ",", "size", "[", "0", "]", ",", "size", "[", "1", "]", ")", "event", ".", "Skip", "(", ")" ]
Draw a red highlight line around the event object
[ "Draw", "a", "red", "highlight", "line", "around", "the", "event", "object" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L446-L460
train
Draw a red highlight line around the event object
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(7498 - 7387) + chr(0b110010) + chr(0b10111 + 0o33) + chr(606 - 558), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1011 + 0o50) + chr(52) + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(55) + chr(546 - 491), 0o10), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(0b10100 + 0o37) + '\061' + chr(0b1101 + 0o43), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(1296 - 1247) + chr(0b110101) + '\064', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b1011 + 0o52), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11390 - 11279) + '\062' + chr(1564 - 1514) + chr(0b110010), 9990 - 9982), nzTpIcepk0o8('\x30' + chr(7027 - 6916) + chr(0b110001) + '\x32' + chr(0b11111 + 0o21), 10894 - 10886), nzTpIcepk0o8(chr(1064 - 1016) + chr(0b1011100 + 0o23) + chr(0b110011) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9295 - 9184) + '\064', 17872 - 17864), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1915 - 1866) + '\x30' + chr(0b1011 + 0o50), 2336 - 2328), nzTpIcepk0o8(chr(1440 - 1392) + chr(0b1101011 + 0o4) + '\062' + chr(0b110101) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(2057 - 2005) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(51) + '\x32', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110101) + chr(49), 13710 - 13702), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110110) + chr(55), 47801 - 47793), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b11010 + 0o35) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(3572 - 3461) + '\061' + chr(0b110100) + chr(51), 57242 - 57234), nzTpIcepk0o8(chr(0b110000) + chr(0b1011 + 0o144) + chr(0b110011) + '\065' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1300 - 1249) + chr(0b110101) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100111 + 0o14) + chr(1195 - 1140) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(816 - 768) + '\x35', 62008 - 62000), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\x31' + chr(53), 8), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(815 - 764) + chr(0b10110 + 0o34), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(420 - 369) + chr(1280 - 1226) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(2960 - 2905), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1110 + 0o51) + chr(0b1100 + 0o53), 0o10), nzTpIcepk0o8(chr(1858 - 1810) + '\157' + '\x31' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(2472 - 2417), 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(49) + '\064' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x36' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + chr(49) + '\x31' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(12036 - 11925) + '\x31' + chr(1830 - 1779) + chr(0b110111), 7936 - 7928), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(5018 - 4907) + '\x32' + chr(0b100100 + 0o23) + chr(0b10101 + 0o40), 0o10), nzTpIcepk0o8(chr(1723 - 1675) + chr(10604 - 10493) + chr(1848 - 1800), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7961 - 7850) + chr(0b110100) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + chr(0b100110 + 0o14) + chr(1100 - 1049) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\x30' + chr(8349 - 8238) + '\x32' + chr(0b1011 + 0o45) + chr(2394 - 2340), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10101 + 0o34) + chr(0b11111 + 0o24), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(0b110000) + chr(0b1001 + 0o51), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1987 - 1939) + chr(111) + chr(0b110101) + chr(0b110000), 57880 - 57872)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbe'), chr(0b10111 + 0o115) + '\145' + '\143' + chr(0b1001001 + 0o46) + chr(223 - 123) + chr(0b1100101))(chr(0b1110101) + chr(1689 - 1573) + chr(102) + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ISJM9zL9XN1m(hXMPsSrOQzbh, D4ybylS07yGH): NStcDksP1S9L = D4ybylS07yGH.GetEventObject() IGIA_fu6MbaO = NStcDksP1S9L.GetPosition() e1HrJaQHACnl = NStcDksP1S9L.GetSize() try: Iq4fgxO0wlkK = FHAk5xm055cs.PaintDC(hXMPsSrOQzbh) except roI3spqORKae(FHAk5xm055cs._core, roI3spqORKae(ES5oEprVxulp(b'\xc0\x9e\xbe\xbb\x1fh\xe0$vk-\xedU\xe8FE'), '\144' + chr(101) + chr(7898 - 7799) + '\x6f' + chr(0b1010100 + 0o20) + chr(0b1000110 + 0o37))(chr(0b1101010 + 0o13) + chr(6792 - 6676) + '\146' + chr(594 - 549) + chr(0b1000 + 0o60))): Iq4fgxO0wlkK = FHAk5xm055cs.ClientDC(hXMPsSrOQzbh) roI3spqORKae(Iq4fgxO0wlkK, roI3spqORKae(ES5oEprVxulp(b'\xc3\x82\x8b\x98\tc'), chr(0b1011100 + 0o10) + chr(0b1000000 + 0o45) + chr(7213 - 7114) + '\x6f' + chr(100) + chr(4479 - 4378))(chr(117) + chr(0b11011 + 0o131) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xc0\x82\x91'), '\x64' + chr(0b1100001 + 0o4) + '\143' + chr(422 - 311) + '\144' + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(1201 - 1156) + chr(0b11110 + 0o32)))(roI3spqORKae(ES5oEprVxulp(b'\xe2\x82\x9b'), chr(100) + '\x65' + chr(4516 - 4417) + chr(5179 - 5068) + chr(0b1100100) + chr(3768 - 3667))(chr(117) + '\164' + chr(102) + chr(45) + chr(2426 - 2370)), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101), 59834 - 59826), roI3spqORKae(FHAk5xm055cs, roI3spqORKae(ES5oEprVxulp(b'\xc3\xa8\xb3\x81('), chr(2954 - 2854) + chr(101) + chr(99) + '\x6f' + '\144' + '\145')('\165' + chr(116) + '\146' + chr(560 - 515) + '\070')))) roI3spqORKae(Iq4fgxO0wlkK, roI3spqORKae(ES5oEprVxulp(b'\xd4\x95\x9e\xbf>h\xf1$~j$\xc4B'), chr(6764 - 6664) + chr(0b1100101) + chr(0b1010110 + 0o15) + chr(111) + '\144' + chr(0b1010100 + 0o21))('\x75' + chr(0b1101 + 0o147) + chr(0b100101 + 0o101) + '\055' + chr(0b11100 + 0o34)))(IGIA_fu6MbaO[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10110 + 0o32), 8)], IGIA_fu6MbaO[nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1000000 + 0o57) + chr(49), ord("\x08"))], e1HrJaQHACnl[nzTpIcepk0o8(chr(48) + chr(111) + '\060', 8)], e1HrJaQHACnl[nzTpIcepk0o8(chr(906 - 858) + chr(111) + chr(2240 - 2191), 8)]) roI3spqORKae(D4ybylS07yGH, roI3spqORKae(ES5oEprVxulp(b'\xc3\x8c\x96\xb8'), chr(100) + chr(0b10110 + 0o117) + chr(0b1010 + 0o131) + '\157' + chr(0b1100100) + chr(0b1000000 + 0o45))('\x75' + chr(5305 - 5189) + chr(0b100001 + 0o105) + chr(0b101101) + '\070'))()
PmagPy/PmagPy
programs/magic_gui.py
MagICMenu.on_clear
def on_clear(self, event): """ initialize window to allow user to empty the working directory """ dia = pmag_menu_dialogs.ClearWD(self.parent, self.parent.WD) clear = dia.do_clear() if clear: print('-I- Clear data object') self.contribution = cb.Contribution(self.WD, dmodel=self.data_model) self.edited = False
python
def on_clear(self, event): """ initialize window to allow user to empty the working directory """ dia = pmag_menu_dialogs.ClearWD(self.parent, self.parent.WD) clear = dia.do_clear() if clear: print('-I- Clear data object') self.contribution = cb.Contribution(self.WD, dmodel=self.data_model) self.edited = False
[ "def", "on_clear", "(", "self", ",", "event", ")", ":", "dia", "=", "pmag_menu_dialogs", ".", "ClearWD", "(", "self", ".", "parent", ",", "self", ".", "parent", ".", "WD", ")", "clear", "=", "dia", ".", "do_clear", "(", ")", "if", "clear", ":", "print", "(", "'-I- Clear data object'", ")", "self", ".", "contribution", "=", "cb", ".", "Contribution", "(", "self", ".", "WD", ",", "dmodel", "=", "self", ".", "data_model", ")", "self", ".", "edited", "=", "False" ]
initialize window to allow user to empty the working directory
[ "initialize", "window", "to", "allow", "user", "to", "empty", "the", "working", "directory" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L523-L532
train
Clear the data object
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1919 - 1871) + chr(11035 - 10924) + chr(0b11000 + 0o33) + chr(0b101 + 0o56), 22579 - 22571), nzTpIcepk0o8(chr(0b110000) + chr(2898 - 2787) + chr(0b100110 + 0o15) + '\x37' + chr(0b100110 + 0o17), 60912 - 60904), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b100000 + 0o20) + chr(2659 - 2604), 34266 - 34258), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(10498 - 10387) + chr(0b110001) + '\062' + chr(49), 43594 - 43586), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(0b101001 + 0o13) + chr(0b110110), 55184 - 55176), nzTpIcepk0o8('\060' + chr(111) + '\064' + chr(0b110001), 50285 - 50277), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(9860 - 9749) + chr(599 - 547) + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101001 + 0o106) + chr(51) + chr(48) + '\x36', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(1597 - 1543) + chr(0b100001 + 0o21), 11398 - 11390), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + '\062' + chr(0b110001) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(8053 - 7942) + chr(51) + '\066' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(0b1101111) + '\x31' + chr(1026 - 974) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\x31' + chr(0b110110) + '\x34', 57519 - 57511), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(50) + chr(2295 - 2246), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b110100) + chr(1204 - 1155), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101000 + 0o107) + chr(51) + '\x30' + chr(0b100001 + 0o24), 0o10), nzTpIcepk0o8(chr(515 - 467) + '\x6f' + '\x31' + '\060' + chr(0b10110 + 0o34), 0b1000), nzTpIcepk0o8(chr(48) + chr(8897 - 8786) + '\062' + '\x34' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(12164 - 12053) + '\062' + chr(294 - 243) + chr(2104 - 2054), 64372 - 64364), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\063' + chr(49), 31463 - 31455), nzTpIcepk0o8(chr(1486 - 1438) + chr(111) + '\061' + chr(2024 - 1972) + chr(0b11111 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(1284 - 1234) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(10298 - 10187) + '\062' + chr(1428 - 1375) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x37' + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(776 - 727) + '\062' + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(51) + chr(50) + chr(0b110011), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b111 + 0o54) + chr(0b110010), 45691 - 45683), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b101 + 0o54) + chr(0b101 + 0o55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4868 - 4757) + chr(1855 - 1805) + chr(0b1011 + 0o52) + '\061', 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + '\061' + chr(0b110011) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10011 + 0o43) + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(0b110001) + chr(48) + chr(698 - 645), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6403 - 6292) + '\061' + chr(660 - 605) + chr(1613 - 1558), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(53) + chr(51), 0o10), nzTpIcepk0o8(chr(2217 - 2169) + '\x6f' + chr(50) + chr(0b110110) + '\064', 15269 - 15261), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\x37', 1154 - 1146), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + '\065' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110000) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7732 - 7621) + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110110), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(7374 - 7263) + chr(0b110101) + chr(1349 - 1301), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'5'), chr(100) + '\x65' + '\143' + chr(111) + chr(0b1100100) + chr(101))(chr(0b1100101 + 0o20) + chr(0b1110100) + chr(0b10100 + 0o122) + chr(0b111 + 0o46) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nt8hS9wySMP2(hXMPsSrOQzbh, D4ybylS07yGH): k1471SZ1ik69 = K3eM7qtCl3Uz.ClearWD(hXMPsSrOQzbh.aY0lxtg5akD2, hXMPsSrOQzbh.parent.GP1zEShDyCxL) kcJ2iJI2a5HJ = k1471SZ1ik69.do_clear() if kcJ2iJI2a5HJ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'6\xb4\xeaqeMG\xa7\xc0\xac\x96\x02\x000A\xaa \xcb\xff\xfa\x16'), chr(100) + chr(0b1000110 + 0o37) + chr(0b1011111 + 0o4) + chr(0b11001 + 0o126) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + '\x66' + chr(45) + '\070')) hXMPsSrOQzbh.bSiGoWKHgDdJ = RYEhqzIVZREo.Contribution(hXMPsSrOQzbh.GP1zEShDyCxL, dmodel=hXMPsSrOQzbh.data_model) hXMPsSrOQzbh.GSElrZc3rkiP = nzTpIcepk0o8(chr(48) + '\157' + chr(702 - 654), ord("\x08"))
PmagPy/PmagPy
programs/magic_gui.py
MagICMenu.on_close_grid
def on_close_grid(self, event): """ If there is an open grid, save its data and close it. """ if self.parent.grid_frame: self.parent.grid_frame.onSave(None) self.parent.grid_frame.Destroy()
python
def on_close_grid(self, event): """ If there is an open grid, save its data and close it. """ if self.parent.grid_frame: self.parent.grid_frame.onSave(None) self.parent.grid_frame.Destroy()
[ "def", "on_close_grid", "(", "self", ",", "event", ")", ":", "if", "self", ".", "parent", ".", "grid_frame", ":", "self", ".", "parent", ".", "grid_frame", ".", "onSave", "(", "None", ")", "self", ".", "parent", ".", "grid_frame", ".", "Destroy", "(", ")" ]
If there is an open grid, save its data and close it.
[ "If", "there", "is", "an", "open", "grid", "save", "its", "data", "and", "close", "it", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/magic_gui.py#L557-L563
train
Save and close the grid.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2281 - 2233) + chr(111) + chr(55) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1 + 0o156) + '\x32' + chr(0b101001 + 0o10) + '\x37', 30479 - 30471), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(2356 - 2301) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(3466 - 3355) + '\063' + chr(55) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(4463 - 4352) + '\065' + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + chr(0b0 + 0o62) + chr(74 - 22), 11177 - 11169), nzTpIcepk0o8(chr(48) + chr(8073 - 7962) + '\063' + '\x32' + chr(2087 - 2038), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\060', 0o10), nzTpIcepk0o8(chr(1599 - 1551) + chr(10276 - 10165) + chr(2366 - 2315) + chr(52) + chr(412 - 362), 0b1000), nzTpIcepk0o8(chr(48) + chr(3832 - 3721) + chr(53) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(278 - 230) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b110001) + chr(1055 - 1007), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\066' + chr(0b100110 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2590 - 2539) + chr(54) + chr(0b11011 + 0o25), 30712 - 30704), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b11010 + 0o34) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110100) + chr(48), 53402 - 53394), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(960 - 849) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(7966 - 7855) + '\x34' + chr(50), 0b1000), nzTpIcepk0o8(chr(1488 - 1440) + chr(0b1101111) + chr(0b110001) + '\x36' + chr(0b110001), 56726 - 56718), nzTpIcepk0o8(chr(555 - 507) + chr(0b11001 + 0o126) + chr(0b11110 + 0o24) + chr(0b100100 + 0o17), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(3631 - 3520) + chr(51) + chr(483 - 435), ord("\x08")), nzTpIcepk0o8(chr(1004 - 956) + chr(111) + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(964 - 913) + chr(2232 - 2184), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1025 - 976) + '\066' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011110 + 0o21) + chr(51) + chr(48) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11000 + 0o32) + chr(0b101 + 0o54), 62239 - 62231), nzTpIcepk0o8(chr(48) + chr(2418 - 2307) + '\061' + chr(0b110010) + chr(53), 0o10), nzTpIcepk0o8(chr(1609 - 1561) + chr(6228 - 6117) + '\x32' + chr(0b110100) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(0b101010 + 0o105) + chr(0b100111 + 0o13) + '\x31' + chr(0b100011 + 0o23), 0o10), nzTpIcepk0o8(chr(52 - 4) + chr(0b11100 + 0o123) + chr(1740 - 1689) + chr(0b110110 + 0o1) + chr(53), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(111) + chr(0b1110 + 0o44) + '\x37' + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\063' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1675 - 1626) + '\066' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8193 - 8082) + chr(2099 - 2048) + chr(1859 - 1808) + chr(0b10000 + 0o47), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + '\x32' + chr(48) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(0b110100), 35465 - 35457), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + chr(0b110011) + chr(48) + chr(2376 - 2327), 8), nzTpIcepk0o8('\060' + chr(5672 - 5561) + '\x32' + chr(1149 - 1096) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1100 + 0o46) + chr(0b110001) + chr(1260 - 1210), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110101) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x13'), chr(6774 - 6674) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b11100 + 0o110) + chr(0b1100101))('\165' + chr(116) + chr(0b1100110) + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tZgRmhxGLXXa(hXMPsSrOQzbh, D4ybylS07yGH): if roI3spqORKae(hXMPsSrOQzbh.parent, roI3spqORKae(ES5oEprVxulp(b'o\xc2\xb2\x94^\xba\xa9p\xa7\x1f8\xad'), chr(0b1100100) + chr(0b111101 + 0o50) + '\x63' + chr(0b1101111) + chr(1977 - 1877) + '\145')('\x75' + chr(0b1011 + 0o151) + '\146' + chr(0b101101) + chr(1214 - 1158))): roI3spqORKae(hXMPsSrOQzbh.parent.grid_frame, roI3spqORKae(ES5oEprVxulp(b'R\xe1\xab\x9dZ\xb1'), chr(100) + '\x65' + chr(0b100101 + 0o76) + chr(9526 - 9415) + chr(2316 - 2216) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)))(None) roI3spqORKae(hXMPsSrOQzbh.parent.grid_frame, roI3spqORKae(ES5oEprVxulp(b'y\xea\x8b\x88^\xbb\xa8'), chr(100) + '\145' + chr(99) + '\157' + chr(0b1010001 + 0o23) + chr(101))(chr(7916 - 7799) + chr(5981 - 5865) + '\146' + '\055' + chr(0b111000)))()
PmagPy/PmagPy
programs/k15_s.py
main
def main(): """ NAME k15_s.py DESCRIPTION converts .k15 format data to .s format. assumes Jelinek Kappabridge measurement scheme SYNTAX k15_s.py [-h][-i][command line options][<filename] OPTIONS -h prints help message and quits -i allows interactive entry of options -f FILE, specifies input file, default: standard input -F FILE, specifies output file, default: standard output -crd [g, t] specifies [g]eographic rotation, or geographic AND tectonic rotation INPUT name [az,pl,strike,dip], followed by 3 rows of 5 measurements for each specimen OUTPUT least squares matrix elements and sigma: x11,x22,x33,x12,x23,x13,sigma """ firstline,itilt,igeo,linecnt,key=1,0,0,0,"" out="" data,k15=[],[] dir='./' ofile="" if '-WD' in sys.argv: ind=sys.argv.index('-WD') dir=sys.argv[ind+1]+'/' if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: file=input("Input file name [.k15 format]: ") f=open(file,'r') data=f.readlines() f.close() file=input("Output file name [.s format]: ") out=open(file,'w') print (" [g]eographic, [t]ilt corrected, ") tg=input(" [return for specimen coordinates]: ") if tg=='g': igeo=1 elif tg=='t': igeo,itilt=1,1 elif '-f' in sys.argv: ind=sys.argv.index('-f') file=dir+sys.argv[ind+1] f=open(file,'r') data=f.readlines() f.close() else: data= sys.stdin.readlines() if len(data)==0: print(main.__doc__) sys.exit() if '-F' in sys.argv: ind=sys.argv.index('-F') ofile=dir+sys.argv[ind+1] out=open(ofile,'w') if '-crd' in sys.argv: ind=sys.argv.index('-crd') tg=sys.argv[ind+1] if tg=='g':igeo=1 if tg=='t': igeo,itilt=1,1 for line in data: rec=line.split() if firstline==1: firstline=0 nam=rec[0] if igeo==1: az,pl=float(rec[1]),float(rec[2]) if itilt==1: bed_az,bed_dip=90.+float(rec[3]),float(rec[4]) else: linecnt+=1 for i in range(5): k15.append(float(rec[i])) if linecnt==3: sbar,sigma,bulk=pmag.dok15_s(k15) if igeo==1: sbar=pmag.dosgeo(sbar,az,pl) if itilt==1: sbar=pmag.dostilt(sbar,bed_az,bed_dip) outstring="" for s in sbar:outstring+='%10.8f '%(s) outstring+='%10.8f'%(sigma) if out=="": print(outstring) else: out.write(outstring+'\n') linecnt,firstline,k15=0,1,[] if ofile!="":print ('Output saved in ',ofile)
python
def main(): """ NAME k15_s.py DESCRIPTION converts .k15 format data to .s format. assumes Jelinek Kappabridge measurement scheme SYNTAX k15_s.py [-h][-i][command line options][<filename] OPTIONS -h prints help message and quits -i allows interactive entry of options -f FILE, specifies input file, default: standard input -F FILE, specifies output file, default: standard output -crd [g, t] specifies [g]eographic rotation, or geographic AND tectonic rotation INPUT name [az,pl,strike,dip], followed by 3 rows of 5 measurements for each specimen OUTPUT least squares matrix elements and sigma: x11,x22,x33,x12,x23,x13,sigma """ firstline,itilt,igeo,linecnt,key=1,0,0,0,"" out="" data,k15=[],[] dir='./' ofile="" if '-WD' in sys.argv: ind=sys.argv.index('-WD') dir=sys.argv[ind+1]+'/' if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: file=input("Input file name [.k15 format]: ") f=open(file,'r') data=f.readlines() f.close() file=input("Output file name [.s format]: ") out=open(file,'w') print (" [g]eographic, [t]ilt corrected, ") tg=input(" [return for specimen coordinates]: ") if tg=='g': igeo=1 elif tg=='t': igeo,itilt=1,1 elif '-f' in sys.argv: ind=sys.argv.index('-f') file=dir+sys.argv[ind+1] f=open(file,'r') data=f.readlines() f.close() else: data= sys.stdin.readlines() if len(data)==0: print(main.__doc__) sys.exit() if '-F' in sys.argv: ind=sys.argv.index('-F') ofile=dir+sys.argv[ind+1] out=open(ofile,'w') if '-crd' in sys.argv: ind=sys.argv.index('-crd') tg=sys.argv[ind+1] if tg=='g':igeo=1 if tg=='t': igeo,itilt=1,1 for line in data: rec=line.split() if firstline==1: firstline=0 nam=rec[0] if igeo==1: az,pl=float(rec[1]),float(rec[2]) if itilt==1: bed_az,bed_dip=90.+float(rec[3]),float(rec[4]) else: linecnt+=1 for i in range(5): k15.append(float(rec[i])) if linecnt==3: sbar,sigma,bulk=pmag.dok15_s(k15) if igeo==1: sbar=pmag.dosgeo(sbar,az,pl) if itilt==1: sbar=pmag.dostilt(sbar,bed_az,bed_dip) outstring="" for s in sbar:outstring+='%10.8f '%(s) outstring+='%10.8f'%(sigma) if out=="": print(outstring) else: out.write(outstring+'\n') linecnt,firstline,k15=0,1,[] if ofile!="":print ('Output saved in ',ofile)
[ "def", "main", "(", ")", ":", "firstline", ",", "itilt", ",", "igeo", ",", "linecnt", ",", "key", "=", "1", ",", "0", ",", "0", ",", "0", ",", "\"\"", "out", "=", "\"\"", "data", ",", "k15", "=", "[", "]", ",", "[", "]", "dir", "=", "'./'", "ofile", "=", "\"\"", "if", "'-WD'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "dir", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "+", "'/'", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-i'", "in", "sys", ".", "argv", ":", "file", "=", "input", "(", "\"Input file name [.k15 format]: \"", ")", "f", "=", "open", "(", "file", ",", "'r'", ")", "data", "=", "f", ".", "readlines", "(", ")", "f", ".", "close", "(", ")", "file", "=", "input", "(", "\"Output file name [.s format]: \"", ")", "out", "=", "open", "(", "file", ",", "'w'", ")", "print", "(", "\" [g]eographic, [t]ilt corrected, \"", ")", "tg", "=", "input", "(", "\" [return for specimen coordinates]: \"", ")", "if", "tg", "==", "'g'", ":", "igeo", "=", "1", "elif", "tg", "==", "'t'", ":", "igeo", ",", "itilt", "=", "1", ",", "1", "elif", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "dir", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", ")", "data", "=", "f", ".", "readlines", "(", ")", "f", ".", "close", "(", ")", "else", ":", "data", "=", "sys", ".", "stdin", ".", "readlines", "(", ")", "if", "len", "(", "data", ")", "==", "0", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-F'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-F'", ")", "ofile", "=", "dir", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "out", "=", "open", "(", "ofile", ",", "'w'", ")", "if", "'-crd'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-crd'", ")", "tg", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "tg", "==", "'g'", ":", "igeo", "=", "1", "if", "tg", "==", "'t'", ":", "igeo", ",", "itilt", "=", "1", ",", "1", "for", "line", "in", "data", ":", "rec", "=", "line", ".", "split", "(", ")", "if", "firstline", "==", "1", ":", "firstline", "=", "0", "nam", "=", "rec", "[", "0", "]", "if", "igeo", "==", "1", ":", "az", ",", "pl", "=", "float", "(", "rec", "[", "1", "]", ")", ",", "float", "(", "rec", "[", "2", "]", ")", "if", "itilt", "==", "1", ":", "bed_az", ",", "bed_dip", "=", "90.", "+", "float", "(", "rec", "[", "3", "]", ")", ",", "float", "(", "rec", "[", "4", "]", ")", "else", ":", "linecnt", "+=", "1", "for", "i", "in", "range", "(", "5", ")", ":", "k15", ".", "append", "(", "float", "(", "rec", "[", "i", "]", ")", ")", "if", "linecnt", "==", "3", ":", "sbar", ",", "sigma", ",", "bulk", "=", "pmag", ".", "dok15_s", "(", "k15", ")", "if", "igeo", "==", "1", ":", "sbar", "=", "pmag", ".", "dosgeo", "(", "sbar", ",", "az", ",", "pl", ")", "if", "itilt", "==", "1", ":", "sbar", "=", "pmag", ".", "dostilt", "(", "sbar", ",", "bed_az", ",", "bed_dip", ")", "outstring", "=", "\"\"", "for", "s", "in", "sbar", ":", "outstring", "+=", "'%10.8f '", "%", "(", "s", ")", "outstring", "+=", "'%10.8f'", "%", "(", "sigma", ")", "if", "out", "==", "\"\"", ":", "print", "(", "outstring", ")", "else", ":", "out", ".", "write", "(", "outstring", "+", "'\\n'", ")", "linecnt", ",", "firstline", ",", "k15", "=", "0", ",", "1", ",", "[", "]", "if", "ofile", "!=", "\"\"", ":", "print", "(", "'Output saved in '", ",", "ofile", ")" ]
NAME k15_s.py DESCRIPTION converts .k15 format data to .s format. assumes Jelinek Kappabridge measurement scheme SYNTAX k15_s.py [-h][-i][command line options][<filename] OPTIONS -h prints help message and quits -i allows interactive entry of options -f FILE, specifies input file, default: standard input -F FILE, specifies output file, default: standard output -crd [g, t] specifies [g]eographic rotation, or geographic AND tectonic rotation INPUT name [az,pl,strike,dip], followed by 3 rows of 5 measurements for each specimen OUTPUT least squares matrix elements and sigma: x11,x22,x33,x12,x23,x13,sigma
[ "NAME", "k15_s", ".", "py", "DESCRIPTION", "converts", ".", "k15", "format", "data", "to", ".", "s", "format", ".", "assumes", "Jelinek", "Kappabridge", "measurement", "scheme" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/k15_s.py#L8-L103
train
NAME k15_s. py . py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + '\x6f' + '\064', 16793 - 16785), nzTpIcepk0o8(chr(2170 - 2122) + chr(1540 - 1429) + chr(0b110110) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(532 - 482) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + chr(1056 - 1006) + chr(0b110111) + chr(0b110001), 20008 - 20000), nzTpIcepk0o8('\x30' + chr(2118 - 2007) + chr(50) + '\x34' + chr(973 - 923), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x36' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(54) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(2392 - 2337) + chr(0b1 + 0o66), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\066' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(2187 - 2134) + chr(819 - 765), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(400 - 349) + '\x37' + '\066', 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + chr(1278 - 1228) + chr(0b110011) + chr(693 - 639), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(111) + chr(2159 - 2105) + '\066', 0o10), nzTpIcepk0o8('\x30' + chr(10774 - 10663) + chr(2173 - 2123) + chr(0b101001 + 0o13) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(769 - 721) + chr(0b1101111) + chr(0b100110 + 0o13) + chr(50) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b111010 + 0o65) + chr(49) + chr(0b110000 + 0o0) + chr(0b1 + 0o61), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + chr(0b110111), 11258 - 11250), nzTpIcepk0o8(chr(48) + chr(6156 - 6045) + chr(49) + '\x30' + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110000), 62123 - 62115), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1631 - 1581) + chr(51) + chr(0b101111 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b110011) + chr(1295 - 1240) + '\x31', 0b1000), nzTpIcepk0o8(chr(1595 - 1547) + chr(0b101110 + 0o101) + chr(0b101101 + 0o5) + chr(0b100111 + 0o20) + '\060', 49006 - 48998), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110100) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(514 - 465) + chr(2261 - 2213), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x32' + '\x32', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x32' + chr(2720 - 2666), 0b1000), nzTpIcepk0o8(chr(48) + chr(12090 - 11979) + chr(49) + chr(0b1110 + 0o42) + '\062', 8), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + chr(1750 - 1700) + chr(0b10000 + 0o45) + chr(0b110010), 24378 - 24370), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\157' + '\063' + chr(52) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(52) + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(55), 0o10), nzTpIcepk0o8(chr(453 - 405) + '\157' + chr(1376 - 1326) + chr(0b100101 + 0o21) + chr(0b1001 + 0o54), 0o10), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(2025 - 1914) + chr(2207 - 2157) + '\x35' + chr(0b101110 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\x31' + '\063' + chr(309 - 261), 0o10), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(6791 - 6680) + chr(198 - 149) + chr(266 - 218), 8), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + '\x36' + '\067', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b1111 + 0o44) + chr(2276 - 2222), 8), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110111) + '\x31', 8), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(49) + chr(2069 - 2018) + chr(0b10010 + 0o37), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1010101 + 0o32) + '\x31' + '\062' + chr(1948 - 1893), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(2635 - 2582) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'*'), chr(0b1100100) + chr(0b1000101 + 0o40) + chr(0b1010101 + 0o16) + chr(0b111001 + 0o66) + '\x64' + '\145')(chr(117) + chr(116) + '\146' + chr(45) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): (LsFYkfsNW8vv, yWBNWrRFTqYp, FVEDlShVQ_G0, KUfltExQTpPt, QYodcsDtoGq7) = (nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(3097 - 2986) + chr(0b1100 + 0o44), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b1010 + 0o46), 8), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(6234 - 6123) + chr(0b110000), 8), roI3spqORKae(ES5oEprVxulp(b''), chr(6550 - 6450) + '\x65' + '\x63' + '\157' + '\144' + chr(0b1100101))(chr(0b101101 + 0o110) + chr(0b1010 + 0o152) + chr(0b1000 + 0o136) + '\x2d' + '\070')) VwOu8WkJ9cpc = roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(0b111111 + 0o44) + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(116) + chr(2409 - 2307) + '\055' + '\x38') (FfKOThdpoDTb, eStKyrGHzzf_) = ([], []) iJbw0iNQ06Xw = roI3spqORKae(ES5oEprVxulp(b'*\x1e'), '\144' + chr(101) + chr(7435 - 7336) + '\157' + '\144' + '\x65')(chr(0b100010 + 0o123) + '\164' + chr(0b1100110) + chr(45) + chr(56)) ucgtpUSoC3xd = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + '\143' + chr(8008 - 7897) + chr(0b111001 + 0o53) + chr(0b1100101))('\x75' + chr(3162 - 3046) + '\x66' + chr(0b101101) + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b')f\x13'), chr(0b1100100) + chr(7036 - 6935) + chr(99) + chr(3157 - 3046) + chr(0b1100100) + chr(0b1000011 + 0o42))(chr(1045 - 928) + '\x74' + '\x66' + '\x2d' + chr(0b11110 + 0o32)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), chr(0b111000 + 0o54) + '\x65' + chr(99) + '\157' + chr(0b1010100 + 0o20) + '\145')(chr(0b1001000 + 0o55) + '\164' + chr(0b100100 + 0o102) + chr(45) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b')f\x13'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(5272 - 5172) + chr(0b1100101))(chr(0b101010 + 0o113) + chr(0b1010 + 0o152) + chr(0b1100110) + chr(1012 - 967) + chr(0b100001 + 0o27))) iJbw0iNQ06Xw = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(4006 - 3895) + chr(0b11100 + 0o25), 8)] + roI3spqORKae(ES5oEprVxulp(b'+'), chr(0b1011000 + 0o14) + chr(101) + chr(99) + chr(111) + '\x64' + chr(507 - 406))(chr(0b110 + 0o157) + chr(0b1110100) + chr(5644 - 5542) + '\055' + '\x38') if roI3spqORKae(ES5oEprVxulp(b')Y'), chr(0b1100100) + chr(0b1100101) + chr(3969 - 3870) + chr(111) + chr(100) + chr(0b110111 + 0o56))(chr(0b1011001 + 0o34) + chr(0b1110100) + chr(0b100010 + 0o104) + chr(0b101010 + 0o3) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), '\x64' + chr(101) + chr(2339 - 2240) + chr(111) + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(9402 - 9300) + '\055' + chr(364 - 308))): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'}W\x12\xdc\xd3%]\xea]\xdf\xa9\xca'), chr(742 - 642) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b100010 + 0o103))(chr(0b1110 + 0o147) + chr(0b1000011 + 0o61) + chr(0b1010101 + 0o21) + chr(0b111 + 0o46) + chr(1704 - 1648)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'^D%\xd3\xc1!x\x8eA\xdd\xbf\xa6'), chr(0b1100100) + chr(0b1010100 + 0o21) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1010100 + 0o41) + '\x74' + chr(0b10111 + 0o117) + '\x2d' + chr(0b100111 + 0o21)))() if roI3spqORKae(ES5oEprVxulp(b')X'), '\x64' + chr(425 - 324) + chr(0b1100011) + chr(0b101010 + 0o105) + '\144' + '\x65')(chr(0b1110101) + chr(0b1001 + 0o153) + '\146' + chr(0b101101) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), chr(100) + '\145' + chr(6120 - 6021) + '\x6f' + chr(9298 - 9198) + '\145')(chr(0b1001110 + 0o47) + chr(0b111010 + 0o72) + chr(0b111011 + 0o53) + '\055' + chr(56))): GtsVUCYulgYX = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b"M_'\xcc\xd6TR\xd6^\xcb\xde\xf0W\xcc3b|l{\xaa\xcc\x98\x87g\xa0\xfb#\xde\xbd\x1c'"), chr(100) + chr(101) + chr(5261 - 5162) + chr(111) + '\144' + '\145')('\x75' + chr(0b100111 + 0o115) + chr(0b1100110) + chr(345 - 300) + chr(0b111000))) _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'v'), '\144' + '\x65' + '\x63' + chr(0b100101 + 0o112) + chr(754 - 654) + chr(101))(chr(0b1 + 0o164) + chr(0b111110 + 0o66) + chr(0b1100110) + '\x2d' + '\x38')) FfKOThdpoDTb = _R8IKF5IwAfX.TKmlmUjNQ4dY() roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'^T&\x8e\xe1\x17R\x86g\xca\xc6\xf4'), chr(0b101110 + 0o66) + '\x65' + chr(0b1100011) + chr(0b1000 + 0o147) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + chr(56)))() GtsVUCYulgYX = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b"KD#\xc9\xd7\x00\x14\xd9[\xc2\x9b\xbeX\xc0;'\x07\x19>\xe8\xd9\xde\x8ez\xbf\xf76\xf7\xda\x06"), chr(100) + chr(0b1100101) + chr(6214 - 6115) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(0b100100 + 0o120) + chr(0b10111 + 0o117) + chr(1517 - 1472) + '\x38')) VwOu8WkJ9cpc = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b's'), chr(0b11111 + 0o105) + '\x65' + chr(0b1011000 + 0o13) + '\x6f' + chr(6225 - 6125) + chr(10154 - 10053))(chr(3343 - 3226) + chr(116) + chr(1902 - 1800) + chr(0b101101) + chr(56))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"$j0\xe4\xc7\x1bS\xcdS\xde\x96\xf7U\x8dv\x19S\x1fy\xf7\x8d\x98\x82g\xa0\xe4'\xc9\x94Cc\x99\x88"), '\x64' + '\145' + chr(0b1100011) + '\x6f' + chr(2237 - 2137) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(45) + '\x38')) hbX_mb8xHFcG = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b"$j%\xdc\xd6\x01F\xd1\x12\xc8\x91\xec\x16\xd2&'D+}\xfe\x97\x98\x82g\xbd\xe4&\xc3\x8eGs\xd0\xdb\x052\x17"), chr(1929 - 1829) + chr(2947 - 2846) + chr(4121 - 4022) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1000000 + 0o65) + '\164' + chr(2093 - 1991) + chr(0b10001 + 0o34) + '\x38')) if hbX_mb8xHFcG == roI3spqORKae(ES5oEprVxulp(b'c'), '\144' + chr(101) + chr(99) + chr(11950 - 11839) + chr(1887 - 1787) + chr(0b1100101))('\165' + chr(9846 - 9730) + '\146' + chr(45) + chr(0b111000)): FVEDlShVQ_G0 = nzTpIcepk0o8(chr(48) + chr(111) + chr(1610 - 1561), 8) elif hbX_mb8xHFcG == roI3spqORKae(ES5oEprVxulp(b'p'), '\144' + chr(0b1110 + 0o127) + chr(9335 - 9236) + chr(0b111111 + 0o60) + '\x64' + chr(6011 - 5910))(chr(6928 - 6811) + '\x74' + chr(102) + chr(1415 - 1370) + chr(56)): (FVEDlShVQ_G0, yWBNWrRFTqYp) = (nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49), 8), nzTpIcepk0o8(chr(869 - 821) + chr(0b1101111) + chr(49), 8)) elif roI3spqORKae(ES5oEprVxulp(b')W'), '\144' + '\145' + chr(7981 - 7882) + chr(0b1101111) + chr(0b1100100) + chr(101))('\x75' + chr(0b1100001 + 0o23) + chr(368 - 266) + chr(0b101101) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), chr(4300 - 4200) + chr(0b10111 + 0o116) + chr(99) + chr(0b1110 + 0o141) + '\x64' + '\145')('\x75' + chr(0b11001 + 0o133) + '\x66' + '\x2d' + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b')W'), chr(100) + chr(0b1001010 + 0o33) + chr(666 - 567) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1011101 + 0o30) + chr(116) + '\x66' + chr(1130 - 1085) + chr(0b110010 + 0o6))) GtsVUCYulgYX = iJbw0iNQ06Xw + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(310 - 262) + chr(111) + chr(0b1000 + 0o51), 8)] _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'v'), chr(4293 - 4193) + chr(1146 - 1045) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b10010 + 0o124) + chr(0b101101) + chr(1426 - 1370))) FfKOThdpoDTb = _R8IKF5IwAfX.TKmlmUjNQ4dY() roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'^T&\x8e\xe1\x17R\x86g\xca\xc6\xf4'), '\144' + chr(0b1100101) + chr(8199 - 8100) + chr(0b1101 + 0o142) + chr(100) + '\145')(chr(1331 - 1214) + chr(116) + chr(0b1100110) + '\055' + chr(56)))() else: FfKOThdpoDTb = bpyfpu4kTbwL.stdin.TKmlmUjNQ4dY() if ftfygxgFas5X(FfKOThdpoDTb) == nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(1718 - 1607) + chr(0b110000), 8): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'}W\x12\xdc\xd3%]\xea]\xdf\xa9\xca'), '\144' + chr(0b1100011 + 0o2) + chr(0b1100011) + chr(9399 - 9288) + chr(0b1100100) + chr(0b1100101))(chr(5352 - 5235) + chr(9329 - 9213) + chr(0b1100110) + '\055' + chr(0b101010 + 0o16)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'^D%\xd3\xc1!x\x8eA\xdd\xbf\xa6'), chr(0b100111 + 0o75) + '\x65' + chr(0b1010111 + 0o14) + chr(7238 - 7127) + chr(9170 - 9070) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + '\055' + '\070'))() if roI3spqORKae(ES5oEprVxulp(b')w'), '\x64' + chr(0b101101 + 0o70) + '\143' + chr(4742 - 4631) + chr(3197 - 3097) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b110110 + 0o2)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), '\144' + '\x65' + chr(0b11 + 0o140) + chr(111) + '\144' + chr(0b100 + 0o141))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1307 - 1262) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b')w'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111 + 0o0) + chr(0b1101 + 0o127) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b1111 + 0o36) + '\x38')) ucgtpUSoC3xd = iJbw0iNQ06Xw + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49), 8)] VwOu8WkJ9cpc = DnU3Rq9N5ala(ucgtpUSoC3xd, roI3spqORKae(ES5oEprVxulp(b's'), '\x64' + '\x65' + chr(8876 - 8777) + chr(0b1010111 + 0o30) + '\144' + '\145')(chr(10733 - 10616) + '\x74' + chr(0b1100110) + chr(0b1000 + 0o45) + chr(0b111000))) if roI3spqORKae(ES5oEprVxulp(b')R%\xdd'), chr(0b1100100) + chr(0b101111 + 0o66) + chr(8478 - 8379) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(12258 - 12142) + chr(7245 - 7143) + chr(0b101 + 0o50) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'e[\x1e\xfd\xf5\rl\xf2p\xcf\xcd\xfc'), chr(100) + chr(101) + chr(0b11000 + 0o113) + chr(0b1011001 + 0o26) + '\x64' + '\x65')(chr(117) + chr(116) + '\x66' + chr(1898 - 1853) + chr(0b1110 + 0o52))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b')R%\xdd'), chr(100) + chr(101) + chr(0b1100011) + chr(0b110101 + 0o72) + '\x64' + chr(0b1001000 + 0o35))(chr(0b1110101) + '\x74' + chr(0b1000011 + 0o43) + chr(45) + '\070')) hbX_mb8xHFcG = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + chr(851 - 802), 8)] if hbX_mb8xHFcG == roI3spqORKae(ES5oEprVxulp(b'c'), chr(0b1100010 + 0o2) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(1746 - 1701) + '\x38'): FVEDlShVQ_G0 = nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + '\061', 8) if hbX_mb8xHFcG == roI3spqORKae(ES5oEprVxulp(b'p'), '\x64' + chr(0b1100010 + 0o3) + chr(0b101000 + 0o73) + chr(0b1101111) + chr(100) + chr(4148 - 4047))(chr(117) + chr(0b1110100) + chr(0b11 + 0o143) + chr(0b11100 + 0o21) + '\070'): (FVEDlShVQ_G0, yWBNWrRFTqYp) = (nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49), 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b101010 + 0o105) + chr(49), 8)) for ffiOpFBWGmZU in FfKOThdpoDTb: FKO_XxLfWbYt = ffiOpFBWGmZU.LfRrQOxuDvnC() if LsFYkfsNW8vv == nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1652 - 1603), 8): LsFYkfsNW8vv = nzTpIcepk0o8(chr(48) + '\157' + chr(693 - 645), 8) TcqxpAHg9uKC = FKO_XxLfWbYt[nzTpIcepk0o8('\060' + chr(6242 - 6131) + '\060', 8)] if FVEDlShVQ_G0 == nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31', 8): (PQpduzS75mzC, sokSu6vh059E) = (jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(111) + '\061', 8)]), jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(2724 - 2613) + '\x32', 0o10)])) if yWBNWrRFTqYp == nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001), 8): (WUmszZov7oWf, jZ0612Zni4wb) = (90.0 + jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + '\157' + chr(0b100010 + 0o21), 55371 - 55363)]), jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + '\x6f' + '\064', 8)])) else: KUfltExQTpPt += nzTpIcepk0o8(chr(1643 - 1595) + '\157' + '\x31', 8) for ZlbFMSG8gCoF in bbT2xIe5pzk7(nzTpIcepk0o8(chr(0b110000) + chr(111) + '\065', 0o10)): roI3spqORKae(eStKyrGHzzf_, roI3spqORKae(ES5oEprVxulp(b'Le\x04\x8d\xda\x13s\xd0X\xc1\xab\xab'), chr(0b1100000 + 0o4) + chr(0b111010 + 0o53) + chr(99) + chr(111) + '\144' + '\x65')(chr(10373 - 10256) + chr(0b1110100) + chr(8488 - 8386) + chr(774 - 729) + chr(56)))(jLW6pRf2DSRk(FKO_XxLfWbYt[ZlbFMSG8gCoF])) if KUfltExQTpPt == nzTpIcepk0o8(chr(1254 - 1206) + chr(0b111101 + 0o62) + '\063', 8): (WTYM6DEKUjeq, uc4gGmjAvJP3, tvZZeKDvdFpS) = hUcsWwAd0nE_.dok15_s(eStKyrGHzzf_) if FVEDlShVQ_G0 == nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(6328 - 6217) + chr(0b110001), 8): WTYM6DEKUjeq = hUcsWwAd0nE_.dosgeo(WTYM6DEKUjeq, PQpduzS75mzC, sokSu6vh059E) if yWBNWrRFTqYp == nzTpIcepk0o8('\060' + chr(111) + '\061', 8): WTYM6DEKUjeq = hUcsWwAd0nE_.dostilt(WTYM6DEKUjeq, WUmszZov7oWf, jZ0612Zni4wb) d9IYhOYAA219 = roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(2175 - 2074) + chr(0b1100011) + chr(0b1010 + 0o145) + chr(100) + chr(101))(chr(12568 - 12451) + '\x74' + '\x66' + chr(45) + '\070') for PmE5_h409JAA in WTYM6DEKUjeq: d9IYhOYAA219 += roI3spqORKae(ES5oEprVxulp(b'!\x00g\x97\x9a\x12\x14'), '\x64' + chr(101) + '\143' + chr(10710 - 10599) + chr(0b1001000 + 0o34) + '\x65')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b110011 + 0o5)) % PmE5_h409JAA d9IYhOYAA219 += roI3spqORKae(ES5oEprVxulp(b'!\x00g\x97\x9a\x12'), chr(0b1100100) + '\145' + chr(99) + '\157' + chr(0b110111 + 0o55) + '\145')(chr(0b1101110 + 0o7) + chr(0b1110100) + chr(102) + chr(162 - 117) + chr(0b111000)) % uc4gGmjAvJP3 if VwOu8WkJ9cpc == roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + '\143' + chr(5523 - 5412) + chr(100) + chr(101))('\x75' + chr(0b1110100) + chr(6763 - 6661) + chr(0b101101) + chr(0b111000)): v8jsMqaYV6U2(d9IYhOYAA219) else: roI3spqORKae(VwOu8WkJ9cpc, roI3spqORKae(ES5oEprVxulp(b'i]g\xd1\xca\x04B\x8e~\xde\x8f\xac'), chr(0b10010 + 0o122) + chr(0b1010110 + 0o17) + chr(0b1100011) + chr(111) + '\x64' + chr(101))(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(2401 - 2345)))(d9IYhOYAA219 + roI3spqORKae(ES5oEprVxulp(b'\x0e'), '\144' + chr(101) + chr(1574 - 1475) + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b1100110) + '\055' + chr(765 - 709))) (KUfltExQTpPt, LsFYkfsNW8vv, eStKyrGHzzf_) = (nzTpIcepk0o8('\060' + chr(111) + chr(0b110000), 8), nzTpIcepk0o8(chr(517 - 469) + chr(0b1101010 + 0o5) + chr(0b110001), 8), []) if ucgtpUSoC3xd != roI3spqORKae(ES5oEprVxulp(b''), chr(0b100111 + 0o75) + '\x65' + '\x63' + '\157' + chr(100) + chr(8315 - 8214))(chr(0b1010100 + 0o41) + chr(116) + chr(10196 - 10094) + '\055' + chr(146 - 90)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'KD#\xc9\xd7\x00\x14\xccS\xd8\x9b\xfa\x16\xc88b'), chr(0b1100100) + chr(101) + chr(99) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\164' + '\x66' + '\055' + '\070'), ucgtpUSoC3xd)
PmagPy/PmagPy
programs/deprecated/zeq_magic_redo.py
main
def main(): """ NAME zeq_magic_redo.py DESCRIPTION Calculate principal components through demagnetization data using bounds and calculation type stored in "redo" file SYNTAX zeq_magic_redo.py [command line options] OPTIONS -h prints help message -usr USER: identify user, default is "" -f: specify input file, default is magic_measurements.txt -F: specify output file, default is zeq_specimens.txt -fre REDO: specify redo file, default is "zeq_redo" -fsa SAMPFILE: specify er_samples format file, default is "er_samples.txt" -A : don't average replicate measurements, default is yes -crd [s,g,t] : specify coordinate system [s,g,t] [default is specimen coordinates] are specimen, geographic, and tilt corrected respectively NB: you must have a SAMPFILE in this directory to rotate from specimen coordinates -leg: attaches "Recalculated from original measurements; supercedes published results. " to comment field INPUTS zeq_redo format file is: specimen_name calculation_type[DE-BFL,DE-BFL-A,DE-BFL-O,DE-BFP,DE-FM] step_min step_max component_name[A,B,C] """ dir_path='.' INCL=["LT-NO","LT-AF-Z","LT-T-Z","LT-M-Z"] # looking for demag data beg,end,pole,geo,tilt,askave,save=0,0,[],0,0,0,0 user,doave,comment= "",1,"" geo,tilt=0,0 version_num=pmag.get_version() args=sys.argv if '-WD' in args: ind=args.index('-WD') dir_path=args[ind+1] meas_file,pmag_file,mk_file= dir_path+"/"+"magic_measurements.txt",dir_path+"/"+"zeq_specimens.txt",dir_path+"/"+"zeq_redo" samp_file,coord=dir_path+"/"+"er_samples.txt","" if "-h" in args: print(main.__doc__) sys.exit() if "-usr" in args: ind=args.index("-usr") user=sys.argv[ind+1] if "-A" in args:doave=0 if "-leg" in args: comment="Recalculated from original measurements; supercedes published results. " if "-f" in args: ind=args.index("-f") meas_file=dir_path+'/'+sys.argv[ind+1] if "-F" in args: ind=args.index("-F") pmag_file=dir_path+'/'+sys.argv[ind+1] if "-fre" in args: ind=args.index("-fre") mk_file=dir_path+"/"+args[ind+1] try: mk_f=open(mk_file,'r') except: print("Bad redo file") sys.exit() mkspec,skipped=[],[] speclist=[] for line in mk_f.readlines(): tmp=line.split() mkspec.append(tmp) speclist.append(tmp[0]) if "-fsa" in args: ind=args.index("-fsa") samp_file=dir_path+'/'+sys.argv[ind+1] if "-crd" in args: ind=args.index("-crd") coord=sys.argv[ind+1] if coord=="g":geo,tilt=1,0 if coord=="t":geo,tilt=1,1 # # now get down to bidness if geo==1: samp_data,file_type=pmag.magic_read(samp_file) if file_type != 'er_samples': print(file_type) print("This is not a valid er_samples file ") sys.exit() # # # meas_data,file_type=pmag.magic_read(meas_file) if file_type != 'magic_measurements': print(file_type) print(file_type,"This is not a valid magic_measurements file ") sys.exit() # # sort the specimen names # k = 0 print('Processing ',len(speclist), ' specimens - please wait') PmagSpecs=[] while k < len(speclist): s=speclist[k] recnum=0 PmagSpecRec={} method_codes,inst_codes=[],[] # find the data from the meas_data file for this sample # # collect info for the PmagSpecRec dictionary # meas_meth=[] spec=pmag.get_dictitem(meas_data,'er_specimen_name',s,'T') if len(spec)==0: print('no data found for specimen: ',s) print('delete from zeq_redo input file...., then try again') else: for rec in spec: # copy of vital stats to PmagSpecRec from first spec record in demag block skip=1 methods=rec["magic_method_codes"].split(":") if len(set(methods) & set(INCL))>0: PmagSpecRec["er_analyst_mail_names"]=user PmagSpecRec["magic_software_packages"]=version_num PmagSpecRec["er_specimen_name"]=s PmagSpecRec["er_sample_name"]=rec["er_sample_name"] PmagSpecRec["er_site_name"]=rec["er_site_name"] PmagSpecRec["er_location_name"]=rec["er_location_name"] if "er_expedition_name" in list(rec.keys()):PmagSpecRec["er_expedition_name"]=rec["er_expedition_name"] PmagSpecRec["er_citation_names"]="This study" if "magic_experiment_name" not in list(rec.keys()): rec["magic_experiment_name"]="" PmagSpecRec["magic_experiment_names"]=rec["magic_experiment_name"] if "magic_instrument_codes" not in list(rec.keys()): rec["magic_instrument_codes"]="" inst=rec['magic_instrument_codes'].split(":") for I in inst: if I not in inst_codes: # copy over instruments inst_codes.append(I) meths=rec["magic_method_codes"].split(":") for meth in meths: if meth.strip() not in meas_meth:meas_meth.append(meth) if "LP-DIR-AF" in meas_meth or "LT-AF-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="T" if "LP-DIR-AF" not in method_codes:method_codes.append("LP-DIR-AF") if "LP-DIR-T" in meas_meth or "LT-T-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="K" if "LP-DIR-T" not in method_codes:method_codes.append("LP-DIR-T") if "LP-DIR-M" in meas_meth or "LT-M-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="J" if "LP-DIR-M" not in method_codes:method_codes.append("LP-DIR-M") # # datablock,units=pmag.find_dmag_rec(s,spec) # fish out the demag data for this specimen # if len(datablock) <2 or s not in speclist : k+=1 # print 'skipping ', s,len(datablock) else: # # find replicate measurements at given treatment step and average them # # step_meth,avedata=pmag.vspec(data) # # if len(avedata) != len(datablock): # if doave==1: # method_codes.append("DE-VM") # datablock=avedata # # do geo or stratigraphic correction now # if geo==1 or tilt==1: # find top priority orientation method orient,az_type=pmag.get_orient(samp_data,PmagSpecRec["er_sample_name"]) if az_type not in method_codes:method_codes.append(az_type) # # if tilt selected, get stratigraphic correction # tiltblock,geoblock=[],[] for rec in datablock: if "sample_azimuth" in list(orient.keys()) and orient["sample_azimuth"]!="": d_geo,i_geo=pmag.dogeo(rec[1],rec[2],float(orient["sample_azimuth"]),float(orient["sample_dip"])) geoblock.append([rec[0],d_geo,i_geo,rec[3],rec[4],rec[5]]) if tilt==1 and "sample_bed_dip_direction" in list(orient.keys()): d_tilt,i_tilt=pmag.dotilt(d_geo,i_geo,float(orient["sample_bed_dip_direction"]),float(orient["sample_bed_dip"])) tiltblock.append([rec[0],d_tilt,i_tilt,rec[3],rec[4],rec[5]]) elif tilt==1: if PmagSpecRec["er_sample_name"] not in skipped: print('no tilt correction for ', PmagSpecRec["er_sample_name"],' skipping....') skipped.append(PmagSpecRec["er_sample_name"]) else: if PmagSpecRec["er_sample_name"] not in skipped: print('no geographic correction for ', PmagSpecRec["er_sample_name"],' skipping....') skipped.append(PmagSpecRec["er_sample_name"]) # # get beg_pca, end_pca, pca if PmagSpecRec['er_sample_name'] not in skipped: compnum=-1 for spec in mkspec: if spec[0]==s: CompRec={} for key in list(PmagSpecRec.keys()):CompRec[key]=PmagSpecRec[key] compnum+=1 calculation_type=spec[1] beg=float(spec[2]) end=float(spec[3]) if len(spec)>4: comp_name=spec[4] else: comp_name=string.uppercase[compnum] CompRec['specimen_comp_name']=comp_name if beg < float(datablock[0][0]):beg=float(datablock[0][0]) if end > float(datablock[-1][0]):end=float(datablock[-1][0]) for l in range(len(datablock)): if datablock[l][0]==beg:beg_pca=l if datablock[l][0]==end:end_pca=l if geo==1 and tilt==0: mpars=pmag.domean(geoblock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='0' if geo==1 and tilt==1: mpars=pmag.domean(tiltblock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='100' if geo==0 and tilt==0: mpars=pmag.domean(datablock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='-1' if mpars["specimen_direction_type"]=="Error": pass else: CompRec["measurement_step_min"]='%8.3e '%(datablock[beg_pca][0]) try: CompRec["measurement_step_max"]='%8.3e '%(datablock[end_pca][0] ) except: print('error in end_pca ',PmagSpecRec['er_specimen_name']) CompRec["specimen_correction"]='u' if calculation_type!='DE-FM': CompRec["specimen_mad"]='%7.1f '%(mpars["specimen_mad"]) CompRec["specimen_alpha95"]="" else: CompRec["specimen_mad"]="" CompRec["specimen_alpha95"]='%7.1f '%(mpars["specimen_alpha95"]) CompRec["specimen_n"]='%i '%(mpars["specimen_n"]) CompRec["specimen_dang"]='%7.1f '%(mpars["specimen_dang"]) CompMeths=[] for meth in method_codes: if meth not in CompMeths:CompMeths.append(meth) if calculation_type not in CompMeths:CompMeths.append(calculation_type) if geo==1: CompMeths.append("DA-DIR-GEO") if tilt==1: CompMeths.append("DA-DIR-TILT") if "DE-BFP" not in calculation_type: CompRec["specimen_direction_type"]='l' else: CompRec["specimen_direction_type"]='p' CompRec["magic_method_codes"]="" if len(CompMeths) != 0: methstring="" for meth in CompMeths: methstring=methstring+ ":" +meth CompRec["magic_method_codes"]=methstring.strip(':') CompRec["specimen_description"]=comment if len(inst_codes) != 0: inststring="" for inst in inst_codes: inststring=inststring+ ":" +inst CompRec["magic_instrument_codes"]=inststring.strip(':') PmagSpecs.append(CompRec) k+=1 pmag.magic_write(pmag_file,PmagSpecs,'pmag_specimens') print("Recalculated specimen data stored in ",pmag_file)
python
def main(): """ NAME zeq_magic_redo.py DESCRIPTION Calculate principal components through demagnetization data using bounds and calculation type stored in "redo" file SYNTAX zeq_magic_redo.py [command line options] OPTIONS -h prints help message -usr USER: identify user, default is "" -f: specify input file, default is magic_measurements.txt -F: specify output file, default is zeq_specimens.txt -fre REDO: specify redo file, default is "zeq_redo" -fsa SAMPFILE: specify er_samples format file, default is "er_samples.txt" -A : don't average replicate measurements, default is yes -crd [s,g,t] : specify coordinate system [s,g,t] [default is specimen coordinates] are specimen, geographic, and tilt corrected respectively NB: you must have a SAMPFILE in this directory to rotate from specimen coordinates -leg: attaches "Recalculated from original measurements; supercedes published results. " to comment field INPUTS zeq_redo format file is: specimen_name calculation_type[DE-BFL,DE-BFL-A,DE-BFL-O,DE-BFP,DE-FM] step_min step_max component_name[A,B,C] """ dir_path='.' INCL=["LT-NO","LT-AF-Z","LT-T-Z","LT-M-Z"] # looking for demag data beg,end,pole,geo,tilt,askave,save=0,0,[],0,0,0,0 user,doave,comment= "",1,"" geo,tilt=0,0 version_num=pmag.get_version() args=sys.argv if '-WD' in args: ind=args.index('-WD') dir_path=args[ind+1] meas_file,pmag_file,mk_file= dir_path+"/"+"magic_measurements.txt",dir_path+"/"+"zeq_specimens.txt",dir_path+"/"+"zeq_redo" samp_file,coord=dir_path+"/"+"er_samples.txt","" if "-h" in args: print(main.__doc__) sys.exit() if "-usr" in args: ind=args.index("-usr") user=sys.argv[ind+1] if "-A" in args:doave=0 if "-leg" in args: comment="Recalculated from original measurements; supercedes published results. " if "-f" in args: ind=args.index("-f") meas_file=dir_path+'/'+sys.argv[ind+1] if "-F" in args: ind=args.index("-F") pmag_file=dir_path+'/'+sys.argv[ind+1] if "-fre" in args: ind=args.index("-fre") mk_file=dir_path+"/"+args[ind+1] try: mk_f=open(mk_file,'r') except: print("Bad redo file") sys.exit() mkspec,skipped=[],[] speclist=[] for line in mk_f.readlines(): tmp=line.split() mkspec.append(tmp) speclist.append(tmp[0]) if "-fsa" in args: ind=args.index("-fsa") samp_file=dir_path+'/'+sys.argv[ind+1] if "-crd" in args: ind=args.index("-crd") coord=sys.argv[ind+1] if coord=="g":geo,tilt=1,0 if coord=="t":geo,tilt=1,1 # # now get down to bidness if geo==1: samp_data,file_type=pmag.magic_read(samp_file) if file_type != 'er_samples': print(file_type) print("This is not a valid er_samples file ") sys.exit() # # # meas_data,file_type=pmag.magic_read(meas_file) if file_type != 'magic_measurements': print(file_type) print(file_type,"This is not a valid magic_measurements file ") sys.exit() # # sort the specimen names # k = 0 print('Processing ',len(speclist), ' specimens - please wait') PmagSpecs=[] while k < len(speclist): s=speclist[k] recnum=0 PmagSpecRec={} method_codes,inst_codes=[],[] # find the data from the meas_data file for this sample # # collect info for the PmagSpecRec dictionary # meas_meth=[] spec=pmag.get_dictitem(meas_data,'er_specimen_name',s,'T') if len(spec)==0: print('no data found for specimen: ',s) print('delete from zeq_redo input file...., then try again') else: for rec in spec: # copy of vital stats to PmagSpecRec from first spec record in demag block skip=1 methods=rec["magic_method_codes"].split(":") if len(set(methods) & set(INCL))>0: PmagSpecRec["er_analyst_mail_names"]=user PmagSpecRec["magic_software_packages"]=version_num PmagSpecRec["er_specimen_name"]=s PmagSpecRec["er_sample_name"]=rec["er_sample_name"] PmagSpecRec["er_site_name"]=rec["er_site_name"] PmagSpecRec["er_location_name"]=rec["er_location_name"] if "er_expedition_name" in list(rec.keys()):PmagSpecRec["er_expedition_name"]=rec["er_expedition_name"] PmagSpecRec["er_citation_names"]="This study" if "magic_experiment_name" not in list(rec.keys()): rec["magic_experiment_name"]="" PmagSpecRec["magic_experiment_names"]=rec["magic_experiment_name"] if "magic_instrument_codes" not in list(rec.keys()): rec["magic_instrument_codes"]="" inst=rec['magic_instrument_codes'].split(":") for I in inst: if I not in inst_codes: # copy over instruments inst_codes.append(I) meths=rec["magic_method_codes"].split(":") for meth in meths: if meth.strip() not in meas_meth:meas_meth.append(meth) if "LP-DIR-AF" in meas_meth or "LT-AF-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="T" if "LP-DIR-AF" not in method_codes:method_codes.append("LP-DIR-AF") if "LP-DIR-T" in meas_meth or "LT-T-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="K" if "LP-DIR-T" not in method_codes:method_codes.append("LP-DIR-T") if "LP-DIR-M" in meas_meth or "LT-M-Z" in meas_meth: PmagSpecRec["measurement_step_unit"]="J" if "LP-DIR-M" not in method_codes:method_codes.append("LP-DIR-M") # # datablock,units=pmag.find_dmag_rec(s,spec) # fish out the demag data for this specimen # if len(datablock) <2 or s not in speclist : k+=1 # print 'skipping ', s,len(datablock) else: # # find replicate measurements at given treatment step and average them # # step_meth,avedata=pmag.vspec(data) # # if len(avedata) != len(datablock): # if doave==1: # method_codes.append("DE-VM") # datablock=avedata # # do geo or stratigraphic correction now # if geo==1 or tilt==1: # find top priority orientation method orient,az_type=pmag.get_orient(samp_data,PmagSpecRec["er_sample_name"]) if az_type not in method_codes:method_codes.append(az_type) # # if tilt selected, get stratigraphic correction # tiltblock,geoblock=[],[] for rec in datablock: if "sample_azimuth" in list(orient.keys()) and orient["sample_azimuth"]!="": d_geo,i_geo=pmag.dogeo(rec[1],rec[2],float(orient["sample_azimuth"]),float(orient["sample_dip"])) geoblock.append([rec[0],d_geo,i_geo,rec[3],rec[4],rec[5]]) if tilt==1 and "sample_bed_dip_direction" in list(orient.keys()): d_tilt,i_tilt=pmag.dotilt(d_geo,i_geo,float(orient["sample_bed_dip_direction"]),float(orient["sample_bed_dip"])) tiltblock.append([rec[0],d_tilt,i_tilt,rec[3],rec[4],rec[5]]) elif tilt==1: if PmagSpecRec["er_sample_name"] not in skipped: print('no tilt correction for ', PmagSpecRec["er_sample_name"],' skipping....') skipped.append(PmagSpecRec["er_sample_name"]) else: if PmagSpecRec["er_sample_name"] not in skipped: print('no geographic correction for ', PmagSpecRec["er_sample_name"],' skipping....') skipped.append(PmagSpecRec["er_sample_name"]) # # get beg_pca, end_pca, pca if PmagSpecRec['er_sample_name'] not in skipped: compnum=-1 for spec in mkspec: if spec[0]==s: CompRec={} for key in list(PmagSpecRec.keys()):CompRec[key]=PmagSpecRec[key] compnum+=1 calculation_type=spec[1] beg=float(spec[2]) end=float(spec[3]) if len(spec)>4: comp_name=spec[4] else: comp_name=string.uppercase[compnum] CompRec['specimen_comp_name']=comp_name if beg < float(datablock[0][0]):beg=float(datablock[0][0]) if end > float(datablock[-1][0]):end=float(datablock[-1][0]) for l in range(len(datablock)): if datablock[l][0]==beg:beg_pca=l if datablock[l][0]==end:end_pca=l if geo==1 and tilt==0: mpars=pmag.domean(geoblock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='0' if geo==1 and tilt==1: mpars=pmag.domean(tiltblock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='100' if geo==0 and tilt==0: mpars=pmag.domean(datablock,beg_pca,end_pca,calculation_type) if mpars["specimen_direction_type"]!="Error": CompRec["specimen_dec"]='%7.1f ' %(mpars["specimen_dec"]) CompRec["specimen_inc"]='%7.1f ' %(mpars["specimen_inc"]) CompRec["specimen_tilt_correction"]='-1' if mpars["specimen_direction_type"]=="Error": pass else: CompRec["measurement_step_min"]='%8.3e '%(datablock[beg_pca][0]) try: CompRec["measurement_step_max"]='%8.3e '%(datablock[end_pca][0] ) except: print('error in end_pca ',PmagSpecRec['er_specimen_name']) CompRec["specimen_correction"]='u' if calculation_type!='DE-FM': CompRec["specimen_mad"]='%7.1f '%(mpars["specimen_mad"]) CompRec["specimen_alpha95"]="" else: CompRec["specimen_mad"]="" CompRec["specimen_alpha95"]='%7.1f '%(mpars["specimen_alpha95"]) CompRec["specimen_n"]='%i '%(mpars["specimen_n"]) CompRec["specimen_dang"]='%7.1f '%(mpars["specimen_dang"]) CompMeths=[] for meth in method_codes: if meth not in CompMeths:CompMeths.append(meth) if calculation_type not in CompMeths:CompMeths.append(calculation_type) if geo==1: CompMeths.append("DA-DIR-GEO") if tilt==1: CompMeths.append("DA-DIR-TILT") if "DE-BFP" not in calculation_type: CompRec["specimen_direction_type"]='l' else: CompRec["specimen_direction_type"]='p' CompRec["magic_method_codes"]="" if len(CompMeths) != 0: methstring="" for meth in CompMeths: methstring=methstring+ ":" +meth CompRec["magic_method_codes"]=methstring.strip(':') CompRec["specimen_description"]=comment if len(inst_codes) != 0: inststring="" for inst in inst_codes: inststring=inststring+ ":" +inst CompRec["magic_instrument_codes"]=inststring.strip(':') PmagSpecs.append(CompRec) k+=1 pmag.magic_write(pmag_file,PmagSpecs,'pmag_specimens') print("Recalculated specimen data stored in ",pmag_file)
[ "def", "main", "(", ")", ":", "dir_path", "=", "'.'", "INCL", "=", "[", "\"LT-NO\"", ",", "\"LT-AF-Z\"", ",", "\"LT-T-Z\"", ",", "\"LT-M-Z\"", "]", "# looking for demag data", "beg", ",", "end", ",", "pole", ",", "geo", ",", "tilt", ",", "askave", ",", "save", "=", "0", ",", "0", ",", "[", "]", ",", "0", ",", "0", ",", "0", ",", "0", "user", ",", "doave", ",", "comment", "=", "\"\"", ",", "1", ",", "\"\"", "geo", ",", "tilt", "=", "0", ",", "0", "version_num", "=", "pmag", ".", "get_version", "(", ")", "args", "=", "sys", ".", "argv", "if", "'-WD'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "'-WD'", ")", "dir_path", "=", "args", "[", "ind", "+", "1", "]", "meas_file", ",", "pmag_file", ",", "mk_file", "=", "dir_path", "+", "\"/\"", "+", "\"magic_measurements.txt\"", ",", "dir_path", "+", "\"/\"", "+", "\"zeq_specimens.txt\"", ",", "dir_path", "+", "\"/\"", "+", "\"zeq_redo\"", "samp_file", ",", "coord", "=", "dir_path", "+", "\"/\"", "+", "\"er_samples.txt\"", ",", "\"\"", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "\"-usr\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-usr\"", ")", "user", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "\"-A\"", "in", "args", ":", "doave", "=", "0", "if", "\"-leg\"", "in", "args", ":", "comment", "=", "\"Recalculated from original measurements; supercedes published results. \"", "if", "\"-f\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-f\"", ")", "meas_file", "=", "dir_path", "+", "'/'", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "\"-F\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-F\"", ")", "pmag_file", "=", "dir_path", "+", "'/'", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "\"-fre\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-fre\"", ")", "mk_file", "=", "dir_path", "+", "\"/\"", "+", "args", "[", "ind", "+", "1", "]", "try", ":", "mk_f", "=", "open", "(", "mk_file", ",", "'r'", ")", "except", ":", "print", "(", "\"Bad redo file\"", ")", "sys", ".", "exit", "(", ")", "mkspec", ",", "skipped", "=", "[", "]", ",", "[", "]", "speclist", "=", "[", "]", "for", "line", "in", "mk_f", ".", "readlines", "(", ")", ":", "tmp", "=", "line", ".", "split", "(", ")", "mkspec", ".", "append", "(", "tmp", ")", "speclist", ".", "append", "(", "tmp", "[", "0", "]", ")", "if", "\"-fsa\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-fsa\"", ")", "samp_file", "=", "dir_path", "+", "'/'", "+", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "\"-crd\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-crd\"", ")", "coord", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "coord", "==", "\"g\"", ":", "geo", ",", "tilt", "=", "1", ",", "0", "if", "coord", "==", "\"t\"", ":", "geo", ",", "tilt", "=", "1", ",", "1", "#", "# now get down to bidness", "if", "geo", "==", "1", ":", "samp_data", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "samp_file", ")", "if", "file_type", "!=", "'er_samples'", ":", "print", "(", "file_type", ")", "print", "(", "\"This is not a valid er_samples file \"", ")", "sys", ".", "exit", "(", ")", "#", "#", "#", "meas_data", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "meas_file", ")", "if", "file_type", "!=", "'magic_measurements'", ":", "print", "(", "file_type", ")", "print", "(", "file_type", ",", "\"This is not a valid magic_measurements file \"", ")", "sys", ".", "exit", "(", ")", "#", "# sort the specimen names", "#", "k", "=", "0", "print", "(", "'Processing '", ",", "len", "(", "speclist", ")", ",", "' specimens - please wait'", ")", "PmagSpecs", "=", "[", "]", "while", "k", "<", "len", "(", "speclist", ")", ":", "s", "=", "speclist", "[", "k", "]", "recnum", "=", "0", "PmagSpecRec", "=", "{", "}", "method_codes", ",", "inst_codes", "=", "[", "]", ",", "[", "]", "# find the data from the meas_data file for this sample", "#", "# collect info for the PmagSpecRec dictionary", "#", "meas_meth", "=", "[", "]", "spec", "=", "pmag", ".", "get_dictitem", "(", "meas_data", ",", "'er_specimen_name'", ",", "s", ",", "'T'", ")", "if", "len", "(", "spec", ")", "==", "0", ":", "print", "(", "'no data found for specimen: '", ",", "s", ")", "print", "(", "'delete from zeq_redo input file...., then try again'", ")", "else", ":", "for", "rec", "in", "spec", ":", "# copy of vital stats to PmagSpecRec from first spec record in demag block", "skip", "=", "1", "methods", "=", "rec", "[", "\"magic_method_codes\"", "]", ".", "split", "(", "\":\"", ")", "if", "len", "(", "set", "(", "methods", ")", "&", "set", "(", "INCL", ")", ")", ">", "0", ":", "PmagSpecRec", "[", "\"er_analyst_mail_names\"", "]", "=", "user", "PmagSpecRec", "[", "\"magic_software_packages\"", "]", "=", "version_num", "PmagSpecRec", "[", "\"er_specimen_name\"", "]", "=", "s", "PmagSpecRec", "[", "\"er_sample_name\"", "]", "=", "rec", "[", "\"er_sample_name\"", "]", "PmagSpecRec", "[", "\"er_site_name\"", "]", "=", "rec", "[", "\"er_site_name\"", "]", "PmagSpecRec", "[", "\"er_location_name\"", "]", "=", "rec", "[", "\"er_location_name\"", "]", "if", "\"er_expedition_name\"", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "PmagSpecRec", "[", "\"er_expedition_name\"", "]", "=", "rec", "[", "\"er_expedition_name\"", "]", "PmagSpecRec", "[", "\"er_citation_names\"", "]", "=", "\"This study\"", "if", "\"magic_experiment_name\"", "not", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "\"magic_experiment_name\"", "]", "=", "\"\"", "PmagSpecRec", "[", "\"magic_experiment_names\"", "]", "=", "rec", "[", "\"magic_experiment_name\"", "]", "if", "\"magic_instrument_codes\"", "not", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "\"magic_instrument_codes\"", "]", "=", "\"\"", "inst", "=", "rec", "[", "'magic_instrument_codes'", "]", ".", "split", "(", "\":\"", ")", "for", "I", "in", "inst", ":", "if", "I", "not", "in", "inst_codes", ":", "# copy over instruments", "inst_codes", ".", "append", "(", "I", ")", "meths", "=", "rec", "[", "\"magic_method_codes\"", "]", ".", "split", "(", "\":\"", ")", "for", "meth", "in", "meths", ":", "if", "meth", ".", "strip", "(", ")", "not", "in", "meas_meth", ":", "meas_meth", ".", "append", "(", "meth", ")", "if", "\"LP-DIR-AF\"", "in", "meas_meth", "or", "\"LT-AF-Z\"", "in", "meas_meth", ":", "PmagSpecRec", "[", "\"measurement_step_unit\"", "]", "=", "\"T\"", "if", "\"LP-DIR-AF\"", "not", "in", "method_codes", ":", "method_codes", ".", "append", "(", "\"LP-DIR-AF\"", ")", "if", "\"LP-DIR-T\"", "in", "meas_meth", "or", "\"LT-T-Z\"", "in", "meas_meth", ":", "PmagSpecRec", "[", "\"measurement_step_unit\"", "]", "=", "\"K\"", "if", "\"LP-DIR-T\"", "not", "in", "method_codes", ":", "method_codes", ".", "append", "(", "\"LP-DIR-T\"", ")", "if", "\"LP-DIR-M\"", "in", "meas_meth", "or", "\"LT-M-Z\"", "in", "meas_meth", ":", "PmagSpecRec", "[", "\"measurement_step_unit\"", "]", "=", "\"J\"", "if", "\"LP-DIR-M\"", "not", "in", "method_codes", ":", "method_codes", ".", "append", "(", "\"LP-DIR-M\"", ")", "#", "#", "datablock", ",", "units", "=", "pmag", ".", "find_dmag_rec", "(", "s", ",", "spec", ")", "# fish out the demag data for this specimen", "#", "if", "len", "(", "datablock", ")", "<", "2", "or", "s", "not", "in", "speclist", ":", "k", "+=", "1", "# print 'skipping ', s,len(datablock)", "else", ":", "#", "# find replicate measurements at given treatment step and average them", "#", "# step_meth,avedata=pmag.vspec(data)", "#", "# if len(avedata) != len(datablock):", "# if doave==1: ", "# method_codes.append(\"DE-VM\")", "# datablock=avedata", "#", "# do geo or stratigraphic correction now", "#", "if", "geo", "==", "1", "or", "tilt", "==", "1", ":", "# find top priority orientation method", "orient", ",", "az_type", "=", "pmag", ".", "get_orient", "(", "samp_data", ",", "PmagSpecRec", "[", "\"er_sample_name\"", "]", ")", "if", "az_type", "not", "in", "method_codes", ":", "method_codes", ".", "append", "(", "az_type", ")", "#", "# if tilt selected, get stratigraphic correction", "#", "tiltblock", ",", "geoblock", "=", "[", "]", ",", "[", "]", "for", "rec", "in", "datablock", ":", "if", "\"sample_azimuth\"", "in", "list", "(", "orient", ".", "keys", "(", ")", ")", "and", "orient", "[", "\"sample_azimuth\"", "]", "!=", "\"\"", ":", "d_geo", ",", "i_geo", "=", "pmag", ".", "dogeo", "(", "rec", "[", "1", "]", ",", "rec", "[", "2", "]", ",", "float", "(", "orient", "[", "\"sample_azimuth\"", "]", ")", ",", "float", "(", "orient", "[", "\"sample_dip\"", "]", ")", ")", "geoblock", ".", "append", "(", "[", "rec", "[", "0", "]", ",", "d_geo", ",", "i_geo", ",", "rec", "[", "3", "]", ",", "rec", "[", "4", "]", ",", "rec", "[", "5", "]", "]", ")", "if", "tilt", "==", "1", "and", "\"sample_bed_dip_direction\"", "in", "list", "(", "orient", ".", "keys", "(", ")", ")", ":", "d_tilt", ",", "i_tilt", "=", "pmag", ".", "dotilt", "(", "d_geo", ",", "i_geo", ",", "float", "(", "orient", "[", "\"sample_bed_dip_direction\"", "]", ")", ",", "float", "(", "orient", "[", "\"sample_bed_dip\"", "]", ")", ")", "tiltblock", ".", "append", "(", "[", "rec", "[", "0", "]", ",", "d_tilt", ",", "i_tilt", ",", "rec", "[", "3", "]", ",", "rec", "[", "4", "]", ",", "rec", "[", "5", "]", "]", ")", "elif", "tilt", "==", "1", ":", "if", "PmagSpecRec", "[", "\"er_sample_name\"", "]", "not", "in", "skipped", ":", "print", "(", "'no tilt correction for '", ",", "PmagSpecRec", "[", "\"er_sample_name\"", "]", ",", "' skipping....'", ")", "skipped", ".", "append", "(", "PmagSpecRec", "[", "\"er_sample_name\"", "]", ")", "else", ":", "if", "PmagSpecRec", "[", "\"er_sample_name\"", "]", "not", "in", "skipped", ":", "print", "(", "'no geographic correction for '", ",", "PmagSpecRec", "[", "\"er_sample_name\"", "]", ",", "' skipping....'", ")", "skipped", ".", "append", "(", "PmagSpecRec", "[", "\"er_sample_name\"", "]", ")", "#", "#\tget beg_pca, end_pca, pca", "if", "PmagSpecRec", "[", "'er_sample_name'", "]", "not", "in", "skipped", ":", "compnum", "=", "-", "1", "for", "spec", "in", "mkspec", ":", "if", "spec", "[", "0", "]", "==", "s", ":", "CompRec", "=", "{", "}", "for", "key", "in", "list", "(", "PmagSpecRec", ".", "keys", "(", ")", ")", ":", "CompRec", "[", "key", "]", "=", "PmagSpecRec", "[", "key", "]", "compnum", "+=", "1", "calculation_type", "=", "spec", "[", "1", "]", "beg", "=", "float", "(", "spec", "[", "2", "]", ")", "end", "=", "float", "(", "spec", "[", "3", "]", ")", "if", "len", "(", "spec", ")", ">", "4", ":", "comp_name", "=", "spec", "[", "4", "]", "else", ":", "comp_name", "=", "string", ".", "uppercase", "[", "compnum", "]", "CompRec", "[", "'specimen_comp_name'", "]", "=", "comp_name", "if", "beg", "<", "float", "(", "datablock", "[", "0", "]", "[", "0", "]", ")", ":", "beg", "=", "float", "(", "datablock", "[", "0", "]", "[", "0", "]", ")", "if", "end", ">", "float", "(", "datablock", "[", "-", "1", "]", "[", "0", "]", ")", ":", "end", "=", "float", "(", "datablock", "[", "-", "1", "]", "[", "0", "]", ")", "for", "l", "in", "range", "(", "len", "(", "datablock", ")", ")", ":", "if", "datablock", "[", "l", "]", "[", "0", "]", "==", "beg", ":", "beg_pca", "=", "l", "if", "datablock", "[", "l", "]", "[", "0", "]", "==", "end", ":", "end_pca", "=", "l", "if", "geo", "==", "1", "and", "tilt", "==", "0", ":", "mpars", "=", "pmag", ".", "domean", "(", "geoblock", ",", "beg_pca", ",", "end_pca", ",", "calculation_type", ")", "if", "mpars", "[", "\"specimen_direction_type\"", "]", "!=", "\"Error\"", ":", "CompRec", "[", "\"specimen_dec\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_dec\"", "]", ")", "CompRec", "[", "\"specimen_inc\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_inc\"", "]", ")", "CompRec", "[", "\"specimen_tilt_correction\"", "]", "=", "'0'", "if", "geo", "==", "1", "and", "tilt", "==", "1", ":", "mpars", "=", "pmag", ".", "domean", "(", "tiltblock", ",", "beg_pca", ",", "end_pca", ",", "calculation_type", ")", "if", "mpars", "[", "\"specimen_direction_type\"", "]", "!=", "\"Error\"", ":", "CompRec", "[", "\"specimen_dec\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_dec\"", "]", ")", "CompRec", "[", "\"specimen_inc\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_inc\"", "]", ")", "CompRec", "[", "\"specimen_tilt_correction\"", "]", "=", "'100'", "if", "geo", "==", "0", "and", "tilt", "==", "0", ":", "mpars", "=", "pmag", ".", "domean", "(", "datablock", ",", "beg_pca", ",", "end_pca", ",", "calculation_type", ")", "if", "mpars", "[", "\"specimen_direction_type\"", "]", "!=", "\"Error\"", ":", "CompRec", "[", "\"specimen_dec\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_dec\"", "]", ")", "CompRec", "[", "\"specimen_inc\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_inc\"", "]", ")", "CompRec", "[", "\"specimen_tilt_correction\"", "]", "=", "'-1'", "if", "mpars", "[", "\"specimen_direction_type\"", "]", "==", "\"Error\"", ":", "pass", "else", ":", "CompRec", "[", "\"measurement_step_min\"", "]", "=", "'%8.3e '", "%", "(", "datablock", "[", "beg_pca", "]", "[", "0", "]", ")", "try", ":", "CompRec", "[", "\"measurement_step_max\"", "]", "=", "'%8.3e '", "%", "(", "datablock", "[", "end_pca", "]", "[", "0", "]", ")", "except", ":", "print", "(", "'error in end_pca '", ",", "PmagSpecRec", "[", "'er_specimen_name'", "]", ")", "CompRec", "[", "\"specimen_correction\"", "]", "=", "'u'", "if", "calculation_type", "!=", "'DE-FM'", ":", "CompRec", "[", "\"specimen_mad\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_mad\"", "]", ")", "CompRec", "[", "\"specimen_alpha95\"", "]", "=", "\"\"", "else", ":", "CompRec", "[", "\"specimen_mad\"", "]", "=", "\"\"", "CompRec", "[", "\"specimen_alpha95\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_alpha95\"", "]", ")", "CompRec", "[", "\"specimen_n\"", "]", "=", "'%i '", "%", "(", "mpars", "[", "\"specimen_n\"", "]", ")", "CompRec", "[", "\"specimen_dang\"", "]", "=", "'%7.1f '", "%", "(", "mpars", "[", "\"specimen_dang\"", "]", ")", "CompMeths", "=", "[", "]", "for", "meth", "in", "method_codes", ":", "if", "meth", "not", "in", "CompMeths", ":", "CompMeths", ".", "append", "(", "meth", ")", "if", "calculation_type", "not", "in", "CompMeths", ":", "CompMeths", ".", "append", "(", "calculation_type", ")", "if", "geo", "==", "1", ":", "CompMeths", ".", "append", "(", "\"DA-DIR-GEO\"", ")", "if", "tilt", "==", "1", ":", "CompMeths", ".", "append", "(", "\"DA-DIR-TILT\"", ")", "if", "\"DE-BFP\"", "not", "in", "calculation_type", ":", "CompRec", "[", "\"specimen_direction_type\"", "]", "=", "'l'", "else", ":", "CompRec", "[", "\"specimen_direction_type\"", "]", "=", "'p'", "CompRec", "[", "\"magic_method_codes\"", "]", "=", "\"\"", "if", "len", "(", "CompMeths", ")", "!=", "0", ":", "methstring", "=", "\"\"", "for", "meth", "in", "CompMeths", ":", "methstring", "=", "methstring", "+", "\":\"", "+", "meth", "CompRec", "[", "\"magic_method_codes\"", "]", "=", "methstring", ".", "strip", "(", "':'", ")", "CompRec", "[", "\"specimen_description\"", "]", "=", "comment", "if", "len", "(", "inst_codes", ")", "!=", "0", ":", "inststring", "=", "\"\"", "for", "inst", "in", "inst_codes", ":", "inststring", "=", "inststring", "+", "\":\"", "+", "inst", "CompRec", "[", "\"magic_instrument_codes\"", "]", "=", "inststring", ".", "strip", "(", "':'", ")", "PmagSpecs", ".", "append", "(", "CompRec", ")", "k", "+=", "1", "pmag", ".", "magic_write", "(", "pmag_file", ",", "PmagSpecs", ",", "'pmag_specimens'", ")", "print", "(", "\"Recalculated specimen data stored in \"", ",", "pmag_file", ")" ]
NAME zeq_magic_redo.py DESCRIPTION Calculate principal components through demagnetization data using bounds and calculation type stored in "redo" file SYNTAX zeq_magic_redo.py [command line options] OPTIONS -h prints help message -usr USER: identify user, default is "" -f: specify input file, default is magic_measurements.txt -F: specify output file, default is zeq_specimens.txt -fre REDO: specify redo file, default is "zeq_redo" -fsa SAMPFILE: specify er_samples format file, default is "er_samples.txt" -A : don't average replicate measurements, default is yes -crd [s,g,t] : specify coordinate system [s,g,t] [default is specimen coordinates] are specimen, geographic, and tilt corrected respectively NB: you must have a SAMPFILE in this directory to rotate from specimen coordinates -leg: attaches "Recalculated from original measurements; supercedes published results. " to comment field INPUTS zeq_redo format file is: specimen_name calculation_type[DE-BFL,DE-BFL-A,DE-BFL-O,DE-BFP,DE-FM] step_min step_max component_name[A,B,C]
[ "NAME", "zeq_magic_redo", ".", "py", "DESCRIPTION", "Calculate", "principal", "components", "through", "demagnetization", "data", "using", "bounds", "and", "calculation", "type", "stored", "in", "redo", "file", "SYNTAX", "zeq_magic_redo", ".", "py", "[", "command", "line", "options", "]" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/zeq_magic_redo.py#L8-L278
train
This function is the main function for the zeq_magic_redo script. It is the main function for the zeq_magic_redo script. It is the main function for the zeq_magic_redo script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(626 - 578) + '\157' + chr(49) + '\063' + '\x33', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\060' + '\x30', 0o10), nzTpIcepk0o8(chr(1195 - 1147) + chr(9821 - 9710) + chr(49) + chr(54) + chr(54), 27429 - 27421), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(3605 - 3494) + chr(49) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(49) + chr(2232 - 2183), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101100 + 0o5) + '\x35' + chr(0b101011 + 0o12), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6402 - 6291) + chr(0b110001) + chr(0b110001) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(314 - 261) + '\x33', 0o10), nzTpIcepk0o8(chr(1986 - 1938) + chr(2077 - 1966) + chr(0b110001) + '\060' + '\065', 63732 - 63724), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\065' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110101) + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b110011) + chr(0b110111), 65259 - 65251), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(0b10000 + 0o41) + chr(0b101010 + 0o7), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + '\065' + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(0b1000 + 0o57), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x35' + chr(2057 - 2002), 49320 - 49312), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + chr(0b110001) + '\060', 49684 - 49676), nzTpIcepk0o8(chr(48) + '\157' + chr(1904 - 1855) + chr(0b110101) + chr(70 - 20), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\060' + chr(585 - 536), 62415 - 62407), nzTpIcepk0o8(chr(459 - 411) + chr(0b1101111) + chr(2458 - 2407) + chr(1841 - 1787) + chr(0b1 + 0o64), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1010000 + 0o37) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b110 + 0o151) + chr(0b110010) + chr(542 - 494) + chr(0b101101 + 0o3), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2747 - 2693) + chr(334 - 280), 0o10), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(0b110001) + chr(0b101001 + 0o11) + chr(1693 - 1642), ord("\x08")), nzTpIcepk0o8(chr(1404 - 1356) + chr(0b1011001 + 0o26) + chr(0b111 + 0o56) + chr(0b111 + 0o57), 47464 - 47456), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(2426 - 2375) + '\x35' + '\x37', 0o10), nzTpIcepk0o8(chr(198 - 150) + chr(111) + '\x31' + '\x32' + chr(732 - 683), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(6507 - 6396) + '\x32' + chr(55) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1074 - 1026) + '\x6f' + '\061' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(52) + chr(0b110110), 19861 - 19853), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b110000) + '\064', 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(8676 - 8565) + chr(0b110010) + chr(50) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(9427 - 9316) + chr(50) + chr(0b110101) + chr(1169 - 1119), 0o10), nzTpIcepk0o8(chr(364 - 316) + chr(111) + chr(0b110011) + chr(0b101010 + 0o7) + chr(2331 - 2276), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(55) + chr(1712 - 1662), 0b1000), nzTpIcepk0o8(chr(1243 - 1195) + chr(3322 - 3211) + chr(49) + chr(618 - 563) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(0b1110 + 0o50) + '\x31', 7270 - 7262), nzTpIcepk0o8('\x30' + chr(111) + '\x37' + chr(2051 - 2002), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(0b110111) + '\x35', 26915 - 26907)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(3871 - 3760) + chr(0b110101) + '\060', 63454 - 63446)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'u'), '\x64' + '\145' + chr(99) + '\x6f' + chr(0b1101 + 0o127) + '\145')('\x75' + chr(0b1110100) + '\x66' + chr(1262 - 1217) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): qjksZ7GK0xkJ = roI3spqORKae(ES5oEprVxulp(b'u'), chr(7079 - 6979) + '\x65' + chr(6691 - 6592) + '\157' + chr(1667 - 1567) + chr(6541 - 6440))('\x75' + chr(0b1110100) + '\x66' + chr(0b1 + 0o54) + chr(56)) gbVjPxBZ5aNg = [roI3spqORKae(ES5oEprVxulp(b'\x17\x94[@F'), chr(100) + '\145' + '\143' + chr(111) + '\x64' + chr(0b111011 + 0o52))(chr(0b1110 + 0o147) + '\x74' + '\146' + chr(1997 - 1952) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x17\x94[OO@\x13'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b100101 + 0o77) + chr(0b101011 + 0o72))('\165' + chr(6611 - 6495) + chr(1469 - 1367) + chr(0b1 + 0o54) + chr(0b110111 + 0o1)), roI3spqORKae(ES5oEprVxulp(b'\x17\x94[Z$7'), chr(7753 - 7653) + '\145' + chr(4219 - 4120) + '\157' + chr(7594 - 7494) + chr(5669 - 5568))('\165' + '\164' + '\x66' + chr(45) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\x17\x94[C$7'), chr(0b1011100 + 0o10) + '\x65' + chr(0b101011 + 0o70) + chr(111) + chr(100) + chr(0b1010011 + 0o22))(chr(7714 - 7597) + chr(116) + chr(0b1100110) + chr(175 - 130) + chr(0b100011 + 0o25))] (ehcw9_kWZwak, NiWVjAWn0l6T, pYwjRbN6B9zT, GZNMH8A4U3yp, NyQXJ8kxiaep, KzDJOsgX5fzi, mwgZMvWSpAHg) = (nzTpIcepk0o8(chr(48) + '\157' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9853 - 9742) + chr(0b110000), 8), [], nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(8997 - 8886) + chr(1604 - 1556), 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1804 - 1756), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(599 - 551), 8)) (E63X9RhwfuOn, qSilKIaO1ljB, pDgH24rPPCxe) = (roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(101) + chr(1432 - 1333) + chr(0b1101111) + chr(100) + '\x65')('\x75' + '\x74' + '\146' + '\055' + '\070'), nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(0b10001 + 0o40), 0b1000), roI3spqORKae(ES5oEprVxulp(b''), chr(4523 - 4423) + chr(101) + chr(4525 - 4426) + '\157' + chr(5069 - 4969) + chr(4422 - 4321))(chr(117) + chr(116) + '\146' + '\x2d' + chr(671 - 615))) (GZNMH8A4U3yp, NyQXJ8kxiaep) = (nzTpIcepk0o8('\060' + chr(111) + '\060', 8), nzTpIcepk0o8('\x30' + chr(111) + '\060', 8)) uNg9Yeq376oN = hUcsWwAd0nE_.get_version() eemPYp2vtTSr = bpyfpu4kTbwL.ajIDWyXMBa3b if roI3spqORKae(ES5oEprVxulp(b'v\x972'), chr(6563 - 6463) + chr(101) + chr(0b1111 + 0o124) + '\157' + '\x64' + chr(101))(chr(0b1110101) + chr(0b1010101 + 0o37) + '\146' + chr(0b11 + 0o52) + chr(1966 - 1910)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\x972'), '\144' + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b111100 + 0o70) + '\x66' + '\x2d' + chr(0b111000))) qjksZ7GK0xkJ = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(742 - 694) + '\157' + chr(0b110001), 8)] (rHPU8oONrR4n, XZAomjyHf0i4, qBSaR2_xBXmT) = (qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(732 - 632) + '\145' + chr(99) + chr(111) + chr(100) + chr(2892 - 2791))(chr(117) + '\164' + chr(102) + chr(0b101100 + 0o1) + '\070') + roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce$\x9aX\xed\xec\xc2bA|\x19\xaf\x81oq'), chr(100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b100001 + 0o103) + chr(0b1100101))(chr(8082 - 7965) + chr(116) + '\x66' + chr(45) + chr(0b101000 + 0o20)), qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1001010 + 0o45) + chr(0b1100100) + '\x65')(chr(8367 - 8250) + chr(0b0 + 0o164) + '\146' + chr(1930 - 1885) + '\x38') + roI3spqORKae(ES5oEprVxulp(b'!\xa5\x07Qz\x1d,\xc8,\x84H\xf1\xfa\x81sW|'), chr(3901 - 3801) + chr(8453 - 8352) + chr(99) + chr(0b1101111) + chr(0b10010 + 0o122) + '\145')('\165' + '\x74' + '\x66' + chr(45) + '\x38'), qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), '\144' + '\145' + chr(1711 - 1612) + chr(0b1101111) + '\x64' + chr(6680 - 6579))('\x75' + '\164' + chr(9284 - 9182) + chr(45) + '\x38') + roI3spqORKae(ES5oEprVxulp(b'!\xa5\x07Q{\x08-\xc4'), '\144' + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(101))(chr(6661 - 6544) + chr(8615 - 8499) + chr(6810 - 6708) + chr(934 - 889) + '\x38')) (bqpTUs8apVqb, nKUAs3HG0RP8) = (qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(0b1100100) + chr(7964 - 7863) + chr(0b1100011) + chr(2661 - 2550) + chr(0b1100100) + chr(3934 - 3833))(chr(0b111100 + 0o71) + '\x74' + '\146' + chr(0b101101) + chr(0b111000)) + roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \x9a\x03\xeb\xf1\xdb'), '\x64' + '\x65' + chr(5513 - 5414) + '\157' + '\x64' + '\145')(chr(117) + chr(10217 - 10101) + '\x66' + chr(250 - 205) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1000011 + 0o41) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1001111 + 0o26))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(2849 - 2793))) if roI3spqORKae(ES5oEprVxulp(b'v\xa8'), chr(5935 - 5835) + '\145' + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(876 - 831) + chr(1223 - 1167)) in eemPYp2vtTSr: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'"\xa63kx< \xfe*\x98z\xcb'), chr(0b1100100) + '\145' + chr(99) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1111 + 0o127) + '\x2d' + chr(0b110100 + 0o4)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x01\xb5\x04dj8\x05\x9a6\x9al\xa7'), chr(0b1100100) + '\145' + chr(99) + chr(0b101011 + 0o104) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b10100 + 0o122) + chr(1432 - 1387) + chr(2603 - 2547)))() if roI3spqORKae(ES5oEprVxulp(b'v\xb5\x05|'), chr(0b1100100) + '\145' + chr(0b110001 + 0o62) + chr(8287 - 8176) + chr(0b1100100) + '\145')('\165' + '\x74' + '\x66' + chr(0b101101) + chr(0b111000)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\xb5\x05|'), chr(100) + chr(101) + chr(0b1001100 + 0o27) + chr(1176 - 1065) + chr(0b1010110 + 0o16) + chr(101))('\165' + '\164' + chr(0b11011 + 0o113) + '\055' + chr(56))) E63X9RhwfuOn = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(332 - 284) + chr(0b1101111) + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'v\x81'), '\144' + chr(101) + chr(0b11 + 0o140) + chr(7841 - 7730) + chr(3853 - 3753) + chr(101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(81 - 25)) in eemPYp2vtTSr: qSilKIaO1ljB = nzTpIcepk0o8(chr(470 - 422) + chr(111) + chr(0b1100 + 0o44), 8) if roI3spqORKae(ES5oEprVxulp(b'v\xac\x13i'), chr(0b1100100) + chr(0b100000 + 0o105) + chr(6419 - 6320) + chr(0b1101111) + chr(1366 - 1266) + '\x65')(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(56)) in eemPYp2vtTSr: pDgH24rPPCxe = roI3spqORKae(ES5oEprVxulp(b'\t\xa5\x15oe\x0e<\xc7$\x9dH\xfb\xa9\xc9u@eJ\xee\x87~b\xe9X2B\xcf<\xdel\x951\xe7\xcf\xa2_\x14\xc5JF{\xb3\x03~l\x1f*\xce!\x8c^\xbf\xf9\xdaeCa\x19\xe9\x90s%\xf2S [\x83%\xc8#\xc6'), chr(0b1100100) + '\145' + '\x63' + '\157' + '\144' + chr(0b11111 + 0o106))(chr(117) + chr(116) + chr(102) + chr(1157 - 1112) + '\070') if roI3spqORKae(ES5oEprVxulp(b'v\xa6'), '\144' + '\x65' + chr(1858 - 1759) + chr(1457 - 1346) + chr(100) + '\x65')('\165' + '\x74' + chr(0b1100100 + 0o2) + chr(0b101101) + chr(56)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\xa6'), chr(100) + chr(0b110110 + 0o57) + chr(99) + chr(111) + chr(0b1010101 + 0o17) + '\x65')('\x75' + chr(0b1110100) + chr(102) + '\x2d' + '\070')) rHPU8oONrR4n = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(384 - 284) + chr(101) + chr(2778 - 2679) + chr(8941 - 8830) + '\x64' + chr(101))('\165' + chr(5181 - 5065) + '\x66' + chr(0b10110 + 0o27) + '\x38') + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'v\x86'), chr(100) + '\145' + chr(0b1100011) + chr(111) + chr(5776 - 5676) + '\x65')(chr(117) + chr(0b1110100) + chr(8847 - 8745) + '\055' + chr(56)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\x86'), '\x64' + chr(4144 - 4043) + chr(0b1110 + 0o125) + chr(2464 - 2353) + chr(0b1100100) + chr(4983 - 4882))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b1100 + 0o54))) XZAomjyHf0i4 = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(0b1100100) + chr(3550 - 3449) + chr(0b1001111 + 0o24) + chr(0b1101111 + 0o0) + '\x64' + '\x65')(chr(117) + chr(0b1010001 + 0o43) + '\x66' + chr(0b10000 + 0o35) + chr(0b110010 + 0o6)) + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(8470 - 8359) + '\x31', 8)] if roI3spqORKae(ES5oEprVxulp(b'v\xa6\x04k'), chr(8833 - 8733) + chr(0b1100101) + '\x63' + '\x6f' + chr(6187 - 6087) + chr(0b1100101))(chr(11095 - 10978) + chr(0b1011000 + 0o34) + '\x66' + '\x2d' + '\x38') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\xa6\x04k'), chr(0b1100100) + chr(101) + chr(4854 - 4755) + '\x6f' + chr(0b1100100) + '\x65')(chr(5403 - 5286) + '\x74' + chr(0b10110 + 0o120) + chr(45) + chr(0b100111 + 0o21))) qBSaR2_xBXmT = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(100) + chr(0b111110 + 0o47) + chr(0b1100011) + chr(0b101010 + 0o105) + chr(0b1100100) + chr(1341 - 1240))(chr(117) + chr(8887 - 8771) + chr(102) + chr(0b101101) + chr(2901 - 2845)) + eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 8)] try: _60LdqnIYnZG = DnU3Rq9N5ala(qBSaR2_xBXmT, roI3spqORKae(ES5oEprVxulp(b')'), chr(100) + chr(101) + chr(0b1100011) + chr(2449 - 2338) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b10111 + 0o26) + '\x38')) except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x19\xa1\x12.{\x08-\xc4e\x8fD\xf3\xec'), chr(1850 - 1750) + chr(0b1100101) + '\x63' + chr(0b1011000 + 0o27) + chr(0b1001000 + 0o34) + chr(1099 - 998))(chr(0b110010 + 0o103) + '\x74' + chr(102) + chr(1725 - 1680) + '\x38')) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x01\xb5\x04dj8\x05\x9a6\x9al\xa7'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b111 + 0o136))('\165' + '\164' + chr(102) + '\x2d' + chr(0b1110 + 0o52)))() (LlHN9kuALqae, XIGO4VY0V_wJ) = ([], []) FAMIMpvZT5Dm = [] for ffiOpFBWGmZU in roI3spqORKae(_60LdqnIYnZG, roI3spqORKae(ES5oEprVxulp(b'\x0f\x8b\x1bbd8#\xe5\x14\xddI\xc6'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b100000 + 0o15) + chr(0b111000)))(): PT32xG247TS3 = ffiOpFBWGmZU.LfRrQOxuDvnC() roI3spqORKae(LlHN9kuALqae, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), '\144' + chr(101) + '\143' + '\x6f' + '\144' + '\145')(chr(1110 - 993) + '\x74' + chr(102) + chr(0b10111 + 0o26) + chr(0b111000)))(PT32xG247TS3) roI3spqORKae(FAMIMpvZT5Dm, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(100) + chr(4620 - 4519) + '\x63' + chr(0b1101111) + chr(0b11 + 0o141) + chr(2264 - 2163))(chr(1116 - 999) + chr(0b111101 + 0o67) + chr(0b1100110) + '\x2d' + chr(1895 - 1839)))(PT32xG247TS3[nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(0b110000), 8)]) if roI3spqORKae(ES5oEprVxulp(b'v\xa6\x05o'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + '\144' + chr(8825 - 8724))(chr(0b1100110 + 0o17) + chr(6914 - 6798) + chr(6512 - 6410) + chr(45) + chr(0b111000)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\xa6\x05o'), chr(0b1100100) + '\x65' + chr(720 - 621) + chr(6306 - 6195) + chr(0b10111 + 0o115) + chr(101))(chr(0b1000111 + 0o56) + '\164' + chr(0b1100110) + '\055' + chr(56))) bqpTUs8apVqb = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b't'), chr(100) + chr(101) + chr(99) + chr(7015 - 6904) + '\x64' + chr(0b1000100 + 0o41))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + chr(56)) + bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1409 - 1361) + '\x6f' + chr(49), 8)] if roI3spqORKae(ES5oEprVxulp(b'v\xa3\x04j'), '\x64' + chr(101) + chr(0b1000 + 0o133) + chr(10764 - 10653) + chr(0b1010001 + 0o23) + chr(2822 - 2721))('\165' + '\164' + '\x66' + '\055' + chr(0b101001 + 0o17)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'v\xa3\x04j'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(2592 - 2492) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1010001 + 0o25) + '\055' + chr(0b111000))) nKUAs3HG0RP8 = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + chr(0b110001), 8)] if nKUAs3HG0RP8 == roI3spqORKae(ES5oEprVxulp(b'<'), '\144' + '\x65' + chr(99) + chr(0b100101 + 0o112) + chr(100) + '\x65')('\x75' + '\x74' + '\146' + chr(0b100100 + 0o11) + chr(0b111000)): (GZNMH8A4U3yp, NyQXJ8kxiaep) = (nzTpIcepk0o8('\x30' + chr(111) + chr(268 - 219), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\060', 8)) if nKUAs3HG0RP8 == roI3spqORKae(ES5oEprVxulp(b'/'), chr(100) + '\145' + chr(0b100011 + 0o100) + '\157' + chr(0b1001110 + 0o26) + '\145')(chr(117) + chr(7602 - 7486) + chr(7077 - 6975) + chr(45) + chr(0b11101 + 0o33)): (GZNMH8A4U3yp, NyQXJ8kxiaep) = (nzTpIcepk0o8(chr(2236 - 2188) + chr(7140 - 7029) + chr(0b10101 + 0o34), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x31', 8)) if GZNMH8A4U3yp == nzTpIcepk0o8('\060' + chr(111) + chr(49), 8): (p0uZ0ayl9tgG, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(bqpTUs8apVqb) if mWsDpG3yRGLz != roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \x9a'), chr(100) + '\x65' + '\x63' + chr(11524 - 11413) + chr(100) + '\145')(chr(117) + chr(0b100101 + 0o117) + '\x66' + chr(1316 - 1271) + '\070'): v8jsMqaYV6U2(mWsDpG3yRGLz) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0f\xa8\x1f})\x04:\x8b+\x86Y\xbf\xe8\x8fqNd\x03\xe5\xd5rw\xdfE2C\x9f=\xde~\xc6"\xfc\xc6\xaa\x1a'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(0b1000 + 0o134) + '\145')(chr(117) + chr(0b1110100) + chr(9948 - 9846) + chr(928 - 883) + chr(56))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x01\xb5\x04dj8\x05\x9a6\x9al\xa7'), '\x64' + chr(4466 - 4365) + chr(99) + chr(0b1101111) + chr(3305 - 3205) + '\145')(chr(0b11110 + 0o127) + chr(116) + '\x66' + chr(45) + chr(56)))() (wx5Y9SFJEaEM, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(rHPU8oONrR4n) if mWsDpG3yRGLz != roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce$\x9aX\xed\xec\xc2bA|\x19'), chr(0b1100100) + '\145' + chr(3741 - 3642) + '\x6f' + chr(0b1100100) + chr(8320 - 8219))(chr(0b1110101) + chr(0b1101110 + 0o6) + '\x66' + chr(45) + '\070'): v8jsMqaYV6U2(mWsDpG3yRGLz) v8jsMqaYV6U2(mWsDpG3yRGLz, roI3spqORKae(ES5oEprVxulp(b'\x0f\xa8\x1f})\x04:\x8b+\x86Y\xbf\xe8\x8fqNd\x03\xe5\xd5zd\xe7_0q\x824\xda~\x936\xf0\xc7\xaaT\x0e\xc2\x19\x1b2\xac\x13.'), chr(100) + chr(8460 - 8359) + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b10110 + 0o137) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(2837 - 2781))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x01\xb5\x04dj8\x05\x9a6\x9al\xa7'), chr(100) + chr(2172 - 2071) + chr(0b1100011) + '\x6f' + chr(100) + '\145')('\165' + '\164' + chr(3912 - 3810) + chr(0b101010 + 0o3) + '\070'))() B6UAF1zReOyJ = nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1 + 0o57), 8) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0b\xb2\x19ml\x1e:\xc2+\x8e\r'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1010100 + 0o20) + chr(101))(chr(6998 - 6881) + chr(9459 - 9343) + chr(6683 - 6581) + chr(0b10101 + 0o30) + chr(0b111000)), ftfygxgFas5X(FAMIMpvZT5Dm), roI3spqORKae(ES5oEprVxulp(b'{\xb3\x06kj\x04$\xce+\x9a\r\xb2\xa9\xdfkJi\x19\xe4\xd5`d\xe9B'), chr(1114 - 1014) + chr(0b1010110 + 0o17) + chr(5134 - 5035) + chr(5096 - 4985) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b0 + 0o164) + chr(102) + chr(0b1000 + 0o45) + '\070')) gqV6fDpynvmt = [] while B6UAF1zReOyJ < ftfygxgFas5X(FAMIMpvZT5Dm): PmE5_h409JAA = FAMIMpvZT5Dm[B6UAF1zReOyJ] ZFwyJzVKprGR = nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b100000 + 0o117) + chr(48), 8) oJFSmpgJxGkR = {} (GAGkgZwp3WGn, w1aR8aBZSUYo) = ([], []) Yc0OQRec9zEE = [] L66BkZPPV93j = hUcsWwAd0nE_.get_dictitem(wx5Y9SFJEaEM, roI3spqORKae(ES5oEprVxulp(b'>\xb2)}y\x08*\xc2(\x8cC\xc0\xe7\xcejJ'), chr(4651 - 4551) + chr(0b110 + 0o137) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(3777 - 3676))(chr(2979 - 2862) + chr(116) + chr(0b100001 + 0o105) + '\055' + chr(56)), PmE5_h409JAA, roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1011000 + 0o14) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b101 + 0o63))) if ftfygxgFas5X(L66BkZPPV93j) == nzTpIcepk0o8('\060' + '\157' + chr(0b10101 + 0o33), 8): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'5\xafVjh\x19(\x8b#\x86X\xf1\xed\x8fa@zJ\xf2\x85rf\xe9[6@\xd5q\x9b'), chr(0b1001101 + 0o27) + chr(0b1010000 + 0o25) + '\x63' + chr(0b1100101 + 0o12) + chr(3414 - 3314) + '\145')('\165' + chr(116) + '\146' + chr(0b101101) + chr(0b10010 + 0o46)), PmE5_h409JAA) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'?\xa5\x1ak}\x08i\xcd7\x86@\xbf\xf3\xcavpz\x0f\xe5\x9a7l\xeeF&Z\xcf7\xd2a\x83j\xbb\x84\xe1\x16Z\xc5Q\x185\xe0\x02|pM(\xcc$\x80C'), '\144' + chr(0b1100101 + 0o0) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b1010011 + 0o41) + chr(0b1 + 0o145) + chr(0b1 + 0o54) + chr(0b1111 + 0o51))) else: for FKO_XxLfWbYt in L66BkZPPV93j: mi8KHiEXG5cT = nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31', 8) lcKucyHTTXwM = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce1\x81B\xfb\xd6\xcchKm\x19'), '\144' + '\145' + '\x63' + '\157' + chr(5116 - 5016) + chr(101))('\x75' + '\x74' + chr(102) + '\x2d' + '\x38')].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'a'), '\x64' + chr(101) + chr(0b1011 + 0o130) + chr(0b1101111) + chr(0b1100010 + 0o2) + chr(665 - 564))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(1339 - 1283))) if ftfygxgFas5X(Bvi71nNyvlqO(lcKucyHTTXwM) & Bvi71nNyvlqO(gbVjPxBZ5aNg)) > nzTpIcepk0o8('\060' + chr(960 - 849) + chr(0b110000), 8): oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)og\x0c%\xd26\x9dr\xf2\xe8\xc6kpf\x0b\xec\x90d'), chr(100) + '\145' + chr(0b1100011) + chr(0b1010010 + 0o35) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1001111 + 0o27) + chr(45) + '\070')] = E63X9RhwfuOn oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2:\xc4#\x9dZ\xfe\xfb\xcaX_i\t\xea\x94p`\xf3'), chr(0b10111 + 0o115) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1010000 + 0o25))('\165' + chr(116) + chr(0b1100110) + '\x2d' + '\070')] = uNg9Yeq376oN oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}y\x08*\xc2(\x8cC\xc0\xe7\xcejJ'), chr(0b1100100) + chr(101) + '\143' + chr(11561 - 11450) + chr(0b1100100) + '\145')(chr(4040 - 3923) + chr(116) + chr(0b1100110) + chr(45) + '\070')] = PmE5_h409JAA oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), chr(100) + chr(101) + '\143' + chr(0b1010010 + 0o35) + chr(9089 - 8989) + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(262 - 217) + chr(1322 - 1266))] = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), '\x64' + chr(0b1000001 + 0o44) + chr(0b1100011) + '\157' + chr(9775 - 9675) + '\x65')(chr(0b1110101) + chr(10755 - 10639) + '\146' + chr(45) + chr(0b1011 + 0o55))] oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}`\x19,\xf4+\x88@\xfa'), '\144' + chr(101) + chr(99) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + chr(12471 - 12355) + chr(7351 - 7249) + '\055' + chr(0b111000))] = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}`\x19,\xf4+\x88@\xfa'), chr(0b1100100) + chr(0b101 + 0o140) + chr(502 - 403) + chr(7140 - 7029) + chr(100) + chr(101))('\165' + chr(9047 - 8931) + '\x66' + chr(45) + '\070')] oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)bf\x0e(\xdf,\x86C\xc0\xe7\xcejJ'), chr(3774 - 3674) + chr(0b110100 + 0o61) + chr(7450 - 7351) + chr(111) + chr(0b111010 + 0o52) + chr(0b1100101))('\165' + '\x74' + '\146' + chr(45) + '\070')] = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'>\xb2)bf\x0e(\xdf,\x86C\xc0\xe7\xcejJ'), '\144' + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(101))('\165' + chr(0b110000 + 0o104) + chr(0b1100110) + chr(0b100111 + 0o6) + chr(56))] if roI3spqORKae(ES5oEprVxulp(b'>\xb2)kq\x1d,\xcf,\x9dD\xf0\xe7\xf0iNe\x0f'), chr(100) + chr(3539 - 3438) + chr(4938 - 4839) + chr(12118 - 12007) + chr(0b1010001 + 0o23) + '\145')(chr(0b1110101) + '\164' + chr(3531 - 3429) + chr(0b101011 + 0o2) + chr(2714 - 2658)) in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), chr(5139 - 5039) + '\145' + '\143' + '\x6f' + '\144' + chr(2196 - 2095))('\165' + chr(190 - 74) + '\146' + chr(0b100001 + 0o14) + '\070'))()): oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)kq\x1d,\xcf,\x9dD\xf0\xe7\xf0iNe\x0f'), '\144' + chr(101) + chr(0b1000111 + 0o34) + chr(0b1011110 + 0o21) + '\x64' + chr(0b11011 + 0o112))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(0b10011 + 0o45))] = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'>\xb2)kq\x1d,\xcf,\x9dD\xf0\xe7\xf0iNe\x0f'), chr(0b110111 + 0o55) + '\x65' + chr(99) + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(9645 - 9529) + '\146' + chr(45) + chr(0b111000))] oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)m`\x19(\xdf,\x86C\xc0\xe7\xcejJ{'), chr(2702 - 2602) + chr(0b1100101) + chr(2992 - 2893) + '\x6f' + chr(6229 - 6129) + '\145')(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x0f\xa8\x1f})\x1e=\xde!\x90'), chr(0b1100100) + chr(0b1100101) + chr(5752 - 5653) + chr(7675 - 7564) + '\144' + '\x65')(chr(117) + chr(9487 - 9371) + '\146' + chr(45) + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2,\xd35\x8c_\xf6\xe4\xcai[W\x04\xe0\x98r'), chr(100) + chr(1016 - 915) + chr(0b1100011) + '\157' + chr(2158 - 2058) + '\x65')('\165' + chr(116) + chr(102) + chr(45) + chr(56)) not in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), chr(3696 - 3596) + '\x65' + chr(99) + chr(0b110100 + 0o73) + '\x64' + chr(0b1100101))('\x75' + chr(0b11110 + 0o126) + chr(0b100001 + 0o105) + chr(0b101101) + chr(0b111000)))()): FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2,\xd35\x8c_\xf6\xe4\xcai[W\x04\xe0\x98r'), chr(0b1010001 + 0o23) + '\145' + chr(6150 - 6051) + '\x6f' + chr(100) + '\x65')('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(101) + '\x63' + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + '\164' + '\146' + chr(45) + chr(2732 - 2676)) oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2,\xd35\x8c_\xf6\xe4\xcai[W\x04\xe0\x98rv'), chr(0b1100100) + chr(0b1100101) + chr(0b1000 + 0o133) + chr(0b1101 + 0o142) + '\x64' + chr(101))('\x75' + chr(116) + chr(0b1010101 + 0o21) + chr(844 - 799) + '\x38')] = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2,\xd35\x8c_\xf6\xe4\xcai[W\x04\xe0\x98r'), chr(0b1001010 + 0o32) + chr(0b1100101) + chr(0b1000101 + 0o36) + chr(0b1101111) + chr(0b1001011 + 0o31) + chr(101))('\x75' + chr(9158 - 9042) + chr(0b111000 + 0o56) + chr(719 - 674) + '\x38')] if roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2 \xc56\x9d_\xea\xe4\xcai[W\t\xee\x91rv'), chr(0b1100100) + chr(1578 - 1477) + chr(0b1100011) + chr(6135 - 6024) + chr(0b101000 + 0o74) + chr(101))(chr(117) + chr(12867 - 12751) + '\146' + chr(0b1101 + 0o40) + chr(0b111000)) not in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), chr(0b101111 + 0o65) + chr(9336 - 9235) + chr(0b10010 + 0o121) + chr(111) + chr(7552 - 7452) + '\x65')(chr(0b1110101) + '\164' + chr(5864 - 5762) + chr(754 - 709) + chr(0b111000)))()): FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2 \xc56\x9d_\xea\xe4\xcai[W\t\xee\x91rv'), chr(280 - 180) + '\145' + chr(9169 - 9070) + chr(111) + chr(100) + chr(6904 - 6803))(chr(0b11110 + 0o127) + chr(0b1110100) + chr(978 - 876) + '\x2d' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b''), chr(9336 - 9236) + chr(9638 - 9537) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1000001 + 0o44))('\165' + chr(2730 - 2614) + chr(102) + '\055' + chr(0b100 + 0o64)) wDEIk17vEWwT = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2 \xc56\x9d_\xea\xe4\xcai[W\t\xee\x91rv'), chr(0b111111 + 0o45) + chr(0b1010011 + 0o22) + '\x63' + chr(111) + chr(1291 - 1191) + chr(9256 - 9155))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'a'), chr(100) + chr(7163 - 7062) + chr(99) + '\157' + '\x64' + chr(0b1011000 + 0o15))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b1010 + 0o43) + chr(0b1010 + 0o56))) for J89Y4kGNG2Bs in wDEIk17vEWwT: if J89Y4kGNG2Bs not in w1aR8aBZSUYo: roI3spqORKae(w1aR8aBZSUYo, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), '\144' + chr(101) + chr(0b1100011) + chr(111) + '\144' + chr(0b101001 + 0o74))(chr(0b1110101) + '\x74' + chr(0b10100 + 0o122) + chr(1246 - 1201) + '\070'))(J89Y4kGNG2Bs) I810oeGL0u1g = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce1\x81B\xfb\xd6\xcchKm\x19'), chr(0b100000 + 0o104) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(3353 - 3253) + '\x65')(chr(7444 - 7327) + chr(1726 - 1610) + chr(5383 - 5281) + chr(551 - 506) + chr(2219 - 2163))].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'a'), chr(0b10110 + 0o116) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(6091 - 5990))(chr(0b1110101) + chr(0b1001000 + 0o54) + chr(102) + '\x2d' + chr(56))) for am4di6GtLqyR in I810oeGL0u1g: if roI3spqORKae(am4di6GtLqyR, roI3spqORKae(ES5oEprVxulp(b'0\xa4?J{\x0e>\xf1\x11\xaa^\xaa'), chr(0b1100100) + '\145' + chr(6554 - 6455) + chr(0b1101111) + chr(5657 - 5557) + chr(3616 - 3515))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\x38'))() not in Yc0OQRec9zEE: roI3spqORKae(Yc0OQRec9zEE, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b101101 + 0o67) + chr(6708 - 6607) + '\143' + '\157' + chr(0b111010 + 0o52) + chr(101))('\x75' + chr(116) + chr(0b1000101 + 0o41) + '\x2d' + '\070'))(am4di6GtLqyR) if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xea\x03'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')('\x75' + chr(6754 - 6638) + chr(0b11111 + 0o107) + '\x2d' + chr(2866 - 2810)) in Yc0OQRec9zEE or roI3spqORKae(ES5oEprVxulp(b'\x17\x94[OO@\x13'), chr(8338 - 8238) + chr(0b1100101) + '\143' + chr(402 - 291) + '\x64' + chr(4490 - 4389))(chr(12081 - 11964) + '\x74' + chr(102) + chr(0b101101) + chr(56)) in Yc0OQRec9zEE: oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'6\xa5\x17}|\x1f,\xc6 \x87Y\xc0\xfa\xdbb_W\x1f\xef\x9cc'), chr(100) + chr(1275 - 1174) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(7756 - 7639) + chr(0b0 + 0o164) + chr(4570 - 4468) + chr(45) + chr(2614 - 2558))] = roI3spqORKae(ES5oEprVxulp(b'\x0f'), chr(0b110001 + 0o63) + chr(0b1100101) + '\143' + chr(0b1101 + 0o142) + '\144' + chr(0b1100101))(chr(0b1100011 + 0o22) + '\x74' + chr(102) + '\055' + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xea\x03'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(10695 - 10584) + '\144' + '\x65')(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(56)) not in GAGkgZwp3WGn: roI3spqORKae(GAGkgZwp3WGn, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b110101 + 0o57) + chr(0b1100101) + chr(2784 - 2685) + chr(0b100001 + 0o116) + '\x64' + chr(0b10110 + 0o117))(chr(11599 - 11482) + chr(116) + '\146' + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xea\x03'), chr(0b1000101 + 0o37) + chr(10161 - 10060) + chr(0b110100 + 0o57) + chr(111) + chr(0b10111 + 0o115) + chr(3253 - 3152))(chr(0b1110101) + chr(116) + chr(9149 - 9047) + '\055' + chr(0b100 + 0o64))) if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xff'), chr(0b1011010 + 0o12) + chr(101) + chr(0b100100 + 0o77) + '\157' + '\x64' + chr(0b110000 + 0o65))(chr(0b11101 + 0o130) + chr(8012 - 7896) + chr(0b1111 + 0o127) + chr(0b101101) + chr(56)) in Yc0OQRec9zEE or roI3spqORKae(ES5oEprVxulp(b'\x17\x94[Z$7'), chr(0b1100100) + chr(0b1000001 + 0o44) + chr(0b1100011) + chr(0b1101111) + chr(4399 - 4299) + '\x65')('\x75' + '\164' + chr(0b1100110) + '\x2d' + '\x38') in Yc0OQRec9zEE: oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'6\xa5\x17}|\x1f,\xc6 \x87Y\xc0\xfa\xdbb_W\x1f\xef\x9cc'), chr(0b101111 + 0o65) + chr(101) + '\x63' + chr(0b1011101 + 0o22) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(10179 - 10063) + chr(0b1111 + 0o127) + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x10'), '\x64' + chr(8491 - 8390) + chr(3456 - 3357) + chr(12094 - 11983) + chr(0b1100100) + '\145')('\165' + '\164' + '\x66' + '\055' + chr(0b101101 + 0o13)) if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xff'), chr(100) + chr(9865 - 9764) + chr(0b110111 + 0o54) + chr(0b1100100 + 0o13) + chr(0b1010000 + 0o24) + chr(0b1011 + 0o132))('\165' + chr(0b1101011 + 0o11) + chr(0b1001111 + 0o27) + chr(0b101101) + chr(0b110000 + 0o10)) not in GAGkgZwp3WGn: roI3spqORKae(GAGkgZwp3WGn, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b1100100) + chr(0b1100101) + chr(8819 - 8720) + chr(0b101000 + 0o107) + '\x64' + chr(7443 - 7342))(chr(0b1110101) + chr(8740 - 8624) + '\146' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xff'), chr(0b1100100) + chr(1421 - 1320) + '\x63' + chr(9555 - 9444) + chr(0b110010 + 0o62) + chr(101))(chr(3471 - 3354) + '\x74' + chr(0b1100110) + chr(0b100010 + 0o13) + '\x38')) if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xe6'), '\x64' + chr(9200 - 9099) + '\143' + '\x6f' + chr(100) + chr(0b1001100 + 0o31))(chr(0b1110101) + '\x74' + chr(7646 - 7544) + chr(0b101101) + chr(0b111000)) in Yc0OQRec9zEE or roI3spqORKae(ES5oEprVxulp(b'\x17\x94[C$7'), '\144' + '\x65' + '\143' + '\x6f' + '\x64' + chr(0b1111 + 0o126))(chr(0b10100 + 0o141) + '\x74' + '\146' + chr(0b10110 + 0o27) + chr(0b111000)) in Yc0OQRec9zEE: oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'6\xa5\x17}|\x1f,\xc6 \x87Y\xc0\xfa\xdbb_W\x1f\xef\x9cc'), chr(0b1100000 + 0o4) + '\145' + chr(6283 - 6184) + chr(111) + chr(0b1100100) + chr(2471 - 2370))('\x75' + chr(0b1110100) + chr(0b1011000 + 0o16) + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x11'), '\x64' + '\145' + '\x63' + '\157' + '\x64' + chr(0b1100101))('\165' + chr(5743 - 5627) + chr(102) + '\055' + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xe6'), chr(6362 - 6262) + chr(0b1010 + 0o133) + chr(0b10111 + 0o114) + chr(11596 - 11485) + chr(3975 - 3875) + '\145')(chr(12367 - 12250) + chr(0b1110100) + chr(7154 - 7052) + chr(45) + chr(56)) not in GAGkgZwp3WGn: roI3spqORKae(GAGkgZwp3WGn, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(6311 - 6211) + '\145' + '\143' + chr(5622 - 5511) + '\x64' + chr(0b1100101))(chr(0b11 + 0o162) + chr(0b1110100) + chr(102) + chr(123 - 78) + chr(0b1100 + 0o54)))(roI3spqORKae(ES5oEprVxulp(b'\x17\x90[J@?d\xe6'), chr(0b1100100) + '\145' + '\143' + '\x6f' + chr(3183 - 3083) + '\x65')(chr(117) + chr(0b111110 + 0o66) + chr(0b11011 + 0o113) + '\055' + '\x38')) (luLn2FtUnsUW, M4fW_S7vN_Q_) = hUcsWwAd0nE_.find_dmag_rec(PmE5_h409JAA, L66BkZPPV93j) if ftfygxgFas5X(luLn2FtUnsUW) < nzTpIcepk0o8('\x30' + '\157' + chr(50), ord("\x08")) or PmE5_h409JAA not in FAMIMpvZT5Dm: B6UAF1zReOyJ += nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(152 - 103), 8) else: if GZNMH8A4U3yp == nzTpIcepk0o8(chr(2234 - 2186) + chr(0b1010 + 0o145) + chr(0b110001), 8) or NyQXJ8kxiaep == nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(1893 - 1844), 8): (uUzugdmHdWoG, aSQONzRiOGlP) = hUcsWwAd0nE_.get_orient(p0uZ0ayl9tgG, oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), '\144' + chr(1301 - 1200) + chr(1430 - 1331) + chr(0b1101111) + chr(9865 - 9765) + chr(0b1100101))('\x75' + chr(0b111010 + 0o72) + chr(102) + chr(45) + '\x38')]) if aSQONzRiOGlP not in GAGkgZwp3WGn: roI3spqORKae(GAGkgZwp3WGn, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(4957 - 4857) + chr(101) + '\x63' + chr(0b110101 + 0o72) + '\144' + chr(0b1001000 + 0o35))(chr(0b1110101) + '\164' + chr(0b111000 + 0o56) + chr(0b101101) + '\070'))(aSQONzRiOGlP) (Pta8PUodhPvk, Uz2oE4WZobgO) = ([], []) for FKO_XxLfWbYt in luLn2FtUnsUW: if roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xca?\x80@\xea\xfd\xc7'), '\144' + chr(0b100000 + 0o105) + chr(9135 - 9036) + '\x6f' + '\x64' + '\145')('\x75' + '\164' + chr(0b101001 + 0o75) + chr(0b11001 + 0o24) + chr(56)) in H4NoA26ON7iG(roI3spqORKae(uUzugdmHdWoG, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), chr(0b1110 + 0o126) + '\x65' + '\x63' + '\x6f' + chr(9908 - 9808) + chr(101))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + '\070'))()) and uUzugdmHdWoG[roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xca?\x80@\xea\xfd\xc7'), chr(0b110110 + 0o56) + chr(0b1100101) + '\143' + '\157' + '\144' + chr(0b111111 + 0o46))(chr(117) + '\164' + chr(102) + '\055' + '\070')] != roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b11 + 0o142) + '\143' + chr(10189 - 10078) + chr(5633 - 5533) + '\145')('\x75' + chr(116) + '\x66' + '\055' + chr(56)): (qUHvb9S4wlcr, whzntxgQ9HrG) = hUcsWwAd0nE_.dogeo(FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(846 - 797), 8)], FKO_XxLfWbYt[nzTpIcepk0o8(chr(1374 - 1326) + '\157' + chr(0b101000 + 0o12), 8)], jLW6pRf2DSRk(uUzugdmHdWoG[roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xca?\x80@\xea\xfd\xc7'), '\x64' + chr(2349 - 2248) + chr(6450 - 6351) + '\x6f' + chr(0b1100100) + chr(8497 - 8396))(chr(0b1101110 + 0o7) + chr(3604 - 3488) + chr(0b1100110) + chr(45) + chr(0b1100 + 0o54))]), jLW6pRf2DSRk(uUzugdmHdWoG[roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xcf,\x99'), '\144' + chr(7530 - 7429) + chr(99) + chr(11524 - 11413) + '\144' + chr(2652 - 2551))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1539 - 1494) + chr(220 - 164))])) roI3spqORKae(Uz2oE4WZobgO, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), '\144' + chr(0b1100101) + '\143' + chr(0b111100 + 0o63) + chr(1324 - 1224) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b0 + 0o55) + chr(0b111000)))([FKO_XxLfWbYt[nzTpIcepk0o8('\060' + chr(0b1010001 + 0o36) + '\x30', 8)], qUHvb9S4wlcr, whzntxgQ9HrG, FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + chr(0b11 + 0o154) + '\063', 0b1000)], FKO_XxLfWbYt[nzTpIcepk0o8(chr(915 - 867) + '\x6f' + chr(0b100111 + 0o15), 23685 - 23677)], FKO_XxLfWbYt[nzTpIcepk0o8('\060' + chr(12029 - 11918) + chr(0b110101), 8)]]) if NyQXJ8kxiaep == nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\x31', 8) and roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xc9 \x8dr\xfb\xe0\xdfXKa\x18\xe4\x96cl\xefX'), chr(873 - 773) + chr(101) + chr(99) + '\x6f' + '\144' + chr(3834 - 3733))(chr(117) + chr(116) + chr(0b1010 + 0o134) + chr(45) + chr(0b100111 + 0o21)) in H4NoA26ON7iG(roI3spqORKae(uUzugdmHdWoG, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), '\x64' + '\x65' + chr(0b1100011) + chr(0b10111 + 0o130) + '\144' + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(45) + '\070'))()): (HBgwluhbzQL4, Af1ybMz3L5yW) = hUcsWwAd0nE_.dotilt(qUHvb9S4wlcr, whzntxgQ9HrG, jLW6pRf2DSRk(uUzugdmHdWoG[roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xc9 \x8dr\xfb\xe0\xdfXKa\x18\xe4\x96cl\xefX'), chr(100) + chr(101) + chr(2273 - 2174) + chr(0b1101100 + 0o3) + chr(0b1100100) + '\145')('\x75' + chr(116) + chr(0b11110 + 0o110) + '\x2d' + '\070')]), jLW6pRf2DSRk(uUzugdmHdWoG[roI3spqORKae(ES5oEprVxulp(b'(\xa1\x1b~e\x08\x16\xc9 \x8dr\xfb\xe0\xdf'), chr(0b1100100) + chr(0b101101 + 0o70) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(2846 - 2745))('\x75' + '\x74' + chr(4279 - 4177) + chr(0b100110 + 0o7) + chr(1859 - 1803))])) roI3spqORKae(Pta8PUodhPvk, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(4372 - 4272) + '\145' + '\x63' + chr(0b1101111) + chr(100) + chr(0b10111 + 0o116))('\x75' + chr(615 - 499) + '\x66' + '\x2d' + '\x38'))([FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(48), 8)], HBgwluhbzQL4, Af1ybMz3L5yW, FKO_XxLfWbYt[nzTpIcepk0o8(chr(1794 - 1746) + chr(3143 - 3032) + '\063', 8)], FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\x34', 8)], FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(111) + chr(53), 8)]]) elif NyQXJ8kxiaep == nzTpIcepk0o8('\060' + '\x6f' + chr(49), 8): if oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), '\144' + chr(0b1000110 + 0o37) + chr(0b101110 + 0o65) + chr(111) + chr(100) + chr(3942 - 3841))(chr(0b1010 + 0o153) + chr(116) + chr(7958 - 7856) + chr(0b100011 + 0o12) + chr(0b101101 + 0o13))] not in XIGO4VY0V_wJ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'5\xafVz`\x01=\x8b&\x86_\xed\xec\xccsFg\x04\xa1\x93xw\xa0'), '\144' + chr(8187 - 8086) + '\143' + chr(111) + chr(100) + '\145')(chr(11875 - 11758) + chr(0b1110100) + chr(0b1100110) + chr(497 - 452) + chr(0b111000)), oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b111100 + 0o63) + '\x64' + chr(101))(chr(2098 - 1981) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'{\xb3\x1dgy\x1d \xc5"\xc7\x03\xb1\xa7'), chr(1460 - 1360) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(101))('\x75' + chr(11058 - 10942) + chr(102) + chr(45) + chr(0b10101 + 0o43))) roI3spqORKae(XIGO4VY0V_wJ, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b10010 + 0o122) + chr(4868 - 4767) + '\143' + '\x6f' + chr(4673 - 4573) + chr(0b11001 + 0o114))(chr(117) + chr(116) + chr(0b110110 + 0o60) + chr(989 - 944) + chr(0b111000)))(oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), chr(0b111110 + 0o46) + '\145' + '\143' + chr(10919 - 10808) + chr(0b101111 + 0o65) + '\145')(chr(117) + chr(0b1110100) + chr(0b111101 + 0o51) + chr(0b101010 + 0o3) + chr(2675 - 2619))]) elif oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), '\144' + '\x65' + chr(9301 - 9202) + chr(0b1011011 + 0o24) + '\144' + '\x65')('\x75' + chr(0b1010 + 0o152) + chr(5263 - 5161) + '\x2d' + chr(56))] not in XIGO4VY0V_wJ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'5\xafVil\x02.\xd9$\x99E\xf6\xea\x8fd@z\x18\xe4\x96cl\xefXsH\x80#\x9b'), '\144' + chr(0b11110 + 0o107) + '\143' + chr(111) + chr(0b10 + 0o142) + '\x65')(chr(0b1110101) + chr(0b110000 + 0o104) + '\x66' + chr(0b101101) + chr(56)), oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), chr(100) + '\145' + chr(0b1100011) + chr(0b1001000 + 0o47) + chr(0b1100100) + '\145')(chr(7616 - 7499) + chr(0b1110100) + chr(102) + chr(45) + chr(3098 - 3042))], roI3spqORKae(ES5oEprVxulp(b'{\xb3\x1dgy\x1d \xc5"\xc7\x03\xb1\xa7'), chr(100) + chr(932 - 831) + chr(0b1100011 + 0o0) + '\x6f' + chr(4112 - 4012) + chr(0b1000011 + 0o42))(chr(3007 - 2890) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))) roI3spqORKae(XIGO4VY0V_wJ, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(7209 - 7109) + '\x65' + chr(0b1100011) + '\157' + chr(0b101000 + 0o74) + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(0b101100 + 0o14)))(oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), chr(0b1010000 + 0o24) + '\145' + chr(6717 - 6618) + chr(0b1101111) + chr(100) + chr(7316 - 7215))(chr(0b101110 + 0o107) + chr(5320 - 5204) + chr(0b1100110) + '\055' + chr(1589 - 1533))]) if oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}h\x009\xc7 \xb6C\xfe\xe4\xca'), chr(653 - 553) + chr(101) + '\143' + chr(10337 - 10226) + '\144' + '\x65')('\165' + chr(0b11 + 0o161) + chr(102) + chr(0b100110 + 0o7) + chr(233 - 177))] not in XIGO4VY0V_wJ: HWsKY0MGR4pi = -nzTpIcepk0o8(chr(48) + '\157' + chr(240 - 191), 8) for L66BkZPPV93j in LlHN9kuALqae: if L66BkZPPV93j[nzTpIcepk0o8('\060' + '\157' + '\x30', 8)] == PmE5_h409JAA: rpoksCgVkXPS = {} for QYodcsDtoGq7 in H4NoA26ON7iG(roI3spqORKae(oJFSmpgJxGkR, roI3spqORKae(ES5oEprVxulp(b'0\xa5\x0f}'), chr(102 - 2) + chr(101) + '\143' + chr(0b11 + 0o154) + chr(0b110110 + 0o56) + chr(0b10110 + 0o117))('\165' + chr(0b1101101 + 0o7) + chr(5462 - 5360) + chr(0b11 + 0o52) + '\x38'))()): rpoksCgVkXPS[QYodcsDtoGq7] = oJFSmpgJxGkR[QYodcsDtoGq7] HWsKY0MGR4pi += nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061', 8) yqEynH3caY_E = L66BkZPPV93j[nzTpIcepk0o8('\x30' + '\x6f' + chr(1147 - 1098), 8)] ehcw9_kWZwak = jLW6pRf2DSRk(L66BkZPPV93j[nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x32', 8)]) NiWVjAWn0l6T = jLW6pRf2DSRk(L66BkZPPV93j[nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(0b110011), 8)]) if ftfygxgFas5X(L66BkZPPV93j) > nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(750 - 698), 8): MSRwVor7lMXu = L66BkZPPV93j[nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + chr(52), 8)] else: MSRwVor7lMXu = aji3jF4_nqWL.uppercase[HWsKY0MGR4pi] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8aB\xf2\xf9\xf0iNe\x0f'), '\x64' + '\145' + '\143' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + '\x38')] = MSRwVor7lMXu if ehcw9_kWZwak < jLW6pRf2DSRk(luLn2FtUnsUW[nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(1825 - 1777), 8)][nzTpIcepk0o8(chr(1840 - 1792) + chr(0b1101111) + '\060', 8)]): ehcw9_kWZwak = jLW6pRf2DSRk(luLn2FtUnsUW[nzTpIcepk0o8(chr(48) + '\x6f' + chr(603 - 555), 8)][nzTpIcepk0o8(chr(1020 - 972) + chr(111) + chr(48), 8)]) if NiWVjAWn0l6T > jLW6pRf2DSRk(luLn2FtUnsUW[-nzTpIcepk0o8('\x30' + chr(0b1010111 + 0o30) + chr(2245 - 2196), 8)][nzTpIcepk0o8('\060' + chr(111) + '\x30', 8)]): NiWVjAWn0l6T = jLW6pRf2DSRk(luLn2FtUnsUW[-nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(0b0 + 0o61), 8)][nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + '\x30', 8)]) for fPrVrKACaFCC in bbT2xIe5pzk7(ftfygxgFas5X(luLn2FtUnsUW)): if luLn2FtUnsUW[fPrVrKACaFCC][nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b0 + 0o60), 8)] == ehcw9_kWZwak: jFLPAB4vvXxM = fPrVrKACaFCC if luLn2FtUnsUW[fPrVrKACaFCC][nzTpIcepk0o8('\060' + chr(111) + '\060', 8)] == NiWVjAWn0l6T: XdDrn_g8P0sY = fPrVrKACaFCC if GZNMH8A4U3yp == nzTpIcepk0o8(chr(0b111 + 0o51) + chr(0b1101111) + chr(0b110001), 8) and NyQXJ8kxiaep == nzTpIcepk0o8(chr(1576 - 1528) + chr(3101 - 2990) + chr(48), 8): MGHw73zcTvRw = hUcsWwAd0nE_.domean(Uz2oE4WZobgO, jFLPAB4vvXxM, XdDrn_g8P0sY, yqEynH3caY_E) if MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), chr(0b110000 + 0o64) + chr(0b1011010 + 0o13) + chr(99) + chr(0b10001 + 0o136) + chr(100) + chr(101))(chr(0b1101111 + 0o6) + chr(0b1110100) + chr(102) + '\x2d' + '\x38')] != roI3spqORKae(ES5oEprVxulp(b'\x1e\xb2\x04a{'), chr(100) + chr(1434 - 1333) + '\143' + chr(0b1011100 + 0o23) + chr(9101 - 9001) + '\145')(chr(7046 - 6929) + chr(502 - 386) + chr(102) + chr(0b101011 + 0o2) + chr(0b100111 + 0o21)): rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), chr(0b1100100) + chr(9164 - 9063) + chr(0b10111 + 0o114) + '\157' + chr(590 - 490) + '\145')('\x75' + chr(4368 - 4252) + chr(0b111110 + 0o50) + chr(1031 - 986) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), '\x64' + '\145' + chr(0b1001 + 0o132) + '\157' + '\144' + chr(101))('\x75' + '\164' + '\146' + chr(0b101001 + 0o4) + '\x38') % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), '\x64' + chr(2922 - 2821) + '\x63' + chr(0b1000101 + 0o52) + chr(100) + '\145')('\165' + chr(116) + '\x66' + '\x2d' + chr(0b111000))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), chr(1482 - 1382) + '\145' + chr(0b11010 + 0o111) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(9742 - 9626) + '\146' + chr(0b101101) + chr(2470 - 2414))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), '\x64' + '\x65' + chr(0b1011101 + 0o6) + chr(111) + chr(1084 - 984) + chr(2635 - 2534))(chr(10992 - 10875) + chr(0b1000101 + 0o57) + chr(9909 - 9807) + chr(45) + '\x38') % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), chr(6156 - 6056) + chr(1777 - 1676) + '\x63' + chr(111) + chr(0b10110 + 0o116) + chr(8039 - 7938))(chr(117) + chr(116) + chr(102) + chr(0b11010 + 0o23) + '\070')] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x9dD\xf3\xfd\xf0d@z\x18\xe4\x96cl\xefX'), chr(0b1100100) + chr(1575 - 1474) + '\x63' + chr(1827 - 1716) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(45) + chr(2187 - 2131))] = roI3spqORKae(ES5oEprVxulp(b'k'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1100100) + '\145')(chr(0b10111 + 0o136) + chr(0b1110100) + '\146' + '\x2d' + chr(56)) if GZNMH8A4U3yp == nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001), 8) and NyQXJ8kxiaep == nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b110001), 8): MGHw73zcTvRw = hUcsWwAd0nE_.domean(Pta8PUodhPvk, jFLPAB4vvXxM, XdDrn_g8P0sY, yqEynH3caY_E) if MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), chr(0b1100100) + chr(3915 - 3814) + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b101000 + 0o114) + chr(0b1011111 + 0o7) + '\x2d' + chr(1677 - 1621))] != roI3spqORKae(ES5oEprVxulp(b'\x1e\xb2\x04a{'), chr(0b1100100) + chr(101) + chr(4119 - 4020) + chr(0b10 + 0o155) + chr(3796 - 3696) + chr(0b1100001 + 0o4))(chr(9702 - 9585) + chr(2018 - 1902) + chr(0b1100110) + chr(0b100101 + 0o10) + chr(56)): rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), '\144' + chr(7016 - 6915) + chr(0b10110 + 0o115) + '\x6f' + chr(100) + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(45) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), chr(0b10011 + 0o121) + chr(101) + '\x63' + '\157' + chr(4074 - 3974) + chr(0b1100101))('\165' + chr(8194 - 8078) + chr(0b1100110) + chr(0b10111 + 0o26) + '\x38') % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), chr(100) + '\145' + chr(0b1001111 + 0o24) + chr(6418 - 6307) + chr(0b100100 + 0o100) + chr(101))(chr(117) + chr(0b110010 + 0o102) + '\146' + chr(0b11111 + 0o16) + chr(0b111000))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), chr(0b0 + 0o144) + chr(101) + chr(0b1100011) + chr(3605 - 3494) + '\x64' + chr(101))(chr(0b1110101) + chr(954 - 838) + chr(5168 - 5066) + chr(45) + chr(2944 - 2888))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), chr(100) + chr(0b1100101) + '\143' + chr(8676 - 8565) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(437 - 392) + chr(2489 - 2433)) % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), '\x64' + '\145' + chr(99) + chr(11757 - 11646) + chr(100) + chr(0b1100101))(chr(8618 - 8501) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x9dD\xf3\xfd\xf0d@z\x18\xe4\x96cl\xefX'), chr(0b1100100) + chr(2601 - 2500) + '\x63' + '\157' + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + chr(0b1001010 + 0o34) + '\055' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'j\xf0F'), '\x64' + chr(101) + '\143' + '\x6f' + chr(138 - 38) + chr(0b1010000 + 0o25))('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(56)) if GZNMH8A4U3yp == nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + chr(1048 - 1000), 8) and NyQXJ8kxiaep == nzTpIcepk0o8(chr(0b110000) + '\157' + '\x30', 8): MGHw73zcTvRw = hUcsWwAd0nE_.domean(luLn2FtUnsUW, jFLPAB4vvXxM, XdDrn_g8P0sY, yqEynH3caY_E) if MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), chr(0b1100100) + chr(101) + chr(3500 - 3401) + '\x6f' + chr(0b10100 + 0o120) + '\145')(chr(5583 - 5466) + '\x74' + '\x66' + '\055' + chr(0b11111 + 0o31))] != roI3spqORKae(ES5oEprVxulp(b'\x1e\xb2\x04a{'), '\144' + chr(101) + '\x63' + chr(0b1101111) + '\144' + '\x65')(chr(117) + '\164' + chr(0b1100110) + chr(0b1011 + 0o42) + chr(56)): rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), '\144' + '\145' + chr(7151 - 7052) + chr(111) + chr(0b1100100) + chr(0b100001 + 0o104))(chr(117) + chr(0b1110100) + chr(102) + chr(199 - 154) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), '\144' + '\x65' + chr(99) + chr(12096 - 11985) + '\x64' + chr(4678 - 4577))('\x75' + chr(10990 - 10874) + '\x66' + '\x2d' + chr(2228 - 2172)) % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xfc'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(0b1011 + 0o132))(chr(0b110110 + 0o77) + chr(0b111001 + 0o73) + chr(889 - 787) + '\x2d' + chr(0b100000 + 0o30))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), chr(0b100010 + 0o102) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(3789 - 3672) + chr(116) + chr(4915 - 4813) + chr(0b101000 + 0o5) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), chr(0b1100100 + 0o0) + chr(5712 - 5611) + chr(99) + chr(5169 - 5058) + '\144' + chr(0b1010 + 0o133))('\x75' + '\164' + chr(102) + '\x2d' + chr(0b1011 + 0o55)) % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x80C\xfc'), '\x64' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(4748 - 4632) + '\x66' + chr(45) + chr(56))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x9dD\xf3\xfd\xf0d@z\x18\xe4\x96cl\xefX'), chr(100) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(0b10011 + 0o123) + chr(0b1100 + 0o41) + chr(0b110101 + 0o3))] = roI3spqORKae(ES5oEprVxulp(b'v\xf1'), '\144' + chr(1560 - 1459) + chr(5129 - 5030) + chr(111) + chr(9646 - 9546) + chr(101))(chr(7627 - 7510) + '\x74' + chr(102) + '\055' + '\070') if MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), '\144' + '\x65' + chr(0b1001000 + 0o33) + '\157' + chr(0b11011 + 0o111) + chr(0b1100101))('\x75' + '\x74' + chr(0b110000 + 0o66) + '\x2d' + chr(0b111000))] == roI3spqORKae(ES5oEprVxulp(b'\x1e\xb2\x04a{'), '\x64' + chr(0b100 + 0o141) + '\x63' + chr(5976 - 5865) + chr(100) + chr(1917 - 1816))(chr(0b10101 + 0o140) + chr(0b1110100) + chr(0b11100 + 0o112) + '\x2d' + '\070'): pass else: rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'6\xa5\x17}|\x1f,\xc6 \x87Y\xc0\xfa\xdbb_W\x07\xe8\x9b'), chr(957 - 857) + chr(1492 - 1391) + chr(9022 - 8923) + '\x6f' + '\144' + chr(0b101101 + 0o70))('\x75' + chr(116) + chr(3681 - 3579) + '\x2d' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'~\xf8X=lM'), '\x64' + chr(9481 - 9380) + chr(0b1100011) + '\157' + '\144' + chr(0b1111 + 0o126))(chr(0b1110101) + chr(0b1101011 + 0o11) + '\x66' + '\055' + '\070') % luLn2FtUnsUW[jFLPAB4vvXxM][nzTpIcepk0o8(chr(48) + chr(0b1011000 + 0o27) + '\060', 8)] try: rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'6\xa5\x17}|\x1f,\xc6 \x87Y\xc0\xfa\xdbb_W\x07\xe0\x8d'), chr(0b1000111 + 0o35) + chr(0b11100 + 0o111) + chr(99) + '\157' + chr(0b11111 + 0o105) + chr(101))(chr(0b1110011 + 0o2) + chr(6420 - 6304) + '\146' + chr(590 - 545) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'~\xf8X=lM'), chr(0b10010 + 0o122) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + chr(6168 - 6067))(chr(0b1110101) + '\x74' + chr(4169 - 4067) + chr(0b101101) + chr(0b111000)) % luLn2FtUnsUW[XdDrn_g8P0sY][nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(48), 8)] except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'>\xb2\x04a{M \xc5e\x8cC\xfb\xd6\xdfdN('), chr(0b1001100 + 0o30) + chr(3266 - 3165) + '\x63' + '\157' + chr(0b1001010 + 0o32) + chr(2219 - 2118))(chr(117) + chr(0b1110100) + '\146' + chr(1270 - 1225) + chr(0b1111 + 0o51)), oJFSmpgJxGkR[roI3spqORKae(ES5oEprVxulp(b'>\xb2)}y\x08*\xc2(\x8cC\xc0\xe7\xcejJ'), chr(2350 - 2250) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b101100 + 0o70) + '\145')(chr(117) + chr(116) + '\x66' + chr(0b101101) + chr(0b1110 + 0o52))]) rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8aB\xed\xfb\xcad[a\x05\xef'), chr(100) + chr(101) + chr(1820 - 1721) + chr(111) + '\144' + chr(6186 - 6085))(chr(0b1011100 + 0o31) + chr(0b101001 + 0o113) + '\146' + chr(0b101101) + chr(0b110010 + 0o6))] = roI3spqORKae(ES5oEprVxulp(b'.'), '\x64' + chr(0b100111 + 0o76) + '\x63' + chr(0b1101111) + '\x64' + chr(5391 - 5290))('\x75' + '\164' + chr(102) + chr(0b11100 + 0o21) + chr(56)) if yqEynH3caY_E != roI3spqORKae(ES5oEprVxulp(b'\x1f\x85[HD'), chr(100) + chr(3167 - 3066) + chr(8220 - 8121) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1100000 + 0o25) + chr(3685 - 3569) + chr(102) + chr(1005 - 960) + '\x38'): rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x84L\xfb'), chr(0b1101 + 0o127) + chr(8867 - 8766) + chr(99) + chr(0b1101111) + '\144' + '\x65')(chr(117) + chr(1966 - 1850) + chr(102) + '\x2d' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), '\x64' + chr(101) + chr(0b100110 + 0o75) + chr(111) + chr(4229 - 4129) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(102) + chr(482 - 437) + '\070') % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x84L\xfb'), chr(0b101110 + 0o66) + '\145' + chr(0b1100011) + chr(6685 - 6574) + '\x64' + '\x65')(chr(0b1101100 + 0o11) + chr(116) + chr(102) + chr(45) + '\x38')] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x88A\xef\xe1\xce>\x1a'), chr(100) + chr(3091 - 2990) + chr(0b1100011) + chr(0b1001000 + 0o47) + chr(100) + chr(0b1100101))('\x75' + '\x74' + chr(0b1011111 + 0o7) + '\055' + chr(3056 - 3000))] = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(0b1100001 + 0o2) + chr(111) + chr(0b1100100) + chr(5490 - 5389))(chr(9851 - 9734) + '\164' + chr(0b101 + 0o141) + chr(0b11110 + 0o17) + chr(0b110001 + 0o7)) else: rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x84L\xfb'), chr(0b1100010 + 0o2) + chr(101) + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1001 + 0o154) + '\x74' + '\x66' + chr(1337 - 1292) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100101) + chr(983 - 884) + chr(0b1101111) + '\144' + chr(101))(chr(0b1010001 + 0o44) + chr(116) + '\x66' + '\055' + '\x38') rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x88A\xef\xe1\xce>\x1a'), chr(9637 - 9537) + chr(0b1001110 + 0o27) + chr(0b1000 + 0o133) + chr(10204 - 10093) + '\144' + '\145')(chr(0b1000 + 0o155) + chr(0b1101001 + 0o13) + chr(102) + '\x2d' + chr(1408 - 1352))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), chr(0b1011000 + 0o14) + chr(0b1100101 + 0o0) + chr(1659 - 1560) + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(0b110110 + 0o76) + chr(0b110110 + 0o60) + chr(45) + '\070') % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x88A\xef\xe1\xce>\x1a'), '\x64' + chr(911 - 810) + '\x63' + '\x6f' + chr(0b1000101 + 0o37) + '\x65')(chr(0b1110011 + 0o2) + '\x74' + '\146' + chr(45) + chr(0b1001 + 0o57))] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x87'), '\x64' + chr(0b11001 + 0o114) + chr(99) + chr(10258 - 10147) + chr(5668 - 5568) + chr(101))('\x75' + chr(0b1110011 + 0o1) + '\x66' + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'~\xa9V'), chr(0b1100100) + '\x65' + chr(2118 - 2019) + '\x6f' + chr(100) + chr(101))('\165' + chr(116) + chr(8246 - 8144) + chr(45) + chr(0b111 + 0o61)) % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x87'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\144' + '\x65')(chr(0b1110101) + '\164' + '\146' + '\x2d' + '\x38')] rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dL\xf1\xee'), chr(0b1100100) + chr(4437 - 4336) + '\143' + chr(0b1101111) + chr(100) + '\x65')(chr(0b1000011 + 0o62) + chr(7205 - 7089) + '\x66' + '\055' + chr(805 - 749))] = roI3spqORKae(ES5oEprVxulp(b'~\xf7X?oM'), chr(6566 - 6466) + '\x65' + chr(0b11010 + 0o111) + chr(0b1001111 + 0o40) + chr(0b1000110 + 0o36) + chr(0b1010001 + 0o24))(chr(0b100010 + 0o123) + '\164' + '\x66' + '\055' + chr(210 - 154)) % MGHw73zcTvRw[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dL\xf1\xee'), '\x64' + chr(0b1100101) + chr(9496 - 9397) + '\x6f' + '\x64' + chr(0b101 + 0o140))(chr(0b101101 + 0o110) + chr(0b1110100) + '\146' + '\055' + chr(0b111000))] zsjM4lWq8r6T = [] for am4di6GtLqyR in GAGkgZwp3WGn: if am4di6GtLqyR not in zsjM4lWq8r6T: roI3spqORKae(zsjM4lWq8r6T, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b11110 + 0o106) + '\145' + chr(99) + chr(0b111100 + 0o63) + chr(4224 - 4124) + chr(4810 - 4709))('\x75' + chr(3116 - 3000) + chr(0b1100110) + chr(1083 - 1038) + '\x38'))(am4di6GtLqyR) if yqEynH3caY_E not in zsjM4lWq8r6T: roI3spqORKae(zsjM4lWq8r6T, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b1100100 + 0o0) + chr(2571 - 2470) + chr(0b100101 + 0o76) + chr(0b1100111 + 0o10) + chr(100) + chr(5129 - 5028))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(1098 - 1053) + chr(56)))(yqEynH3caY_E) if GZNMH8A4U3yp == nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8): roI3spqORKae(zsjM4lWq8r6T, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(0b1000101 + 0o37) + chr(0b1100101) + chr(9145 - 9046) + chr(0b1011001 + 0o26) + '\144' + chr(1627 - 1526))(chr(0b1010110 + 0o37) + chr(4314 - 4198) + chr(0b1100110) + '\055' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x1f\x81[J@?d\xec\x00\xa6'), chr(2593 - 2493) + chr(101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1000101 + 0o40))(chr(0b1110101) + chr(116) + chr(5284 - 5182) + chr(0b101101) + '\070')) if NyQXJ8kxiaep == nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + chr(49), 8): roI3spqORKae(zsjM4lWq8r6T, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(100) + chr(101) + chr(0b1100011) + chr(0b111011 + 0o64) + chr(2413 - 2313) + chr(0b1100101))(chr(0b11011 + 0o132) + chr(0b1001100 + 0o50) + chr(5011 - 4909) + chr(0b1100 + 0o41) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'\x1f\x81[J@?d\xff\x0c\xa5y'), '\x64' + '\x65' + chr(6755 - 6656) + '\157' + chr(4404 - 4304) + chr(1575 - 1474))('\x75' + chr(0b1110100) + '\x66' + '\055' + '\070')) if roI3spqORKae(ES5oEprVxulp(b'\x1f\x85[LO='), '\144' + chr(0b1100101) + chr(0b1000001 + 0o42) + '\x6f' + '\144' + '\145')('\x75' + chr(2604 - 2488) + chr(0b1100110) + chr(45) + '\x38') not in yqEynH3caY_E: rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), '\x64' + chr(0b1100101) + chr(8522 - 8423) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1000 + 0o155) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(2446 - 2390))] = roI3spqORKae(ES5oEprVxulp(b'7'), chr(0b1100100) + chr(10005 - 9904) + chr(1927 - 1828) + '\157' + chr(1615 - 1515) + '\x65')(chr(0b1110101) + chr(116) + chr(5802 - 5700) + '\x2d' + chr(102 - 46)) else: rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dD\xed\xec\xccsFg\x04\xde\x81nu\xe5'), '\144' + chr(0b1100101) + chr(99) + chr(0b1000000 + 0o57) + '\x64' + chr(101))(chr(3228 - 3111) + chr(0b1110100) + chr(0b1001101 + 0o31) + chr(0b101101) + chr(1700 - 1644))] = roI3spqORKae(ES5oEprVxulp(b'+'), chr(6617 - 6517) + '\x65' + chr(0b101110 + 0o65) + chr(111) + chr(0b10011 + 0o121) + '\145')(chr(9545 - 9428) + chr(0b1110100) + chr(102) + chr(1816 - 1771) + chr(56)) rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce1\x81B\xfb\xd6\xcchKm\x19'), chr(3658 - 3558) + chr(5665 - 5564) + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(515 - 398) + '\x74' + '\146' + chr(45) + '\070')] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + '\x65')(chr(5801 - 5684) + chr(116) + '\146' + '\055' + chr(1512 - 1456)) if ftfygxgFas5X(zsjM4lWq8r6T) != nzTpIcepk0o8('\060' + '\157' + chr(654 - 606), 8): LMvA7gpfhnzN = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1011000 + 0o14) + chr(2239 - 2138) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\165' + '\x74' + chr(0b1000110 + 0o40) + chr(1860 - 1815) + '\x38') for am4di6GtLqyR in zsjM4lWq8r6T: LMvA7gpfhnzN = LMvA7gpfhnzN + roI3spqORKae(ES5oEprVxulp(b'a'), chr(4937 - 4837) + '\145' + '\x63' + chr(0b1101111) + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(0b1100011 + 0o3) + '\x2d' + '\070') + am4di6GtLqyR rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2$\xce1\x81B\xfb\xd6\xcchKm\x19'), '\144' + '\x65' + chr(99) + chr(0b1101111) + '\x64' + chr(0b11110 + 0o107))(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\070')] = LMvA7gpfhnzN.kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'a'), '\x64' + chr(101) + chr(0b101010 + 0o71) + chr(1343 - 1232) + '\x64' + chr(7898 - 7797))(chr(0b10001 + 0o144) + chr(116) + '\146' + chr(45) + chr(2413 - 2357))) rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'(\xb0\x13m`\x00,\xc5\x1a\x8dH\xec\xea\xddn_|\x03\xee\x9b'), '\x64' + chr(0b1100101) + '\143' + chr(8001 - 7890) + '\x64' + chr(101))(chr(0b1100100 + 0o21) + '\164' + chr(6413 - 6311) + '\x2d' + '\070')] = pDgH24rPPCxe if ftfygxgFas5X(w1aR8aBZSUYo) != nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(828 - 780), 8): T2hokg5Z8fVe = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + '\145')('\165' + chr(6655 - 6539) + chr(102) + '\055' + chr(1111 - 1055)) for wDEIk17vEWwT in w1aR8aBZSUYo: T2hokg5Z8fVe = T2hokg5Z8fVe + roI3spqORKae(ES5oEprVxulp(b'a'), chr(0b1100100) + chr(9816 - 9715) + '\x63' + '\x6f' + '\x64' + chr(4485 - 4384))(chr(0b1000000 + 0o65) + '\164' + chr(0b1100110) + '\x2d' + '\x38') + wDEIk17vEWwT rpoksCgVkXPS[roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2 \xc56\x9d_\xea\xe4\xcai[W\t\xee\x91rv'), chr(100) + chr(3013 - 2912) + '\143' + '\157' + chr(100) + chr(101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(0b1 + 0o67))] = T2hokg5Z8fVe.kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'a'), '\x64' + chr(101) + chr(99) + '\157' + chr(0b1010000 + 0o24) + '\145')('\165' + chr(11988 - 11872) + '\146' + '\x2d' + chr(982 - 926))) roI3spqORKae(gqV6fDpynvmt, roI3spqORKae(ES5oEprVxulp(b'\x13\x94%:q\n\x0e\xc4/\x86x\xaa'), chr(1916 - 1816) + chr(0b111110 + 0o47) + chr(7987 - 7888) + chr(111) + '\x64' + '\x65')(chr(117) + '\x74' + '\x66' + chr(0b101100 + 0o1) + chr(0b111000)))(rpoksCgVkXPS) B6UAF1zReOyJ += nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11001 + 0o30), 8) roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'6\xa1\x11gj2>\xd9,\x9dH'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100010 + 0o2) + chr(0b1100101))(chr(10146 - 10029) + chr(116) + '\x66' + chr(45) + '\x38'))(XZAomjyHf0i4, gqV6fDpynvmt, roI3spqORKae(ES5oEprVxulp(b'+\xad\x17iV\x1e9\xce&\x80@\xfa\xe7\xdc'), chr(0b1100100) + chr(0b1100101) + chr(4902 - 4803) + '\x6f' + '\x64' + chr(2975 - 2874))('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(56))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\t\xa5\x15oe\x0e<\xc7$\x9dH\xfb\xa9\xdcwJk\x03\xec\x90y%\xe4W\'O\xcf"\xcfb\x94!\xf1\x8a\xa6TZ'), chr(100) + chr(0b1100101) + '\143' + chr(7028 - 6917) + '\x64' + chr(0b1100101))('\165' + chr(0b1011101 + 0o27) + '\146' + '\x2d' + chr(0b10100 + 0o44)), XZAomjyHf0i4)
PmagPy/PmagPy
programs/dipole_plat.py
main
def main(): """ NAME dipole_plat.py DESCRIPTION gives paleolatitude from given inclination, assuming GAD field SYNTAX dipole_plat.py [command line options]<filename OPTIONS -h prints help message and quits -i allows interactive entry of latitude -f file, specifies file name on command line """ if '-h' in sys.argv: print(main.__doc__) sys.exit() elif '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') data=f.readlines() elif '-i' not in sys.argv: data=sys.stdin.readlines() if '-i' not in sys.argv: for line in data: rec=line.split() print('%7.1f'%(pmag.plat(float(rec[0])))) else: while 1: try: inc=input("Inclination for converting to paleolatitude: <cntl-D> to quit ") print('%7.1f'%(pmag.plat(float(inc)))) except: print('\n Good-bye \n') sys.exit()
python
def main(): """ NAME dipole_plat.py DESCRIPTION gives paleolatitude from given inclination, assuming GAD field SYNTAX dipole_plat.py [command line options]<filename OPTIONS -h prints help message and quits -i allows interactive entry of latitude -f file, specifies file name on command line """ if '-h' in sys.argv: print(main.__doc__) sys.exit() elif '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') data=f.readlines() elif '-i' not in sys.argv: data=sys.stdin.readlines() if '-i' not in sys.argv: for line in data: rec=line.split() print('%7.1f'%(pmag.plat(float(rec[0])))) else: while 1: try: inc=input("Inclination for converting to paleolatitude: <cntl-D> to quit ") print('%7.1f'%(pmag.plat(float(inc)))) except: print('\n Good-bye \n') sys.exit()
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "elif", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", ")", "data", "=", "f", ".", "readlines", "(", ")", "elif", "'-i'", "not", "in", "sys", ".", "argv", ":", "data", "=", "sys", ".", "stdin", ".", "readlines", "(", ")", "if", "'-i'", "not", "in", "sys", ".", "argv", ":", "for", "line", "in", "data", ":", "rec", "=", "line", ".", "split", "(", ")", "print", "(", "'%7.1f'", "%", "(", "pmag", ".", "plat", "(", "float", "(", "rec", "[", "0", "]", ")", ")", ")", ")", "else", ":", "while", "1", ":", "try", ":", "inc", "=", "input", "(", "\"Inclination for converting to paleolatitude: <cntl-D> to quit \"", ")", "print", "(", "'%7.1f'", "%", "(", "pmag", ".", "plat", "(", "float", "(", "inc", ")", ")", ")", ")", "except", ":", "print", "(", "'\\n Good-bye \\n'", ")", "sys", ".", "exit", "(", ")" ]
NAME dipole_plat.py DESCRIPTION gives paleolatitude from given inclination, assuming GAD field SYNTAX dipole_plat.py [command line options]<filename OPTIONS -h prints help message and quits -i allows interactive entry of latitude -f file, specifies file name on command line
[ "NAME", "dipole_plat", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/dipole_plat.py#L7-L44
train
NAME dipole_plat. py - h prints help message and quits - i prints interactive entry of latitude
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + '\x31' + chr(0b110101) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\067' + '\060', 61273 - 61265), nzTpIcepk0o8(chr(1948 - 1900) + '\x6f' + chr(945 - 895) + chr(0b110000), 41728 - 41720), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\066' + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b110010) + chr(0b110111) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3261 - 3150) + '\x33' + chr(0b110011) + chr(0b100100 + 0o23), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b101 + 0o152) + chr(0b110011) + '\x36' + chr(0b1010 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + '\x32' + chr(0b101100 + 0o5) + chr(0b1011 + 0o54), 1875 - 1867), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(3354 - 3243) + chr(0b1110 + 0o43) + '\x33' + chr(2167 - 2119), 0b1000), nzTpIcepk0o8(chr(2017 - 1969) + '\x6f' + '\063' + chr(54) + chr(0b110011 + 0o4), 31788 - 31780), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(1302 - 1248) + '\064', 3098 - 3090), nzTpIcepk0o8('\060' + chr(3280 - 3169) + chr(1230 - 1180) + chr(0b10001 + 0o42) + '\x37', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + '\x31' + chr(914 - 861) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(4879 - 4768) + chr(49) + '\x36' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1000010 + 0o55) + '\x32' + '\x32' + chr(0b100101 + 0o14), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9564 - 9453) + '\x33' + chr(543 - 495) + chr(0b11110 + 0o30), 63592 - 63584), nzTpIcepk0o8('\x30' + '\157' + chr(2217 - 2166) + chr(49) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b1001 + 0o47) + chr(52), 26120 - 26112), nzTpIcepk0o8('\060' + chr(111) + chr(0b101 + 0o56) + chr(860 - 809) + '\x31', 0o10), nzTpIcepk0o8(chr(1336 - 1288) + chr(111) + '\062' + chr(54) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101 + 0o55) + chr(51), 50020 - 50012), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(0b10110 + 0o41) + chr(913 - 860), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(111) + chr(1450 - 1397) + '\067', 57114 - 57106), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(0b110001) + chr(147 - 96) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(3867 - 3756) + chr(0b100111 + 0o13) + chr(1175 - 1122) + chr(51), 0o10), nzTpIcepk0o8(chr(1228 - 1180) + chr(0b1000011 + 0o54) + chr(50) + chr(1401 - 1349) + chr(50), 54222 - 54214), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + chr(51) + chr(0b110010 + 0o2) + chr(0b1001 + 0o55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(826 - 777) + chr(0b110011) + '\060', 8), nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(51) + chr(2130 - 2081) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(5458 - 5347) + chr(466 - 416) + chr(52) + chr(804 - 749), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4661 - 4550) + '\x33' + chr(0b110011) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\064' + chr(0b101 + 0o55), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b1 + 0o61) + chr(0b110110) + '\064', 0o10), nzTpIcepk0o8(chr(2024 - 1976) + '\x6f' + '\x33' + '\065' + chr(48), 22046 - 22038), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110010) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(1818 - 1767) + chr(239 - 185) + '\x36', 32269 - 32261), nzTpIcepk0o8('\060' + chr(11545 - 11434) + chr(0b100110 + 0o12), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100011 + 0o114) + chr(51) + chr(0b110011) + chr(1208 - 1157), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + chr(50) + chr(0b11001 + 0o33) + '\067', 8), nzTpIcepk0o8(chr(388 - 340) + chr(5330 - 5219) + chr(50) + '\066', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + '\x35' + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'B'), '\144' + chr(0b1100101) + '\x63' + chr(1213 - 1102) + '\x64' + chr(0b1100101))('\x75' + chr(0b111011 + 0o71) + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): if roI3spqORKae(ES5oEprVxulp(b'A\xd0'), chr(100) + chr(0b11100 + 0o111) + '\143' + chr(0b1010001 + 0o36) + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(6424 - 6322) + chr(1770 - 1725) + chr(0b10 + 0o66)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\r\xd2Y1\xea\xa6\xa8\xc2\x1a\x96\xc7\xfd'), '\x64' + chr(4004 - 3903) + chr(0b110001 + 0o62) + '\x6f' + '\144' + chr(101))('\x75' + chr(11402 - 11286) + '\146' + chr(1654 - 1609) + '\x38')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x15\xdeU\x10\xcc\x8e\x99\xda7\x86\xa3\xcb'), '\x64' + chr(837 - 736) + '\x63' + '\157' + chr(0b11100 + 0o110) + chr(0b101 + 0o140))(chr(0b1000111 + 0o56) + chr(3170 - 3054) + '\146' + chr(0b101101) + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'6\xcdb\x1f\xde\x8a\xbc\xbe+\x84\xb5\xa7'), chr(100) + chr(6395 - 6294) + chr(4813 - 4714) + chr(0b1001 + 0o146) + '\x64' + '\x65')(chr(2728 - 2611) + '\164' + chr(102) + chr(1484 - 1439) + chr(0b10000 + 0o50)))() elif roI3spqORKae(ES5oEprVxulp(b'A\xde'), chr(100) + '\x65' + chr(0b111000 + 0o53) + chr(0b1101111) + '\144' + chr(0b111101 + 0o50))(chr(11518 - 11401) + chr(4861 - 4745) + chr(1435 - 1333) + chr(45) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\r\xd2Y1\xea\xa6\xa8\xc2\x1a\x96\xc7\xfd'), chr(100) + '\145' + '\x63' + chr(0b11101 + 0o122) + chr(0b100111 + 0o75) + '\145')(chr(0b100010 + 0o123) + chr(0b1110100) + chr(7262 - 7160) + chr(45) + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'A\xde'), chr(100) + '\x65' + chr(8414 - 8315) + '\157' + chr(0b1100100) + chr(101))(chr(3450 - 3333) + '\164' + '\x66' + chr(1922 - 1877) + chr(56))) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(3905 - 3794) + chr(49), 0o10)] _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'\x1e'), chr(0b1100100) + '\145' + chr(0b10110 + 0o115) + '\x6f' + '\x64' + chr(10197 - 10096))(chr(0b1000110 + 0o57) + chr(0b1100010 + 0o22) + chr(10346 - 10244) + '\x2d' + '\070')) FfKOThdpoDTb = _R8IKF5IwAfX.TKmlmUjNQ4dY() elif roI3spqORKae(ES5oEprVxulp(b'A\xd1'), '\144' + chr(2277 - 2176) + chr(3927 - 3828) + '\157' + '\144' + chr(0b1100101))('\165' + '\x74' + chr(0b111000 + 0o56) + chr(45) + '\070') not in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\r\xd2Y1\xea\xa6\xa8\xc2\x1a\x96\xc7\xfd'), '\x64' + chr(0b1001000 + 0o35) + '\x63' + chr(0b1101111) + '\144' + '\x65')('\165' + chr(8053 - 7937) + '\x66' + chr(678 - 633) + chr(56))): FfKOThdpoDTb = bpyfpu4kTbwL.stdin.TKmlmUjNQ4dY() if roI3spqORKae(ES5oEprVxulp(b'A\xd1'), '\x64' + chr(2611 - 2510) + '\x63' + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(0b110011 + 0o101) + '\x66' + chr(45) + chr(0b100100 + 0o24)) not in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\r\xd2Y1\xea\xa6\xa8\xc2\x1a\x96\xc7\xfd'), chr(4895 - 4795) + '\145' + '\x63' + chr(0b1101111) + chr(9943 - 9843) + chr(4095 - 3994))(chr(117) + chr(116) + chr(102) + '\055' + '\070')): for ffiOpFBWGmZU in FfKOThdpoDTb: FKO_XxLfWbYt = ffiOpFBWGmZU.LfRrQOxuDvnC() v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'I\x8f>D\xdb'), '\x64' + '\x65' + chr(99) + chr(0b101000 + 0o107) + chr(4131 - 4031) + '\145')(chr(0b1110101) + chr(11024 - 10908) + chr(7908 - 7806) + chr(45) + '\x38') % roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\x1c\xd4q\x01'), '\144' + chr(0b1001 + 0o134) + chr(0b111001 + 0o52) + chr(111) + '\144' + chr(5775 - 5674))(chr(0b110001 + 0o104) + chr(10230 - 10114) + chr(102) + chr(946 - 901) + '\070'))(jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(0b1010011 + 0o34) + chr(0b110000), 8)]))) else: while nzTpIcepk0o8('\x30' + chr(111) + chr(49), 8): try: ReAwxaIgTMy5 = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'%\xd6s\x19\xd4\xb1\x91\xfb1\x98\x9a\xbf\r\x18\xe3\xe6\xaf+\xb7\xc5v\x8f[3\xc5\xc5\xc6,\xa1\x87\xaa\xc3\xd8\x8d\xbf\x9aa\xaf\xceb\x19\xdcuO\x9d\xe3\x93\xe1,\x9b\xd9\xdbUW\xe5\xa9\xec5\xac\xdag\xdd'), chr(0b1001 + 0o133) + chr(2271 - 2170) + chr(0b1011000 + 0o13) + '\x6f' + chr(0b11001 + 0o113) + '\x65')('\165' + chr(8165 - 8049) + '\146' + '\x2d' + '\x38')) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'I\x8f>D\xdb'), '\144' + '\145' + chr(0b1100011) + chr(1662 - 1551) + chr(100) + chr(0b1010001 + 0o24))(chr(117) + chr(0b1100 + 0o150) + chr(3274 - 3172) + chr(0b100000 + 0o15) + '\x38') % roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\x1c\xd4q\x01'), '\144' + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(101))('\165' + chr(0b1110100) + chr(0b10110 + 0o120) + chr(0b101101) + chr(996 - 940)))(jLW6pRf2DSRk(ReAwxaIgTMy5))) except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'f\x98W\x1a\xd2\xbb\xdd\xed!\x92\xd4\x95'), chr(7466 - 7366) + chr(0b1010000 + 0o25) + chr(99) + chr(111) + chr(7432 - 7332) + chr(101))('\165' + chr(0b1100111 + 0o15) + '\146' + '\055' + chr(0b10011 + 0o45))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'6\xcdb\x1f\xde\x8a\xbc\xbe+\x84\xb5\xa7'), chr(100) + chr(101) + '\x63' + chr(0b11 + 0o154) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b111100 + 0o70) + '\x66' + chr(0b11010 + 0o23) + chr(1961 - 1905)))()
PmagPy/PmagPy
programs/zeq_magic.py
main
def main(): """ NAME zeq_magic.py DESCRIPTION reads in a MagIC measurements formatted file, makes plots of remanence decay during demagnetization experiments. Reads in prior interpretations saved in a specimens formatted file interpretations in a specimens file. interpretations are saved in the coordinate system used. SYNTAX zeq_magic.py [command line options] OPTIONS -h prints help message and quits -f MEASFILE: sets measurements format input file, default: measurements.txt -fsp SPECFILE: sets specimens format file with prior interpreations, default: specimens.txt -fsa SAMPFILE: sets samples format file sample=>site information, default: samples.txt -fsi SITEFILE: sets sites format file with site=>location informationprior interpreations, default: samples.txt -Fp PLTFILE: sets filename for saved plot, default is name_type.fmt (where type is zijd, eqarea or decay curve) -crd [s,g,t]: sets coordinate system, g=geographic, t=tilt adjusted, default: specimen coordinate system -spc SPEC plots single specimen SPEC, saves plot with specified format with optional -dir settings and quits -dir [L,P,F][beg][end]: sets calculation type for principal component analysis, default is none beg: starting step for PCA calculation end: ending step for PCA calculation [L,P,F]: calculation type for line, plane or fisher mean must be used with -spc option -fmt FMT: set format of saved plot [png,svg,jpg] -A: suppresses averaging of replicate measurements, default is to average -sav: saves all plots without review """ if '-h' in sys.argv: print(main.__doc__) return dir_path = pmag.get_named_arg("-WD", default_val=os.getcwd()) meas_file = pmag.get_named_arg( "-f", default_val="measurements.txt") spec_file = pmag.get_named_arg( "-fsp", default_val="specimens.txt") specimen = pmag.get_named_arg( "-spc", default_val="") samp_file = pmag.get_named_arg("-fsa", default_val="samples.txt") site_file = pmag.get_named_arg("-fsi", default_val="sites.txt") plot_file = pmag.get_named_arg("-Fp", default_val="") crd = pmag.get_named_arg("-crd", default_val="s") fmt = pmag.get_named_arg("-fmt", "svg") specimen = pmag.get_named_arg("-spc", default_val="") interactive = True save_plots = False if "-sav" in sys.argv: interactive = False save_plots = True ipmag.zeq_magic(meas_file, spec_file, crd, dir_path, n_plots="all", save_plots=save_plots, fmt=fmt, interactive=interactive, specimen=specimen)
python
def main(): """ NAME zeq_magic.py DESCRIPTION reads in a MagIC measurements formatted file, makes plots of remanence decay during demagnetization experiments. Reads in prior interpretations saved in a specimens formatted file interpretations in a specimens file. interpretations are saved in the coordinate system used. SYNTAX zeq_magic.py [command line options] OPTIONS -h prints help message and quits -f MEASFILE: sets measurements format input file, default: measurements.txt -fsp SPECFILE: sets specimens format file with prior interpreations, default: specimens.txt -fsa SAMPFILE: sets samples format file sample=>site information, default: samples.txt -fsi SITEFILE: sets sites format file with site=>location informationprior interpreations, default: samples.txt -Fp PLTFILE: sets filename for saved plot, default is name_type.fmt (where type is zijd, eqarea or decay curve) -crd [s,g,t]: sets coordinate system, g=geographic, t=tilt adjusted, default: specimen coordinate system -spc SPEC plots single specimen SPEC, saves plot with specified format with optional -dir settings and quits -dir [L,P,F][beg][end]: sets calculation type for principal component analysis, default is none beg: starting step for PCA calculation end: ending step for PCA calculation [L,P,F]: calculation type for line, plane or fisher mean must be used with -spc option -fmt FMT: set format of saved plot [png,svg,jpg] -A: suppresses averaging of replicate measurements, default is to average -sav: saves all plots without review """ if '-h' in sys.argv: print(main.__doc__) return dir_path = pmag.get_named_arg("-WD", default_val=os.getcwd()) meas_file = pmag.get_named_arg( "-f", default_val="measurements.txt") spec_file = pmag.get_named_arg( "-fsp", default_val="specimens.txt") specimen = pmag.get_named_arg( "-spc", default_val="") samp_file = pmag.get_named_arg("-fsa", default_val="samples.txt") site_file = pmag.get_named_arg("-fsi", default_val="sites.txt") plot_file = pmag.get_named_arg("-Fp", default_val="") crd = pmag.get_named_arg("-crd", default_val="s") fmt = pmag.get_named_arg("-fmt", "svg") specimen = pmag.get_named_arg("-spc", default_val="") interactive = True save_plots = False if "-sav" in sys.argv: interactive = False save_plots = True ipmag.zeq_magic(meas_file, spec_file, crd, dir_path, n_plots="all", save_plots=save_plots, fmt=fmt, interactive=interactive, specimen=specimen)
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "return", "dir_path", "=", "pmag", ".", "get_named_arg", "(", "\"-WD\"", ",", "default_val", "=", "os", ".", "getcwd", "(", ")", ")", "meas_file", "=", "pmag", ".", "get_named_arg", "(", "\"-f\"", ",", "default_val", "=", "\"measurements.txt\"", ")", "spec_file", "=", "pmag", ".", "get_named_arg", "(", "\"-fsp\"", ",", "default_val", "=", "\"specimens.txt\"", ")", "specimen", "=", "pmag", ".", "get_named_arg", "(", "\"-spc\"", ",", "default_val", "=", "\"\"", ")", "samp_file", "=", "pmag", ".", "get_named_arg", "(", "\"-fsa\"", ",", "default_val", "=", "\"samples.txt\"", ")", "site_file", "=", "pmag", ".", "get_named_arg", "(", "\"-fsi\"", ",", "default_val", "=", "\"sites.txt\"", ")", "plot_file", "=", "pmag", ".", "get_named_arg", "(", "\"-Fp\"", ",", "default_val", "=", "\"\"", ")", "crd", "=", "pmag", ".", "get_named_arg", "(", "\"-crd\"", ",", "default_val", "=", "\"s\"", ")", "fmt", "=", "pmag", ".", "get_named_arg", "(", "\"-fmt\"", ",", "\"svg\"", ")", "specimen", "=", "pmag", ".", "get_named_arg", "(", "\"-spc\"", ",", "default_val", "=", "\"\"", ")", "interactive", "=", "True", "save_plots", "=", "False", "if", "\"-sav\"", "in", "sys", ".", "argv", ":", "interactive", "=", "False", "save_plots", "=", "True", "ipmag", ".", "zeq_magic", "(", "meas_file", ",", "spec_file", ",", "crd", ",", "dir_path", ",", "n_plots", "=", "\"all\"", ",", "save_plots", "=", "save_plots", ",", "fmt", "=", "fmt", ",", "interactive", "=", "interactive", ",", "specimen", "=", "specimen", ")" ]
NAME zeq_magic.py DESCRIPTION reads in a MagIC measurements formatted file, makes plots of remanence decay during demagnetization experiments. Reads in prior interpretations saved in a specimens formatted file interpretations in a specimens file. interpretations are saved in the coordinate system used. SYNTAX zeq_magic.py [command line options] OPTIONS -h prints help message and quits -f MEASFILE: sets measurements format input file, default: measurements.txt -fsp SPECFILE: sets specimens format file with prior interpreations, default: specimens.txt -fsa SAMPFILE: sets samples format file sample=>site information, default: samples.txt -fsi SITEFILE: sets sites format file with site=>location informationprior interpreations, default: samples.txt -Fp PLTFILE: sets filename for saved plot, default is name_type.fmt (where type is zijd, eqarea or decay curve) -crd [s,g,t]: sets coordinate system, g=geographic, t=tilt adjusted, default: specimen coordinate system -spc SPEC plots single specimen SPEC, saves plot with specified format with optional -dir settings and quits -dir [L,P,F][beg][end]: sets calculation type for principal component analysis, default is none beg: starting step for PCA calculation end: ending step for PCA calculation [L,P,F]: calculation type for line, plane or fisher mean must be used with -spc option -fmt FMT: set format of saved plot [png,svg,jpg] -A: suppresses averaging of replicate measurements, default is to average -sav: saves all plots without review
[ "NAME", "zeq_magic", ".", "py", "DESCRIPTION", "reads", "in", "a", "MagIC", "measurements", "formatted", "file", "makes", "plots", "of", "remanence", "decay", "during", "demagnetization", "experiments", ".", "Reads", "in", "prior", "interpretations", "saved", "in", "a", "specimens", "formatted", "file", "interpretations", "in", "a", "specimens", "file", ".", "interpretations", "are", "saved", "in", "the", "coordinate", "system", "used", ".", "SYNTAX", "zeq_magic", ".", "py", "[", "command", "line", "options", "]", "OPTIONS", "-", "h", "prints", "help", "message", "and", "quits", "-", "f", "MEASFILE", ":", "sets", "measurements", "format", "input", "file", "default", ":", "measurements", ".", "txt", "-", "fsp", "SPECFILE", ":", "sets", "specimens", "format", "file", "with", "prior", "interpreations", "default", ":", "specimens", ".", "txt", "-", "fsa", "SAMPFILE", ":", "sets", "samples", "format", "file", "sample", "=", ">", "site", "information", "default", ":", "samples", ".", "txt", "-", "fsi", "SITEFILE", ":", "sets", "sites", "format", "file", "with", "site", "=", ">", "location", "informationprior", "interpreations", "default", ":", "samples", ".", "txt", "-", "Fp", "PLTFILE", ":", "sets", "filename", "for", "saved", "plot", "default", "is", "name_type", ".", "fmt", "(", "where", "type", "is", "zijd", "eqarea", "or", "decay", "curve", ")", "-", "crd", "[", "s", "g", "t", "]", ":", "sets", "coordinate", "system", "g", "=", "geographic", "t", "=", "tilt", "adjusted", "default", ":", "specimen", "coordinate", "system", "-", "spc", "SPEC", "plots", "single", "specimen", "SPEC", "saves", "plot", "with", "specified", "format", "with", "optional", "-", "dir", "settings", "and", "quits", "-", "dir", "[", "L", "P", "F", "]", "[", "beg", "]", "[", "end", "]", ":", "sets", "calculation", "type", "for", "principal", "component", "analysis", "default", "is", "none", "beg", ":", "starting", "step", "for", "PCA", "calculation", "end", ":", "ending", "step", "for", "PCA", "calculation", "[", "L", "P", "F", "]", ":", "calculation", "type", "for", "line", "plane", "or", "fisher", "mean", "must", "be", "used", "with", "-", "spc", "option", "-", "fmt", "FMT", ":", "set", "format", "of", "saved", "plot", "[", "png", "svg", "jpg", "]", "-", "A", ":", "suppresses", "averaging", "of", "replicate", "measurements", "default", "is", "to", "average", "-", "sav", ":", "saves", "all", "plots", "without", "review" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/zeq_magic.py#L19-L71
train
This is the main function for the demagnetization experiment. It is the main function for the demagnetization experiment. It is the main function for the demagnetization experiment.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1010000 + 0o37) + '\x31' + chr(1063 - 1015) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x30' + '\x37', 4224 - 4216), nzTpIcepk0o8('\060' + chr(6221 - 6110) + chr(538 - 487) + chr(48) + '\065', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(2326 - 2277) + chr(1912 - 1862) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(3653 - 3542) + chr(0b110000 + 0o3) + chr(48) + chr(0b11001 + 0o36), 8), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(51) + chr(2779 - 2725) + chr(54), 62693 - 62685), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1010111 + 0o30) + '\x33' + chr(2232 - 2184) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(55) + '\x33', 65051 - 65043), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(49) + chr(48) + '\x37', 57765 - 57757), nzTpIcepk0o8('\x30' + '\157' + chr(282 - 231) + '\x37' + chr(0b10010 + 0o45), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + '\062' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b101100 + 0o11) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(3350 - 3239) + '\x32' + '\061' + chr(0b1 + 0o60), 0o10), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\x34' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(0b100000 + 0o24) + '\061', 28742 - 28734), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(111) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(2278 - 2230) + '\x6f' + chr(1404 - 1353) + chr(50) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b100011 + 0o24) + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + '\x36' + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1000 + 0o53) + chr(51) + '\x30', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(54) + chr(0b1001 + 0o47), 10554 - 10546), nzTpIcepk0o8('\060' + chr(9590 - 9479) + chr(1714 - 1664) + '\x32' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3224 - 3113) + '\x31' + chr(0b11101 + 0o25) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(0b111010 + 0o65) + chr(0b11101 + 0o26) + chr(0b101100 + 0o7) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(5755 - 5644) + chr(0b110001) + chr(2503 - 2452) + '\067', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + '\066' + chr(50), 0b1000), nzTpIcepk0o8(chr(2114 - 2066) + chr(111) + chr(2623 - 2571) + chr(52), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\x6f' + chr(566 - 516) + chr(50) + '\065', 38015 - 38007), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1079 - 1028) + chr(49) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(730 - 619) + '\061' + chr(0b110000 + 0o0) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2083 - 2032) + '\x36' + chr(0b1110 + 0o42), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b100011 + 0o114) + chr(690 - 641) + '\x35' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(10600 - 10489) + '\x31' + chr(0b100100 + 0o22) + chr(1146 - 1097), 0o10), nzTpIcepk0o8(chr(879 - 831) + '\x6f' + chr(207 - 158) + '\x34' + chr(2175 - 2124), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(0b10001 + 0o37) + chr(1366 - 1317), 8), nzTpIcepk0o8(chr(1181 - 1133) + chr(0b1101111) + chr(50) + chr(0b100110 + 0o20) + chr(52), 0o10), nzTpIcepk0o8(chr(472 - 424) + chr(307 - 196) + '\062' + chr(311 - 263) + chr(257 - 209), 0b1000), nzTpIcepk0o8(chr(630 - 582) + chr(111) + chr(1428 - 1379) + chr(0b110000) + '\062', 8), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1592 - 1543) + chr(54) + chr(0b110110), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110110) + chr(0b110000), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'k'), '\144' + chr(0b1011011 + 0o12) + chr(99) + '\x6f' + chr(0b111010 + 0o52) + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): if roI3spqORKae(ES5oEprVxulp(b'h\xaf'), chr(0b10001 + 0o123) + chr(0b1000010 + 0o43) + '\x63' + '\x6f' + chr(0b1100100) + chr(101))('\165' + '\x74' + chr(0b1000110 + 0o40) + chr(0b101101) + chr(0b110100 + 0o4)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'$\xad\x8c\x13\x90\x8f\x996\x05\x9e\xe5\xc9'), '\x64' + chr(101) + '\143' + '\157' + chr(0b10010 + 0o122) + '\x65')(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(89 - 33))): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'<\xa1\x802\xb6\xa7\xa8.(\x8e\x81\xff'), chr(1581 - 1481) + chr(1711 - 1610) + '\143' + '\x6f' + chr(0b1100100) + chr(0b110 + 0o137))(chr(0b110111 + 0o76) + chr(5245 - 5129) + chr(102) + chr(0b101101) + chr(1926 - 1870)))) return qjksZ7GK0xkJ = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\x90\x81'), chr(1316 - 1216) + chr(2042 - 1941) + '\x63' + chr(111) + '\x64' + '\145')(chr(117) + chr(0b11001 + 0o133) + chr(0b1100110) + chr(0b11101 + 0o20) + '\070'), default_val=aHUqKstZLeS6.getcwd()) rHPU8oONrR4n = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xa1'), chr(100) + chr(0b1100101) + chr(0b1100000 + 0o3) + chr(0b1101111) + chr(100) + chr(101))('\165' + chr(116) + chr(0b10101 + 0o121) + chr(0b101101) + chr(0b10110 + 0o42)), default_val=roI3spqORKae(ES5oEprVxulp(b'(\xa2\xa4$\xb2\x84\xa4\x16"\x91\xa2\xd8\xa7SYp'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b11111 + 0o106))('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56))) QJgeTIOanow9 = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b"h\xa1\xb6'"), chr(100) + chr(0b1010111 + 0o16) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(6362 - 6246) + chr(10321 - 10219) + '\055' + chr(56)), default_val=roI3spqORKae(ES5oEprVxulp(b'6\xb7\xa04\xae\x9b\xa4\x154\xd1\xa2\xd3\xfd'), chr(100) + chr(9598 - 9497) + chr(0b1100011) + chr(4321 - 4210) + chr(2827 - 2727) + chr(0b1100101))(chr(13593 - 13476) + chr(0b1010100 + 0o40) + chr(0b1100110) + chr(0b10101 + 0o30) + chr(0b1000 + 0o60))) EJPYhrC8WoVb = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xb4\xb54'), chr(8593 - 8493) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(823 - 778) + chr(56)), default_val=roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(8018 - 7917) + '\143' + '\x6f' + '\x64' + chr(8361 - 8260))(chr(0b1110101) + '\x74' + '\x66' + '\x2d' + '\070')) bqpTUs8apVqb = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xa1\xb66'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + '\164' + '\146' + chr(0b101101) + chr(56)), default_val=roI3spqORKae(ES5oEprVxulp(b"6\xa6\xa8'\xab\x93\xb2U3\x87\xa2"), chr(0b100011 + 0o101) + '\x65' + '\x63' + chr(0b1101111) + chr(8840 - 8740) + '\x65')(chr(0b1110101) + chr(0b111011 + 0o71) + chr(102) + '\x2d' + chr(0b111000))) OiNBbL9woeR5 = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xa1\xb6>'), chr(0b1100100) + chr(0b1100 + 0o131) + '\143' + chr(0b1101111) + chr(0b100111 + 0o75) + chr(0b1000001 + 0o44))(chr(0b10000 + 0o145) + chr(0b1010000 + 0o44) + '\146' + '\055' + chr(0b111000)), default_val=roI3spqORKae(ES5oEprVxulp(b'6\xae\xb12\xb4\xd8\xb5\x033'), '\144' + chr(0b1100101) + chr(6007 - 5908) + chr(3369 - 3258) + chr(100) + '\145')(chr(117) + chr(0b1110100) + chr(4098 - 3996) + '\x2d' + '\070')) BkuDGFNVQMfP = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\x81\xb5'), chr(0b110101 + 0o57) + chr(0b1011101 + 0o10) + chr(0b111001 + 0o52) + chr(8607 - 8496) + chr(7439 - 7339) + chr(0b1000111 + 0o36))('\165' + '\x74' + chr(102) + chr(1842 - 1797) + '\070'), default_val=roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(101) + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(45) + '\070')) px1MpgT0hYQ9 = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xa4\xb73'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(4442 - 4342) + chr(8511 - 8410))(chr(3544 - 3427) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56)), default_val=roI3spqORKae(ES5oEprVxulp(b'6'), chr(0b1010100 + 0o20) + '\145' + chr(99) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1011010 + 0o33) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000))) JummcHpaNLEw = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xa1\xa8#'), '\x64' + chr(0b111 + 0o136) + '\143' + chr(10750 - 10639) + chr(0b1001110 + 0o26) + '\145')(chr(12123 - 12006) + chr(116) + chr(102) + chr(0b10001 + 0o34) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'6\xb1\xa2'), chr(100) + '\x65' + chr(0b1100011) + chr(9103 - 8992) + chr(0b1100100) + chr(0b1100010 + 0o3))('\165' + chr(0b110001 + 0o103) + chr(4212 - 4110) + chr(925 - 880) + chr(0b111000))) EJPYhrC8WoVb = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'h\xb4\xb54'), chr(5967 - 5867) + chr(0b100011 + 0o102) + chr(0b1100011) + chr(0b1101111) + chr(4742 - 4642) + chr(8842 - 8741))('\x75' + '\164' + chr(0b110000 + 0o66) + '\x2d' + '\x38'), default_val=roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + chr(2320 - 2221) + '\x6f' + chr(0b1010001 + 0o23) + chr(0b1100101))('\x75' + '\x74' + chr(3825 - 3723) + chr(45) + chr(0b111000))) f4XDWm__k5ZA = nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(1426 - 1377), 0b1000) bxxuZm4I6LgY = nzTpIcepk0o8(chr(0b110000) + chr(510 - 399) + chr(0b110000), 41781 - 41773) if roI3spqORKae(ES5oEprVxulp(b'h\xb4\xa4!'), chr(5158 - 5058) + chr(101) + '\x63' + chr(0b101000 + 0o107) + chr(100) + chr(0b11001 + 0o114))(chr(8133 - 8016) + '\164' + '\x66' + chr(1790 - 1745) + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'$\xad\x8c\x13\x90\x8f\x996\x05\x9e\xe5\xc9'), '\144' + '\x65' + chr(0b1100011) + '\157' + chr(8247 - 8147) + chr(101))(chr(10275 - 10158) + chr(116) + chr(0b111000 + 0o56) + chr(0b101000 + 0o5) + '\x38')): f4XDWm__k5ZA = nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1974 - 1926), 8) bxxuZm4I6LgY = nzTpIcepk0o8('\x30' + chr(111) + '\x31', 8) roI3spqORKae(GL09QZtbvKPg, roI3spqORKae(ES5oEprVxulp(b'?\xa2\xb4\x08\xaa\x97\xa6\x12$'), chr(9886 - 9786) + '\x65' + '\x63' + chr(0b1010010 + 0o35) + chr(100) + '\145')('\165' + chr(116) + '\146' + '\x2d' + chr(56)))(rHPU8oONrR4n, QJgeTIOanow9, px1MpgT0hYQ9, qjksZ7GK0xkJ, n_plots=roI3spqORKae(ES5oEprVxulp(b'$\xab\xa9'), chr(0b1100100) + chr(101) + chr(1060 - 961) + chr(0b1101110 + 0o1) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(0b111111 + 0o47) + chr(0b100 + 0o51) + chr(0b1110 + 0o52)), save_plots=bxxuZm4I6LgY, fmt=JummcHpaNLEw, interactive=f4XDWm__k5ZA, specimen=EJPYhrC8WoVb)
PmagPy/PmagPy
programs/conversion_scripts2/iodp_dscr_magic2.py
main
def main(command_line=True, **kwargs): """ NAME iodp_dscr_magic.py DESCRIPTION converts ODP LIMS discrete sample format files to magic_measurements format files SYNTAX iodp_descr_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input .csv file, default is all in directory -F FILE: specify output measurements file, default is magic_measurements.txt -A : don't average replicate measurements INPUTS IODP discrete sample .csv file format exported from LIMS database """ # # initialize defaults version_num=pmag.get_version() meas_file='magic_measurements.txt' csv_file='' MagRecs,Specs=[],[] citation="This study" dir_path,demag='.','NRM' args=sys.argv noave=0 # get command line args if command_line: if '-WD' in args: ind=args.index("-WD") dir_path=args[ind+1] if '-ID' in args: ind = args.index('-ID') input_dir_path = args[ind+1] else: input_dir_path = dir_path output_dir_path = dir_path if "-h" in args: print(main.__doc__) return False if "-A" in args: noave=1 if '-f' in args: ind=args.index("-f") csv_file=args[ind+1] if '-F' in args: ind=args.index("-F") meas_file=args[ind+1] if not command_line: dir_path = kwargs.get('dir_path', '.') input_dir_path = kwargs.get('input_dir_path', dir_path) output_dir_path = dir_path # rename dir_path after input_dir_path is set noave = kwargs.get('noave', 0) # default (0) is DO average csv_file = kwargs.get('csv_file', '') meas_file = kwargs.get('meas_file', 'magic_measurements.txt') # format variables meas_file= os.path.join(output_dir_path, meas_file) if csv_file=="": filelist=os.listdir(input_dir_path) # read in list of files to import else: csv_file = os.path.join(input_dir_path, csv_file) filelist=[csv_file] # parsing the data file_found = False for fname in filelist: # parse each file if fname[-3:].lower()=='csv': file_found = True print('processing: ',fname) with open(fname, 'r') as finput: data = list(finput.readlines()) keys = data[0].replace('\n','').split(',') # splits on underscores interval_key="Offset (cm)" demag_key="Demag level (mT)" offline_demag_key="Treatment Value (mT or &deg;C)" offline_treatment_type="Treatment type" run_key="Test No." if "Inclination background + tray corrected (deg)" in keys: inc_key="Inclination background + tray corrected (deg)" if "Inclination background &amp; tray corrected (deg)" in keys: inc_key="Inclination background &amp; tray corrected (deg)" if "Declination background + tray corrected (deg)" in keys: dec_key="Declination background + tray corrected (deg)" if "Declination background &amp; tray corrected (deg)" in keys: dec_key="Declination background &amp; tray corrected (deg)" if "Intensity background + tray corrected (A/m)" in keys: int_key="Intensity background + tray corrected (A/m)" if "Intensity background &amp; tray corrected (A/m)" in keys: int_key="Intensity background &amp; tray corrected (A/m)" type="Type" sect_key="Sect" half_key="A/W" # need to add volume_key to LORE format! if "Sample volume (cm^3)" in keys:volume_key="Sample volume (cm^3)" if "Sample volume (cc)" in keys:volume_key="Sample volume (cc)" if "Sample volume (cm&sup3;)" in keys:volume_key="Sample volume (cm&sup3;)" for line in data[1:]: InRec={} for k in range(len(keys)):InRec[keys[k]]=line.split(',')[k] inst="IODP-SRM" MagRec={} expedition=InRec['Exp'] location=InRec['Site']+InRec['Hole'] offsets=InRec[interval_key].split('.') # maintain consistency with er_samples convention of using top interval if len(offsets)==1: offset=int(offsets[0]) else: offset=int(offsets[0])-1 #interval=str(offset+1)# maintain consistency with er_samples convention of using top interval interval=str(offset)# maintain consistency with er_samples convention of using top interval specimen=expedition+'-'+location+'-'+InRec['Core']+InRec[type]+"-"+InRec[sect_key]+'_'+InRec[half_key]+'_'+interval if specimen not in Specs:Specs.append(specimen) MagRec['er_expedition_name']=expedition MagRec['er_location_name']=location MagRec['er_site_name']=specimen MagRec['er_citation_names']=citation MagRec['er_specimen_name']=specimen MagRec['er_sample_name']=specimen MagRec['er_site_name']=specimen # set up measurement record - default is NRM MagRec['magic_software_packages']=version_num MagRec["treatment_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["measurement_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' MagRec["measurement_flag"]='g' # assume all data are "good" MagRec["measurement_standard"]='u' # assume all data are "good" MagRec["measurement_csd"]='0' # assume all data are "good" volume=InRec[volume_key] MagRec["magic_method_codes"]='LT-NO' sort_by='treatment_ac_field' # set default to AF demag if InRec[demag_key]!="0": MagRec['magic_method_codes'] = 'LT-AF-Z' inst=inst+':IODP-SRM-AF' # measured on shipboard in-line 2G AF treatment_value=float(InRec[demag_key].strip('"'))*1e-3 # convert mT => T if sort_by =="treatment_ac_field": MagRec["treatment_ac_field"]=treatment_value # AF demag in treat mT => T else: MagRec["treatment_ac_field"]=str(treatment_value)# AF demag in treat mT => T elif offline_treatment_type in list(InRec.keys()) and InRec[offline_treatment_type]!="": if "Lowrie" in InRec['Comments']: MagRec['magic_method_codes'] = 'LP-IRM-3D' treatment_value=float(InRec[offline_demag_key].strip('"'))+273. # convert C => K MagRec["treatment_temp"]=treatment_value MagRec["treatment_ac_field"]="0" sort_by='treatment_temp' elif 'Isothermal' in InRec[offline_treatment_type]: MagRec['magic_method_codes'] = 'LT-IRM' treatment_value=float(InRec[offline_demag_key].strip('"'))*1e-3 # convert mT => T MagRec["treatment_dc_field"]=treatment_value MagRec["treatment_ac_field"]="0" sort_by='treatment_dc_field' MagRec["measurement_standard"]='u' # assume all data are "good" vol=float(volume)*1e-6 # convert from cc to m^3 if run_key in list(InRec.keys()): run_number=InRec[run_key] MagRec['external_database_ids']=run_number MagRec['external_database_names']='LIMS' else: MagRec['external_database_ids']="" MagRec['external_database_names']='' MagRec['measurement_description']='sample orientation: '+InRec['Sample orientation'] MagRec['measurement_inc']=InRec[inc_key].strip('"') MagRec['measurement_dec']=InRec[dec_key].strip('"') intens= InRec[int_key].strip('"') MagRec['measurement_magn_moment']='%8.3e'%(float(intens)*vol) # convert intensity from A/m to Am^2 using vol MagRec['magic_instrument_codes']=inst MagRec['measurement_number']='1' MagRec['measurement_positions']='' MagRecs.append(MagRec) if not file_found: print("No .csv files were found") return False, "No .csv files were found" MagOuts=[] for spec in Specs: Speclist=pmag.get_dictitem(MagRecs,'er_specimen_name',spec,'T') Meassorted=sorted(Speclist, key=lambda x,y=None: int(round(float(x[sort_by])-float(y[sort_by]))) if y!=None else 0) for rec in Meassorted: for key in list(rec.keys()): rec[key]=str(rec[key]) MagOuts.append(rec) Fixed=pmag.measurements_methods(MagOuts,noave) Out,keys=pmag.fillkeys(Fixed) if pmag.magic_write(meas_file,Out,'magic_measurements'): print('data stored in ',meas_file) return True, meas_file else: print('no data found. bad magfile?') return False, 'no data found. bad magfile?'
python
def main(command_line=True, **kwargs): """ NAME iodp_dscr_magic.py DESCRIPTION converts ODP LIMS discrete sample format files to magic_measurements format files SYNTAX iodp_descr_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input .csv file, default is all in directory -F FILE: specify output measurements file, default is magic_measurements.txt -A : don't average replicate measurements INPUTS IODP discrete sample .csv file format exported from LIMS database """ # # initialize defaults version_num=pmag.get_version() meas_file='magic_measurements.txt' csv_file='' MagRecs,Specs=[],[] citation="This study" dir_path,demag='.','NRM' args=sys.argv noave=0 # get command line args if command_line: if '-WD' in args: ind=args.index("-WD") dir_path=args[ind+1] if '-ID' in args: ind = args.index('-ID') input_dir_path = args[ind+1] else: input_dir_path = dir_path output_dir_path = dir_path if "-h" in args: print(main.__doc__) return False if "-A" in args: noave=1 if '-f' in args: ind=args.index("-f") csv_file=args[ind+1] if '-F' in args: ind=args.index("-F") meas_file=args[ind+1] if not command_line: dir_path = kwargs.get('dir_path', '.') input_dir_path = kwargs.get('input_dir_path', dir_path) output_dir_path = dir_path # rename dir_path after input_dir_path is set noave = kwargs.get('noave', 0) # default (0) is DO average csv_file = kwargs.get('csv_file', '') meas_file = kwargs.get('meas_file', 'magic_measurements.txt') # format variables meas_file= os.path.join(output_dir_path, meas_file) if csv_file=="": filelist=os.listdir(input_dir_path) # read in list of files to import else: csv_file = os.path.join(input_dir_path, csv_file) filelist=[csv_file] # parsing the data file_found = False for fname in filelist: # parse each file if fname[-3:].lower()=='csv': file_found = True print('processing: ',fname) with open(fname, 'r') as finput: data = list(finput.readlines()) keys = data[0].replace('\n','').split(',') # splits on underscores interval_key="Offset (cm)" demag_key="Demag level (mT)" offline_demag_key="Treatment Value (mT or &deg;C)" offline_treatment_type="Treatment type" run_key="Test No." if "Inclination background + tray corrected (deg)" in keys: inc_key="Inclination background + tray corrected (deg)" if "Inclination background &amp; tray corrected (deg)" in keys: inc_key="Inclination background &amp; tray corrected (deg)" if "Declination background + tray corrected (deg)" in keys: dec_key="Declination background + tray corrected (deg)" if "Declination background &amp; tray corrected (deg)" in keys: dec_key="Declination background &amp; tray corrected (deg)" if "Intensity background + tray corrected (A/m)" in keys: int_key="Intensity background + tray corrected (A/m)" if "Intensity background &amp; tray corrected (A/m)" in keys: int_key="Intensity background &amp; tray corrected (A/m)" type="Type" sect_key="Sect" half_key="A/W" # need to add volume_key to LORE format! if "Sample volume (cm^3)" in keys:volume_key="Sample volume (cm^3)" if "Sample volume (cc)" in keys:volume_key="Sample volume (cc)" if "Sample volume (cm&sup3;)" in keys:volume_key="Sample volume (cm&sup3;)" for line in data[1:]: InRec={} for k in range(len(keys)):InRec[keys[k]]=line.split(',')[k] inst="IODP-SRM" MagRec={} expedition=InRec['Exp'] location=InRec['Site']+InRec['Hole'] offsets=InRec[interval_key].split('.') # maintain consistency with er_samples convention of using top interval if len(offsets)==1: offset=int(offsets[0]) else: offset=int(offsets[0])-1 #interval=str(offset+1)# maintain consistency with er_samples convention of using top interval interval=str(offset)# maintain consistency with er_samples convention of using top interval specimen=expedition+'-'+location+'-'+InRec['Core']+InRec[type]+"-"+InRec[sect_key]+'_'+InRec[half_key]+'_'+interval if specimen not in Specs:Specs.append(specimen) MagRec['er_expedition_name']=expedition MagRec['er_location_name']=location MagRec['er_site_name']=specimen MagRec['er_citation_names']=citation MagRec['er_specimen_name']=specimen MagRec['er_sample_name']=specimen MagRec['er_site_name']=specimen # set up measurement record - default is NRM MagRec['magic_software_packages']=version_num MagRec["treatment_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["measurement_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' MagRec["measurement_flag"]='g' # assume all data are "good" MagRec["measurement_standard"]='u' # assume all data are "good" MagRec["measurement_csd"]='0' # assume all data are "good" volume=InRec[volume_key] MagRec["magic_method_codes"]='LT-NO' sort_by='treatment_ac_field' # set default to AF demag if InRec[demag_key]!="0": MagRec['magic_method_codes'] = 'LT-AF-Z' inst=inst+':IODP-SRM-AF' # measured on shipboard in-line 2G AF treatment_value=float(InRec[demag_key].strip('"'))*1e-3 # convert mT => T if sort_by =="treatment_ac_field": MagRec["treatment_ac_field"]=treatment_value # AF demag in treat mT => T else: MagRec["treatment_ac_field"]=str(treatment_value)# AF demag in treat mT => T elif offline_treatment_type in list(InRec.keys()) and InRec[offline_treatment_type]!="": if "Lowrie" in InRec['Comments']: MagRec['magic_method_codes'] = 'LP-IRM-3D' treatment_value=float(InRec[offline_demag_key].strip('"'))+273. # convert C => K MagRec["treatment_temp"]=treatment_value MagRec["treatment_ac_field"]="0" sort_by='treatment_temp' elif 'Isothermal' in InRec[offline_treatment_type]: MagRec['magic_method_codes'] = 'LT-IRM' treatment_value=float(InRec[offline_demag_key].strip('"'))*1e-3 # convert mT => T MagRec["treatment_dc_field"]=treatment_value MagRec["treatment_ac_field"]="0" sort_by='treatment_dc_field' MagRec["measurement_standard"]='u' # assume all data are "good" vol=float(volume)*1e-6 # convert from cc to m^3 if run_key in list(InRec.keys()): run_number=InRec[run_key] MagRec['external_database_ids']=run_number MagRec['external_database_names']='LIMS' else: MagRec['external_database_ids']="" MagRec['external_database_names']='' MagRec['measurement_description']='sample orientation: '+InRec['Sample orientation'] MagRec['measurement_inc']=InRec[inc_key].strip('"') MagRec['measurement_dec']=InRec[dec_key].strip('"') intens= InRec[int_key].strip('"') MagRec['measurement_magn_moment']='%8.3e'%(float(intens)*vol) # convert intensity from A/m to Am^2 using vol MagRec['magic_instrument_codes']=inst MagRec['measurement_number']='1' MagRec['measurement_positions']='' MagRecs.append(MagRec) if not file_found: print("No .csv files were found") return False, "No .csv files were found" MagOuts=[] for spec in Specs: Speclist=pmag.get_dictitem(MagRecs,'er_specimen_name',spec,'T') Meassorted=sorted(Speclist, key=lambda x,y=None: int(round(float(x[sort_by])-float(y[sort_by]))) if y!=None else 0) for rec in Meassorted: for key in list(rec.keys()): rec[key]=str(rec[key]) MagOuts.append(rec) Fixed=pmag.measurements_methods(MagOuts,noave) Out,keys=pmag.fillkeys(Fixed) if pmag.magic_write(meas_file,Out,'magic_measurements'): print('data stored in ',meas_file) return True, meas_file else: print('no data found. bad magfile?') return False, 'no data found. bad magfile?'
[ "def", "main", "(", "command_line", "=", "True", ",", "*", "*", "kwargs", ")", ":", "#", "# initialize defaults", "version_num", "=", "pmag", ".", "get_version", "(", ")", "meas_file", "=", "'magic_measurements.txt'", "csv_file", "=", "''", "MagRecs", ",", "Specs", "=", "[", "]", ",", "[", "]", "citation", "=", "\"This study\"", "dir_path", ",", "demag", "=", "'.'", ",", "'NRM'", "args", "=", "sys", ".", "argv", "noave", "=", "0", "# get command line args", "if", "command_line", ":", "if", "'-WD'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-WD\"", ")", "dir_path", "=", "args", "[", "ind", "+", "1", "]", "if", "'-ID'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "'-ID'", ")", "input_dir_path", "=", "args", "[", "ind", "+", "1", "]", "else", ":", "input_dir_path", "=", "dir_path", "output_dir_path", "=", "dir_path", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "return", "False", "if", "\"-A\"", "in", "args", ":", "noave", "=", "1", "if", "'-f'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-f\"", ")", "csv_file", "=", "args", "[", "ind", "+", "1", "]", "if", "'-F'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-F\"", ")", "meas_file", "=", "args", "[", "ind", "+", "1", "]", "if", "not", "command_line", ":", "dir_path", "=", "kwargs", ".", "get", "(", "'dir_path'", ",", "'.'", ")", "input_dir_path", "=", "kwargs", ".", "get", "(", "'input_dir_path'", ",", "dir_path", ")", "output_dir_path", "=", "dir_path", "# rename dir_path after input_dir_path is set", "noave", "=", "kwargs", ".", "get", "(", "'noave'", ",", "0", ")", "# default (0) is DO average", "csv_file", "=", "kwargs", ".", "get", "(", "'csv_file'", ",", "''", ")", "meas_file", "=", "kwargs", ".", "get", "(", "'meas_file'", ",", "'magic_measurements.txt'", ")", "# format variables", "meas_file", "=", "os", ".", "path", ".", "join", "(", "output_dir_path", ",", "meas_file", ")", "if", "csv_file", "==", "\"\"", ":", "filelist", "=", "os", ".", "listdir", "(", "input_dir_path", ")", "# read in list of files to import", "else", ":", "csv_file", "=", "os", ".", "path", ".", "join", "(", "input_dir_path", ",", "csv_file", ")", "filelist", "=", "[", "csv_file", "]", "# parsing the data", "file_found", "=", "False", "for", "fname", "in", "filelist", ":", "# parse each file", "if", "fname", "[", "-", "3", ":", "]", ".", "lower", "(", ")", "==", "'csv'", ":", "file_found", "=", "True", "print", "(", "'processing: '", ",", "fname", ")", "with", "open", "(", "fname", ",", "'r'", ")", "as", "finput", ":", "data", "=", "list", "(", "finput", ".", "readlines", "(", ")", ")", "keys", "=", "data", "[", "0", "]", ".", "replace", "(", "'\\n'", ",", "''", ")", ".", "split", "(", "','", ")", "# splits on underscores", "interval_key", "=", "\"Offset (cm)\"", "demag_key", "=", "\"Demag level (mT)\"", "offline_demag_key", "=", "\"Treatment Value (mT or &deg;C)\"", "offline_treatment_type", "=", "\"Treatment type\"", "run_key", "=", "\"Test No.\"", "if", "\"Inclination background + tray corrected (deg)\"", "in", "keys", ":", "inc_key", "=", "\"Inclination background + tray corrected (deg)\"", "if", "\"Inclination background &amp; tray corrected (deg)\"", "in", "keys", ":", "inc_key", "=", "\"Inclination background &amp; tray corrected (deg)\"", "if", "\"Declination background + tray corrected (deg)\"", "in", "keys", ":", "dec_key", "=", "\"Declination background + tray corrected (deg)\"", "if", "\"Declination background &amp; tray corrected (deg)\"", "in", "keys", ":", "dec_key", "=", "\"Declination background &amp; tray corrected (deg)\"", "if", "\"Intensity background + tray corrected (A/m)\"", "in", "keys", ":", "int_key", "=", "\"Intensity background + tray corrected (A/m)\"", "if", "\"Intensity background &amp; tray corrected (A/m)\"", "in", "keys", ":", "int_key", "=", "\"Intensity background &amp; tray corrected (A/m)\"", "type", "=", "\"Type\"", "sect_key", "=", "\"Sect\"", "half_key", "=", "\"A/W\"", "# need to add volume_key to LORE format!", "if", "\"Sample volume (cm^3)\"", "in", "keys", ":", "volume_key", "=", "\"Sample volume (cm^3)\"", "if", "\"Sample volume (cc)\"", "in", "keys", ":", "volume_key", "=", "\"Sample volume (cc)\"", "if", "\"Sample volume (cm&sup3;)\"", "in", "keys", ":", "volume_key", "=", "\"Sample volume (cm&sup3;)\"", "for", "line", "in", "data", "[", "1", ":", "]", ":", "InRec", "=", "{", "}", "for", "k", "in", "range", "(", "len", "(", "keys", ")", ")", ":", "InRec", "[", "keys", "[", "k", "]", "]", "=", "line", ".", "split", "(", "','", ")", "[", "k", "]", "inst", "=", "\"IODP-SRM\"", "MagRec", "=", "{", "}", "expedition", "=", "InRec", "[", "'Exp'", "]", "location", "=", "InRec", "[", "'Site'", "]", "+", "InRec", "[", "'Hole'", "]", "offsets", "=", "InRec", "[", "interval_key", "]", ".", "split", "(", "'.'", ")", "# maintain consistency with er_samples convention of using top interval", "if", "len", "(", "offsets", ")", "==", "1", ":", "offset", "=", "int", "(", "offsets", "[", "0", "]", ")", "else", ":", "offset", "=", "int", "(", "offsets", "[", "0", "]", ")", "-", "1", "#interval=str(offset+1)# maintain consistency with er_samples convention of using top interval", "interval", "=", "str", "(", "offset", ")", "# maintain consistency with er_samples convention of using top interval", "specimen", "=", "expedition", "+", "'-'", "+", "location", "+", "'-'", "+", "InRec", "[", "'Core'", "]", "+", "InRec", "[", "type", "]", "+", "\"-\"", "+", "InRec", "[", "sect_key", "]", "+", "'_'", "+", "InRec", "[", "half_key", "]", "+", "'_'", "+", "interval", "if", "specimen", "not", "in", "Specs", ":", "Specs", ".", "append", "(", "specimen", ")", "MagRec", "[", "'er_expedition_name'", "]", "=", "expedition", "MagRec", "[", "'er_location_name'", "]", "=", "location", "MagRec", "[", "'er_site_name'", "]", "=", "specimen", "MagRec", "[", "'er_citation_names'", "]", "=", "citation", "MagRec", "[", "'er_specimen_name'", "]", "=", "specimen", "MagRec", "[", "'er_sample_name'", "]", "=", "specimen", "MagRec", "[", "'er_site_name'", "]", "=", "specimen", "# set up measurement record - default is NRM", "MagRec", "[", "'magic_software_packages'", "]", "=", "version_num", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "273", ")", "# room temp in kelvin", "MagRec", "[", "\"measurement_temp\"", "]", "=", "'%8.3e'", "%", "(", "273", ")", "# room temp in kelvin", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'0'", "MagRec", "[", "\"measurement_flag\"", "]", "=", "'g'", "# assume all data are \"good\"", "MagRec", "[", "\"measurement_standard\"", "]", "=", "'u'", "# assume all data are \"good\"", "MagRec", "[", "\"measurement_csd\"", "]", "=", "'0'", "# assume all data are \"good\"", "volume", "=", "InRec", "[", "volume_key", "]", "MagRec", "[", "\"magic_method_codes\"", "]", "=", "'LT-NO'", "sort_by", "=", "'treatment_ac_field'", "# set default to AF demag", "if", "InRec", "[", "demag_key", "]", "!=", "\"0\"", ":", "MagRec", "[", "'magic_method_codes'", "]", "=", "'LT-AF-Z'", "inst", "=", "inst", "+", "':IODP-SRM-AF'", "# measured on shipboard in-line 2G AF", "treatment_value", "=", "float", "(", "InRec", "[", "demag_key", "]", ".", "strip", "(", "'\"'", ")", ")", "*", "1e-3", "# convert mT => T", "if", "sort_by", "==", "\"treatment_ac_field\"", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "treatment_value", "# AF demag in treat mT => T", "else", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "str", "(", "treatment_value", ")", "# AF demag in treat mT => T", "elif", "offline_treatment_type", "in", "list", "(", "InRec", ".", "keys", "(", ")", ")", "and", "InRec", "[", "offline_treatment_type", "]", "!=", "\"\"", ":", "if", "\"Lowrie\"", "in", "InRec", "[", "'Comments'", "]", ":", "MagRec", "[", "'magic_method_codes'", "]", "=", "'LP-IRM-3D'", "treatment_value", "=", "float", "(", "InRec", "[", "offline_demag_key", "]", ".", "strip", "(", "'\"'", ")", ")", "+", "273.", "# convert C => K", "MagRec", "[", "\"treatment_temp\"", "]", "=", "treatment_value", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "\"0\"", "sort_by", "=", "'treatment_temp'", "elif", "'Isothermal'", "in", "InRec", "[", "offline_treatment_type", "]", ":", "MagRec", "[", "'magic_method_codes'", "]", "=", "'LT-IRM'", "treatment_value", "=", "float", "(", "InRec", "[", "offline_demag_key", "]", ".", "strip", "(", "'\"'", ")", ")", "*", "1e-3", "# convert mT => T", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "treatment_value", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "\"0\"", "sort_by", "=", "'treatment_dc_field'", "MagRec", "[", "\"measurement_standard\"", "]", "=", "'u'", "# assume all data are \"good\"", "vol", "=", "float", "(", "volume", ")", "*", "1e-6", "# convert from cc to m^3", "if", "run_key", "in", "list", "(", "InRec", ".", "keys", "(", ")", ")", ":", "run_number", "=", "InRec", "[", "run_key", "]", "MagRec", "[", "'external_database_ids'", "]", "=", "run_number", "MagRec", "[", "'external_database_names'", "]", "=", "'LIMS'", "else", ":", "MagRec", "[", "'external_database_ids'", "]", "=", "\"\"", "MagRec", "[", "'external_database_names'", "]", "=", "''", "MagRec", "[", "'measurement_description'", "]", "=", "'sample orientation: '", "+", "InRec", "[", "'Sample orientation'", "]", "MagRec", "[", "'measurement_inc'", "]", "=", "InRec", "[", "inc_key", "]", ".", "strip", "(", "'\"'", ")", "MagRec", "[", "'measurement_dec'", "]", "=", "InRec", "[", "dec_key", "]", ".", "strip", "(", "'\"'", ")", "intens", "=", "InRec", "[", "int_key", "]", ".", "strip", "(", "'\"'", ")", "MagRec", "[", "'measurement_magn_moment'", "]", "=", "'%8.3e'", "%", "(", "float", "(", "intens", ")", "*", "vol", ")", "# convert intensity from A/m to Am^2 using vol", "MagRec", "[", "'magic_instrument_codes'", "]", "=", "inst", "MagRec", "[", "'measurement_number'", "]", "=", "'1'", "MagRec", "[", "'measurement_positions'", "]", "=", "''", "MagRecs", ".", "append", "(", "MagRec", ")", "if", "not", "file_found", ":", "print", "(", "\"No .csv files were found\"", ")", "return", "False", ",", "\"No .csv files were found\"", "MagOuts", "=", "[", "]", "for", "spec", "in", "Specs", ":", "Speclist", "=", "pmag", ".", "get_dictitem", "(", "MagRecs", ",", "'er_specimen_name'", ",", "spec", ",", "'T'", ")", "Meassorted", "=", "sorted", "(", "Speclist", ",", "key", "=", "lambda", "x", ",", "y", "=", "None", ":", "int", "(", "round", "(", "float", "(", "x", "[", "sort_by", "]", ")", "-", "float", "(", "y", "[", "sort_by", "]", ")", ")", ")", "if", "y", "!=", "None", "else", "0", ")", "for", "rec", "in", "Meassorted", ":", "for", "key", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "key", "]", "=", "str", "(", "rec", "[", "key", "]", ")", "MagOuts", ".", "append", "(", "rec", ")", "Fixed", "=", "pmag", ".", "measurements_methods", "(", "MagOuts", ",", "noave", ")", "Out", ",", "keys", "=", "pmag", ".", "fillkeys", "(", "Fixed", ")", "if", "pmag", ".", "magic_write", "(", "meas_file", ",", "Out", ",", "'magic_measurements'", ")", ":", "print", "(", "'data stored in '", ",", "meas_file", ")", "return", "True", ",", "meas_file", "else", ":", "print", "(", "'no data found. bad magfile?'", ")", "return", "False", ",", "'no data found. bad magfile?'" ]
NAME iodp_dscr_magic.py DESCRIPTION converts ODP LIMS discrete sample format files to magic_measurements format files SYNTAX iodp_descr_magic.py [command line options] OPTIONS -h: prints the help message and quits. -f FILE: specify input .csv file, default is all in directory -F FILE: specify output measurements file, default is magic_measurements.txt -A : don't average replicate measurements INPUTS IODP discrete sample .csv file format exported from LIMS database
[ "NAME", "iodp_dscr_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/conversion_scripts2/iodp_dscr_magic2.py#L9-L197
train
This function is the main function for the iodp_dscr_magic. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(50) + '\060', 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101111) + chr(49) + chr(869 - 816) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(51) + chr(50), 35429 - 35421), nzTpIcepk0o8(chr(837 - 789) + chr(865 - 754) + chr(0b110011) + chr(0b101110 + 0o10) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b110010) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(10878 - 10767) + '\063' + chr(1417 - 1365) + '\062', 30568 - 30560), nzTpIcepk0o8('\060' + chr(0b1100000 + 0o17) + chr(1414 - 1360) + chr(2047 - 1999), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b1010 + 0o51) + chr(0b101001 + 0o11), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(145 - 94) + chr(0b0 + 0o65) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + chr(53) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010 + 0o145) + chr(0b1001 + 0o51) + '\062' + '\x37', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2114 - 2063) + chr(55) + chr(904 - 850), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001 + 0o146) + chr(933 - 884), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x30' + chr(776 - 726), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(0b110100) + chr(0b111 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(2533 - 2482) + '\x33' + chr(0b110110), 59695 - 59687), nzTpIcepk0o8(chr(1965 - 1917) + chr(0b1101111) + '\061' + chr(0b110100) + chr(0b110000), 2537 - 2529), nzTpIcepk0o8(chr(0b110000) + chr(9705 - 9594) + chr(50) + chr(1610 - 1557) + chr(127 - 72), 62710 - 62702), nzTpIcepk0o8('\x30' + '\x6f' + chr(1758 - 1708) + '\x31' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10101 + 0o34) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11879 - 11768) + chr(963 - 913) + chr(1626 - 1576), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + chr(2157 - 2104) + chr(0b11100 + 0o31), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + '\x31' + chr(0b100001 + 0o21) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1944 - 1896) + '\157' + '\x31' + chr(283 - 230) + chr(2673 - 2618), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3819 - 3708) + '\x32' + chr(0b110111 + 0o0) + '\x33', 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(5788 - 5677) + '\062' + '\x34' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b110110 + 0o71) + chr(0b110011) + '\x30' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + '\x32' + '\x32' + '\x34', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(50) + '\x37', 24949 - 24941), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(51) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(54), 11849 - 11841), nzTpIcepk0o8(chr(627 - 579) + chr(0b1101111) + chr(0b110011) + chr(52) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\157' + chr(0b110001) + chr(52) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b111010 + 0o65) + chr(0b110011) + '\061' + '\064', 0o10), nzTpIcepk0o8(chr(1644 - 1596) + chr(0b1001010 + 0o45) + chr(0b110010) + chr(0b1 + 0o63), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(1066 - 1013) + chr(0b100101 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b111 + 0o53) + chr(53) + chr(0b110101), 8), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(721 - 672) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(51) + '\066' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(2250 - 2202) + chr(111) + chr(0b110001) + '\062' + chr(0b110001), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1100101 + 0o12) + chr(2032 - 1979) + chr(0b110000), 36637 - 36629)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xbe'), chr(100) + chr(101) + chr(2472 - 2373) + '\x6f' + chr(5780 - 5680) + '\x65')(chr(11941 - 11824) + chr(0b1110100) + '\x66' + '\x2d' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(OMPKB_AuFZpn=nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(6644 - 6533) + '\061', 8), **q5n0sHDDTy90): uNg9Yeq376oN = hUcsWwAd0nE_.get_version() rHPU8oONrR4n = roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x88\x9d\xe2\x8cd/\xc1\xb0\x14\xdc\xa3%j\xd9'), '\144' + chr(0b111110 + 0o47) + '\143' + '\157' + chr(0b1100100) + '\145')(chr(117) + '\x74' + '\x66' + chr(45) + chr(0b110011 + 0o5)) uDVNh1KvXcj5 = roI3spqORKae(ES5oEprVxulp(b''), chr(6347 - 6247) + chr(101) + '\x63' + '\x6f' + '\x64' + chr(0b100111 + 0o76))(chr(0b111011 + 0o72) + chr(116) + chr(102) + '\x2d' + chr(56)) (pat92IisfQkU, JlNPC9Ow4uxx) = ([], []) _NuwPUBWY7oy = roI3spqORKae(ES5oEprVxulp(b'\xc4\x01\xb3\x81\xb7\x91D\xaf\x8d\x97'), chr(0b1100100) + chr(101) + chr(0b100 + 0o137) + chr(0b1001111 + 0o40) + chr(0b1010010 + 0o22) + chr(0b1100101))(chr(4589 - 4472) + '\164' + '\x66' + '\055' + '\x38') (qjksZ7GK0xkJ, HsExji6d7tC1) = (roI3spqORKae(ES5oEprVxulp(b'\xbe'), chr(100) + chr(0b100011 + 0o102) + chr(0b1100011) + chr(111) + chr(0b100111 + 0o75) + chr(8792 - 8691))(chr(0b100011 + 0o122) + '\x74' + chr(7199 - 7097) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xde;\x97'), chr(0b111101 + 0o47) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(2356 - 2255))(chr(0b1110101) + chr(10560 - 10444) + '\x66' + chr(45) + '\070')) eemPYp2vtTSr = bpyfpu4kTbwL.ajIDWyXMBa3b NdBgRJDyurSB = nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x30', 0o10) if OMPKB_AuFZpn: if roI3spqORKae(ES5oEprVxulp(b'\xbd>\x9e'), chr(0b1001 + 0o133) + chr(0b1100101) + '\x63' + chr(5771 - 5660) + chr(4499 - 4399) + chr(2414 - 2313))(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(56)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xbd>\x9e'), chr(100) + '\x65' + '\x63' + chr(111) + chr(4522 - 4422) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(2145 - 2043) + '\x2d' + chr(0b100110 + 0o22))) qjksZ7GK0xkJ = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(0b11000 + 0o127) + chr(2375 - 2326), 8)] if roI3spqORKae(ES5oEprVxulp(b'\xbd \x9e'), chr(0b1010001 + 0o23) + chr(0b1100101) + chr(99) + chr(2574 - 2463) + chr(1158 - 1058) + '\145')('\165' + chr(0b1011101 + 0o27) + chr(4426 - 4324) + '\x2d' + '\070') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xbd \x9e'), '\x64' + '\145' + chr(99) + chr(0b111101 + 0o62) + '\144' + chr(101))('\165' + chr(3632 - 3516) + chr(102) + chr(1994 - 1949) + '\x38')) KADebXAR9grB = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1648 - 1600) + '\x6f' + chr(0b1101 + 0o44), 8)] else: KADebXAR9grB = qjksZ7GK0xkJ YtDhZvF7VzwC = qjksZ7GK0xkJ if roI3spqORKae(ES5oEprVxulp(b'\xbd\x01'), chr(0b1100100) + '\145' + '\x63' + chr(111) + chr(100) + chr(2303 - 2202))('\x75' + chr(0b1110100) + chr(569 - 467) + chr(154 - 109) + '\070') in eemPYp2vtTSr: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xe9\x0f\x9f\x97\xe6\xb3Y\x8f\x86\x9f\xc0\xaa'), '\144' + chr(0b1100101) + chr(7978 - 7879) + '\157' + chr(3182 - 3082) + '\145')(chr(7077 - 6960) + chr(116) + chr(0b1100110) + '\055' + '\070'))) return nzTpIcepk0o8(chr(1977 - 1929) + '\x6f' + chr(2254 - 2206), 8) if roI3spqORKae(ES5oEprVxulp(b'\xbd('), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(100) + chr(101))('\x75' + '\x74' + chr(0b1100110) + '\055' + '\x38') in eemPYp2vtTSr: NdBgRJDyurSB = nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10001 + 0o40), 8) if roI3spqORKae(ES5oEprVxulp(b'\xbd\x0f'), chr(0b11111 + 0o105) + '\145' + chr(99) + chr(0b1101111) + chr(100) + chr(0b110010 + 0o63))(chr(0b1110101) + chr(0b1110100) + chr(6827 - 6725) + chr(45) + '\x38') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xbd\x0f'), '\x64' + chr(0b1011110 + 0o7) + chr(0b1011001 + 0o12) + chr(0b1101111) + '\x64' + chr(0b1001011 + 0o32))(chr(327 - 210) + '\164' + '\146' + chr(45) + chr(0b11010 + 0o36))) uDVNh1KvXcj5 = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + chr(1770 - 1721), 8)] if roI3spqORKae(ES5oEprVxulp(b'\xbd/'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + '\145')('\x75' + '\164' + chr(102) + '\x2d' + '\070') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xbd/'), '\x64' + chr(254 - 153) + '\143' + chr(111) + chr(3188 - 3088) + chr(0b1100101))(chr(485 - 368) + chr(116) + chr(10119 - 10017) + '\x2d' + '\x38')) rHPU8oONrR4n = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + '\x6f' + chr(49), 8)] if not OMPKB_AuFZpn: qjksZ7GK0xkJ = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xf4\x00\xa8\xad\xe7\x83D\xb2'), chr(8808 - 8708) + '\145' + chr(99) + chr(0b100110 + 0o111) + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b10 + 0o66)), roI3spqORKae(ES5oEprVxulp(b'\xbe'), chr(0b1010001 + 0o23) + chr(0b1100101) + chr(2276 - 2177) + chr(0b1010000 + 0o37) + chr(0b110001 + 0o63) + chr(935 - 834))(chr(0b1110101) + chr(5705 - 5589) + chr(6768 - 6666) + chr(1041 - 996) + '\x38')) KADebXAR9grB = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xf9\x07\xaa\x87\xe3\xbdT\xb3\x9b\xb1\xe7\x9fu*'), '\x64' + chr(6852 - 6751) + '\143' + chr(111) + chr(6116 - 6016) + '\x65')(chr(0b1110101) + '\x74' + chr(102) + '\055' + '\070'), qjksZ7GK0xkJ) YtDhZvF7VzwC = qjksZ7GK0xkJ NdBgRJDyurSB = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xfe\x06\xbb\x84\xf2'), chr(9827 - 9727) + chr(0b1100101) + chr(99) + chr(2222 - 2111) + chr(9461 - 9361) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(2270 - 2168) + chr(0b11000 + 0o25) + chr(0b101101 + 0o13)), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000), 8)) uDVNh1KvXcj5 = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xf3\x1a\xac\xad\xf1\x8b\\\xbf'), chr(0b1100100) + chr(9311 - 9210) + chr(99) + chr(0b1000001 + 0o56) + '\144' + '\x65')(chr(117) + chr(0b1000010 + 0o62) + '\x66' + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(1261 - 1160))(chr(0b1010110 + 0o37) + '\x74' + chr(0b110011 + 0o63) + chr(0b101101) + chr(0b111000))) rHPU8oONrR4n = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xc8\x84Y\xb6\x8c'), chr(100) + chr(0b1001010 + 0o33) + '\x63' + chr(111) + chr(0b1100100) + chr(0b11 + 0o142))(chr(11226 - 11109) + chr(0b1110100) + '\146' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x88\x9d\xe2\x8cd/\xc1\xb0\x14\xdc\xa3%j\xd9'), chr(100) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(7113 - 7012))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1602 - 1557) + chr(0b111000))) rHPU8oONrR4n = aHUqKstZLeS6.path.Y4yM9BcfTCNq(YtDhZvF7VzwC, rHPU8oONrR4n) if uDVNh1KvXcj5 == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1001 + 0o133) + '\145' + chr(0b110101 + 0o56) + '\157' + chr(100) + chr(0b1000101 + 0o40))(chr(0b1110101) + chr(0b1110100) + '\146' + '\x2d' + chr(2749 - 2693)): sBaTQsuLTkQn = aHUqKstZLeS6.listdir(KADebXAR9grB) else: uDVNh1KvXcj5 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(KADebXAR9grB, uDVNh1KvXcj5) sBaTQsuLTkQn = [uDVNh1KvXcj5] jDLSTsCnJoY6 = nzTpIcepk0o8('\x30' + '\x6f' + chr(1371 - 1323), 8) for jXqxEQuu_5DD in sBaTQsuLTkQn: if roI3spqORKae(jXqxEQuu_5DD[-nzTpIcepk0o8('\x30' + chr(9052 - 8941) + chr(0b10 + 0o61), 0o10):], roI3spqORKae(ES5oEprVxulp(b'\xc8\x07\xe2\xb7\xd9\xb5}\x80\x8d\xa7\xc5\x8a'), '\144' + chr(0b110110 + 0o57) + '\x63' + chr(111) + chr(4467 - 4367) + '\145')(chr(0b1110101) + chr(116) + chr(0b1010000 + 0o26) + '\x2d' + '\070'))() == roI3spqORKae(ES5oEprVxulp(b'\xf3\x1a\xac'), '\144' + chr(0b1100101) + chr(0b11110 + 0o105) + '\x6f' + '\x64' + chr(0b1001010 + 0o33))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + '\070'): jDLSTsCnJoY6 = nzTpIcepk0o8(chr(48) + '\157' + '\x31', 8) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xe0\x1b\xb5\x91\xf2\x91C\xb3\x87\x89\xad\xde'), chr(0b110100 + 0o60) + chr(0b1100101) + chr(8489 - 8390) + chr(111) + '\144' + chr(0b1100101))('\165' + chr(116) + chr(102) + chr(45) + chr(0b1100 + 0o54)), jXqxEQuu_5DD) with DnU3Rq9N5ala(jXqxEQuu_5DD, roI3spqORKae(ES5oEprVxulp(b'\xe2'), '\x64' + '\x65' + '\x63' + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b1000 + 0o60))) as p1I8sKNFzjk2: FfKOThdpoDTb = H4NoA26ON7iG(p1I8sKNFzjk2.TKmlmUjNQ4dY()) HOp0ZjSPeQln = FfKOThdpoDTb[nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\060', 8)].replace(roI3spqORKae(ES5oEprVxulp(b'\x9a'), chr(0b100000 + 0o104) + '\145' + chr(3239 - 3140) + chr(0b1101111) + chr(100) + chr(0b101111 + 0o66))('\165' + '\x74' + chr(0b1 + 0o145) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), chr(0b111000 + 0o54) + chr(101) + '\143' + chr(0b1101111 + 0o0) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(1486 - 1370) + '\146' + '\055' + '\070')).LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xbc'), '\x64' + '\145' + '\x63' + chr(0b110100 + 0o73) + chr(100) + '\x65')('\x75' + chr(3226 - 3110) + chr(0b1011000 + 0o16) + chr(45) + '\x38')) vpmzCcNg95Mw = roI3spqORKae(ES5oEprVxulp(b'\xdf\x0f\xbc\x81\xf2\x96\x10\xf2\x8a\x83\xbe'), '\144' + chr(0b1001101 + 0o30) + chr(8691 - 8592) + '\157' + chr(0b1001010 + 0o32) + chr(0b1100101))('\165' + '\x74' + '\x66' + '\055' + chr(0b10000 + 0o50)) Rh513Uqlm5Dq = roI3spqORKae(ES5oEprVxulp(b'\xd4\x0c\xb7\x93\xf0\xc2\\\xbf\x9f\x8b\xfb\xde)/\xf0\xf7'), chr(100) + chr(0b101000 + 0o75) + '\143' + chr(0b1101111) + chr(100) + chr(0b1010000 + 0o25))('\165' + chr(1533 - 1417) + chr(6098 - 5996) + chr(0b10101 + 0o30) + chr(0b111000)) JSHD6vgQ6hsT = roI3spqORKae(ES5oEprVxulp(b'\xc4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xce\xc1\x9fm7\xc1\xfeH\xc2\xd9q}\xdftI\xdf\xc7\xa0\xaf\x14\xf2'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(4941 - 4841) + chr(101))('\165' + chr(116) + chr(9149 - 9047) + chr(1853 - 1808) + chr(0b11000 + 0o40)) _ZyI1Hk0uO_S = roI3spqORKae(ES5oEprVxulp(b"\xc4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xce\xe3\x87q'"), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1010 + 0o145) + chr(100) + '\145')(chr(0b1110101) + chr(8658 - 8542) + chr(0b1011100 + 0o12) + chr(45) + chr(0b111000)) wTBkaKBJ9pHl = roI3spqORKae(ES5oEprVxulp(b'\xc4\x0c\xa9\x86\xb7\xac_\xf4'), chr(4759 - 4659) + chr(0b10011 + 0o122) + chr(99) + chr(0b1101111) + chr(0b100111 + 0o75) + '\145')(chr(0b101011 + 0o112) + chr(116) + '\146' + chr(0b101101) + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tD\x9b\xd6\xb5\xf5.\xfbM\x8b\x10\xbeq\x89\xd9.\x95q\xb0A\xbe\x97\xf0\xcb'), '\x64' + chr(5922 - 5821) + chr(99) + chr(111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + '\055' + chr(0b100010 + 0o26)) in HOp0ZjSPeQln: ETmJ7QZlCfmw = roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tD\x9b\xd6\xb5\xf5.\xfbM\x8b\x10\xbeq\x89\xd9.\x95q\xb0A\xbe\x97\xf0\xcb'), chr(0b1011101 + 0o7) + chr(8819 - 8718) + chr(0b1100011) + chr(0b110001 + 0o76) + '\144' + chr(0b10001 + 0o124))('\165' + chr(0b1100100 + 0o20) + chr(102) + chr(0b101101) + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tI\xda\xcf\xb7\xafw\xaf\\\x85\x1b\xecw\x85\xdf9\x942\xe4\x0c\xbe\xd2\xbf\x86U\xbd\xc0'), chr(0b1100100) + '\x65' + chr(99) + chr(135 - 24) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(0b11011 + 0o113) + chr(752 - 707) + chr(0b111000)) in HOp0ZjSPeQln: ETmJ7QZlCfmw = roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tI\xda\xcf\xb7\xafw\xaf\\\x85\x1b\xecw\x85\xdf9\x942\xe4\x0c\xbe\xd2\xbf\x86U\xbd\xc0'), chr(0b1100100) + chr(0b1100101) + '\143' + chr(111) + chr(0b1100100 + 0o0) + chr(8786 - 8685))(chr(117) + chr(0b1110100) + '\146' + '\055' + chr(1744 - 1688)) if roI3spqORKae(ES5oEprVxulp(b'\xd4\x0c\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tD\x9b\xd6\xb5\xf5.\xfbM\x8b\x10\xbeq\x89\xd9.\x95q\xb8\r\xbf\x95\xbe'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(2099 - 1999) + chr(101))(chr(117) + chr(4185 - 4069) + '\146' + chr(0b101101) + chr(2077 - 2021)) in HOp0ZjSPeQln: tK4pYJbGWL1m = roI3spqORKae(ES5oEprVxulp(b'\xd4\x0c\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tD\x9b\xd6\xb5\xf5.\xfbM\x8b\x10\xbeq\x89\xd9.\x95q\xb8\r\xbf\x95\xbe'), chr(100) + chr(5050 - 4949) + chr(0b1001011 + 0o30) + chr(0b1000100 + 0o53) + chr(0b1001101 + 0o27) + chr(10038 - 9937))(chr(117) + chr(0b10010 + 0o142) + '\x66' + '\x2d' + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\xd4\x0c\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tI\xda\xcf\xb7\xafw\xaf\\\x85\x1b\xecw\x85\xdf9\x942\xe4\x0c\xbe\xd2\xbf\x86U\xbd\xc0'), '\144' + chr(101) + '\143' + chr(8466 - 8355) + chr(0b0 + 0o144) + '\145')('\165' + chr(116) + '\146' + '\055' + chr(0b110 + 0o62)) in HOp0ZjSPeQln: tK4pYJbGWL1m = roI3spqORKae(ES5oEprVxulp(b'\xd4\x0c\xb9\x9e\xfe\x8cQ\xae\x80\x81\xf9\xdec#\xc7\xb5\x07\xdd\xe2$|\xc9tI\xda\xcf\xb7\xafw\xaf\\\x85\x1b\xecw\x85\xdf9\x942\xe4\x0c\xbe\xd2\xbf\x86U\xbd\xc0'), chr(0b1100100) + '\x65' + chr(99) + '\157' + chr(0b10010 + 0o122) + '\x65')(chr(0b1110101) + chr(0b1010111 + 0o35) + chr(2018 - 1916) + chr(197 - 152) + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xae\x97\xf9\x91Y\xae\x90\xce\xf5\x9fb)\xc3\xac\x0f\xda\xe352\x86t\x1b\xc9\xc3\xbe\xb44\xb4\\\x96\x07\xaf`\x8f\xc9k\xd1y\xd1F\xb7\xdb'), chr(0b1100100) + chr(0b111 + 0o136) + chr(8731 - 8632) + '\157' + '\144' + chr(4470 - 4369))('\x75' + chr(0b1000 + 0o154) + chr(0b1100110) + chr(0b101101) + '\x38') in HOp0ZjSPeQln: Xlv02QJd6kHP = roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xae\x97\xf9\x91Y\xae\x90\xce\xf5\x9fb)\xc3\xac\x0f\xda\xe352\x86t\x1b\xc9\xc3\xbe\xb44\xb4\\\x96\x07\xaf`\x8f\xc9k\xd1y\xd1F\xb7\xdb'), chr(0b111110 + 0o46) + chr(101) + chr(0b11101 + 0o106) + chr(0b1101111) + chr(0b110 + 0o136) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100100 + 0o2) + chr(0b101101) + chr(0b110011 + 0o5)) if roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xae\x97\xf9\x91Y\xae\x90\xce\xf5\x9fb)\xc3\xac\x0f\xda\xe352\x8b5\x02\xcb\x99\xe7\xe0%\xbaW\xc4\x01\xa3f\x98\xc8(\x854\xf4I\xf2\xb3\xb8\x8f\x19'), '\144' + chr(0b1010000 + 0o25) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))('\165' + chr(116) + '\146' + chr(1207 - 1162) + '\x38') in HOp0ZjSPeQln: Xlv02QJd6kHP = roI3spqORKae(ES5oEprVxulp(b'\xd9\x07\xae\x97\xf9\x91Y\xae\x90\xce\xf5\x9fb)\xc3\xac\x0f\xda\xe352\x8b5\x02\xcb\x99\xe7\xe0%\xbaW\xc4\x01\xa3f\x98\xc8(\x854\xf4I\xf2\xb3\xb8\x8f\x19'), chr(2042 - 1942) + chr(0b1100 + 0o131) + chr(99) + '\x6f' + chr(0b1100001 + 0o3) + chr(0b10110 + 0o117))(chr(0b1110101) + chr(3438 - 3322) + chr(9483 - 9381) + chr(1389 - 1344) + '\070') MJ07XsN5uFgW = roI3spqORKae(ES5oEprVxulp(b'\xc4\x10\xaa\x97'), chr(2760 - 2660) + '\x65' + chr(0b101111 + 0o64) + '\157' + '\x64' + chr(0b1100101))('\x75' + chr(116) + '\146' + '\055' + chr(56)) Nlj06VoLGbur = roI3spqORKae(ES5oEprVxulp(b'\xc3\x0c\xb9\x86'), '\144' + chr(101) + chr(99) + chr(0b1010101 + 0o32) + chr(100) + '\x65')(chr(0b1110101) + chr(0b11111 + 0o125) + chr(1841 - 1739) + chr(0b101101) + chr(0b101101 + 0o13)) gGhe4Vdz_42w = roI3spqORKae(ES5oEprVxulp(b'\xd1F\x8d'), '\144' + chr(0b1010111 + 0o16) + chr(99) + chr(0b100001 + 0o116) + chr(0b1100100) + '\145')('\x75' + chr(0b1101010 + 0o12) + '\146' + '\x2d' + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\r\xf1\xbex'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + '\x65')(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(56)) in HOp0ZjSPeQln: wHNCqdsix_d_ = roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\r\xf1\xbex'), chr(0b100000 + 0o104) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(2244 - 2188)) if roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\x03\x86'), chr(100) + chr(0b1001111 + 0o26) + chr(3211 - 3112) + chr(0b1101111) + chr(0b1010 + 0o132) + chr(101))(chr(0b110100 + 0o101) + chr(0b1110100) + chr(102) + chr(1412 - 1367) + chr(0b111000)) in HOp0ZjSPeQln: wHNCqdsix_d_ = roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\x03\x86'), chr(100) + chr(1734 - 1633) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(0b10 + 0o163) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b100110 + 0o22)) if roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\r\x89\xfe$b\x9eoF'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1000001 + 0o56) + '\144' + '\x65')(chr(117) + chr(0b11100 + 0o130) + '\x66' + '\055' + chr(0b100110 + 0o22)) in HOp0ZjSPeQln: wHNCqdsix_d_ = roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xac\x86\x82\xe2\x93db\x8c\xbd\r\x89\xfe$b\x9eoF'), '\144' + chr(0b111000 + 0o55) + chr(9753 - 9654) + chr(0b1101111) + '\144' + chr(101))('\165' + '\164' + chr(3403 - 3301) + chr(0b0 + 0o55) + '\x38') for ffiOpFBWGmZU in FfKOThdpoDTb[nzTpIcepk0o8(chr(738 - 690) + '\x6f' + chr(0b110001), 8):]: i4btRtmafnGQ = {} for B6UAF1zReOyJ in bbT2xIe5pzk7(ftfygxgFas5X(HOp0ZjSPeQln)): i4btRtmafnGQ[HOp0ZjSPeQln[B6UAF1zReOyJ]] = ffiOpFBWGmZU.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xbc'), '\x64' + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1000001 + 0o44))(chr(0b1011 + 0o152) + '\164' + '\146' + chr(45) + chr(1625 - 1569)))[B6UAF1zReOyJ] wDEIk17vEWwT = roI3spqORKae(ES5oEprVxulp(b'\xd9&\x9e\xa2\xba\xb1b\x97'), chr(748 - 648) + chr(1427 - 1326) + chr(0b110011 + 0o60) + chr(0b1101111) + '\144' + '\145')(chr(4559 - 4442) + '\164' + '\146' + chr(0b101100 + 0o1) + chr(0b111000)) fGxDbmBdBlCw = {} JdPfmuIJYBFD = i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xd5\x11\xaa'), '\144' + chr(3083 - 2982) + chr(0b1100011) + chr(111) + '\144' + chr(6948 - 6847))(chr(0b100010 + 0o123) + '\x74' + '\x66' + chr(287 - 242) + '\x38')] y87dwGy_Qoj4 = i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xc3\x00\xae\x97'), '\144' + '\145' + '\x63' + chr(0b100 + 0o153) + chr(3611 - 3511) + chr(4050 - 3949))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(304 - 248))] + i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xd8\x06\xb6\x97'), '\144' + '\x65' + chr(6671 - 6572) + chr(111) + chr(1384 - 1284) + chr(0b1100010 + 0o3))('\x75' + chr(4901 - 4785) + chr(0b1100110) + '\x2d' + chr(56))] HQzjzS6A_S7y = i4btRtmafnGQ[vpmzCcNg95Mw].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xbe'), chr(0b1100100) + chr(101) + '\143' + chr(7916 - 7805) + chr(100) + '\145')(chr(0b0 + 0o165) + '\164' + '\x66' + '\055' + chr(56))) if ftfygxgFas5X(HQzjzS6A_S7y) == nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1011010 + 0o25) + chr(0b1000 + 0o51), 8): GuX46MBAOnaQ = nzTpIcepk0o8(HQzjzS6A_S7y[nzTpIcepk0o8(chr(2271 - 2223) + chr(111) + '\060', 8)]) else: GuX46MBAOnaQ = nzTpIcepk0o8(HQzjzS6A_S7y[nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(111) + '\x30', 8)]) - nzTpIcepk0o8('\x30' + chr(10205 - 10094) + chr(0b11 + 0o56), 8) n1CVRUxWAiaX = N9zlRy29S1SS(GuX46MBAOnaQ) EJPYhrC8WoVb = JdPfmuIJYBFD + roI3spqORKae(ES5oEprVxulp(b'\xbd'), chr(0b10 + 0o142) + chr(3356 - 3255) + chr(9109 - 9010) + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1101110 + 0o6) + '\x66' + chr(45) + chr(56)) + y87dwGy_Qoj4 + roI3spqORKae(ES5oEprVxulp(b'\xbd'), chr(0b1100100) + chr(0b110100 + 0o61) + chr(99) + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1010111 + 0o35) + chr(102) + chr(1399 - 1354) + chr(2110 - 2054)) + i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xd3\x06\xa8\x97'), chr(0b1100010 + 0o2) + chr(101) + chr(99) + chr(0b111 + 0o150) + chr(0b1100100) + chr(0b1011011 + 0o12))(chr(0b110000 + 0o105) + '\164' + chr(102) + chr(45) + chr(56))] + i4btRtmafnGQ[MJ07XsN5uFgW] + roI3spqORKae(ES5oEprVxulp(b'\xbd'), chr(7139 - 7039) + chr(0b1100101) + chr(0b1100 + 0o127) + chr(111) + chr(100) + chr(0b110010 + 0o63))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101001 + 0o4) + chr(0b100001 + 0o27)) + i4btRtmafnGQ[Nlj06VoLGbur] + roI3spqORKae(ES5oEprVxulp(b'\xcf'), '\144' + chr(0b1100101) + '\143' + chr(1814 - 1703) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(3803 - 3701) + '\x2d' + chr(1079 - 1023)) + i4btRtmafnGQ[gGhe4Vdz_42w] + roI3spqORKae(ES5oEprVxulp(b'\xcf'), chr(3309 - 3209) + chr(0b1100101) + chr(0b1010011 + 0o20) + chr(111) + '\144' + chr(4167 - 4066))('\x75' + chr(0b1011010 + 0o32) + '\x66' + chr(0b101101) + chr(56)) + n1CVRUxWAiaX if EJPYhrC8WoVb not in JlNPC9Ow4uxx: roI3spqORKae(JlNPC9Ow4uxx, roI3spqORKae(ES5oEprVxulp(b'\xd8=\x89\xc6\xef\x85w\xb5\x83\x81\xc2\xcb'), chr(100) + '\x65' + '\x63' + '\x6f' + chr(5452 - 5352) + chr(5746 - 5645))(chr(5517 - 5400) + chr(0b0 + 0o164) + chr(102) + chr(0b101101) + chr(0b111000)))(EJPYhrC8WoVb) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x97\xef\x92U\xbe\x80\x9a\xfe\x91o\x1d\xca\xbf\r\xca'), '\144' + chr(0b1000100 + 0o41) + '\143' + '\x6f' + chr(0b111110 + 0o46) + '\x65')(chr(0b10000 + 0o145) + chr(0b1110100) + '\x66' + '\x2d' + chr(56))] = JdPfmuIJYBFD fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x9e\xf8\x81Q\xae\x80\x81\xf9\xa1o#\xc9\xbb'), '\x64' + chr(0b10010 + 0o123) + '\143' + '\x6f' + chr(0b1100100) + chr(0b11111 + 0o106))(chr(0b1110101) + '\x74' + chr(102) + chr(0b11101 + 0o20) + '\x38')] = y87dwGy_Qoj4 fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x81\xfe\x96U\x85\x87\x8f\xfa\x9b'), chr(1929 - 1829) + '\x65' + chr(6893 - 6794) + chr(0b1100010 + 0o15) + chr(100) + chr(101))('\x75' + chr(12039 - 11923) + '\146' + chr(0b101101) + '\x38')] = EJPYhrC8WoVb fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x91\xfe\x96Q\xae\x80\x81\xf9\xa1o#\xc9\xbb\x13'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(1999 - 1898))(chr(117) + chr(0b1110100) + '\146' + chr(0b100111 + 0o6) + '\x38')] = _NuwPUBWY7oy fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x81\xe7\x87S\xb3\x84\x8b\xf9\xa1o#\xc9\xbb'), chr(0b11110 + 0o106) + chr(1126 - 1025) + chr(99) + '\x6f' + chr(3160 - 3060) + chr(6200 - 6099))(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000))] = EJPYhrC8WoVb fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xf5\x1b\x85\x81\xf6\x8f@\xb6\x8c\xb1\xf9\x9fl'"), '\144' + '\145' + '\143' + chr(6176 - 6065) + '\144' + '\x65')('\x75' + chr(0b1110100) + chr(4474 - 4372) + chr(0b1101 + 0o40) + '\x38')] = EJPYhrC8WoVb fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x81\xfe\x96U\x85\x87\x8f\xfa\x9b'), chr(0b1100100) + chr(7054 - 6953) + '\x63' + '\x6f' + '\x64' + chr(101))(chr(9136 - 9019) + '\164' + chr(0b110 + 0o140) + '\055' + chr(0b111000))] = EJPYhrC8WoVb fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xfd\x08\xbd\x9b\xf4\xbdC\xb5\x8f\x9a\xe0\x9fs'\xfb\xae\x01\xcc\xe60u\xc8'"), chr(100) + chr(101) + chr(0b11100 + 0o107) + '\x6f' + chr(100) + chr(1191 - 1090))(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(0b111000))] = uNg9Yeq376oN fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xe3\x9bl2'), chr(100) + '\x65' + '\143' + chr(0b1101110 + 0o1) + chr(0b1100100) + '\x65')(chr(12464 - 12347) + chr(7402 - 7286) + '\146' + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xb5Q\xf4\xc1\xf2'), chr(0b1011101 + 0o7) + chr(7517 - 7416) + '\143' + '\157' + '\144' + '\x65')(chr(117) + '\164' + '\x66' + chr(45) + chr(56)) % nzTpIcepk0o8('\x30' + '\x6f' + '\064' + '\062' + '\x31', 11625 - 11617) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1u'\xc9\xae"), chr(0b1100100) + chr(0b110010 + 0o63) + chr(0b1111 + 0o124) + '\157' + chr(0b1100100) + chr(0b1100000 + 0o5))(chr(0b1101001 + 0o14) + chr(0b1110100) + chr(2440 - 2338) + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\xb5Q\xf4\xc1\xf2'), chr(0b111101 + 0o47) + chr(0b1100101 + 0o0) + '\143' + chr(111) + chr(0b11011 + 0o111) + chr(0b1010001 + 0o24))(chr(0b1110101) + chr(7886 - 7770) + '\146' + '\x2d' + '\070') % nzTpIcepk0o8(chr(0b110000) + chr(4588 - 4477) + chr(295 - 243) + chr(2161 - 2111) + chr(940 - 891), 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), chr(0b101010 + 0o72) + chr(2708 - 2607) + chr(0b1100010 + 0o1) + chr(0b1101111) + chr(9813 - 9713) + chr(0b1100101 + 0o0))('\165' + chr(5617 - 5501) + chr(2718 - 2616) + chr(1140 - 1095) + chr(0b100 + 0o64))] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(1485 - 1385) + chr(0b1100101) + '\143' + chr(111) + chr(100) + '\x65')('\x75' + chr(7242 - 7126) + chr(102) + chr(1548 - 1503) + '\070') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf3\x9d^$\xcd\xbb\x0c\xcb'), chr(0b1100100) + chr(0b1110 + 0o127) + chr(99) + chr(2235 - 2124) + '\144' + '\145')(chr(0b100011 + 0o122) + chr(0b1011001 + 0o33) + chr(0b1001110 + 0o30) + '\055' + chr(2885 - 2829))] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(0b1100100) + chr(125 - 24) + chr(9200 - 9101) + '\x6f' + '\144' + chr(0b10 + 0o143))(chr(117) + chr(0b1110100) + chr(7533 - 7431) + chr(472 - 427) + chr(0b101001 + 0o17)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf3\x9d^$\xcd\xbb\x0c\xcb\xd2!z\xc4'), '\x64' + chr(0b101100 + 0o71) + chr(99) + chr(111) + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(0b1001010 + 0o34) + chr(0b100111 + 0o6) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(0b1000100 + 0o40) + chr(0b1100101) + chr(99) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b101010 + 0o16)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf3\x9d^$\xcd\xbb\x0c\xcb\xd2%z\xc8 \x0e'), '\144' + chr(0b1001000 + 0o35) + '\143' + chr(0b1000000 + 0o57) + chr(100) + chr(10018 - 9917))('\x75' + chr(13016 - 12900) + chr(815 - 713) + chr(45) + chr(1068 - 1012))] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(5235 - 5135) + chr(0b1001010 + 0o33) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(10842 - 10725) + chr(0b1110100) + chr(0b1011010 + 0o14) + chr(0b101101) + '\070') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1g.\xc5\xb9'), chr(100) + chr(101) + chr(9104 - 9005) + chr(111) + chr(623 - 523) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\xf7'), '\x64' + '\x65' + chr(99) + chr(5505 - 5394) + '\144' + '\x65')('\165' + chr(116) + chr(0b1100110) + chr(1305 - 1260) + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1r6\xc5\xb0\x04\xce\xff5'), '\144' + '\145' + chr(6238 - 6139) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b10111 + 0o136) + chr(11278 - 11162) + chr(102) + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\xe5'), '\144' + '\x65' + chr(8015 - 7916) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(117) + '\164' + chr(102) + '\055' + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1b1\xc0'), '\144' + '\x65' + chr(0b11001 + 0o112) + chr(0b1101111) + chr(0b1011011 + 0o11) + chr(101))(chr(117) + '\x74' + chr(7479 - 7377) + chr(0b10000 + 0o35) + chr(0b1111 + 0o51))] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(5720 - 5620) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(117) + '\x74' + chr(6193 - 6091) + '\x2d' + '\x38') sbVhSlSPnlFP = i4btRtmafnGQ[wHNCqdsix_d_] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x9d\x86\xf8\x9a^!\xcb\xba\x05\xdc'), '\144' + '\x65' + chr(99) + chr(139 - 28) + chr(0b1011001 + 0o13) + chr(101))('\165' + chr(116) + '\x66' + chr(0b111 + 0o46) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\xdc=\xf7\xbc\xd8'), chr(2447 - 2347) + chr(101) + '\143' + chr(4732 - 4621) + chr(331 - 231) + '\x65')(chr(10990 - 10873) + chr(116) + '\146' + chr(0b10101 + 0o30) + chr(0b111000)) _NmqEFVXxgqb = roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), chr(0b100001 + 0o103) + chr(3672 - 3571) + '\143' + '\157' + chr(0b1001100 + 0o30) + '\x65')(chr(7672 - 7555) + '\x74' + chr(102) + chr(0b101101) + '\x38') if i4btRtmafnGQ[Rh513Uqlm5Dq] != roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(0b11011 + 0o111) + chr(0b1100101) + chr(1797 - 1698) + chr(0b1011111 + 0o20) + '\x64' + '\x65')(chr(0b100111 + 0o116) + chr(0b1110100) + '\146' + '\055' + '\070'): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x9d\x86\xf8\x9a^!\xcb\xba\x05\xdc'), '\144' + '\145' + chr(6881 - 6782) + '\x6f' + chr(0b1000 + 0o134) + chr(101))(chr(117) + '\x74' + chr(0b1011 + 0o133) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xdc=\xf7\xb3\xd1\xcfj'), chr(3931 - 3831) + chr(0b1001011 + 0o32) + chr(0b101110 + 0o65) + '\x6f' + chr(6472 - 6372) + '\x65')(chr(0b1110101) + chr(9667 - 9551) + '\146' + chr(0b101101) + chr(1962 - 1906)) wDEIk17vEWwT = wDEIk17vEWwT + roI3spqORKae(ES5oEprVxulp(b'\xaa \x95\xb6\xc7\xcfc\x88\xa4\xc3\xd6\xb8'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(0b1110100 + 0o0) + '\x66' + '\x2d' + chr(0b111000)) YDg5goHnvhaQ = jLW6pRf2DSRk(i4btRtmafnGQ[Rh513Uqlm5Dq].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), chr(1680 - 1580) + '\145' + '\143' + '\157' + chr(100) + chr(0b100101 + 0o100))(chr(117) + chr(116) + chr(9997 - 9895) + chr(0b101010 + 0o3) + chr(0b111000)))) * 0.001 if _NmqEFVXxgqb == roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), '\144' + '\145' + '\x63' + chr(163 - 52) + chr(100) + chr(9075 - 8974))(chr(0b10001 + 0o144) + chr(916 - 800) + chr(102) + chr(0b101101 + 0o0) + chr(0b110100 + 0o4)): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), '\x64' + '\145' + chr(0b10 + 0o141) + chr(0b1000 + 0o147) + '\x64' + '\145')('\165' + '\164' + chr(0b1100110) + chr(798 - 753) + '\070')] = YDg5goHnvhaQ else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), chr(0b1100100) + chr(0b11100 + 0o111) + chr(99) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(116) + '\146' + '\x2d' + '\x38')] = N9zlRy29S1SS(YDg5goHnvhaQ) elif _ZyI1Hk0uO_S in H4NoA26ON7iG(roI3spqORKae(i4btRtmafnGQ, roI3spqORKae(ES5oEprVxulp(b'\xfb\x0c\xa3\x81'), chr(0b1010010 + 0o22) + chr(0b1100101) + '\x63' + chr(5144 - 5033) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b1011 + 0o42) + chr(0b111000)))()) and i4btRtmafnGQ[_ZyI1Hk0uO_S] != roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1001001 + 0o34) + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(0b100000 + 0o125) + '\x74' + chr(102) + chr(45) + '\070'): if roI3spqORKae(ES5oEprVxulp(b'\xdc\x06\xad\x80\xfe\x87'), chr(7975 - 7875) + chr(101) + chr(6677 - 6578) + chr(111) + chr(100) + '\145')(chr(7778 - 7661) + '\x74' + '\x66' + chr(45) + '\070') in i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xd3\x06\xb7\x9f\xf2\x8cD\xa9'), chr(100) + '\x65' + '\x63' + chr(2581 - 2470) + chr(1014 - 914) + '\145')('\165' + '\x74' + '\x66' + '\x2d' + '\x38')]: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x9d\x86\xf8\x9a^!\xcb\xba\x05\xdc'), '\144' + '\x65' + chr(99) + chr(0b0 + 0o157) + chr(100) + chr(0b1001000 + 0o35))(chr(0b1110101) + chr(0b1000000 + 0o64) + chr(5535 - 5433) + chr(0b101101) + chr(1825 - 1769))] = roI3spqORKae(ES5oEprVxulp(b'\xdc9\xf7\xbb\xc5\xaf\x1d\xe9\xad'), chr(100) + chr(101) + chr(99) + '\157' + chr(9194 - 9094) + chr(7982 - 7881))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + '\070') YDg5goHnvhaQ = jLW6pRf2DSRk(i4btRtmafnGQ[JSHD6vgQ6hsT].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), chr(1278 - 1178) + chr(0b100111 + 0o76) + chr(4476 - 4377) + '\x6f' + '\x64' + chr(9729 - 9628))(chr(0b1110 + 0o147) + chr(0b1110100) + '\146' + chr(45) + '\x38'))) + 273.0 fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xe3\x9bl2'), chr(100) + chr(101) + '\x63' + '\x6f' + '\x64' + chr(101))(chr(117) + '\x74' + '\x66' + chr(0b1100 + 0o41) + chr(0b10111 + 0o41))] = YDg5goHnvhaQ fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), chr(6630 - 6530) + chr(0b1001000 + 0o35) + chr(99) + chr(10762 - 10651) + '\x64' + '\x65')('\165' + '\164' + '\146' + '\x2d' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + '\145')('\165' + '\x74' + chr(1200 - 1098) + chr(0b101 + 0o50) + chr(0b111000)) _NmqEFVXxgqb = roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xe3\x9bl2'), chr(0b1100100) + chr(101) + chr(1826 - 1727) + chr(0b100101 + 0o112) + chr(0b110111 + 0o55) + '\145')(chr(0b1100010 + 0o23) + chr(0b1010 + 0o152) + chr(102) + chr(0b101101) + chr(56)) elif roI3spqORKae(ES5oEprVxulp(b'\xd9\x1a\xb5\x86\xff\x87B\xb7\x88\x82'), '\x64' + '\x65' + chr(0b101001 + 0o72) + chr(0b1010111 + 0o30) + chr(8596 - 8496) + chr(101))(chr(117) + '\x74' + chr(9844 - 9742) + '\x2d' + '\x38') in i4btRtmafnGQ[_ZyI1Hk0uO_S]: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x9d\x86\xf8\x9a^!\xcb\xba\x05\xdc'), '\144' + chr(8783 - 8682) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + chr(1690 - 1588) + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\xdc=\xf7\xbb\xc5\xaf'), '\x64' + '\145' + chr(8110 - 8011) + '\157' + chr(0b10010 + 0o122) + chr(0b1100101))(chr(117) + chr(0b1011111 + 0o25) + chr(0b1001010 + 0o34) + '\x2d' + chr(56)) YDg5goHnvhaQ = jLW6pRf2DSRk(i4btRtmafnGQ[JSHD6vgQ6hsT].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), '\x64' + '\x65' + '\143' + chr(111) + chr(100) + '\x65')('\x75' + chr(0b1010110 + 0o36) + chr(3669 - 3567) + chr(212 - 167) + chr(56)))) * 0.001 fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf3\x9d^$\xcd\xbb\x0c\xcb'), chr(0b111011 + 0o51) + chr(0b1011011 + 0o12) + '\143' + chr(9765 - 9654) + chr(0b1000 + 0o134) + '\145')(chr(0b111110 + 0o67) + chr(116) + chr(0b1100110) + '\055' + '\x38')] = YDg5goHnvhaQ fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf6\x9d^$\xcd\xbb\x0c\xcb'), '\x64' + chr(4832 - 4731) + chr(0b1100011) + chr(0b1010100 + 0o33) + chr(100) + chr(0b1100101))(chr(0b1001011 + 0o52) + chr(116) + chr(0b1100110) + chr(0b10001 + 0o34) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\xa0'), chr(0b1000110 + 0o36) + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + '\164' + '\146' + chr(0b101101) + chr(681 - 625)) _NmqEFVXxgqb = roI3spqORKae(ES5oEprVxulp(b'\xe4\x1b\xbf\x93\xe3\x8fU\xb4\x9d\xb1\xf3\x9d^$\xcd\xbb\x0c\xcb'), '\x64' + chr(6693 - 6592) + '\143' + chr(111) + chr(100) + chr(9086 - 8985))('\165' + chr(0b1110100) + '\146' + chr(0b11100 + 0o21) + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1r6\xc5\xb0\x04\xce\xff5'), '\144' + '\x65' + chr(0b100001 + 0o102) + chr(0b1101111) + chr(5929 - 5829) + chr(1609 - 1508))(chr(10534 - 10417) + chr(7045 - 6929) + chr(0b1000 + 0o136) + chr(0b101101) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\xe5'), chr(0b1010111 + 0o15) + '\145' + '\x63' + chr(0b1001000 + 0o47) + '\144' + chr(0b1010100 + 0o21))(chr(0b1100010 + 0o23) + '\x74' + chr(0b1100110) + chr(0b11010 + 0o23) + '\070') RPCRorQZSDUy = jLW6pRf2DSRk(sbVhSlSPnlFP) * 1e-06 if wTBkaKBJ9pHl in H4NoA26ON7iG(roI3spqORKae(i4btRtmafnGQ, roI3spqORKae(ES5oEprVxulp(b'\xfb\x0c\xa3\x81'), '\144' + chr(8048 - 7947) + chr(99) + '\x6f' + '\x64' + chr(0b1011010 + 0o13))('\x75' + chr(116) + chr(2605 - 2503) + chr(0b101101) + chr(0b111000)))()): TPYV1kdG4fnc = i4btRtmafnGQ[wTBkaKBJ9pHl] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x11\xae\x97\xe5\x8cQ\xb6\xb6\x8a\xf6\x8a` \xc5\xad\x05\xf0\xe45a'), chr(0b1100100) + '\x65' + chr(0b11011 + 0o110) + chr(0b1101111) + '\144' + '\145')('\x75' + '\164' + chr(102) + '\x2d' + chr(56))] = TPYV1kdG4fnc fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xf5\x11\xae\x97\xe5\x8cQ\xb6\xb6\x8a\xf6\x8a` \xc5\xad\x05\xf0\xe30\x7f\xc8'"), chr(100) + chr(0b1100001 + 0o4) + chr(0b100111 + 0o74) + chr(8640 - 8529) + chr(100) + chr(0b10011 + 0o122))('\x75' + chr(0b100001 + 0o123) + chr(0b1100110) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xdc \x97\xa1'), chr(9038 - 8938) + chr(0b1100101) + chr(8930 - 8831) + chr(6105 - 5994) + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(0b110100 + 0o62) + chr(45) + chr(0b1000 + 0o60)) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xf5\x11\xae\x97\xe5\x8cQ\xb6\xb6\x8a\xf6\x8a` \xc5\xad\x05\xf0\xe45a'), '\144' + chr(0b1100101) + chr(5352 - 5253) + chr(111) + '\144' + chr(3657 - 3556))('\x75' + '\164' + chr(102) + chr(0b101101) + chr(1021 - 965))] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b111011 + 0o51) + chr(1217 - 1116) + chr(3867 - 3768) + chr(111) + chr(0b1100100) + chr(0b1000010 + 0o43))('\x75' + chr(0b111000 + 0o74) + chr(0b1100110) + chr(0b101010 + 0o3) + chr(783 - 727)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xf5\x11\xae\x97\xe5\x8cQ\xb6\xb6\x8a\xf6\x8a` \xc5\xad\x05\xf0\xe30\x7f\xc8'"), chr(0b10111 + 0o115) + '\145' + '\x63' + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(9603 - 9487) + chr(2221 - 2119) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100100 + 0o1) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1011111 + 0o7) + chr(927 - 882) + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1e'\xd7\xbd\x12\xc6\xfd%{\xc2:"), chr(1920 - 1820) + chr(0b1010001 + 0o24) + chr(99) + '\157' + '\x64' + '\x65')(chr(1961 - 1844) + '\164' + chr(0b1100110) + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\xe3\x08\xb7\x82\xfb\x87\x10\xb5\x9b\x87\xf2\x90u#\xd0\xb7\x0f\xc1\xb7q'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(100) + '\x65')(chr(117) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38') + i4btRtmafnGQ[roI3spqORKae(ES5oEprVxulp(b'\xc3\x08\xb7\x82\xfb\x87\x10\xb5\x9b\x87\xf2\x90u#\xd0\xb7\x0f\xc1'), chr(100) + chr(9631 - 9530) + chr(0b101110 + 0o65) + chr(5158 - 5047) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(8019 - 7917) + chr(1159 - 1114) + chr(56))] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1h,\xc7'), '\x64' + chr(0b11100 + 0o111) + chr(0b1100011) + chr(994 - 883) + chr(0b1100100) + '\x65')(chr(0b1101000 + 0o15) + '\164' + chr(0b1010 + 0o134) + chr(158 - 113) + chr(1899 - 1843))] = i4btRtmafnGQ[ETmJ7QZlCfmw].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), chr(8859 - 8759) + chr(7017 - 6916) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(117) + chr(116) + '\146' + chr(1871 - 1826) + '\x38')) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1e'\xc7"), chr(100) + '\145' + chr(0b110000 + 0o63) + '\157' + chr(7429 - 7329) + chr(0b1000100 + 0o41))('\x75' + '\164' + chr(4439 - 4337) + chr(0b101101) + chr(56))] = i4btRtmafnGQ[tK4pYJbGWL1m].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), '\144' + chr(0b1100101) + '\x63' + chr(0b11100 + 0o123) + '\x64' + chr(1196 - 1095))(chr(0b101000 + 0o115) + chr(116) + '\x66' + chr(1492 - 1447) + '\070')) gEUayqelGyPq = i4btRtmafnGQ[Xlv02QJd6kHP].kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\xb2'), chr(0b1100100) + '\145' + chr(4323 - 4224) + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(1906 - 1804) + '\055' + chr(2804 - 2748))) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1l#\xc3\xb0?\xc2\xe2<w\xc3 '), '\144' + chr(0b111010 + 0o53) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(9397 - 9281) + chr(102) + chr(0b101101) + chr(0b1101 + 0o53))] = roI3spqORKae(ES5oEprVxulp(b'\xb5Q\xf4\xc1\xf2'), chr(0b1001101 + 0o27) + chr(9445 - 9344) + '\143' + chr(8594 - 8483) + chr(0b1100100) + chr(0b110001 + 0o64))('\165' + '\164' + '\x66' + chr(957 - 912) + chr(56)) % (jLW6pRf2DSRk(gEUayqelGyPq) * RPCRorQZSDUy) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b"\xfd\x08\xbd\x9b\xf4\xbdY\xb4\x9a\x9a\xe5\x8bl'\xca\xaa?\xcc\xe25w\xde"), chr(0b11111 + 0o105) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b11010 + 0o112) + '\x65')(chr(7622 - 7505) + chr(4359 - 4243) + '\x66' + chr(0b10 + 0o53) + '\070')] = wDEIk17vEWwT fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1o7\xc9\xbc\x05\xdd'), chr(9219 - 9119) + '\145' + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(117) + chr(8256 - 8140) + '\146' + chr(0b10000 + 0o35) + chr(0b10001 + 0o47))] = roI3spqORKae(ES5oEprVxulp(b'\xa1'), chr(0b1010010 + 0o22) + '\145' + '\x63' + chr(0b100011 + 0o114) + chr(2837 - 2737) + '\145')(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xfd\x0c\xbb\x81\xe2\x90U\xb7\x8c\x80\xe3\xa1q-\xd7\xb7\x14\xc6\xe2?a'), '\144' + chr(0b10001 + 0o124) + chr(7739 - 7640) + chr(111) + chr(100) + chr(0b1001101 + 0o30))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + chr(1951 - 1895))] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b100110 + 0o77) + chr(0b100111 + 0o74) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(11622 - 11505) + chr(0b101100 + 0o110) + chr(0b100000 + 0o106) + '\x2d' + chr(1462 - 1406)) roI3spqORKae(pat92IisfQkU, roI3spqORKae(ES5oEprVxulp(b'\xd8=\x89\xc6\xef\x85w\xb5\x83\x81\xc2\xcb'), '\144' + chr(0b1100101) + '\143' + chr(111) + '\144' + chr(0b1100101))(chr(5034 - 4917) + chr(1491 - 1375) + chr(0b1001000 + 0o36) + '\055' + '\x38'))(fGxDbmBdBlCw) if not jDLSTsCnJoY6: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xde\x06\xfa\xdc\xf4\x91F\xfa\x8f\x87\xfb\x9brb\xd3\xbb\x12\xca\xad7}\xd8:\x0b'), chr(0b1000 + 0o134) + chr(101) + '\x63' + chr(111) + chr(4472 - 4372) + '\x65')('\x75' + '\164' + '\x66' + chr(45) + chr(2201 - 2145))) return (nzTpIcepk0o8('\060' + '\x6f' + chr(1279 - 1231), 8), roI3spqORKae(ES5oEprVxulp(b'\xde\x06\xfa\xdc\xf4\x91F\xfa\x8f\x87\xfb\x9brb\xd3\xbb\x12\xca\xad7}\xd8:\x0b'), chr(1983 - 1883) + '\145' + '\143' + '\x6f' + chr(3278 - 3178) + '\145')(chr(6805 - 6688) + chr(116) + chr(0b110110 + 0o60) + chr(45) + '\070')) Lbq81gOBsX3w = [] for L66BkZPPV93j in JlNPC9Ow4uxx: N8RIOUft3cb1 = hUcsWwAd0nE_.get_dictitem(pat92IisfQkU, roI3spqORKae(ES5oEprVxulp(b'\xf5\x1b\x85\x81\xe7\x87S\xb3\x84\x8b\xf9\xa1o#\xc9\xbb'), '\x64' + '\x65' + '\x63' + '\x6f' + chr(417 - 317) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(0b100001 + 0o27)), L66BkZPPV93j, roI3spqORKae(ES5oEprVxulp(b'\xc4'), chr(0b101 + 0o137) + chr(101) + chr(99) + '\157' + chr(7804 - 7704) + chr(0b1100101))('\x75' + chr(7040 - 6924) + chr(0b1100110) + '\055' + '\x38')) tejT5qtGHcUj = V3OlOVg98A85(N8RIOUft3cb1, key=lambda bI5jsQ9OkQtj, Fi3yzxctM1zW=None: nzTpIcepk0o8(sOS7b2Ofrbne(jLW6pRf2DSRk(bI5jsQ9OkQtj[_NmqEFVXxgqb]) - jLW6pRf2DSRk(Fi3yzxctM1zW[_NmqEFVXxgqb]))) if Fi3yzxctM1zW is not None else nzTpIcepk0o8(chr(235 - 187) + chr(10489 - 10378) + '\x30', 8)) for FKO_XxLfWbYt in tejT5qtGHcUj: for QYodcsDtoGq7 in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b'\xfb\x0c\xa3\x81'), chr(0b1100100) + chr(101) + chr(5641 - 5542) + chr(0b1001 + 0o146) + chr(0b1100100) + '\x65')(chr(0b1101110 + 0o7) + '\164' + chr(0b1010011 + 0o23) + '\x2d' + chr(0b1110 + 0o52)))()): FKO_XxLfWbYt[QYodcsDtoGq7] = N9zlRy29S1SS(FKO_XxLfWbYt[QYodcsDtoGq7]) roI3spqORKae(Lbq81gOBsX3w, roI3spqORKae(ES5oEprVxulp(b'\xd8=\x89\xc6\xef\x85w\xb5\x83\x81\xc2\xcb'), chr(0b10000 + 0o124) + chr(5225 - 5124) + '\x63' + chr(111) + '\x64' + '\145')(chr(0b1000100 + 0o61) + chr(116) + chr(0b1100110) + chr(0b100 + 0o51) + chr(56)))(FKO_XxLfWbYt) EbIbMz_wswWc = hUcsWwAd0nE_.measurements_methods(Lbq81gOBsX3w, NdBgRJDyurSB) (GVU82OROhKG2, HOp0ZjSPeQln) = hUcsWwAd0nE_.fillkeys(EbIbMz_wswWc) if roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbdG\xa8\x80\x9a\xf2'), chr(0b1010010 + 0o22) + chr(0b11111 + 0o106) + chr(0b1100011) + chr(0b1101111) + chr(6074 - 5974) + '\x65')('\165' + chr(0b1110100) + '\x66' + '\055' + chr(56)))(rHPU8oONrR4n, GVU82OROhKG2, roI3spqORKae(ES5oEprVxulp(b'\xfd\x08\xbd\x9b\xf4\xbd]\xbf\x88\x9d\xe2\x8cd/\xc1\xb0\x14\xdc'), '\144' + chr(101) + chr(0b1011011 + 0o10) + chr(111) + chr(6219 - 6119) + chr(0b11011 + 0o112))('\x75' + chr(0b1100011 + 0o21) + chr(0b1100110) + chr(0b101101) + chr(0b11011 + 0o35))): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xf4\x08\xae\x93\xb7\x91D\xb5\x9b\x8b\xf3\xdeh,\x84'), chr(0b1001110 + 0o26) + chr(0b1100101) + '\143' + chr(111) + chr(0b101000 + 0o74) + chr(0b1100101))(chr(6911 - 6794) + '\x74' + chr(0b110110 + 0o60) + chr(1279 - 1234) + '\x38'), rHPU8oONrR4n) return (nzTpIcepk0o8('\x30' + chr(111) + chr(49), 8), rHPU8oONrR4n) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xfe\x06\xfa\x96\xf6\x96Q\xfa\x8f\x81\xe2\x90el\x84\xfe\x02\xce\xe9q\x7f\xcc3\t\xd2\xce\xa2\xab'), '\x64' + chr(0b0 + 0o145) + '\143' + chr(2925 - 2814) + chr(0b1010011 + 0o21) + chr(0b1100101))(chr(0b10000 + 0o145) + chr(0b1011101 + 0o27) + '\146' + '\x2d' + chr(0b111000))) return (nzTpIcepk0o8('\060' + chr(291 - 180) + chr(48), 8), roI3spqORKae(ES5oEprVxulp(b'\xfe\x06\xfa\x96\xf6\x96Q\xfa\x8f\x81\xe2\x90el\x84\xfe\x02\xce\xe9q\x7f\xcc3\t\xd2\xce\xa2\xab'), '\144' + '\145' + chr(0b101010 + 0o71) + chr(4122 - 4011) + chr(0b100110 + 0o76) + chr(0b1100101))(chr(3879 - 3762) + chr(9393 - 9277) + '\x66' + chr(45) + '\070'))
PmagPy/PmagPy
programs/conversion_scripts2/sio_magic2.py
main
def main(command_line=True, **kwargs): """ NAME sio_magic.py DESCRIPTION converts SIO .mag format files to magic_measurements format files SYNTAX sio_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" -f FILE: specify .mag format input file, required -fsa SAMPFILE : specify er_samples.txt file relating samples, site and locations names,default is none -- values in SAMPFILE will override selections for -loc (location), -spc (designate specimen), and -ncn (sample-site naming convention) -F FILE: specify output file, default is magic_measurements.txt -Fsy: specify er_synthetics file, default is er_sythetics.txt -LP [colon delimited list of protocols, include all that apply] AF: af demag T: thermal including thellier but not trm acquisition S: Shaw method I: IRM (acquisition) I3d: 3D IRM experiment N: NRM only TRM: trm acquisition ANI: anisotropy experiment D: double AF demag G: triple AF demag (GRM protocol) CR: cooling rate experiment. The treatment coding of the measurement file should be: XXX.00,XXX.10, XXX.20 ...XX.70 etc. (XXX.00 is optional) where XXX in the temperature and .10,.20... are running numbers of the cooling rates steps. XXX.00 is optional zerofield baseline. XXX.70 is alteration check. syntax in sio_magic is: -LP CR xxx,yyy,zzz,..... xxx -A where xxx, yyy, zzz...xxx are cooling time in [K/minutes], seperated by comma, ordered at the same order as XXX.10,XXX.20 ...XX.70 if you use a zerofield step then no need to specify the cooling rate for the zerofield It is important to add to the command line the -A option so the measurements will not be averaged. But users need to make sure that there are no duplicate measurements in the file -V [1,2,3] units of IRM field in volts using ASC coil #1,2 or 3 -spc NUM : specify number of characters to designate a specimen, default = 0 -loc LOCNAME : specify location/study name, must have either LOCNAME or SAMPFILE or be a synthetic -syn INST TYPE: sets these specimens as synthetics created at institution INST and of type TYPE -ins INST : specify which demag instrument was used (e.g, SIO-Suzy or SIO-Odette),default is "" -dc B PHI THETA: dc lab field (in micro tesla) and phi,theta, default is none NB: use PHI, THETA = -1 -1 to signal that it changes, i.e. in anisotropy experiment -ac B : peak AF field (in mT) for ARM acquisition, default is none -ncn NCON: specify naming convention: default is #1 below -A: don't average replicate measurements Sample naming convention: [1] XXXXY: where XXXX is an arbitrary length site designation and Y is the single character sample designation. e.g., TG001a is the first sample from site TG001. [default] [2] XXXX-YY: YY sample from site XXXX (XXX, YY of arbitary length) [3] XXXX.YY: YY sample from site XXXX (XXX, YY of arbitary length) [4-Z] XXXX[YYY]: YYY is sample designation with Z characters from site XXX [5] site name same as sample [6] site is entered under a separate column NOT CURRENTLY SUPPORTED [7-Z] [XXXX]YYY: XXXX is site designation with Z characters with sample name XXXXYYYY NB: all others you will have to customize your self or e-mail ltauxe@ucsd.edu for help. [8] synthetic - has no site name [9] ODP naming convention INPUT Best to put separate experiments (all AF, thermal, thellier, trm aquisition, Shaw, etc.) in seperate .mag files (eg. af.mag, thermal.mag, etc.) Format of SIO .mag files: Spec Treat CSD Intensity Declination Inclination [optional metadata string] Spec: specimen name Treat: treatment step XXX T in Centigrade XXX AF in mT for special experiments: Thellier: XXX.0 first zero field step XXX.1 first in field step [XXX.0 and XXX.1 can be done in any order] XXX.2 second in-field step at lower temperature (pTRM check) XXX.3 second zero-field step after infield (pTRM check step) XXX.3 MUST be done in this order [XXX.0, XXX.1 [optional XXX.2] XXX.3] AARM: X.00 baseline step (AF in zero bias field - high peak field) X.1 ARM step (in field step) where X is the step number in the 15 position scheme (see Appendix to Lecture 13 - http://magician.ucsd.edu/Essentials_2) ATRM: X.00 optional baseline X.1 ATRM step (+X) X.2 ATRM step (+Y) X.3 ATRM step (+Z) X.4 ATRM step (-X) X.5 ATRM step (-Y) X.6 ATRM step (-Z) X.7 optional alteration check (+X) TRM: XXX.YYY XXX is temperature step of total TRM YYY is dc field in microtesla Intensity assumed to be total moment in 10^3 Am^2 (emu) Declination: Declination in specimen coordinate system Inclination: Declination in specimen coordinate system Optional metatdata string: mm/dd/yy;hh:mm;[dC,mT];xx.xx;UNITS;USER;INST;NMEAS hh in 24 hours. dC or mT units of treatment XXX (see Treat above) for thermal or AF respectively xx.xxx DC field UNITS of DC field (microT, mT) INST: instrument code, number of axes, number of positions (e.g., G34 is 2G, three axes, measured in four positions) NMEAS: number of measurements in a single position (1,3,200...) """ # initialize some stuff mag_file = None codelist = None infile_type="mag" noave=0 methcode,inst="LP-NO","" phi,theta,peakfield,labfield=0,0,0,0 pTRM,MD,samp_con,Z=0,0,'1',1 dec=[315,225,180,135,45,90,270,270,270,90,180,180,0,0,0] inc=[0,0,0,0,0,-45,-45,0,45,45,45,-45,-90,-45,45] tdec=[0,90,0,180,270,0,0,90,0] tinc=[0,0,90,0,0,-90,0,0,90] missing=1 demag="N" er_location_name="" citation='This study' args=sys.argv fmt='old' syn=0 synfile='er_synthetics.txt' samp_infile,Samps='',[] trm=0 irm=0 specnum=0 coil="" mag_file="" # # get command line arguments # meas_file="magic_measurements.txt" user="" if not command_line: user = kwargs.get('user', '') meas_file = kwargs.get('meas_file', '') syn_file = kwargs.get('syn_file', '') mag_file = kwargs.get('mag_file', '') labfield = kwargs.get('labfield', '') if labfield: labfield = float(labfield) *1e-6 else: labfield = 0 phi = kwargs.get('phi', 0) if phi: phi = float(phi) else: phi = 0 theta = kwargs.get('theta', 0) if theta: theta=float(theta) else: theta = 0 peakfield = kwargs.get('peakfield', 0) if peakfield: peakfield=float(peakfield) *1e-3 else: peakfield = 0 specnum = kwargs.get('specnum', 0) samp_con = kwargs.get('samp_con', '1') er_location_name = kwargs.get('er_location_name', '') samp_infile = kwargs.get('samp_infile', '') syn = kwargs.get('syn', 0) institution = kwargs.get('institution', '') syntype = kwargs.get('syntype', '') inst = kwargs.get('inst', '') noave = kwargs.get('noave', 0) codelist = kwargs.get('codelist', '') coil = kwargs.get('coil', '') cooling_rates = kwargs.get('cooling_rates', '') if command_line: if "-h" in args: print(main.__doc__) return False if "-usr" in args: ind=args.index("-usr") user=args[ind+1] if '-F' in args: ind=args.index("-F") meas_file=args[ind+1] if '-Fsy' in args: ind=args.index("-Fsy") synfile=args[ind+1] if '-f' in args: ind=args.index("-f") mag_file=args[ind+1] if "-dc" in args: ind=args.index("-dc") labfield=float(args[ind+1])*1e-6 phi=float(args[ind+2]) theta=float(args[ind+3]) if "-ac" in args: ind=args.index("-ac") peakfield=float(args[ind+1])*1e-3 if "-spc" in args: ind=args.index("-spc") specnum=int(args[ind+1]) if "-loc" in args: ind=args.index("-loc") er_location_name=args[ind+1] if "-fsa" in args: ind=args.index("-fsa") samp_infile = args[ind+1] if '-syn' in args: syn=1 ind=args.index("-syn") institution=args[ind+1] syntype=args[ind+2] if '-fsy' in args: ind=args.index("-fsy") synfile=args[ind+1] if "-ins" in args: ind=args.index("-ins") inst=args[ind+1] if "-A" in args: noave=1 if "-ncn" in args: ind=args.index("-ncn") samp_con=sys.argv[ind+1] if '-LP' in args: ind=args.index("-LP") codelist=args[ind+1] if "-V" in args: ind=args.index("-V") coil=args[ind+1] # make sure all initial values are correctly set up (whether they come from the command line or a GUI) if samp_infile: Samps, file_type = pmag.magic_read(samp_infile) if coil: coil = str(coil) methcode="LP-IRM" irmunits = "V" if coil not in ["1","2","3"]: print(main.__doc__) print('not a valid coil specification') return False, '{} is not a valid coil specification'.format(coil) if mag_file: try: #with open(mag_file,'r') as finput: # lines = finput.readlines() lines=pmag.open_file(mag_file) except: print("bad mag file name") return False, "bad mag file name" if not mag_file: print(main.__doc__) print("mag_file field is required option") return False, "mag_file field is required option" if specnum!=0: specnum=-specnum #print 'samp_con:', samp_con if samp_con: if "4" == samp_con[0]: if "-" not in samp_con: print("naming convention option [4] must be in form 4-Z where Z is an integer") print('---------------') return False, "naming convention option [4] must be in form 4-Z where Z is an integer" else: Z=samp_con.split("-")[1] samp_con="4" if "7" == samp_con[0]: if "-" not in samp_con: print("option [7] must be in form 7-Z where Z is an integer") return False, "option [7] must be in form 7-Z where Z is an integer" else: Z=samp_con.split("-")[1] samp_con="7" if codelist: codes=codelist.split(':') if "AF" in codes: demag='AF' if'-dc' not in args: methcode="LT-AF-Z" if'-dc' in args: methcode="LT-AF-I" if "T" in codes: demag="T" if '-dc' not in args: methcode="LT-T-Z" if '-dc' in args: methcode="LT-T-I" if "I" in codes: methcode="LP-IRM" irmunits="mT" if "I3d" in codes: methcode="LT-T-Z:LP-IRM-3D" if "S" in codes: demag="S" methcode="LP-PI-TRM:LP-PI-ALT-AFARM" trm_labfield=labfield ans=input("DC lab field for ARM step: [50uT] ") if ans=="": arm_labfield=50e-6 else: arm_labfield=float(ans)*1e-6 ans=input("temperature for total trm step: [600 C] ") if ans=="": trm_peakT=600+273 # convert to kelvin else: trm_peakT=float(ans)+273 # convert to kelvin if "G" in codes: methcode="LT-AF-G" if "D" in codes: methcode="LT-AF-D" if "TRM" in codes: demag="T" trm=1 if "CR" in codes: demag="T" cooling_rate_experiment=1 if command_line: ind=args.index("CR") cooling_rates=args[ind+1] cooling_rates_list=cooling_rates.split(',') else: cooling_rates_list=str(cooling_rates).split(',') if demag=="T" and "ANI" in codes: methcode="LP-AN-TRM" if demag=="T" and "CR" in codes: methcode="LP-CR-TRM" if demag=="AF" and "ANI" in codes: methcode="LP-AN-ARM" if labfield==0: labfield=50e-6 if peakfield==0: peakfield=.180 SynRecs,MagRecs=[],[] version_num=pmag.get_version() ################################## if 1: #if infile_type=="SIO format": for line in lines: instcode="" if len(line)>2: SynRec={} MagRec={} MagRec['er_location_name']=er_location_name MagRec['magic_software_packages']=version_num MagRec["treatment_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["measurement_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' meas_type="LT-NO" rec=line.split() if rec[1]==".00":rec[1]="0.00" treat=rec[1].split('.') if methcode=="LP-IRM": if irmunits=='mT': labfield=float(treat[0])*1e-3 else: labfield=pmag.getfield(irmunits,coil,treat[0]) if rec[1][0]!="-": phi,theta=0.,90. else: phi,theta=0.,-90. meas_type="LT-IRM" MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) if len(rec)>6: code1=rec[6].split(';') # break e.g., 10/15/02;7:45 indo date and time if len(code1)==2: # old format with AM/PM missing=0 code2=code1[0].split('/') # break date into mon/day/year code3=rec[7].split(';') # break e.g., AM;C34;200 into time;instr/axes/measuring pos;number of measurements yy=int(code2[2]) if yy <90: yyyy=str(2000+yy) else: yyyy=str(1900+yy) mm=int(code2[0]) if mm<10: mm="0"+str(mm) else: mm=str(mm) dd=int(code2[1]) if dd<10: dd="0"+str(dd) else: dd=str(dd) time=code1[1].split(':') hh=int(time[0]) if code3[0]=="PM":hh=hh+12 if hh<10: hh="0"+str(hh) else: hh=str(hh) min=int(time[1]) if min<10: min= "0"+str(min) else: min=str(min) MagRec["measurement_date"]=yyyy+":"+mm+":"+dd+":"+hh+":"+min+":00.00" MagRec["measurement_time_zone"]='SAN' if inst=="": if code3[1][0]=='C':instcode='SIO-bubba' if code3[1][0]=='G':instcode='SIO-flo' else: instcode='' MagRec["measurement_positions"]=code3[1][2] elif len(code1)>2: # newest format (cryo7 or later) if "LP-AN-ARM" not in methcode:labfield=0 fmt='new' date=code1[0].split('/') # break date into mon/day/year yy=int(date[2]) if yy <90: yyyy=str(2000+yy) else: yyyy=str(1900+yy) mm=int(date[0]) if mm<10: mm="0"+str(mm) else: mm=str(mm) dd=int(date[1]) if dd<10: dd="0"+str(dd) else: dd=str(dd) time=code1[1].split(':') hh=int(time[0]) if hh<10: hh="0"+str(hh) else: hh=str(hh) min=int(time[1]) if min<10: min= "0"+str(min) else: min=str(min) MagRec["measurement_date"]=yyyy+":"+mm+":"+dd+":"+hh+":"+min+":00.00" MagRec["measurement_time_zone"]='SAN' if inst=="": if code1[6][0]=='C': instcode='SIO-bubba' if code1[6][0]=='G': instcode='SIO-flo' else: instcode='' if len(code1)>1: MagRec["measurement_positions"]=code1[6][2] else: MagRec["measurement_positions"]=code1[7] # takes care of awkward format with bubba and flo being different if user=="":user=code1[5] if code1[2][-1]=='C': demag="T" if code1[4]=='microT' and float(code1[3])!=0. and "LP-AN-ARM" not in methcode: labfield=float(code1[3])*1e-6 if code1[2]=='mT' and methcode!="LP-IRM": demag="AF" if code1[4]=='microT' and float(code1[3])!=0.: labfield=float(code1[3])*1e-6 if code1[4]=='microT' and labfield!=0. and meas_type!="LT-IRM": phi,theta=0.,-90. if demag=="T": meas_type="LT-T-I" if demag=="AF": meas_type="LT-AF-I" MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) if code1[4]=='' or labfield==0. and meas_type!="LT-IRM": if demag=='T':meas_type="LT-T-Z" if demag=="AF":meas_type="LT-AF-Z" MagRec["treatment_dc_field"]='0' if syn==0: MagRec["er_specimen_name"]=rec[0] MagRec["er_synthetic_name"]="" MagRec["er_site_name"]="" if specnum!=0: MagRec["er_sample_name"]=rec[0][:specnum] else: MagRec["er_sample_name"]=rec[0] if samp_infile and Samps: # if samp_infile was provided AND yielded sample data samp=pmag.get_dictitem(Samps,'er_sample_name',MagRec['er_sample_name'],'T') if len(samp)>0: MagRec["er_location_name"]=samp[0]["er_location_name"] MagRec["er_site_name"]=samp[0]["er_site_name"] else: MagRec['er_location_name']='' MagRec["er_site_name"]='' elif int(samp_con)!=6: site=pmag.parse_site(MagRec['er_sample_name'],samp_con,Z) MagRec["er_site_name"]=site if MagRec['er_site_name']=="": print('No site name found for: ',MagRec['er_specimen_name'],MagRec['er_sample_name']) if MagRec["er_location_name"]=="": print('no location name for: ',MagRec["er_specimen_name"]) else: MagRec["er_specimen_name"]=rec[0] if specnum!=0: MagRec["er_sample_name"]=rec[0][:specnum] else: MagRec["er_sample_name"]=rec[0] MagRec["er_site_name"]="" MagRec["er_synthetic_name"]=MagRec["er_specimen_name"] SynRec["er_synthetic_name"]=MagRec["er_specimen_name"] site=pmag.parse_site(MagRec['er_sample_name'],samp_con,Z) SynRec["synthetic_parent_sample"]=site SynRec["er_citation_names"]="This study" SynRec["synthetic_institution"]=institution SynRec["synthetic_type"]=syntype SynRecs.append(SynRec) if float(rec[1])==0: pass elif demag=="AF": if methcode != "LP-AN-ARM": MagRec["treatment_ac_field"]='%8.3e' %(float(rec[1])*1e-3) # peak field in tesla if meas_type=="LT-AF-Z": MagRec["treatment_dc_field"]='0' else: # AARM experiment if treat[1][0]=='0': meas_type="LT-AF-Z:LP-AN-ARM:" MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(0) if labfield!=0 and methcode!="LP-AN-ARM": print("Warning - inconsistency in mag file with lab field - overriding file with 0") else: meas_type="LT-AF-I:LP-AN-ARM" ipos=int(treat[0])-1 MagRec["treatment_dc_field_phi"]='%7.1f' %(dec[ipos]) MagRec["treatment_dc_field_theta"]='%7.1f'% (inc[ipos]) MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla elif demag=="T" and methcode == "LP-AN-TRM": MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if treat[1][0]=='0': meas_type="LT-T-Z:LP-AN-TRM" MagRec["treatment_dc_field"]='%8.3e'%(0) MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' else: MagRec["treatment_dc_field"]='%8.3e'%(labfield) if treat[1][0]=='7': # alteration check as final measurement meas_type="LT-PTRM-I:LP-AN-TRM" else: meas_type="LT-T-I:LP-AN-TRM" # find the direction of the lab field in two ways: # (1) using the treatment coding (XX.1=+x, XX.2=+y, XX.3=+z, XX.4=-x, XX.5=-y, XX.6=-z) ipos_code=int(treat[1][0])-1 # (2) using the magnetization DEC=float(rec[4]) INC=float(rec[5]) if INC < 45 and INC > -45: if DEC>315 or DEC<45: ipos_guess=0 if DEC>45 and DEC<135: ipos_guess=1 if DEC>135 and DEC<225: ipos_guess=3 if DEC>225 and DEC<315: ipos_guess=4 else: if INC >45: ipos_guess=2 if INC <-45: ipos_guess=5 # prefer the guess over the code ipos=ipos_guess MagRec["treatment_dc_field_phi"]='%7.1f' %(tdec[ipos]) MagRec["treatment_dc_field_theta"]='%7.1f'% (tinc[ipos]) # check it if ipos_guess!=ipos_code and treat[1][0]!='7': print("-E- ERROR: check specimen %s step %s, ATRM measurements, coding does not match the direction of the lab field!"%(rec[0],".".join(list(treat)))) elif demag=="S": # Shaw experiment if treat[1][1]=='0': if int(treat[0])!=0: MagRec["treatment_ac_field"]='%8.3e' % (float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" # first AF else: meas_type="LT-NO" MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' elif treat[1][1]=='1': if int(treat[0])==0: MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(arm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) meas_type="LT-AF-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" elif treat[1][1]=='2': if int(treat[0])==0: MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='%8.3e'%(trm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) MagRec["treatment_temp"]='%8.3e' % (trm_peakT) meas_type="LT-T-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" elif treat[1][1]=='3': if int(treat[0])==0: MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(arm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) meas_type="LT-AF-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" # Cooling rate experient # added by rshaar elif demag=="T" and methcode == "LP-CR-TRM": MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if treat[1][0]=='0': meas_type="LT-T-Z:LP-CR-TRM" MagRec["treatment_dc_field"]='%8.3e'%(0) MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' else: MagRec["treatment_dc_field"]='%8.3e'%(labfield) if treat[1][0]=='7': # alteration check as final measurement meas_type="LT-PTRM-I:LP-CR-TRM" else: meas_type="LT-T-I:LP-CR-TRM" MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta indx=int(treat[1][0])-1 # alteration check matjed as 0.7 in the measurement file if indx==6: cooling_time= cooling_rates_list[-1] else: cooling_time=cooling_rates_list[indx] MagRec["measurement_description"]="cooling_rate"+":"+cooling_time+":"+"K/min" elif demag!='N': if len(treat)==1:treat.append('0') MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if trm==0: # demag=T and not trmaq if treat[1][0]=='0': meas_type="LT-T-Z" else: MagRec["treatment_dc_field"]='%8.3e' % (labfield) # labfield in tesla (convert from microT) MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta if treat[1][0]=='1':meas_type="LT-T-I" # in-field thermal step if treat[1][0]=='2': meas_type="LT-PTRM-I" # pTRM check pTRM=1 if treat[1][0]=='3': MagRec["treatment_dc_field"]='0' # this is a zero field step meas_type="LT-PTRM-MD" # pTRM tail check else: labfield=float(treat[1])*1e-6 MagRec["treatment_dc_field"]='%8.3e' % (labfield) # labfield in tesla (convert from microT) MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta meas_type="LT-T-I:LP-TRM" # trm acquisition experiment MagRec["measurement_csd"]=rec[2] MagRec["measurement_magn_moment"]='%10.3e'% (float(rec[3])*1e-3) # moment in Am^2 (from emu) MagRec["measurement_dec"]=rec[4] MagRec["measurement_inc"]=rec[5] MagRec["magic_instrument_codes"]=instcode MagRec["er_analyst_mail_names"]=user MagRec["er_citation_names"]=citation if "LP-IRM-3D" in methcode : meas_type=methcode #MagRec["magic_method_codes"]=methcode.strip(':') MagRec["magic_method_codes"]=meas_type MagRec["measurement_flag"]='g' MagRec["er_specimen_name"]=rec[0] if 'std' in rec[0]: MagRec["measurement_standard"]='s' else: MagRec["measurement_standard"]='u' MagRec["measurement_number"]='1' #print MagRec['treatment_temp'] MagRecs.append(MagRec) MagOuts=pmag.measurements_methods(MagRecs,noave) pmag.magic_write(meas_file,MagOuts,'magic_measurements') print("results put in ",meas_file) if len(SynRecs)>0: pmag.magic_write(synfile,SynRecs,'er_synthetics') print("synthetics put in ",synfile) return True, meas_file
python
def main(command_line=True, **kwargs): """ NAME sio_magic.py DESCRIPTION converts SIO .mag format files to magic_measurements format files SYNTAX sio_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" -f FILE: specify .mag format input file, required -fsa SAMPFILE : specify er_samples.txt file relating samples, site and locations names,default is none -- values in SAMPFILE will override selections for -loc (location), -spc (designate specimen), and -ncn (sample-site naming convention) -F FILE: specify output file, default is magic_measurements.txt -Fsy: specify er_synthetics file, default is er_sythetics.txt -LP [colon delimited list of protocols, include all that apply] AF: af demag T: thermal including thellier but not trm acquisition S: Shaw method I: IRM (acquisition) I3d: 3D IRM experiment N: NRM only TRM: trm acquisition ANI: anisotropy experiment D: double AF demag G: triple AF demag (GRM protocol) CR: cooling rate experiment. The treatment coding of the measurement file should be: XXX.00,XXX.10, XXX.20 ...XX.70 etc. (XXX.00 is optional) where XXX in the temperature and .10,.20... are running numbers of the cooling rates steps. XXX.00 is optional zerofield baseline. XXX.70 is alteration check. syntax in sio_magic is: -LP CR xxx,yyy,zzz,..... xxx -A where xxx, yyy, zzz...xxx are cooling time in [K/minutes], seperated by comma, ordered at the same order as XXX.10,XXX.20 ...XX.70 if you use a zerofield step then no need to specify the cooling rate for the zerofield It is important to add to the command line the -A option so the measurements will not be averaged. But users need to make sure that there are no duplicate measurements in the file -V [1,2,3] units of IRM field in volts using ASC coil #1,2 or 3 -spc NUM : specify number of characters to designate a specimen, default = 0 -loc LOCNAME : specify location/study name, must have either LOCNAME or SAMPFILE or be a synthetic -syn INST TYPE: sets these specimens as synthetics created at institution INST and of type TYPE -ins INST : specify which demag instrument was used (e.g, SIO-Suzy or SIO-Odette),default is "" -dc B PHI THETA: dc lab field (in micro tesla) and phi,theta, default is none NB: use PHI, THETA = -1 -1 to signal that it changes, i.e. in anisotropy experiment -ac B : peak AF field (in mT) for ARM acquisition, default is none -ncn NCON: specify naming convention: default is #1 below -A: don't average replicate measurements Sample naming convention: [1] XXXXY: where XXXX is an arbitrary length site designation and Y is the single character sample designation. e.g., TG001a is the first sample from site TG001. [default] [2] XXXX-YY: YY sample from site XXXX (XXX, YY of arbitary length) [3] XXXX.YY: YY sample from site XXXX (XXX, YY of arbitary length) [4-Z] XXXX[YYY]: YYY is sample designation with Z characters from site XXX [5] site name same as sample [6] site is entered under a separate column NOT CURRENTLY SUPPORTED [7-Z] [XXXX]YYY: XXXX is site designation with Z characters with sample name XXXXYYYY NB: all others you will have to customize your self or e-mail ltauxe@ucsd.edu for help. [8] synthetic - has no site name [9] ODP naming convention INPUT Best to put separate experiments (all AF, thermal, thellier, trm aquisition, Shaw, etc.) in seperate .mag files (eg. af.mag, thermal.mag, etc.) Format of SIO .mag files: Spec Treat CSD Intensity Declination Inclination [optional metadata string] Spec: specimen name Treat: treatment step XXX T in Centigrade XXX AF in mT for special experiments: Thellier: XXX.0 first zero field step XXX.1 first in field step [XXX.0 and XXX.1 can be done in any order] XXX.2 second in-field step at lower temperature (pTRM check) XXX.3 second zero-field step after infield (pTRM check step) XXX.3 MUST be done in this order [XXX.0, XXX.1 [optional XXX.2] XXX.3] AARM: X.00 baseline step (AF in zero bias field - high peak field) X.1 ARM step (in field step) where X is the step number in the 15 position scheme (see Appendix to Lecture 13 - http://magician.ucsd.edu/Essentials_2) ATRM: X.00 optional baseline X.1 ATRM step (+X) X.2 ATRM step (+Y) X.3 ATRM step (+Z) X.4 ATRM step (-X) X.5 ATRM step (-Y) X.6 ATRM step (-Z) X.7 optional alteration check (+X) TRM: XXX.YYY XXX is temperature step of total TRM YYY is dc field in microtesla Intensity assumed to be total moment in 10^3 Am^2 (emu) Declination: Declination in specimen coordinate system Inclination: Declination in specimen coordinate system Optional metatdata string: mm/dd/yy;hh:mm;[dC,mT];xx.xx;UNITS;USER;INST;NMEAS hh in 24 hours. dC or mT units of treatment XXX (see Treat above) for thermal or AF respectively xx.xxx DC field UNITS of DC field (microT, mT) INST: instrument code, number of axes, number of positions (e.g., G34 is 2G, three axes, measured in four positions) NMEAS: number of measurements in a single position (1,3,200...) """ # initialize some stuff mag_file = None codelist = None infile_type="mag" noave=0 methcode,inst="LP-NO","" phi,theta,peakfield,labfield=0,0,0,0 pTRM,MD,samp_con,Z=0,0,'1',1 dec=[315,225,180,135,45,90,270,270,270,90,180,180,0,0,0] inc=[0,0,0,0,0,-45,-45,0,45,45,45,-45,-90,-45,45] tdec=[0,90,0,180,270,0,0,90,0] tinc=[0,0,90,0,0,-90,0,0,90] missing=1 demag="N" er_location_name="" citation='This study' args=sys.argv fmt='old' syn=0 synfile='er_synthetics.txt' samp_infile,Samps='',[] trm=0 irm=0 specnum=0 coil="" mag_file="" # # get command line arguments # meas_file="magic_measurements.txt" user="" if not command_line: user = kwargs.get('user', '') meas_file = kwargs.get('meas_file', '') syn_file = kwargs.get('syn_file', '') mag_file = kwargs.get('mag_file', '') labfield = kwargs.get('labfield', '') if labfield: labfield = float(labfield) *1e-6 else: labfield = 0 phi = kwargs.get('phi', 0) if phi: phi = float(phi) else: phi = 0 theta = kwargs.get('theta', 0) if theta: theta=float(theta) else: theta = 0 peakfield = kwargs.get('peakfield', 0) if peakfield: peakfield=float(peakfield) *1e-3 else: peakfield = 0 specnum = kwargs.get('specnum', 0) samp_con = kwargs.get('samp_con', '1') er_location_name = kwargs.get('er_location_name', '') samp_infile = kwargs.get('samp_infile', '') syn = kwargs.get('syn', 0) institution = kwargs.get('institution', '') syntype = kwargs.get('syntype', '') inst = kwargs.get('inst', '') noave = kwargs.get('noave', 0) codelist = kwargs.get('codelist', '') coil = kwargs.get('coil', '') cooling_rates = kwargs.get('cooling_rates', '') if command_line: if "-h" in args: print(main.__doc__) return False if "-usr" in args: ind=args.index("-usr") user=args[ind+1] if '-F' in args: ind=args.index("-F") meas_file=args[ind+1] if '-Fsy' in args: ind=args.index("-Fsy") synfile=args[ind+1] if '-f' in args: ind=args.index("-f") mag_file=args[ind+1] if "-dc" in args: ind=args.index("-dc") labfield=float(args[ind+1])*1e-6 phi=float(args[ind+2]) theta=float(args[ind+3]) if "-ac" in args: ind=args.index("-ac") peakfield=float(args[ind+1])*1e-3 if "-spc" in args: ind=args.index("-spc") specnum=int(args[ind+1]) if "-loc" in args: ind=args.index("-loc") er_location_name=args[ind+1] if "-fsa" in args: ind=args.index("-fsa") samp_infile = args[ind+1] if '-syn' in args: syn=1 ind=args.index("-syn") institution=args[ind+1] syntype=args[ind+2] if '-fsy' in args: ind=args.index("-fsy") synfile=args[ind+1] if "-ins" in args: ind=args.index("-ins") inst=args[ind+1] if "-A" in args: noave=1 if "-ncn" in args: ind=args.index("-ncn") samp_con=sys.argv[ind+1] if '-LP' in args: ind=args.index("-LP") codelist=args[ind+1] if "-V" in args: ind=args.index("-V") coil=args[ind+1] # make sure all initial values are correctly set up (whether they come from the command line or a GUI) if samp_infile: Samps, file_type = pmag.magic_read(samp_infile) if coil: coil = str(coil) methcode="LP-IRM" irmunits = "V" if coil not in ["1","2","3"]: print(main.__doc__) print('not a valid coil specification') return False, '{} is not a valid coil specification'.format(coil) if mag_file: try: #with open(mag_file,'r') as finput: # lines = finput.readlines() lines=pmag.open_file(mag_file) except: print("bad mag file name") return False, "bad mag file name" if not mag_file: print(main.__doc__) print("mag_file field is required option") return False, "mag_file field is required option" if specnum!=0: specnum=-specnum #print 'samp_con:', samp_con if samp_con: if "4" == samp_con[0]: if "-" not in samp_con: print("naming convention option [4] must be in form 4-Z where Z is an integer") print('---------------') return False, "naming convention option [4] must be in form 4-Z where Z is an integer" else: Z=samp_con.split("-")[1] samp_con="4" if "7" == samp_con[0]: if "-" not in samp_con: print("option [7] must be in form 7-Z where Z is an integer") return False, "option [7] must be in form 7-Z where Z is an integer" else: Z=samp_con.split("-")[1] samp_con="7" if codelist: codes=codelist.split(':') if "AF" in codes: demag='AF' if'-dc' not in args: methcode="LT-AF-Z" if'-dc' in args: methcode="LT-AF-I" if "T" in codes: demag="T" if '-dc' not in args: methcode="LT-T-Z" if '-dc' in args: methcode="LT-T-I" if "I" in codes: methcode="LP-IRM" irmunits="mT" if "I3d" in codes: methcode="LT-T-Z:LP-IRM-3D" if "S" in codes: demag="S" methcode="LP-PI-TRM:LP-PI-ALT-AFARM" trm_labfield=labfield ans=input("DC lab field for ARM step: [50uT] ") if ans=="": arm_labfield=50e-6 else: arm_labfield=float(ans)*1e-6 ans=input("temperature for total trm step: [600 C] ") if ans=="": trm_peakT=600+273 # convert to kelvin else: trm_peakT=float(ans)+273 # convert to kelvin if "G" in codes: methcode="LT-AF-G" if "D" in codes: methcode="LT-AF-D" if "TRM" in codes: demag="T" trm=1 if "CR" in codes: demag="T" cooling_rate_experiment=1 if command_line: ind=args.index("CR") cooling_rates=args[ind+1] cooling_rates_list=cooling_rates.split(',') else: cooling_rates_list=str(cooling_rates).split(',') if demag=="T" and "ANI" in codes: methcode="LP-AN-TRM" if demag=="T" and "CR" in codes: methcode="LP-CR-TRM" if demag=="AF" and "ANI" in codes: methcode="LP-AN-ARM" if labfield==0: labfield=50e-6 if peakfield==0: peakfield=.180 SynRecs,MagRecs=[],[] version_num=pmag.get_version() ################################## if 1: #if infile_type=="SIO format": for line in lines: instcode="" if len(line)>2: SynRec={} MagRec={} MagRec['er_location_name']=er_location_name MagRec['magic_software_packages']=version_num MagRec["treatment_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["measurement_temp"]='%8.3e' % (273) # room temp in kelvin MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' meas_type="LT-NO" rec=line.split() if rec[1]==".00":rec[1]="0.00" treat=rec[1].split('.') if methcode=="LP-IRM": if irmunits=='mT': labfield=float(treat[0])*1e-3 else: labfield=pmag.getfield(irmunits,coil,treat[0]) if rec[1][0]!="-": phi,theta=0.,90. else: phi,theta=0.,-90. meas_type="LT-IRM" MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) if len(rec)>6: code1=rec[6].split(';') # break e.g., 10/15/02;7:45 indo date and time if len(code1)==2: # old format with AM/PM missing=0 code2=code1[0].split('/') # break date into mon/day/year code3=rec[7].split(';') # break e.g., AM;C34;200 into time;instr/axes/measuring pos;number of measurements yy=int(code2[2]) if yy <90: yyyy=str(2000+yy) else: yyyy=str(1900+yy) mm=int(code2[0]) if mm<10: mm="0"+str(mm) else: mm=str(mm) dd=int(code2[1]) if dd<10: dd="0"+str(dd) else: dd=str(dd) time=code1[1].split(':') hh=int(time[0]) if code3[0]=="PM":hh=hh+12 if hh<10: hh="0"+str(hh) else: hh=str(hh) min=int(time[1]) if min<10: min= "0"+str(min) else: min=str(min) MagRec["measurement_date"]=yyyy+":"+mm+":"+dd+":"+hh+":"+min+":00.00" MagRec["measurement_time_zone"]='SAN' if inst=="": if code3[1][0]=='C':instcode='SIO-bubba' if code3[1][0]=='G':instcode='SIO-flo' else: instcode='' MagRec["measurement_positions"]=code3[1][2] elif len(code1)>2: # newest format (cryo7 or later) if "LP-AN-ARM" not in methcode:labfield=0 fmt='new' date=code1[0].split('/') # break date into mon/day/year yy=int(date[2]) if yy <90: yyyy=str(2000+yy) else: yyyy=str(1900+yy) mm=int(date[0]) if mm<10: mm="0"+str(mm) else: mm=str(mm) dd=int(date[1]) if dd<10: dd="0"+str(dd) else: dd=str(dd) time=code1[1].split(':') hh=int(time[0]) if hh<10: hh="0"+str(hh) else: hh=str(hh) min=int(time[1]) if min<10: min= "0"+str(min) else: min=str(min) MagRec["measurement_date"]=yyyy+":"+mm+":"+dd+":"+hh+":"+min+":00.00" MagRec["measurement_time_zone"]='SAN' if inst=="": if code1[6][0]=='C': instcode='SIO-bubba' if code1[6][0]=='G': instcode='SIO-flo' else: instcode='' if len(code1)>1: MagRec["measurement_positions"]=code1[6][2] else: MagRec["measurement_positions"]=code1[7] # takes care of awkward format with bubba and flo being different if user=="":user=code1[5] if code1[2][-1]=='C': demag="T" if code1[4]=='microT' and float(code1[3])!=0. and "LP-AN-ARM" not in methcode: labfield=float(code1[3])*1e-6 if code1[2]=='mT' and methcode!="LP-IRM": demag="AF" if code1[4]=='microT' and float(code1[3])!=0.: labfield=float(code1[3])*1e-6 if code1[4]=='microT' and labfield!=0. and meas_type!="LT-IRM": phi,theta=0.,-90. if demag=="T": meas_type="LT-T-I" if demag=="AF": meas_type="LT-AF-I" MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) if code1[4]=='' or labfield==0. and meas_type!="LT-IRM": if demag=='T':meas_type="LT-T-Z" if demag=="AF":meas_type="LT-AF-Z" MagRec["treatment_dc_field"]='0' if syn==0: MagRec["er_specimen_name"]=rec[0] MagRec["er_synthetic_name"]="" MagRec["er_site_name"]="" if specnum!=0: MagRec["er_sample_name"]=rec[0][:specnum] else: MagRec["er_sample_name"]=rec[0] if samp_infile and Samps: # if samp_infile was provided AND yielded sample data samp=pmag.get_dictitem(Samps,'er_sample_name',MagRec['er_sample_name'],'T') if len(samp)>0: MagRec["er_location_name"]=samp[0]["er_location_name"] MagRec["er_site_name"]=samp[0]["er_site_name"] else: MagRec['er_location_name']='' MagRec["er_site_name"]='' elif int(samp_con)!=6: site=pmag.parse_site(MagRec['er_sample_name'],samp_con,Z) MagRec["er_site_name"]=site if MagRec['er_site_name']=="": print('No site name found for: ',MagRec['er_specimen_name'],MagRec['er_sample_name']) if MagRec["er_location_name"]=="": print('no location name for: ',MagRec["er_specimen_name"]) else: MagRec["er_specimen_name"]=rec[0] if specnum!=0: MagRec["er_sample_name"]=rec[0][:specnum] else: MagRec["er_sample_name"]=rec[0] MagRec["er_site_name"]="" MagRec["er_synthetic_name"]=MagRec["er_specimen_name"] SynRec["er_synthetic_name"]=MagRec["er_specimen_name"] site=pmag.parse_site(MagRec['er_sample_name'],samp_con,Z) SynRec["synthetic_parent_sample"]=site SynRec["er_citation_names"]="This study" SynRec["synthetic_institution"]=institution SynRec["synthetic_type"]=syntype SynRecs.append(SynRec) if float(rec[1])==0: pass elif demag=="AF": if methcode != "LP-AN-ARM": MagRec["treatment_ac_field"]='%8.3e' %(float(rec[1])*1e-3) # peak field in tesla if meas_type=="LT-AF-Z": MagRec["treatment_dc_field"]='0' else: # AARM experiment if treat[1][0]=='0': meas_type="LT-AF-Z:LP-AN-ARM:" MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(0) if labfield!=0 and methcode!="LP-AN-ARM": print("Warning - inconsistency in mag file with lab field - overriding file with 0") else: meas_type="LT-AF-I:LP-AN-ARM" ipos=int(treat[0])-1 MagRec["treatment_dc_field_phi"]='%7.1f' %(dec[ipos]) MagRec["treatment_dc_field_theta"]='%7.1f'% (inc[ipos]) MagRec["treatment_dc_field"]='%8.3e'%(labfield) MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla elif demag=="T" and methcode == "LP-AN-TRM": MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if treat[1][0]=='0': meas_type="LT-T-Z:LP-AN-TRM" MagRec["treatment_dc_field"]='%8.3e'%(0) MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' else: MagRec["treatment_dc_field"]='%8.3e'%(labfield) if treat[1][0]=='7': # alteration check as final measurement meas_type="LT-PTRM-I:LP-AN-TRM" else: meas_type="LT-T-I:LP-AN-TRM" # find the direction of the lab field in two ways: # (1) using the treatment coding (XX.1=+x, XX.2=+y, XX.3=+z, XX.4=-x, XX.5=-y, XX.6=-z) ipos_code=int(treat[1][0])-1 # (2) using the magnetization DEC=float(rec[4]) INC=float(rec[5]) if INC < 45 and INC > -45: if DEC>315 or DEC<45: ipos_guess=0 if DEC>45 and DEC<135: ipos_guess=1 if DEC>135 and DEC<225: ipos_guess=3 if DEC>225 and DEC<315: ipos_guess=4 else: if INC >45: ipos_guess=2 if INC <-45: ipos_guess=5 # prefer the guess over the code ipos=ipos_guess MagRec["treatment_dc_field_phi"]='%7.1f' %(tdec[ipos]) MagRec["treatment_dc_field_theta"]='%7.1f'% (tinc[ipos]) # check it if ipos_guess!=ipos_code and treat[1][0]!='7': print("-E- ERROR: check specimen %s step %s, ATRM measurements, coding does not match the direction of the lab field!"%(rec[0],".".join(list(treat)))) elif demag=="S": # Shaw experiment if treat[1][1]=='0': if int(treat[0])!=0: MagRec["treatment_ac_field"]='%8.3e' % (float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" # first AF else: meas_type="LT-NO" MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='0' elif treat[1][1]=='1': if int(treat[0])==0: MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(arm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) meas_type="LT-AF-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" elif treat[1][1]=='2': if int(treat[0])==0: MagRec["treatment_ac_field"]='0' MagRec["treatment_dc_field"]='%8.3e'%(trm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) MagRec["treatment_temp"]='%8.3e' % (trm_peakT) meas_type="LT-T-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" elif treat[1][1]=='3': if int(treat[0])==0: MagRec["treatment_ac_field"]='%8.3e' %(peakfield) # peak field in tesla MagRec["treatment_dc_field"]='%8.3e'%(arm_labfield) MagRec["treatment_dc_field_phi"]='%7.1f'%(phi) MagRec["treatment_dc_field_theta"]='%7.1f'%(theta) meas_type="LT-AF-I" else: MagRec["treatment_ac_field"]='%8.3e' % ( float(treat[0])*1e-3) # AF field in tesla MagRec["treatment_dc_field"]='0' meas_type="LT-AF-Z" # Cooling rate experient # added by rshaar elif demag=="T" and methcode == "LP-CR-TRM": MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if treat[1][0]=='0': meas_type="LT-T-Z:LP-CR-TRM" MagRec["treatment_dc_field"]='%8.3e'%(0) MagRec["treatment_dc_field_phi"]='0' MagRec["treatment_dc_field_theta"]='0' else: MagRec["treatment_dc_field"]='%8.3e'%(labfield) if treat[1][0]=='7': # alteration check as final measurement meas_type="LT-PTRM-I:LP-CR-TRM" else: meas_type="LT-T-I:LP-CR-TRM" MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta indx=int(treat[1][0])-1 # alteration check matjed as 0.7 in the measurement file if indx==6: cooling_time= cooling_rates_list[-1] else: cooling_time=cooling_rates_list[indx] MagRec["measurement_description"]="cooling_rate"+":"+cooling_time+":"+"K/min" elif demag!='N': if len(treat)==1:treat.append('0') MagRec["treatment_temp"]='%8.3e' % (float(treat[0])+273.) # temp in kelvin if trm==0: # demag=T and not trmaq if treat[1][0]=='0': meas_type="LT-T-Z" else: MagRec["treatment_dc_field"]='%8.3e' % (labfield) # labfield in tesla (convert from microT) MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta if treat[1][0]=='1':meas_type="LT-T-I" # in-field thermal step if treat[1][0]=='2': meas_type="LT-PTRM-I" # pTRM check pTRM=1 if treat[1][0]=='3': MagRec["treatment_dc_field"]='0' # this is a zero field step meas_type="LT-PTRM-MD" # pTRM tail check else: labfield=float(treat[1])*1e-6 MagRec["treatment_dc_field"]='%8.3e' % (labfield) # labfield in tesla (convert from microT) MagRec["treatment_dc_field_phi"]='%7.1f' % (phi) # labfield phi MagRec["treatment_dc_field_theta"]='%7.1f' % (theta) # labfield theta meas_type="LT-T-I:LP-TRM" # trm acquisition experiment MagRec["measurement_csd"]=rec[2] MagRec["measurement_magn_moment"]='%10.3e'% (float(rec[3])*1e-3) # moment in Am^2 (from emu) MagRec["measurement_dec"]=rec[4] MagRec["measurement_inc"]=rec[5] MagRec["magic_instrument_codes"]=instcode MagRec["er_analyst_mail_names"]=user MagRec["er_citation_names"]=citation if "LP-IRM-3D" in methcode : meas_type=methcode #MagRec["magic_method_codes"]=methcode.strip(':') MagRec["magic_method_codes"]=meas_type MagRec["measurement_flag"]='g' MagRec["er_specimen_name"]=rec[0] if 'std' in rec[0]: MagRec["measurement_standard"]='s' else: MagRec["measurement_standard"]='u' MagRec["measurement_number"]='1' #print MagRec['treatment_temp'] MagRecs.append(MagRec) MagOuts=pmag.measurements_methods(MagRecs,noave) pmag.magic_write(meas_file,MagOuts,'magic_measurements') print("results put in ",meas_file) if len(SynRecs)>0: pmag.magic_write(synfile,SynRecs,'er_synthetics') print("synthetics put in ",synfile) return True, meas_file
[ "def", "main", "(", "command_line", "=", "True", ",", "*", "*", "kwargs", ")", ":", "# initialize some stuff", "mag_file", "=", "None", "codelist", "=", "None", "infile_type", "=", "\"mag\"", "noave", "=", "0", "methcode", ",", "inst", "=", "\"LP-NO\"", ",", "\"\"", "phi", ",", "theta", ",", "peakfield", ",", "labfield", "=", "0", ",", "0", ",", "0", ",", "0", "pTRM", ",", "MD", ",", "samp_con", ",", "Z", "=", "0", ",", "0", ",", "'1'", ",", "1", "dec", "=", "[", "315", ",", "225", ",", "180", ",", "135", ",", "45", ",", "90", ",", "270", ",", "270", ",", "270", ",", "90", ",", "180", ",", "180", ",", "0", ",", "0", ",", "0", "]", "inc", "=", "[", "0", ",", "0", ",", "0", ",", "0", ",", "0", ",", "-", "45", ",", "-", "45", ",", "0", ",", "45", ",", "45", ",", "45", ",", "-", "45", ",", "-", "90", ",", "-", "45", ",", "45", "]", "tdec", "=", "[", "0", ",", "90", ",", "0", ",", "180", ",", "270", ",", "0", ",", "0", ",", "90", ",", "0", "]", "tinc", "=", "[", "0", ",", "0", ",", "90", ",", "0", ",", "0", ",", "-", "90", ",", "0", ",", "0", ",", "90", "]", "missing", "=", "1", "demag", "=", "\"N\"", "er_location_name", "=", "\"\"", "citation", "=", "'This study'", "args", "=", "sys", ".", "argv", "fmt", "=", "'old'", "syn", "=", "0", "synfile", "=", "'er_synthetics.txt'", "samp_infile", ",", "Samps", "=", "''", ",", "[", "]", "trm", "=", "0", "irm", "=", "0", "specnum", "=", "0", "coil", "=", "\"\"", "mag_file", "=", "\"\"", "#", "# get command line arguments", "#", "meas_file", "=", "\"magic_measurements.txt\"", "user", "=", "\"\"", "if", "not", "command_line", ":", "user", "=", "kwargs", ".", "get", "(", "'user'", ",", "''", ")", "meas_file", "=", "kwargs", ".", "get", "(", "'meas_file'", ",", "''", ")", "syn_file", "=", "kwargs", ".", "get", "(", "'syn_file'", ",", "''", ")", "mag_file", "=", "kwargs", ".", "get", "(", "'mag_file'", ",", "''", ")", "labfield", "=", "kwargs", ".", "get", "(", "'labfield'", ",", "''", ")", "if", "labfield", ":", "labfield", "=", "float", "(", "labfield", ")", "*", "1e-6", "else", ":", "labfield", "=", "0", "phi", "=", "kwargs", ".", "get", "(", "'phi'", ",", "0", ")", "if", "phi", ":", "phi", "=", "float", "(", "phi", ")", "else", ":", "phi", "=", "0", "theta", "=", "kwargs", ".", "get", "(", "'theta'", ",", "0", ")", "if", "theta", ":", "theta", "=", "float", "(", "theta", ")", "else", ":", "theta", "=", "0", "peakfield", "=", "kwargs", ".", "get", "(", "'peakfield'", ",", "0", ")", "if", "peakfield", ":", "peakfield", "=", "float", "(", "peakfield", ")", "*", "1e-3", "else", ":", "peakfield", "=", "0", "specnum", "=", "kwargs", ".", "get", "(", "'specnum'", ",", "0", ")", "samp_con", "=", "kwargs", ".", "get", "(", "'samp_con'", ",", "'1'", ")", "er_location_name", "=", "kwargs", ".", "get", "(", "'er_location_name'", ",", "''", ")", "samp_infile", "=", "kwargs", ".", "get", "(", "'samp_infile'", ",", "''", ")", "syn", "=", "kwargs", ".", "get", "(", "'syn'", ",", "0", ")", "institution", "=", "kwargs", ".", "get", "(", "'institution'", ",", "''", ")", "syntype", "=", "kwargs", ".", "get", "(", "'syntype'", ",", "''", ")", "inst", "=", "kwargs", ".", "get", "(", "'inst'", ",", "''", ")", "noave", "=", "kwargs", ".", "get", "(", "'noave'", ",", "0", ")", "codelist", "=", "kwargs", ".", "get", "(", "'codelist'", ",", "''", ")", "coil", "=", "kwargs", ".", "get", "(", "'coil'", ",", "''", ")", "cooling_rates", "=", "kwargs", ".", "get", "(", "'cooling_rates'", ",", "''", ")", "if", "command_line", ":", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "return", "False", "if", "\"-usr\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-usr\"", ")", "user", "=", "args", "[", "ind", "+", "1", "]", "if", "'-F'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-F\"", ")", "meas_file", "=", "args", "[", "ind", "+", "1", "]", "if", "'-Fsy'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-Fsy\"", ")", "synfile", "=", "args", "[", "ind", "+", "1", "]", "if", "'-f'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-f\"", ")", "mag_file", "=", "args", "[", "ind", "+", "1", "]", "if", "\"-dc\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-dc\"", ")", "labfield", "=", "float", "(", "args", "[", "ind", "+", "1", "]", ")", "*", "1e-6", "phi", "=", "float", "(", "args", "[", "ind", "+", "2", "]", ")", "theta", "=", "float", "(", "args", "[", "ind", "+", "3", "]", ")", "if", "\"-ac\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-ac\"", ")", "peakfield", "=", "float", "(", "args", "[", "ind", "+", "1", "]", ")", "*", "1e-3", "if", "\"-spc\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-spc\"", ")", "specnum", "=", "int", "(", "args", "[", "ind", "+", "1", "]", ")", "if", "\"-loc\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-loc\"", ")", "er_location_name", "=", "args", "[", "ind", "+", "1", "]", "if", "\"-fsa\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-fsa\"", ")", "samp_infile", "=", "args", "[", "ind", "+", "1", "]", "if", "'-syn'", "in", "args", ":", "syn", "=", "1", "ind", "=", "args", ".", "index", "(", "\"-syn\"", ")", "institution", "=", "args", "[", "ind", "+", "1", "]", "syntype", "=", "args", "[", "ind", "+", "2", "]", "if", "'-fsy'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-fsy\"", ")", "synfile", "=", "args", "[", "ind", "+", "1", "]", "if", "\"-ins\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-ins\"", ")", "inst", "=", "args", "[", "ind", "+", "1", "]", "if", "\"-A\"", "in", "args", ":", "noave", "=", "1", "if", "\"-ncn\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-ncn\"", ")", "samp_con", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-LP'", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-LP\"", ")", "codelist", "=", "args", "[", "ind", "+", "1", "]", "if", "\"-V\"", "in", "args", ":", "ind", "=", "args", ".", "index", "(", "\"-V\"", ")", "coil", "=", "args", "[", "ind", "+", "1", "]", "# make sure all initial values are correctly set up (whether they come from the command line or a GUI)", "if", "samp_infile", ":", "Samps", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "samp_infile", ")", "if", "coil", ":", "coil", "=", "str", "(", "coil", ")", "methcode", "=", "\"LP-IRM\"", "irmunits", "=", "\"V\"", "if", "coil", "not", "in", "[", "\"1\"", ",", "\"2\"", ",", "\"3\"", "]", ":", "print", "(", "main", ".", "__doc__", ")", "print", "(", "'not a valid coil specification'", ")", "return", "False", ",", "'{} is not a valid coil specification'", ".", "format", "(", "coil", ")", "if", "mag_file", ":", "try", ":", "#with open(mag_file,'r') as finput:", "# lines = finput.readlines()", "lines", "=", "pmag", ".", "open_file", "(", "mag_file", ")", "except", ":", "print", "(", "\"bad mag file name\"", ")", "return", "False", ",", "\"bad mag file name\"", "if", "not", "mag_file", ":", "print", "(", "main", ".", "__doc__", ")", "print", "(", "\"mag_file field is required option\"", ")", "return", "False", ",", "\"mag_file field is required option\"", "if", "specnum", "!=", "0", ":", "specnum", "=", "-", "specnum", "#print 'samp_con:', samp_con", "if", "samp_con", ":", "if", "\"4\"", "==", "samp_con", "[", "0", "]", ":", "if", "\"-\"", "not", "in", "samp_con", ":", "print", "(", "\"naming convention option [4] must be in form 4-Z where Z is an integer\"", ")", "print", "(", "'---------------'", ")", "return", "False", ",", "\"naming convention option [4] must be in form 4-Z where Z is an integer\"", "else", ":", "Z", "=", "samp_con", ".", "split", "(", "\"-\"", ")", "[", "1", "]", "samp_con", "=", "\"4\"", "if", "\"7\"", "==", "samp_con", "[", "0", "]", ":", "if", "\"-\"", "not", "in", "samp_con", ":", "print", "(", "\"option [7] must be in form 7-Z where Z is an integer\"", ")", "return", "False", ",", "\"option [7] must be in form 7-Z where Z is an integer\"", "else", ":", "Z", "=", "samp_con", ".", "split", "(", "\"-\"", ")", "[", "1", "]", "samp_con", "=", "\"7\"", "if", "codelist", ":", "codes", "=", "codelist", ".", "split", "(", "':'", ")", "if", "\"AF\"", "in", "codes", ":", "demag", "=", "'AF'", "if", "'-dc'", "not", "in", "args", ":", "methcode", "=", "\"LT-AF-Z\"", "if", "'-dc'", "in", "args", ":", "methcode", "=", "\"LT-AF-I\"", "if", "\"T\"", "in", "codes", ":", "demag", "=", "\"T\"", "if", "'-dc'", "not", "in", "args", ":", "methcode", "=", "\"LT-T-Z\"", "if", "'-dc'", "in", "args", ":", "methcode", "=", "\"LT-T-I\"", "if", "\"I\"", "in", "codes", ":", "methcode", "=", "\"LP-IRM\"", "irmunits", "=", "\"mT\"", "if", "\"I3d\"", "in", "codes", ":", "methcode", "=", "\"LT-T-Z:LP-IRM-3D\"", "if", "\"S\"", "in", "codes", ":", "demag", "=", "\"S\"", "methcode", "=", "\"LP-PI-TRM:LP-PI-ALT-AFARM\"", "trm_labfield", "=", "labfield", "ans", "=", "input", "(", "\"DC lab field for ARM step: [50uT] \"", ")", "if", "ans", "==", "\"\"", ":", "arm_labfield", "=", "50e-6", "else", ":", "arm_labfield", "=", "float", "(", "ans", ")", "*", "1e-6", "ans", "=", "input", "(", "\"temperature for total trm step: [600 C] \"", ")", "if", "ans", "==", "\"\"", ":", "trm_peakT", "=", "600", "+", "273", "# convert to kelvin", "else", ":", "trm_peakT", "=", "float", "(", "ans", ")", "+", "273", "# convert to kelvin", "if", "\"G\"", "in", "codes", ":", "methcode", "=", "\"LT-AF-G\"", "if", "\"D\"", "in", "codes", ":", "methcode", "=", "\"LT-AF-D\"", "if", "\"TRM\"", "in", "codes", ":", "demag", "=", "\"T\"", "trm", "=", "1", "if", "\"CR\"", "in", "codes", ":", "demag", "=", "\"T\"", "cooling_rate_experiment", "=", "1", "if", "command_line", ":", "ind", "=", "args", ".", "index", "(", "\"CR\"", ")", "cooling_rates", "=", "args", "[", "ind", "+", "1", "]", "cooling_rates_list", "=", "cooling_rates", ".", "split", "(", "','", ")", "else", ":", "cooling_rates_list", "=", "str", "(", "cooling_rates", ")", ".", "split", "(", "','", ")", "if", "demag", "==", "\"T\"", "and", "\"ANI\"", "in", "codes", ":", "methcode", "=", "\"LP-AN-TRM\"", "if", "demag", "==", "\"T\"", "and", "\"CR\"", "in", "codes", ":", "methcode", "=", "\"LP-CR-TRM\"", "if", "demag", "==", "\"AF\"", "and", "\"ANI\"", "in", "codes", ":", "methcode", "=", "\"LP-AN-ARM\"", "if", "labfield", "==", "0", ":", "labfield", "=", "50e-6", "if", "peakfield", "==", "0", ":", "peakfield", "=", ".180", "SynRecs", ",", "MagRecs", "=", "[", "]", ",", "[", "]", "version_num", "=", "pmag", ".", "get_version", "(", ")", "##################################", "if", "1", ":", "#if infile_type==\"SIO format\":", "for", "line", "in", "lines", ":", "instcode", "=", "\"\"", "if", "len", "(", "line", ")", ">", "2", ":", "SynRec", "=", "{", "}", "MagRec", "=", "{", "}", "MagRec", "[", "'er_location_name'", "]", "=", "er_location_name", "MagRec", "[", "'magic_software_packages'", "]", "=", "version_num", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "273", ")", "# room temp in kelvin", "MagRec", "[", "\"measurement_temp\"", "]", "=", "'%8.3e'", "%", "(", "273", ")", "# room temp in kelvin", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'0'", "meas_type", "=", "\"LT-NO\"", "rec", "=", "line", ".", "split", "(", ")", "if", "rec", "[", "1", "]", "==", "\".00\"", ":", "rec", "[", "1", "]", "=", "\"0.00\"", "treat", "=", "rec", "[", "1", "]", ".", "split", "(", "'.'", ")", "if", "methcode", "==", "\"LP-IRM\"", ":", "if", "irmunits", "==", "'mT'", ":", "labfield", "=", "float", "(", "treat", "[", "0", "]", ")", "*", "1e-3", "else", ":", "labfield", "=", "pmag", ".", "getfield", "(", "irmunits", ",", "coil", ",", "treat", "[", "0", "]", ")", "if", "rec", "[", "1", "]", "[", "0", "]", "!=", "\"-\"", ":", "phi", ",", "theta", "=", "0.", ",", "90.", "else", ":", "phi", ",", "theta", "=", "0.", ",", "-", "90.", "meas_type", "=", "\"LT-IRM\"", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "if", "len", "(", "rec", ")", ">", "6", ":", "code1", "=", "rec", "[", "6", "]", ".", "split", "(", "';'", ")", "# break e.g., 10/15/02;7:45 indo date and time", "if", "len", "(", "code1", ")", "==", "2", ":", "# old format with AM/PM", "missing", "=", "0", "code2", "=", "code1", "[", "0", "]", ".", "split", "(", "'/'", ")", "# break date into mon/day/year", "code3", "=", "rec", "[", "7", "]", ".", "split", "(", "';'", ")", "# break e.g., AM;C34;200 into time;instr/axes/measuring pos;number of measurements", "yy", "=", "int", "(", "code2", "[", "2", "]", ")", "if", "yy", "<", "90", ":", "yyyy", "=", "str", "(", "2000", "+", "yy", ")", "else", ":", "yyyy", "=", "str", "(", "1900", "+", "yy", ")", "mm", "=", "int", "(", "code2", "[", "0", "]", ")", "if", "mm", "<", "10", ":", "mm", "=", "\"0\"", "+", "str", "(", "mm", ")", "else", ":", "mm", "=", "str", "(", "mm", ")", "dd", "=", "int", "(", "code2", "[", "1", "]", ")", "if", "dd", "<", "10", ":", "dd", "=", "\"0\"", "+", "str", "(", "dd", ")", "else", ":", "dd", "=", "str", "(", "dd", ")", "time", "=", "code1", "[", "1", "]", ".", "split", "(", "':'", ")", "hh", "=", "int", "(", "time", "[", "0", "]", ")", "if", "code3", "[", "0", "]", "==", "\"PM\"", ":", "hh", "=", "hh", "+", "12", "if", "hh", "<", "10", ":", "hh", "=", "\"0\"", "+", "str", "(", "hh", ")", "else", ":", "hh", "=", "str", "(", "hh", ")", "min", "=", "int", "(", "time", "[", "1", "]", ")", "if", "min", "<", "10", ":", "min", "=", "\"0\"", "+", "str", "(", "min", ")", "else", ":", "min", "=", "str", "(", "min", ")", "MagRec", "[", "\"measurement_date\"", "]", "=", "yyyy", "+", "\":\"", "+", "mm", "+", "\":\"", "+", "dd", "+", "\":\"", "+", "hh", "+", "\":\"", "+", "min", "+", "\":00.00\"", "MagRec", "[", "\"measurement_time_zone\"", "]", "=", "'SAN'", "if", "inst", "==", "\"\"", ":", "if", "code3", "[", "1", "]", "[", "0", "]", "==", "'C'", ":", "instcode", "=", "'SIO-bubba'", "if", "code3", "[", "1", "]", "[", "0", "]", "==", "'G'", ":", "instcode", "=", "'SIO-flo'", "else", ":", "instcode", "=", "''", "MagRec", "[", "\"measurement_positions\"", "]", "=", "code3", "[", "1", "]", "[", "2", "]", "elif", "len", "(", "code1", ")", ">", "2", ":", "# newest format (cryo7 or later)", "if", "\"LP-AN-ARM\"", "not", "in", "methcode", ":", "labfield", "=", "0", "fmt", "=", "'new'", "date", "=", "code1", "[", "0", "]", ".", "split", "(", "'/'", ")", "# break date into mon/day/year", "yy", "=", "int", "(", "date", "[", "2", "]", ")", "if", "yy", "<", "90", ":", "yyyy", "=", "str", "(", "2000", "+", "yy", ")", "else", ":", "yyyy", "=", "str", "(", "1900", "+", "yy", ")", "mm", "=", "int", "(", "date", "[", "0", "]", ")", "if", "mm", "<", "10", ":", "mm", "=", "\"0\"", "+", "str", "(", "mm", ")", "else", ":", "mm", "=", "str", "(", "mm", ")", "dd", "=", "int", "(", "date", "[", "1", "]", ")", "if", "dd", "<", "10", ":", "dd", "=", "\"0\"", "+", "str", "(", "dd", ")", "else", ":", "dd", "=", "str", "(", "dd", ")", "time", "=", "code1", "[", "1", "]", ".", "split", "(", "':'", ")", "hh", "=", "int", "(", "time", "[", "0", "]", ")", "if", "hh", "<", "10", ":", "hh", "=", "\"0\"", "+", "str", "(", "hh", ")", "else", ":", "hh", "=", "str", "(", "hh", ")", "min", "=", "int", "(", "time", "[", "1", "]", ")", "if", "min", "<", "10", ":", "min", "=", "\"0\"", "+", "str", "(", "min", ")", "else", ":", "min", "=", "str", "(", "min", ")", "MagRec", "[", "\"measurement_date\"", "]", "=", "yyyy", "+", "\":\"", "+", "mm", "+", "\":\"", "+", "dd", "+", "\":\"", "+", "hh", "+", "\":\"", "+", "min", "+", "\":00.00\"", "MagRec", "[", "\"measurement_time_zone\"", "]", "=", "'SAN'", "if", "inst", "==", "\"\"", ":", "if", "code1", "[", "6", "]", "[", "0", "]", "==", "'C'", ":", "instcode", "=", "'SIO-bubba'", "if", "code1", "[", "6", "]", "[", "0", "]", "==", "'G'", ":", "instcode", "=", "'SIO-flo'", "else", ":", "instcode", "=", "''", "if", "len", "(", "code1", ")", ">", "1", ":", "MagRec", "[", "\"measurement_positions\"", "]", "=", "code1", "[", "6", "]", "[", "2", "]", "else", ":", "MagRec", "[", "\"measurement_positions\"", "]", "=", "code1", "[", "7", "]", "# takes care of awkward format with bubba and flo being different", "if", "user", "==", "\"\"", ":", "user", "=", "code1", "[", "5", "]", "if", "code1", "[", "2", "]", "[", "-", "1", "]", "==", "'C'", ":", "demag", "=", "\"T\"", "if", "code1", "[", "4", "]", "==", "'microT'", "and", "float", "(", "code1", "[", "3", "]", ")", "!=", "0.", "and", "\"LP-AN-ARM\"", "not", "in", "methcode", ":", "labfield", "=", "float", "(", "code1", "[", "3", "]", ")", "*", "1e-6", "if", "code1", "[", "2", "]", "==", "'mT'", "and", "methcode", "!=", "\"LP-IRM\"", ":", "demag", "=", "\"AF\"", "if", "code1", "[", "4", "]", "==", "'microT'", "and", "float", "(", "code1", "[", "3", "]", ")", "!=", "0.", ":", "labfield", "=", "float", "(", "code1", "[", "3", "]", ")", "*", "1e-6", "if", "code1", "[", "4", "]", "==", "'microT'", "and", "labfield", "!=", "0.", "and", "meas_type", "!=", "\"LT-IRM\"", ":", "phi", ",", "theta", "=", "0.", ",", "-", "90.", "if", "demag", "==", "\"T\"", ":", "meas_type", "=", "\"LT-T-I\"", "if", "demag", "==", "\"AF\"", ":", "meas_type", "=", "\"LT-AF-I\"", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "if", "code1", "[", "4", "]", "==", "''", "or", "labfield", "==", "0.", "and", "meas_type", "!=", "\"LT-IRM\"", ":", "if", "demag", "==", "'T'", ":", "meas_type", "=", "\"LT-T-Z\"", "if", "demag", "==", "\"AF\"", ":", "meas_type", "=", "\"LT-AF-Z\"", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "if", "syn", "==", "0", ":", "MagRec", "[", "\"er_specimen_name\"", "]", "=", "rec", "[", "0", "]", "MagRec", "[", "\"er_synthetic_name\"", "]", "=", "\"\"", "MagRec", "[", "\"er_site_name\"", "]", "=", "\"\"", "if", "specnum", "!=", "0", ":", "MagRec", "[", "\"er_sample_name\"", "]", "=", "rec", "[", "0", "]", "[", ":", "specnum", "]", "else", ":", "MagRec", "[", "\"er_sample_name\"", "]", "=", "rec", "[", "0", "]", "if", "samp_infile", "and", "Samps", ":", "# if samp_infile was provided AND yielded sample data", "samp", "=", "pmag", ".", "get_dictitem", "(", "Samps", ",", "'er_sample_name'", ",", "MagRec", "[", "'er_sample_name'", "]", ",", "'T'", ")", "if", "len", "(", "samp", ")", ">", "0", ":", "MagRec", "[", "\"er_location_name\"", "]", "=", "samp", "[", "0", "]", "[", "\"er_location_name\"", "]", "MagRec", "[", "\"er_site_name\"", "]", "=", "samp", "[", "0", "]", "[", "\"er_site_name\"", "]", "else", ":", "MagRec", "[", "'er_location_name'", "]", "=", "''", "MagRec", "[", "\"er_site_name\"", "]", "=", "''", "elif", "int", "(", "samp_con", ")", "!=", "6", ":", "site", "=", "pmag", ".", "parse_site", "(", "MagRec", "[", "'er_sample_name'", "]", ",", "samp_con", ",", "Z", ")", "MagRec", "[", "\"er_site_name\"", "]", "=", "site", "if", "MagRec", "[", "'er_site_name'", "]", "==", "\"\"", ":", "print", "(", "'No site name found for: '", ",", "MagRec", "[", "'er_specimen_name'", "]", ",", "MagRec", "[", "'er_sample_name'", "]", ")", "if", "MagRec", "[", "\"er_location_name\"", "]", "==", "\"\"", ":", "print", "(", "'no location name for: '", ",", "MagRec", "[", "\"er_specimen_name\"", "]", ")", "else", ":", "MagRec", "[", "\"er_specimen_name\"", "]", "=", "rec", "[", "0", "]", "if", "specnum", "!=", "0", ":", "MagRec", "[", "\"er_sample_name\"", "]", "=", "rec", "[", "0", "]", "[", ":", "specnum", "]", "else", ":", "MagRec", "[", "\"er_sample_name\"", "]", "=", "rec", "[", "0", "]", "MagRec", "[", "\"er_site_name\"", "]", "=", "\"\"", "MagRec", "[", "\"er_synthetic_name\"", "]", "=", "MagRec", "[", "\"er_specimen_name\"", "]", "SynRec", "[", "\"er_synthetic_name\"", "]", "=", "MagRec", "[", "\"er_specimen_name\"", "]", "site", "=", "pmag", ".", "parse_site", "(", "MagRec", "[", "'er_sample_name'", "]", ",", "samp_con", ",", "Z", ")", "SynRec", "[", "\"synthetic_parent_sample\"", "]", "=", "site", "SynRec", "[", "\"er_citation_names\"", "]", "=", "\"This study\"", "SynRec", "[", "\"synthetic_institution\"", "]", "=", "institution", "SynRec", "[", "\"synthetic_type\"", "]", "=", "syntype", "SynRecs", ".", "append", "(", "SynRec", ")", "if", "float", "(", "rec", "[", "1", "]", ")", "==", "0", ":", "pass", "elif", "demag", "==", "\"AF\"", ":", "if", "methcode", "!=", "\"LP-AN-ARM\"", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "rec", "[", "1", "]", ")", "*", "1e-3", ")", "# peak field in tesla", "if", "meas_type", "==", "\"LT-AF-Z\"", ":", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "else", ":", "# AARM experiment", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'0'", ":", "meas_type", "=", "\"LT-AF-Z:LP-AN-ARM:\"", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "peakfield", ")", "# peak field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "0", ")", "if", "labfield", "!=", "0", "and", "methcode", "!=", "\"LP-AN-ARM\"", ":", "print", "(", "\"Warning - inconsistency in mag file with lab field - overriding file with 0\"", ")", "else", ":", "meas_type", "=", "\"LT-AF-I:LP-AN-ARM\"", "ipos", "=", "int", "(", "treat", "[", "0", "]", ")", "-", "1", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "dec", "[", "ipos", "]", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "inc", "[", "ipos", "]", ")", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "peakfield", ")", "# peak field in tesla", "elif", "demag", "==", "\"T\"", "and", "methcode", "==", "\"LP-AN-TRM\"", ":", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "+", "273.", ")", "# temp in kelvin", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'0'", ":", "meas_type", "=", "\"LT-T-Z:LP-AN-TRM\"", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "0", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'0'", "else", ":", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'7'", ":", "# alteration check as final measurement", "meas_type", "=", "\"LT-PTRM-I:LP-AN-TRM\"", "else", ":", "meas_type", "=", "\"LT-T-I:LP-AN-TRM\"", "# find the direction of the lab field in two ways:", "# (1) using the treatment coding (XX.1=+x, XX.2=+y, XX.3=+z, XX.4=-x, XX.5=-y, XX.6=-z)", "ipos_code", "=", "int", "(", "treat", "[", "1", "]", "[", "0", "]", ")", "-", "1", "# (2) using the magnetization", "DEC", "=", "float", "(", "rec", "[", "4", "]", ")", "INC", "=", "float", "(", "rec", "[", "5", "]", ")", "if", "INC", "<", "45", "and", "INC", ">", "-", "45", ":", "if", "DEC", ">", "315", "or", "DEC", "<", "45", ":", "ipos_guess", "=", "0", "if", "DEC", ">", "45", "and", "DEC", "<", "135", ":", "ipos_guess", "=", "1", "if", "DEC", ">", "135", "and", "DEC", "<", "225", ":", "ipos_guess", "=", "3", "if", "DEC", ">", "225", "and", "DEC", "<", "315", ":", "ipos_guess", "=", "4", "else", ":", "if", "INC", ">", "45", ":", "ipos_guess", "=", "2", "if", "INC", "<", "-", "45", ":", "ipos_guess", "=", "5", "# prefer the guess over the code", "ipos", "=", "ipos_guess", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "tdec", "[", "ipos", "]", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "tinc", "[", "ipos", "]", ")", "# check it", "if", "ipos_guess", "!=", "ipos_code", "and", "treat", "[", "1", "]", "[", "0", "]", "!=", "'7'", ":", "print", "(", "\"-E- ERROR: check specimen %s step %s, ATRM measurements, coding does not match the direction of the lab field!\"", "%", "(", "rec", "[", "0", "]", ",", "\".\"", ".", "join", "(", "list", "(", "treat", ")", ")", ")", ")", "elif", "demag", "==", "\"S\"", ":", "# Shaw experiment", "if", "treat", "[", "1", "]", "[", "1", "]", "==", "'0'", ":", "if", "int", "(", "treat", "[", "0", "]", ")", "!=", "0", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "*", "1e-3", ")", "# AF field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "meas_type", "=", "\"LT-AF-Z\"", "# first AF", "else", ":", "meas_type", "=", "\"LT-NO\"", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "elif", "treat", "[", "1", "]", "[", "1", "]", "==", "'1'", ":", "if", "int", "(", "treat", "[", "0", "]", ")", "==", "0", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "peakfield", ")", "# peak field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "arm_labfield", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "meas_type", "=", "\"LT-AF-I\"", "else", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "*", "1e-3", ")", "# AF field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "meas_type", "=", "\"LT-AF-Z\"", "elif", "treat", "[", "1", "]", "[", "1", "]", "==", "'2'", ":", "if", "int", "(", "treat", "[", "0", "]", ")", "==", "0", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "trm_labfield", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "trm_peakT", ")", "meas_type", "=", "\"LT-T-I\"", "else", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "*", "1e-3", ")", "# AF field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "meas_type", "=", "\"LT-AF-Z\"", "elif", "treat", "[", "1", "]", "[", "1", "]", "==", "'3'", ":", "if", "int", "(", "treat", "[", "0", "]", ")", "==", "0", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "peakfield", ")", "# peak field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "arm_labfield", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "meas_type", "=", "\"LT-AF-I\"", "else", ":", "MagRec", "[", "\"treatment_ac_field\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "*", "1e-3", ")", "# AF field in tesla", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "meas_type", "=", "\"LT-AF-Z\"", "# Cooling rate experient # added by rshaar", "elif", "demag", "==", "\"T\"", "and", "methcode", "==", "\"LP-CR-TRM\"", ":", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "+", "273.", ")", "# temp in kelvin", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'0'", ":", "meas_type", "=", "\"LT-T-Z:LP-CR-TRM\"", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "0", ")", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'0'", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'0'", "else", ":", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'7'", ":", "# alteration check as final measurement", "meas_type", "=", "\"LT-PTRM-I:LP-CR-TRM\"", "else", ":", "meas_type", "=", "\"LT-T-I:LP-CR-TRM\"", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "# labfield phi", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "# labfield theta", "indx", "=", "int", "(", "treat", "[", "1", "]", "[", "0", "]", ")", "-", "1", "# alteration check matjed as 0.7 in the measurement file", "if", "indx", "==", "6", ":", "cooling_time", "=", "cooling_rates_list", "[", "-", "1", "]", "else", ":", "cooling_time", "=", "cooling_rates_list", "[", "indx", "]", "MagRec", "[", "\"measurement_description\"", "]", "=", "\"cooling_rate\"", "+", "\":\"", "+", "cooling_time", "+", "\":\"", "+", "\"K/min\"", "elif", "demag", "!=", "'N'", ":", "if", "len", "(", "treat", ")", "==", "1", ":", "treat", ".", "append", "(", "'0'", ")", "MagRec", "[", "\"treatment_temp\"", "]", "=", "'%8.3e'", "%", "(", "float", "(", "treat", "[", "0", "]", ")", "+", "273.", ")", "# temp in kelvin", "if", "trm", "==", "0", ":", "# demag=T and not trmaq", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'0'", ":", "meas_type", "=", "\"LT-T-Z\"", "else", ":", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "# labfield in tesla (convert from microT)", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "# labfield phi", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "# labfield theta", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'1'", ":", "meas_type", "=", "\"LT-T-I\"", "# in-field thermal step", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'2'", ":", "meas_type", "=", "\"LT-PTRM-I\"", "# pTRM check", "pTRM", "=", "1", "if", "treat", "[", "1", "]", "[", "0", "]", "==", "'3'", ":", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'0'", "# this is a zero field step", "meas_type", "=", "\"LT-PTRM-MD\"", "# pTRM tail check", "else", ":", "labfield", "=", "float", "(", "treat", "[", "1", "]", ")", "*", "1e-6", "MagRec", "[", "\"treatment_dc_field\"", "]", "=", "'%8.3e'", "%", "(", "labfield", ")", "# labfield in tesla (convert from microT)", "MagRec", "[", "\"treatment_dc_field_phi\"", "]", "=", "'%7.1f'", "%", "(", "phi", ")", "# labfield phi", "MagRec", "[", "\"treatment_dc_field_theta\"", "]", "=", "'%7.1f'", "%", "(", "theta", ")", "# labfield theta", "meas_type", "=", "\"LT-T-I:LP-TRM\"", "# trm acquisition experiment", "MagRec", "[", "\"measurement_csd\"", "]", "=", "rec", "[", "2", "]", "MagRec", "[", "\"measurement_magn_moment\"", "]", "=", "'%10.3e'", "%", "(", "float", "(", "rec", "[", "3", "]", ")", "*", "1e-3", ")", "# moment in Am^2 (from emu)", "MagRec", "[", "\"measurement_dec\"", "]", "=", "rec", "[", "4", "]", "MagRec", "[", "\"measurement_inc\"", "]", "=", "rec", "[", "5", "]", "MagRec", "[", "\"magic_instrument_codes\"", "]", "=", "instcode", "MagRec", "[", "\"er_analyst_mail_names\"", "]", "=", "user", "MagRec", "[", "\"er_citation_names\"", "]", "=", "citation", "if", "\"LP-IRM-3D\"", "in", "methcode", ":", "meas_type", "=", "methcode", "#MagRec[\"magic_method_codes\"]=methcode.strip(':')", "MagRec", "[", "\"magic_method_codes\"", "]", "=", "meas_type", "MagRec", "[", "\"measurement_flag\"", "]", "=", "'g'", "MagRec", "[", "\"er_specimen_name\"", "]", "=", "rec", "[", "0", "]", "if", "'std'", "in", "rec", "[", "0", "]", ":", "MagRec", "[", "\"measurement_standard\"", "]", "=", "'s'", "else", ":", "MagRec", "[", "\"measurement_standard\"", "]", "=", "'u'", "MagRec", "[", "\"measurement_number\"", "]", "=", "'1'", "#print MagRec['treatment_temp']", "MagRecs", ".", "append", "(", "MagRec", ")", "MagOuts", "=", "pmag", ".", "measurements_methods", "(", "MagRecs", ",", "noave", ")", "pmag", ".", "magic_write", "(", "meas_file", ",", "MagOuts", ",", "'magic_measurements'", ")", "print", "(", "\"results put in \"", ",", "meas_file", ")", "if", "len", "(", "SynRecs", ")", ">", "0", ":", "pmag", ".", "magic_write", "(", "synfile", ",", "SynRecs", ",", "'er_synthetics'", ")", "print", "(", "\"synthetics put in \"", ",", "synfile", ")", "return", "True", ",", "meas_file" ]
NAME sio_magic.py DESCRIPTION converts SIO .mag format files to magic_measurements format files SYNTAX sio_magic.py [command line options] OPTIONS -h: prints the help message and quits. -usr USER: identify user, default is "" -f FILE: specify .mag format input file, required -fsa SAMPFILE : specify er_samples.txt file relating samples, site and locations names,default is none -- values in SAMPFILE will override selections for -loc (location), -spc (designate specimen), and -ncn (sample-site naming convention) -F FILE: specify output file, default is magic_measurements.txt -Fsy: specify er_synthetics file, default is er_sythetics.txt -LP [colon delimited list of protocols, include all that apply] AF: af demag T: thermal including thellier but not trm acquisition S: Shaw method I: IRM (acquisition) I3d: 3D IRM experiment N: NRM only TRM: trm acquisition ANI: anisotropy experiment D: double AF demag G: triple AF demag (GRM protocol) CR: cooling rate experiment. The treatment coding of the measurement file should be: XXX.00,XXX.10, XXX.20 ...XX.70 etc. (XXX.00 is optional) where XXX in the temperature and .10,.20... are running numbers of the cooling rates steps. XXX.00 is optional zerofield baseline. XXX.70 is alteration check. syntax in sio_magic is: -LP CR xxx,yyy,zzz,..... xxx -A where xxx, yyy, zzz...xxx are cooling time in [K/minutes], seperated by comma, ordered at the same order as XXX.10,XXX.20 ...XX.70 if you use a zerofield step then no need to specify the cooling rate for the zerofield It is important to add to the command line the -A option so the measurements will not be averaged. But users need to make sure that there are no duplicate measurements in the file -V [1,2,3] units of IRM field in volts using ASC coil #1,2 or 3 -spc NUM : specify number of characters to designate a specimen, default = 0 -loc LOCNAME : specify location/study name, must have either LOCNAME or SAMPFILE or be a synthetic -syn INST TYPE: sets these specimens as synthetics created at institution INST and of type TYPE -ins INST : specify which demag instrument was used (e.g, SIO-Suzy or SIO-Odette),default is "" -dc B PHI THETA: dc lab field (in micro tesla) and phi,theta, default is none NB: use PHI, THETA = -1 -1 to signal that it changes, i.e. in anisotropy experiment -ac B : peak AF field (in mT) for ARM acquisition, default is none -ncn NCON: specify naming convention: default is #1 below -A: don't average replicate measurements Sample naming convention: [1] XXXXY: where XXXX is an arbitrary length site designation and Y is the single character sample designation. e.g., TG001a is the first sample from site TG001. [default] [2] XXXX-YY: YY sample from site XXXX (XXX, YY of arbitary length) [3] XXXX.YY: YY sample from site XXXX (XXX, YY of arbitary length) [4-Z] XXXX[YYY]: YYY is sample designation with Z characters from site XXX [5] site name same as sample [6] site is entered under a separate column NOT CURRENTLY SUPPORTED [7-Z] [XXXX]YYY: XXXX is site designation with Z characters with sample name XXXXYYYY NB: all others you will have to customize your self or e-mail ltauxe@ucsd.edu for help. [8] synthetic - has no site name [9] ODP naming convention INPUT Best to put separate experiments (all AF, thermal, thellier, trm aquisition, Shaw, etc.) in seperate .mag files (eg. af.mag, thermal.mag, etc.) Format of SIO .mag files: Spec Treat CSD Intensity Declination Inclination [optional metadata string] Spec: specimen name Treat: treatment step XXX T in Centigrade XXX AF in mT for special experiments: Thellier: XXX.0 first zero field step XXX.1 first in field step [XXX.0 and XXX.1 can be done in any order] XXX.2 second in-field step at lower temperature (pTRM check) XXX.3 second zero-field step after infield (pTRM check step) XXX.3 MUST be done in this order [XXX.0, XXX.1 [optional XXX.2] XXX.3] AARM: X.00 baseline step (AF in zero bias field - high peak field) X.1 ARM step (in field step) where X is the step number in the 15 position scheme (see Appendix to Lecture 13 - http://magician.ucsd.edu/Essentials_2) ATRM: X.00 optional baseline X.1 ATRM step (+X) X.2 ATRM step (+Y) X.3 ATRM step (+Z) X.4 ATRM step (-X) X.5 ATRM step (-Y) X.6 ATRM step (-Z) X.7 optional alteration check (+X) TRM: XXX.YYY XXX is temperature step of total TRM YYY is dc field in microtesla Intensity assumed to be total moment in 10^3 Am^2 (emu) Declination: Declination in specimen coordinate system Inclination: Declination in specimen coordinate system Optional metatdata string: mm/dd/yy;hh:mm;[dC,mT];xx.xx;UNITS;USER;INST;NMEAS hh in 24 hours. dC or mT units of treatment XXX (see Treat above) for thermal or AF respectively xx.xxx DC field UNITS of DC field (microT, mT) INST: instrument code, number of axes, number of positions (e.g., G34 is 2G, three axes, measured in four positions) NMEAS: number of measurements in a single position (1,3,200...)
[ "NAME", "sio_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/conversion_scripts2/sio_magic2.py#L8-L693
train
This function is the main entry point for the magic_measurements. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b110101) + chr(0b1010 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(1719 - 1671) + chr(0b1101111) + chr(50) + '\062' + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\x31' + chr(2238 - 2185), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(54), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(0b110100 + 0o1) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(50) + chr(0b110100), 26977 - 26969), nzTpIcepk0o8('\x30' + chr(0b1100101 + 0o12) + '\x32' + chr(0b100000 + 0o24), 8), nzTpIcepk0o8(chr(48) + chr(7446 - 7335) + '\x33' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110111 + 0o70) + '\x32' + '\066' + '\061', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1110 + 0o45) + '\065' + chr(51), 32565 - 32557), nzTpIcepk0o8('\x30' + chr(0b1011010 + 0o25) + chr(51) + chr(49) + chr(54), 17541 - 17533), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + chr(2329 - 2277) + '\066', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(55), 0o10), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(0b110001) + chr(77 - 25) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + chr(1653 - 1603) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010111 + 0o30) + '\061' + chr(0b1111 + 0o50) + chr(1976 - 1926), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\063' + '\064' + '\066', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b100 + 0o153) + chr(0b111 + 0o54) + chr(54) + chr(743 - 691), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b10010 + 0o43) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b101 + 0o152) + chr(0b110011) + '\064' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + chr(0b110010 + 0o0) + chr(1117 - 1066) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1790 - 1741) + chr(0b100001 + 0o22) + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x34' + chr(2710 - 2657), 0o10), nzTpIcepk0o8('\x30' + chr(1876 - 1765) + chr(51) + chr(0b110110), 38581 - 38573), nzTpIcepk0o8(chr(48) + chr(111) + chr(1600 - 1547) + chr(0b1000 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(1049 - 1001) + chr(8402 - 8291) + chr(2334 - 2283) + chr(0b110110) + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101 + 0o142) + chr(2205 - 2155) + chr(55) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101010 + 0o14) + chr(0b10111 + 0o33), 9389 - 9381), nzTpIcepk0o8(chr(854 - 806) + '\157' + '\x31' + '\x37' + chr(1304 - 1256), 0b1000), nzTpIcepk0o8(chr(110 - 62) + '\157' + chr(1301 - 1251) + '\067' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(659 - 611) + chr(0b1101111) + '\x33' + '\x35' + chr(0b110000 + 0o4), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001) + chr(54) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1839 - 1788) + chr(1181 - 1130) + chr(0b101010 + 0o11), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110000) + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b1001010 + 0o45) + chr(0b101111 + 0o2) + chr(0b10100 + 0o36) + chr(0b11011 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(52) + chr(0b110110), 44826 - 44818), nzTpIcepk0o8(chr(48) + chr(4202 - 4091) + chr(149 - 98) + chr(256 - 203) + '\067', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b1101 + 0o46) + '\061' + chr(0b100010 + 0o22), 43996 - 43988), nzTpIcepk0o8(chr(48) + chr(10297 - 10186) + chr(0b110001) + chr(0b1 + 0o64) + chr(0b10011 + 0o36), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011 + 0o0) + chr(54) + chr(0b110101), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(53) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x82'), chr(100) + chr(4104 - 4003) + chr(99) + chr(111) + '\144' + chr(994 - 893))(chr(117) + chr(0b1100101 + 0o17) + chr(0b101111 + 0o67) + chr(0b101101) + chr(2855 - 2799)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(OMPKB_AuFZpn=nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001), 0b1000), **q5n0sHDDTy90): JTR9hYwuNF24 = None kSgdIN0MzqOp = None Q_H05OrxP1bq = roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xea'), chr(0b110001 + 0o63) + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1110 + 0o127))('\165' + '\164' + '\146' + chr(1000 - 955) + chr(586 - 530)) NdBgRJDyurSB = nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1100010 + 0o15) + chr(1129 - 1081), 17378 - 17370) (fBsoIoeG_eRQ, wDEIk17vEWwT) = (roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Hb'), chr(2421 - 2321) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(9312 - 9212) + chr(0b1011 + 0o132) + chr(0b1011111 + 0o4) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(8519 - 8403) + chr(1929 - 1827) + chr(45) + '\x38')) (MUGp3g4tuXRY, ncDYK9LWVfBn, XrSglziO_kwd, _OaSP3sMznOY) = (nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(111) + '\060', 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(6250 - 6139) + '\060', 8), nzTpIcepk0o8('\060' + '\157' + chr(1885 - 1837), 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b11011 + 0o25), 8)) (yLS7f7H75eq3, XLjkTT5q8l0_, hLIySoEW0NmV, sEVgLUlRGUb0) = (nzTpIcepk0o8(chr(48) + chr(0b1001001 + 0o46) + chr(48), 8), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(1220 - 1172), 8), roI3spqORKae(ES5oEprVxulp(b'\x9d'), chr(6172 - 6072) + chr(0b1100101) + chr(0b1100011) + chr(0b110011 + 0o74) + chr(100) + '\x65')(chr(117) + chr(687 - 571) + '\x66' + chr(0b101101) + chr(0b111000)), nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + '\061', 8)) oD8LLo_zqNZe = [nzTpIcepk0o8('\060' + chr(0b1101111) + '\x34' + chr(2512 - 2457) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(2524 - 2472) + '\x31', 0o10), nzTpIcepk0o8(chr(1268 - 1220) + chr(0b1010101 + 0o32) + '\x32' + '\066' + chr(0b110100), 12482 - 12474), nzTpIcepk0o8('\x30' + '\157' + chr(455 - 405) + chr(0b110000) + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + chr(1713 - 1602) + chr(0b110101) + chr(2716 - 2663), 8), nzTpIcepk0o8('\060' + chr(7503 - 7392) + chr(0b110001) + chr(0b101100 + 0o7) + chr(300 - 250), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b100010 + 0o22) + '\061' + chr(0b1101 + 0o51), 56781 - 56773), nzTpIcepk0o8(chr(48) + '\x6f' + '\x34' + chr(0b110001) + '\x36', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1483 - 1431) + chr(0b11010 + 0o27) + chr(0b101000 + 0o16), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + '\x31' + '\x33' + chr(0b110010 + 0o0), 8), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(2706 - 2652) + '\064', 8), nzTpIcepk0o8(chr(457 - 409) + '\x6f' + chr(0b100001 + 0o21) + '\x36' + chr(52), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x30', 8), nzTpIcepk0o8(chr(1713 - 1665) + chr(0b1101111) + '\060', 8), nzTpIcepk0o8('\x30' + '\157' + chr(48), 8)] ReAwxaIgTMy5 = [nzTpIcepk0o8(chr(48) + chr(10743 - 10632) + chr(0b110000), 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(48), 8), nzTpIcepk0o8(chr(2194 - 2146) + '\x6f' + chr(0b110000), 8), nzTpIcepk0o8(chr(702 - 654) + chr(0b1100011 + 0o14) + chr(48), 8), nzTpIcepk0o8(chr(0b110000) + chr(10202 - 10091) + chr(871 - 823), 8), -nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + chr(2093 - 2040), 8), -nzTpIcepk0o8(chr(48) + chr(5251 - 5140) + chr(1280 - 1227) + chr(0b110101), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(48), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2396 - 2343) + chr(53), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11001 + 0o34) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1100101 + 0o12) + '\065' + '\x35', 8), -nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + '\x35' + chr(0b110101), 8), -nzTpIcepk0o8(chr(0b110000) + chr(7238 - 7127) + '\061' + '\063' + chr(932 - 882), 8), -nzTpIcepk0o8(chr(2098 - 2050) + '\x6f' + chr(53) + chr(1802 - 1749), 8), nzTpIcepk0o8(chr(48) + chr(6911 - 6800) + chr(2627 - 2574) + chr(53), 8)] taaXfxj9rEQE = [nzTpIcepk0o8(chr(48) + '\157' + chr(48), 8), nzTpIcepk0o8(chr(48) + chr(0b101001 + 0o106) + chr(0b110001) + chr(51) + chr(0b110010), 8), nzTpIcepk0o8(chr(1691 - 1643) + chr(9968 - 9857) + '\x30', 8), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\062' + chr(54) + chr(52), 8), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + '\x34' + '\x31' + chr(1293 - 1239), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x30', 8), nzTpIcepk0o8('\060' + '\157' + chr(2082 - 2034), 8), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x33' + chr(0b110010), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110000), 8)] lOreErtLtxjG = [nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b10110 + 0o32), 8), nzTpIcepk0o8(chr(2019 - 1971) + '\157' + '\x30', 8), nzTpIcepk0o8(chr(2189 - 2141) + chr(0b101010 + 0o105) + '\x31' + chr(0b110011) + chr(0b11110 + 0o24), 8), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\157' + chr(1316 - 1268), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x30', 8), -nzTpIcepk0o8(chr(0b110000) + '\157' + chr(174 - 125) + chr(0b1010 + 0o51) + chr(2157 - 2107), 8), nzTpIcepk0o8(chr(330 - 282) + chr(111) + chr(48), 8), nzTpIcepk0o8(chr(407 - 359) + chr(111) + chr(0b10010 + 0o36), 8), nzTpIcepk0o8(chr(699 - 651) + chr(111) + chr(0b100011 + 0o16) + chr(205 - 154) + chr(0b101011 + 0o7), 8)] NXbW5jBRufBw = nzTpIcepk0o8(chr(48) + chr(0b110110 + 0o71) + chr(0b110001), 8) HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xe2'), '\x64' + '\145' + chr(99) + '\157' + chr(6797 - 6697) + chr(0b1100101))('\x75' + '\164' + '\x66' + '\055' + chr(0b111000)) h5ftM9zvebEG = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(101) + chr(99) + chr(111) + '\x64' + chr(1690 - 1589))(chr(7107 - 6990) + chr(0b1110100) + '\146' + chr(0b101 + 0o50) + chr(0b111000)) _NuwPUBWY7oy = roI3spqORKae(ES5oEprVxulp(b'\xf8\xfb\xe4u\rg`h\xd5\x92'), '\144' + '\x65' + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(319 - 274) + chr(0b101110 + 0o12)) eemPYp2vtTSr = bpyfpu4kTbwL.ajIDWyXMBa3b JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'\xc3\xff\xe9'), '\144' + '\145' + '\143' + chr(0b1101111) + '\x64' + '\x65')('\165' + '\164' + chr(0b1001101 + 0o31) + chr(0b100101 + 0o10) + chr(56)) tgCaEODbSrcw = nzTpIcepk0o8(chr(48) + chr(7352 - 7241) + chr(0b110000), 8) LCmbVMeyipqX = roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uTz`u\xd4\x9f\xa7\xc5tNe\x02\x92'), chr(100) + '\145' + chr(9150 - 9051) + '\x6f' + '\x64' + '\145')('\x75' + chr(116) + chr(8268 - 8166) + chr(0b101101) + '\x38') (ZsCw5D6R0uXJ, NixjZbnCaKrH) = (roI3spqORKae(ES5oEprVxulp(b''), chr(2569 - 2469) + chr(0b1100101) + '\143' + chr(11474 - 11363) + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(2205 - 2149)), []) ztCwr6MUeq7n = nzTpIcepk0o8(chr(0b110000) + '\157' + chr(110 - 62), 8) nuazrrlKUXVS = nzTpIcepk0o8('\060' + '\x6f' + '\x30', 8) M7GWgFE4VK5D = nzTpIcepk0o8('\060' + '\157' + '\x30', 8) EOVsduj7tJxx = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b110111 + 0o56) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(6886 - 6785))('\165' + '\164' + chr(102) + chr(45) + chr(2630 - 2574)) JTR9hYwuNF24 = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + chr(0b1010001 + 0o22) + '\x6f' + '\x64' + '\x65')(chr(13313 - 13196) + chr(0b10101 + 0o137) + chr(8335 - 8233) + chr(45) + '\070') rHPU8oONrR4n = roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKyx\xd0\x98\xbb\xd4b\rt\x14\x92\x87\xc4\x97\xe1-'), chr(0b10111 + 0o115) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')(chr(0b10 + 0o163) + '\164' + '\x66' + chr(45) + chr(0b100010 + 0o26)) E63X9RhwfuOn = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + '\x63' + chr(4568 - 4457) + chr(100) + chr(0b1100101))('\165' + '\164' + chr(6717 - 6615) + chr(0b101101) + chr(0b11111 + 0o31)) if not OMPKB_AuFZpn: E63X9RhwfuOn = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xd9\xe0\xe8t'), chr(8891 - 8791) + chr(101) + '\143' + chr(111) + '\144' + chr(0b1100101))(chr(11942 - 11825) + chr(116) + chr(6624 - 6522) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b100111 + 0o76) + chr(0b1011010 + 0o11) + chr(3859 - 3748) + chr(0b1010111 + 0o15) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + chr(533 - 477))) rHPU8oONrR4n = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecurr}q\xd4'), '\x64' + chr(9017 - 8916) + chr(0b1001 + 0o132) + '\x6f' + '\x64' + chr(1597 - 1496))(chr(0b1110101) + chr(0b1110100) + chr(0b1001000 + 0o36) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1000 + 0o134) + chr(1023 - 922) + chr(8362 - 8263) + '\157' + '\x64' + '\145')('\165' + '\164' + chr(102) + chr(0b1101 + 0o40) + '\x38')) Xt3lcZWyPHlc = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3YK}xx'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(1554 - 1454) + chr(101))(chr(117) + chr(116) + chr(9601 - 9499) + '\055' + chr(658 - 602)), roI3spqORKae(ES5oEprVxulp(b''), chr(7069 - 6969) + '\x65' + chr(0b101101 + 0o66) + chr(111) + chr(0b10101 + 0o117) + chr(0b1100101))('\165' + chr(0b1011001 + 0o33) + '\146' + chr(45) + chr(2816 - 2760))) JTR9hYwuNF24 = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaYK}xx'), chr(100) + chr(788 - 687) + chr(0b1100011) + '\x6f' + chr(0b101110 + 0o66) + chr(101))('\x75' + chr(0b111110 + 0o66) + chr(102) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b100010 + 0o102) + chr(0b1100101) + chr(99) + chr(111) + '\144' + '\x65')(chr(117) + chr(0b1110011 + 0o1) + chr(102) + '\x2d' + '\070')) _OaSP3sMznOY = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc0\xf2\xef`Dqxy'), chr(100) + chr(101) + chr(0b1100011) + chr(0b101011 + 0o104) + chr(0b101111 + 0o65) + chr(0b1001111 + 0o26))(chr(6120 - 6003) + chr(116) + chr(1958 - 1856) + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\x65' + chr(99) + '\157' + chr(0b11100 + 0o110) + chr(9461 - 9360))('\x75' + '\x74' + chr(0b1100110) + chr(0b1 + 0o54) + '\070')) if _OaSP3sMznOY: _OaSP3sMznOY = jLW6pRf2DSRk(_OaSP3sMznOY) * 1e-06 else: _OaSP3sMznOY = nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(10681 - 10570) + chr(0b110000), 8) MUGp3g4tuXRY = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdc\xfb\xe4'), chr(100) + '\145' + chr(1161 - 1062) + '\x6f' + '\144' + chr(101))(chr(0b1001100 + 0o51) + '\164' + '\x66' + chr(45) + chr(56)), nzTpIcepk0o8('\060' + '\157' + '\060', 8)) if MUGp3g4tuXRY: MUGp3g4tuXRY = jLW6pRf2DSRk(MUGp3g4tuXRY) else: MUGp3g4tuXRY = nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1637 - 1589), 8) ncDYK9LWVfBn = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xd8\xfb\xe8rL'), chr(8503 - 8403) + chr(1949 - 1848) + '\143' + chr(0b101100 + 0o103) + '\144' + '\x65')('\165' + chr(11658 - 11542) + chr(7154 - 7052) + '\055' + '\x38'), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 8)) if ncDYK9LWVfBn: ncDYK9LWVfBn = jLW6pRf2DSRk(ncDYK9LWVfBn) else: ncDYK9LWVfBn = nzTpIcepk0o8(chr(1624 - 1576) + '\x6f' + chr(0b1010 + 0o46), 8) XrSglziO_kwd = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdc\xf6\xecmK}qq\xd5'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(8127 - 8027) + '\x65')('\x75' + chr(0b10010 + 0o142) + '\x66' + chr(0b1001 + 0o44) + chr(0b111000)), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b101110 + 0o2), 8)) if XrSglziO_kwd: XrSglziO_kwd = jLW6pRf2DSRk(XrSglziO_kwd) * 0.001 else: XrSglziO_kwd = nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8) M7GWgFE4VK5D = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xe3\xe8eCay'), '\x64' + chr(0b1010011 + 0o22) + chr(99) + '\x6f' + chr(0b10011 + 0o121) + chr(101))(chr(0b1110101) + chr(0b110111 + 0o75) + chr(6681 - 6579) + chr(400 - 355) + '\x38'), nzTpIcepk0o8('\x30' + chr(111) + '\x30', 8)) hLIySoEW0NmV = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xf2\xe0vrw{s'), chr(9018 - 8918) + chr(3673 - 3572) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')('\x75' + '\164' + chr(5025 - 4923) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x9d'), chr(100) + '\145' + '\143' + chr(4916 - 4805) + '\x64' + '\x65')(chr(0b1010010 + 0o43) + '\x74' + chr(0b1011011 + 0o13) + chr(0b10110 + 0o27) + chr(56))) h5ftM9zvebEG = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(0b1001110 + 0o27) + chr(0b1000011 + 0o40) + chr(10523 - 10412) + '\144' + '\145')(chr(13374 - 13257) + chr(3736 - 3620) + '\x66' + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1010001 + 0o24) + chr(0b100110 + 0o75) + '\157' + chr(4242 - 4142) + chr(0b1100101))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(1405 - 1349))) ZsCw5D6R0uXJ = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xf2\xe0vr}z{\xd8\x87\xab'), chr(8187 - 8087) + '\x65' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1010001 + 0o24))(chr(9246 - 9129) + chr(0b1011001 + 0o33) + chr(0b1001011 + 0o33) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(4339 - 4238) + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + chr(8097 - 7981) + '\x66' + chr(0b101101) + '\x38')) tgCaEODbSrcw = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3'), chr(0b1100100) + chr(0b1100000 + 0o5) + chr(1477 - 1378) + chr(3347 - 3236) + chr(100) + chr(0b1010000 + 0o25))(chr(0b1011011 + 0o32) + chr(7177 - 7061) + chr(0b1001101 + 0o31) + chr(45) + chr(0b100001 + 0o27)), nzTpIcepk0o8(chr(48) + chr(0b1100 + 0o143) + '\060', 8)) RWgSr3TDLKEe = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc5\xfd\xferD`ai\xd8\x84\xa0'), '\x64' + '\145' + '\143' + chr(4864 - 4753) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\x65' + '\143' + chr(6888 - 6777) + chr(0b10111 + 0o115) + chr(0b1000000 + 0o45))(chr(117) + '\x74' + chr(5387 - 5285) + chr(0b101101) + chr(56))) myQeYAKamFEM = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3rTdq'), chr(0b111111 + 0o45) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\x64' + chr(1477 - 1376))(chr(0b1110101) + chr(116) + chr(0b1010100 + 0o22) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(9455 - 9355) + chr(0b110100 + 0o61) + chr(869 - 770) + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(0b1100011 + 0o21) + '\146' + '\055' + chr(0b111000))) wDEIk17vEWwT = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc5\xfd\xfer'), '\144' + chr(101) + chr(0b101111 + 0o64) + '\157' + chr(0b1110 + 0o126) + chr(0b1100101))('\x75' + '\164' + chr(2084 - 1982) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(3467 - 3367) + chr(0b1011100 + 0o11) + chr(99) + chr(111) + chr(2184 - 2084) + chr(0b100110 + 0o77))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(1225 - 1180) + '\070')) NdBgRJDyurSB = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xc2\xfc\xecpH'), chr(9259 - 9159) + chr(0b1100101) + '\x63' + chr(5215 - 5104) + chr(0b1100100) + chr(0b1001100 + 0o31))(chr(0b1011010 + 0o33) + '\164' + chr(0b1100110) + chr(0b11001 + 0o24) + chr(0b1100 + 0o54)), nzTpIcepk0o8('\x30' + chr(0b110101 + 0o72) + '\060', 8)) kSgdIN0MzqOp = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xcf\xfc\xe9cA}gi'), chr(0b1001000 + 0o34) + chr(0b1100101) + '\143' + '\157' + chr(0b110100 + 0o60) + '\145')(chr(0b1010001 + 0o44) + chr(11640 - 11524) + chr(0b111101 + 0o51) + '\055' + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(577 - 477) + chr(0b1100101) + '\143' + chr(1919 - 1808) + chr(100) + chr(101))(chr(117) + '\164' + chr(102) + chr(1200 - 1155) + '\x38')) EOVsduj7tJxx = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xcf\xfc\xe4j'), chr(0b1010000 + 0o24) + chr(0b100 + 0o141) + chr(0b1100011) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(11592 - 11476) + chr(0b1100110) + '\x2d' + chr(0b10101 + 0o43)), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1100101) + '\143' + chr(4809 - 4698) + '\144' + '\x65')(chr(0b1110101) + chr(9593 - 9477) + '\146' + chr(0b101101) + '\x38')) TDJduOjv7mC7 = q5n0sHDDTy90.GUKetu4xaGsJ(roI3spqORKae(ES5oEprVxulp(b'\xcf\xfc\xe2jDzsB\xc3\x8a\xba\xc3t'), chr(0b1100100) + chr(0b1101 + 0o130) + '\x63' + chr(0b1100011 + 0o14) + '\x64' + chr(0b1000000 + 0o45))(chr(4382 - 4265) + '\164' + chr(0b1100110) + chr(0b100101 + 0o10) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\x65' + chr(0b1000110 + 0o35) + chr(8078 - 7967) + chr(100) + chr(0b1101 + 0o130))(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + '\x38')) if OMPKB_AuFZpn: if roI3spqORKae(ES5oEprVxulp(b'\x81\xfb'), '\x64' + chr(0b111 + 0o136) + '\143' + '\157' + chr(8801 - 8701) + chr(0b10011 + 0o122))(chr(0b1110101) + chr(0b101101 + 0o107) + '\x66' + chr(0b101010 + 0o3) + chr(0b111000)) in eemPYp2vtTSr: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xd5\xf5\xc8c\\E}H\xde\x9a\x99\xf2'), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b111000)))) return nzTpIcepk0o8(chr(48) + chr(832 - 721) + chr(48), 8) if roI3spqORKae(ES5oEprVxulp(b'\x81\xe6\xfet'), '\x64' + '\x65' + '\143' + '\157' + chr(1574 - 1474) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xe6\xfet'), chr(0b11000 + 0o114) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(0b100110 + 0o116) + '\x66' + chr(45) + chr(56))) E63X9RhwfuOn = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(0b10 + 0o57), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xd5'), '\x64' + '\145' + '\143' + chr(1965 - 1854) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + '\055' + chr(56)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xd5'), chr(100) + chr(0b110010 + 0o63) + '\x63' + '\157' + '\x64' + chr(0b1010101 + 0o20))('\x75' + chr(116) + chr(0b11010 + 0o114) + chr(45) + '\x38')) rHPU8oONrR4n = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + '\061', 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xd5\xfe\x7f'), chr(6828 - 6728) + '\x65' + chr(99) + '\x6f' + '\144' + chr(0b101100 + 0o71))(chr(117) + '\164' + '\146' + '\x2d' + '\070') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xd5\xfe\x7f'), chr(4364 - 4264) + '\145' + chr(99) + chr(0b1000001 + 0o56) + chr(0b1100100) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(0b101 + 0o50) + chr(56))) LCmbVMeyipqX = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(324 - 276) + chr(0b1101111) + '\x31', 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xf5'), '\x64' + chr(0b111001 + 0o54) + chr(0b1100011 + 0o0) + '\157' + '\x64' + chr(0b110000 + 0o65))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b1000 + 0o60)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xf5'), chr(0b1000101 + 0o37) + chr(101) + chr(99) + chr(111) + chr(0b1100100) + chr(0b110001 + 0o64))(chr(0b1010001 + 0o44) + chr(0b1110100) + '\x66' + chr(0b100111 + 0o6) + chr(56))) JTR9hYwuNF24 = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(0b101111 + 0o2), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), chr(0b1100100) + chr(0b101000 + 0o75) + '\x63' + '\157' + chr(0b10011 + 0o121) + chr(0b1000100 + 0o41))(chr(117) + chr(6893 - 6777) + '\146' + chr(0b101101) + '\x38') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), chr(0b1100100 + 0o0) + chr(0b111111 + 0o46) + chr(0b1100011) + chr(1622 - 1511) + '\144' + chr(7872 - 7771))('\x75' + chr(399 - 283) + '\x66' + chr(0b101101) + '\070')) _OaSP3sMznOY = jLW6pRf2DSRk(eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + chr(0b111000 + 0o67) + '\x31', 8)]) * 1e-06 MUGp3g4tuXRY = jLW6pRf2DSRk(eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(0b110010), 36015 - 36007)]) ncDYK9LWVfBn = jLW6pRf2DSRk(eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + '\157' + chr(1385 - 1334), 0o10)]) if roI3spqORKae(ES5oEprVxulp(b'\x81\xf2\xee'), '\x64' + chr(101) + '\x63' + '\157' + chr(100) + chr(101))('\165' + chr(0b1110100) + chr(102) + '\x2d' + '\x38') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xf2\xee'), chr(0b1100100) + chr(0b1100101) + chr(8073 - 7974) + '\x6f' + chr(5407 - 5307) + chr(0b1000110 + 0o37))('\x75' + chr(0b111011 + 0o71) + chr(6653 - 6551) + chr(1404 - 1359) + chr(0b10000 + 0o50))) XrSglziO_kwd = jLW6pRf2DSRk(eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001), 8)]) * 0.001 if roI3spqORKae(ES5oEprVxulp(b'\x81\xe0\xfde'), chr(0b1100100) + chr(1554 - 1453) + '\143' + chr(0b1101111) + chr(0b1001000 + 0o34) + '\x65')(chr(0b1110101) + '\164' + chr(7906 - 7804) + chr(0b10010 + 0o33) + '\070') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xe0\xfde'), chr(0b1011100 + 0o10) + chr(8440 - 8339) + '\143' + '\157' + chr(0b1100100) + chr(101))('\165' + chr(0b1010101 + 0o37) + chr(2293 - 2191) + chr(0b100001 + 0o14) + '\070')) M7GWgFE4VK5D = nzTpIcepk0o8(eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061', 8)]) if roI3spqORKae(ES5oEprVxulp(b'\x81\xff\xe2e'), chr(9265 - 9165) + chr(9000 - 8899) + chr(99) + '\x6f' + chr(0b10000 + 0o124) + chr(0b1100101))('\165' + chr(0b101100 + 0o110) + '\x66' + chr(45) + chr(126 - 70)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xff\xe2e'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + chr(0b10 + 0o53) + '\x38')) h5ftM9zvebEG = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + '\157' + '\061', 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xf5\xfeg'), chr(100) + chr(2478 - 2377) + chr(5037 - 4938) + '\157' + '\x64' + chr(5897 - 5796))('\165' + chr(0b1110100) + chr(0b0 + 0o146) + chr(0b10101 + 0o30) + chr(0b11010 + 0o36)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xf5\xfeg'), '\x64' + chr(5155 - 5054) + '\x63' + chr(7794 - 7683) + '\x64' + chr(101))(chr(117) + chr(10769 - 10653) + chr(3710 - 3608) + chr(1154 - 1109) + chr(85 - 29))) ZsCw5D6R0uXJ = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(0b10 + 0o155) + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xe0\xf4h'), chr(0b1100100) + '\145' + '\143' + chr(111) + chr(2032 - 1932) + chr(101))(chr(117) + chr(0b110100 + 0o100) + '\146' + chr(544 - 499) + chr(703 - 647)) in eemPYp2vtTSr: tgCaEODbSrcw = nzTpIcepk0o8(chr(0b100101 + 0o13) + '\157' + '\x31', 8) w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xe0\xf4h'), '\144' + chr(8175 - 8074) + chr(0b1101 + 0o126) + '\x6f' + chr(1741 - 1641) + chr(4669 - 4568))(chr(8686 - 8569) + chr(8873 - 8757) + '\x66' + chr(45) + '\070')) RWgSr3TDLKEe = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + '\157' + chr(602 - 553), 8)] myQeYAKamFEM = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(2034 - 1986) + '\157' + chr(50), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xf5\xfe\x7f'), '\144' + chr(101) + chr(3177 - 3078) + chr(111) + '\144' + chr(0b1100101))(chr(10710 - 10593) + chr(0b0 + 0o164) + chr(6117 - 6015) + '\x2d' + chr(0b10010 + 0o46)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xf5\xfe\x7f'), chr(100) + chr(6431 - 6330) + '\143' + '\157' + '\x64' + chr(7098 - 6997))(chr(0b11101 + 0o130) + chr(7069 - 6953) + chr(0b1100110) + chr(45) + chr(0b111000))) LCmbVMeyipqX = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + '\x6f' + '\x31', 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xfa\xe3u'), chr(0b1011 + 0o131) + chr(0b101100 + 0o71) + chr(0b1100011) + chr(111) + '\x64' + '\145')(chr(0b11001 + 0o134) + chr(761 - 645) + '\x66' + chr(45) + chr(1423 - 1367)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xfa\xe3u'), chr(8904 - 8804) + chr(7822 - 7721) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(2540 - 2439))(chr(117) + chr(116) + chr(0b1010 + 0o134) + '\x2d' + '\070')) wDEIk17vEWwT = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(9457 - 9346) + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xd2'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(45) + '\x38') in eemPYp2vtTSr: NdBgRJDyurSB = nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + '\x31', 8) if roI3spqORKae(ES5oEprVxulp(b'\x81\xfd\xeeh'), chr(100) + chr(0b1 + 0o144) + '\143' + chr(111) + chr(100) + '\x65')('\x75' + '\164' + chr(1631 - 1529) + chr(0b10001 + 0o34) + '\x38') in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xfd\xeeh'), chr(2169 - 2069) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(101))('\165' + chr(11643 - 11527) + '\x66' + chr(45) + chr(0b111000))) hLIySoEW0NmV = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + '\x6f' + '\061', 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xdf\xdd'), '\144' + chr(0b1100101) + chr(0b1010111 + 0o14) + chr(0b1101111) + chr(1541 - 1441) + chr(0b1100101))(chr(10366 - 10249) + chr(0b1100001 + 0o23) + '\x66' + chr(1188 - 1143) + chr(0b100 + 0o64)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xdf\xdd'), '\x64' + '\145' + '\143' + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1011000 + 0o34) + chr(3244 - 3142) + chr(0b101101) + chr(0b100010 + 0o26))) kSgdIN0MzqOp = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(9726 - 9615) + chr(49), 8)] if roI3spqORKae(ES5oEprVxulp(b'\x81\xc5'), '\144' + '\145' + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(117) + chr(0b1110000 + 0o4) + chr(0b101010 + 0o74) + chr(0b101101) + chr(0b111000)) in eemPYp2vtTSr: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x81\xc5'), '\x64' + chr(0b1100101) + chr(0b1011011 + 0o10) + '\157' + '\144' + chr(8519 - 8418))(chr(0b1110101) + chr(0b1001010 + 0o52) + chr(0b1100110) + chr(1845 - 1800) + chr(56))) EOVsduj7tJxx = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1383 - 1335) + chr(111) + chr(0b110001), 8)] if ZsCw5D6R0uXJ: (NixjZbnCaKrH, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(ZsCw5D6R0uXJ) if EOVsduj7tJxx: EOVsduj7tJxx = N9zlRy29S1SS(EOVsduj7tJxx) fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0O\x7fY'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(6128 - 6026) + chr(45) + '\x38') zyRtA8NmEbRI = roI3spqORKae(ES5oEprVxulp(b'\xfa'), chr(100) + chr(9995 - 9894) + chr(99) + '\157' + chr(0b1100100) + '\145')('\x75' + chr(0b101010 + 0o112) + chr(8794 - 8692) + '\055' + chr(1987 - 1931)) if EOVsduj7tJxx not in [roI3spqORKae(ES5oEprVxulp(b'\x9d'), '\x64' + chr(101) + chr(99) + chr(111) + '\144' + chr(101))(chr(989 - 872) + chr(0b1110100) + '\x66' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x9e'), chr(0b101001 + 0o73) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(101))(chr(117) + chr(0b111010 + 0o72) + '\x66' + chr(530 - 485) + chr(0b101000 + 0o20)), roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(0b1100100) + chr(0b11000 + 0o115) + chr(0b0 + 0o143) + '\157' + chr(8996 - 8896) + chr(101))('\x75' + '\164' + chr(102) + chr(45) + chr(56))]: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xd5\xf5\xc8c\\E}H\xde\x9a\x99\xf2'), chr(0b1000000 + 0o44) + '\x65' + chr(0b11010 + 0o111) + '\157' + chr(0b1000011 + 0o41) + chr(10088 - 9987))('\x75' + chr(11511 - 11395) + '\146' + chr(849 - 804) + '\x38'))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc2\xfc\xf9&L4b|\xdd\x82\xaa\x86d\x0fx\x16\xc6\x87\x9a\x86\xfa0CwO\x90\xcf[\x17\xd7'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + '\x64' + '\x65')('\165' + chr(116) + chr(0b1000101 + 0o41) + chr(1956 - 1911) + chr(566 - 510))) return (nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11111 + 0o21), 8), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xd7\xee\xado^4zr\xc5\xcb\xaf\x86q\x01}\x13\x82\xd4\x89\x8c\xf05\x05m\\\x94\xd8[\x1e\xd0\x8f\x13\xaf\xab?H'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1001101 + 0o42) + '\144' + '\x65')(chr(10102 - 9985) + chr(6698 - 6582) + chr(0b11100 + 0o112) + chr(45) + chr(0b101001 + 0o17)), roI3spqORKae(ES5oEprVxulp(b"\xdd\xa0\xbeMj'rr\xe0\xb4\x8d\xec"), chr(100) + '\145' + chr(0b1101 + 0o126) + '\x6f' + chr(0b11000 + 0o114) + chr(0b1100101))(chr(117) + '\164' + chr(0b1100110) + '\x2d' + '\070'))(EOVsduj7tJxx)) if JTR9hYwuNF24: try: vniSnlI09HNg = hUcsWwAd0nE_.GXeaJPoSsqx4(JTR9hYwuNF24) except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xce\xf2\xe9&@us=\xd7\x82\xa2\xc3'\x0ep\x17\x83"), chr(0b1100100) + '\x65' + chr(3799 - 3700) + chr(5935 - 5824) + chr(100) + chr(4527 - 4426))('\x75' + chr(0b1011100 + 0o30) + chr(0b11011 + 0o113) + chr(1346 - 1301) + chr(0b111000))) return (nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b110000), 8), roI3spqORKae(ES5oEprVxulp(b"\xce\xf2\xe9&@us=\xd7\x82\xa2\xc3'\x0ep\x17\x83"), '\x64' + chr(101) + '\143' + chr(0b1000010 + 0o55) + chr(0b1100100) + chr(0b1100101))(chr(11036 - 10919) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b111000))) if not JTR9hYwuNF24: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xd5\xf5\xc8c\\E}H\xde\x9a\x99\xf2'), '\x64' + '\x65' + chr(0b1000011 + 0o40) + chr(0b1101111) + '\144' + chr(101))(chr(11865 - 11748) + chr(116) + chr(0b10100 + 0o122) + '\x2d' + chr(56)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaYK}xx\x91\x8d\xa7\xc3k\x041\x13\x95\xd4\x98\x86\xe8,LlI\x95\x9b]\x08\xcd\x85\x1d\xb5'), '\x64' + chr(0b1101 + 0o130) + '\x63' + chr(0b1101111 + 0o0) + '\144' + '\145')(chr(0b1110101) + '\x74' + '\146' + '\x2d' + '\x38')) return (nzTpIcepk0o8('\060' + '\x6f' + '\060', 8), roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaYK}xx\x91\x8d\xa7\xc3k\x041\x13\x95\xd4\x98\x86\xe8,LlI\x95\x9b]\x08\xcd\x85\x1d\xb5'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b110000 + 0o64) + '\x65')(chr(117) + '\164' + chr(0b1010 + 0o134) + chr(45) + '\070')) if M7GWgFE4VK5D != nzTpIcepk0o8(chr(2085 - 2037) + chr(111) + chr(48), 8): M7GWgFE4VK5D = -M7GWgFE4VK5D if hLIySoEW0NmV: if roI3spqORKae(ES5oEprVxulp(b'\x98'), '\x64' + '\145' + chr(0b1100011) + chr(6893 - 6782) + chr(100) + chr(0b11000 + 0o115))(chr(0b1110101) + chr(0b1110100) + '\146' + '\055' + chr(56)) == hLIySoEW0NmV[nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\060', 8)]: if roI3spqORKae(ES5oEprVxulp(b'\x81'), '\x64' + '\145' + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(0b111111 + 0o46))(chr(117) + '\164' + chr(2957 - 2855) + '\x2d' + chr(56)) not in hLIySoEW0NmV: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc2\xf2\xe0oCs4~\xde\x85\xb8\xc3i\x14x\x15\x88\xd4\x85\x93\xed0Jp\x0c\xaa\x8foX\xd4\x99\x01\xaf\xe22C\xcf\xa5\x07\xd5\xca\xfc\xffk\r 9G\x91\x9c\xa6\xc3u\x051 \xc6\x9d\x99\xc3\xf87\x05wB\x85\xdeU\x1d\xcb'), chr(100) + '\x65' + '\x63' + chr(111) + '\x64' + chr(0b1011101 + 0o10))(chr(2255 - 2138) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x81\xbe\xa0+\x00990\x9c\xc6\xe3\x8b*M<'), chr(4481 - 4381) + chr(0b101100 + 0o71) + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b101001 + 0o4) + '\x38')) return (nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110000), 8), roI3spqORKae(ES5oEprVxulp(b'\xc2\xf2\xe0oCs4~\xde\x85\xb8\xc3i\x14x\x15\x88\xd4\x85\x93\xed0Jp\x0c\xaa\x8foX\xd4\x99\x01\xaf\xe22C\xcf\xa5\x07\xd5\xca\xfc\xffk\r 9G\x91\x9c\xa6\xc3u\x051 \xc6\x9d\x99\xc3\xf87\x05wB\x85\xdeU\x1d\xcb'), chr(2098 - 1998) + chr(0b111000 + 0o55) + '\143' + chr(1722 - 1611) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(102) + chr(45) + chr(56))) else: sEVgLUlRGUb0 = hLIySoEW0NmV.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x81'), '\144' + '\145' + '\143' + chr(0b111001 + 0o66) + chr(4539 - 4439) + '\x65')(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(2021 - 1965)))[nzTpIcepk0o8(chr(510 - 462) + chr(0b1010010 + 0o35) + chr(1758 - 1709), 8)] hLIySoEW0NmV = roI3spqORKae(ES5oEprVxulp(b'\x98'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\145')(chr(117) + '\x74' + chr(6167 - 6065) + '\x2d' + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101 + 0o142) + '\x64' + chr(4688 - 4587))('\165' + chr(0b110101 + 0o77) + chr(0b111000 + 0o56) + chr(902 - 857) + '\070') == hLIySoEW0NmV[nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(48), 8)]: if roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(0b1000011 + 0o41) + chr(0b1100101) + '\143' + chr(111) + chr(3460 - 3360) + chr(101))(chr(0b1110101) + chr(0b11000 + 0o134) + chr(102) + chr(0b1110 + 0o37) + chr(0b111000)) not in hLIySoEW0NmV: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc3\xe3\xf9oBz4F\x86\xb6\xee\xcbr\x13eZ\x84\x91\xca\x8a\xf7yCq^\x9c\x9b\x05U\xe3\xcc\x05\xb3\xa7"C\xcf\x96I\x9c\xdf\xb3\xech\r}zi\xd4\x8c\xab\xd4'), chr(0b1100100) + chr(10007 - 9906) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(117) + '\164' + '\x66' + chr(45) + '\070')) return (nzTpIcepk0o8('\060' + '\157' + chr(0b10 + 0o56), 8), roI3spqORKae(ES5oEprVxulp(b'\xc3\xe3\xf9oBz4F\x86\xb6\xee\xcbr\x13eZ\x84\x91\xca\x8a\xf7yCq^\x9c\x9b\x05U\xe3\xcc\x05\xb3\xa7"C\xcf\x96I\x9c\xdf\xb3\xech\r}zi\xd4\x8c\xab\xd4'), '\x64' + chr(101) + chr(0b1100011) + chr(10130 - 10019) + chr(0b110 + 0o136) + chr(0b1100101))(chr(117) + '\164' + '\x66' + '\x2d' + chr(56))) else: sEVgLUlRGUb0 = hLIySoEW0NmV.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x81'), chr(0b1100100) + chr(101) + chr(3094 - 2995) + '\157' + '\144' + chr(0b1100101))(chr(117) + chr(116) + chr(7290 - 7188) + chr(0b100001 + 0o14) + '\070'))[nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + chr(0b101100 + 0o5), 8)] hLIySoEW0NmV = roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(0b10110 + 0o116) + chr(208 - 107) + chr(0b1100011) + chr(111) + chr(6418 - 6318) + '\x65')(chr(117) + '\164' + chr(7730 - 7628) + chr(0b101101) + '\x38') if kSgdIN0MzqOp: wXNZi6rDt0jg = kSgdIN0MzqOp.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x96'), '\144' + chr(5255 - 5154) + chr(99) + '\157' + chr(100) + chr(6825 - 6724))(chr(0b1 + 0o164) + chr(0b110010 + 0o102) + '\146' + chr(0b10101 + 0o30) + chr(2073 - 2017))) if roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1000010 + 0o43))(chr(13199 - 13082) + chr(0b1110100) + '\146' + chr(0b101101) + '\x38') in wXNZi6rDt0jg: HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), chr(100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(8534 - 8417) + '\x74' + chr(0b111000 + 0o56) + chr(45) + '\070') if roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), chr(100) + chr(0b1100101) + chr(0b11110 + 0o105) + chr(4540 - 4429) + chr(100) + '\145')('\x75' + chr(0b1100111 + 0o15) + '\x66' + chr(70 - 25) + chr(1917 - 1861)) not in eemPYp2vtTSr: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), '\144' + chr(101) + chr(0b1100011) + chr(0b100100 + 0o113) + chr(0b110011 + 0o61) + '\x65')(chr(0b1110101) + chr(9060 - 8944) + chr(0b1100110) + '\x2d' + chr(0b100100 + 0o24)) if roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), '\x64' + chr(0b101001 + 0o74) + chr(2066 - 1967) + chr(0b111010 + 0o65) + chr(6918 - 6818) + chr(7939 - 7838))('\165' + chr(116) + chr(102) + '\x2d' + chr(757 - 701)) in eemPYp2vtTSr: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9]'), '\x64' + '\x65' + chr(958 - 859) + chr(6262 - 6151) + chr(0b1100001 + 0o3) + chr(0b1100101))('\165' + chr(116) + chr(102) + '\055' + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\x64' + '\x65' + chr(0b111111 + 0o44) + chr(111) + chr(8713 - 8613) + chr(0b1011100 + 0o11))(chr(117) + chr(116) + chr(0b1100110) + '\x2d' + '\070') in wXNZi6rDt0jg: HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\x64' + '\145' + chr(2591 - 2492) + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), '\x64' + '\x65' + chr(6187 - 6088) + chr(111) + chr(4127 - 4027) + chr(0b1100101))('\x75' + chr(0b11001 + 0o133) + '\146' + '\x2d' + chr(0b111000)) not in eemPYp2vtTSr: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N'), chr(6458 - 6358) + chr(0b111001 + 0o54) + chr(7975 - 7876) + chr(0b1100 + 0o143) + chr(100) + '\145')('\165' + chr(116) + chr(0b1011010 + 0o14) + '\055' + chr(0b100000 + 0o30)) if roI3spqORKae(ES5oEprVxulp(b'\x81\xf7\xee'), chr(0b1100100) + chr(0b1100101) + '\x63' + '\x6f' + chr(6498 - 6398) + '\x65')(chr(0b1001010 + 0o53) + chr(116) + chr(2583 - 2481) + '\x2d' + chr(0b101100 + 0o14)) in eemPYp2vtTSr: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00]'), '\x64' + chr(0b11011 + 0o112) + '\143' + '\157' + '\144' + chr(0b100101 + 0o100))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\xe5'), chr(0b1100100) + chr(7365 - 7264) + chr(243 - 144) + '\x6f' + chr(100) + chr(0b1100101))(chr(117) + chr(7836 - 7720) + chr(102) + chr(0b10100 + 0o31) + chr(56)) in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0O\x7fY'), chr(4286 - 4186) + '\x65' + '\143' + chr(111) + chr(0b1000101 + 0o37) + chr(101))('\x75' + chr(116) + chr(1505 - 1403) + '\x2d' + '\070') zyRtA8NmEbRI = roI3spqORKae(ES5oEprVxulp(b'\xc1\xc7'), chr(0b1011100 + 0o10) + '\x65' + chr(0b111000 + 0o53) + chr(111) + chr(100) + '\145')(chr(0b1010 + 0o153) + chr(0b1110100) + chr(102) + chr(45) + chr(56)) if roI3spqORKae(ES5oEprVxulp(b'\xe5\xa0\xe9'), '\144' + chr(5253 - 5152) + chr(8846 - 8747) + chr(111) + chr(1676 - 1576) + chr(101))('\165' + '\x74' + chr(0b110000 + 0o66) + chr(990 - 945) + '\070') in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N.Q\xe1\xc6\x87\xf4JM">'), '\144' + '\x65' + chr(99) + chr(0b1011110 + 0o21) + '\x64' + '\145')(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(2113 - 2057)) if roI3spqORKae(ES5oEprVxulp(b'\xff'), '\x64' + chr(0b0 + 0o145) + '\143' + chr(111) + chr(0b110001 + 0o63) + chr(0b1100101))(chr(0b100 + 0o161) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000)) in wXNZi6rDt0jg: HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xff'), chr(0b1010110 + 0o16) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(1206 - 1105))(chr(0b1101110 + 0o7) + '\x74' + chr(0b1001 + 0o135) + chr(0b10010 + 0o33) + '\070') fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Vd9@O\xfc\xd1\x82\xf6*0XW\xa7\xb8\xbe\xce\xd8\x1fdLa'), chr(0b1100100) + chr(101) + chr(6686 - 6587) + chr(5338 - 5227) + '\144' + chr(0b11001 + 0o114))(chr(0b1101 + 0o150) + chr(0b1110100) + '\x66' + '\x2d' + chr(56)) cg2QU5q7Ixzo = _OaSP3sMznOY CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b"\xe8\xd0\xadjLv4{\xd8\x8e\xa2\xc2'\x06~\x08\xc6\xb5\xb8\xae\xb9*Q{\\\xcb\x9biM\x89\x99&\x86\xe2"), chr(100) + chr(101) + '\x63' + chr(319 - 208) + chr(4541 - 4441) + chr(0b1011100 + 0o11))('\x75' + chr(0b1100010 + 0o22) + chr(102) + chr(0b100100 + 0o11) + chr(56))) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + chr(99) + chr(3932 - 3821) + chr(0b111110 + 0o46) + '\145')('\x75' + chr(0b1101011 + 0o11) + '\146' + chr(0b101101) + '\070'): ORW8J19YsL8H = 5e-05 else: ORW8J19YsL8H = jLW6pRf2DSRk(CMfsDQitQrpd) * 1e-06 CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xd8\xf6\xe0vHfui\xc4\x99\xab\x86a\x0fcZ\x92\x9b\x9e\x82\xf5yQlA\xd1\xc8F\x1d\xc9\xd6R\x80\xf4`\x16\xcf\x8f4\xd5'), '\144' + chr(0b1100101) + '\143' + chr(2589 - 2478) + '\144' + chr(101))('\x75' + chr(267 - 151) + '\146' + chr(1315 - 1270) + chr(2939 - 2883))) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b''), chr(9134 - 9034) + '\145' + chr(0b1001101 + 0o26) + '\157' + '\x64' + chr(101))('\165' + chr(0b10000 + 0o144) + chr(0b110100 + 0o62) + chr(45) + '\x38'): drrqTaYV3rE7 = nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b110001) + chr(51) + chr(1130 - 1082), 3178 - 3170) + nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2380 - 2328) + '\x32' + chr(0b100001 + 0o20), 0o10) else: drrqTaYV3rE7 = jLW6pRf2DSRk(CMfsDQitQrpd) + nzTpIcepk0o8(chr(831 - 783) + chr(0b10011 + 0o134) + chr(2182 - 2130) + chr(2049 - 1999) + chr(49), 8) if roI3spqORKae(ES5oEprVxulp(b'\xeb'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(0b1010100 + 0o20) + '\145')(chr(117) + '\164' + chr(102) + chr(468 - 423) + chr(2550 - 2494)) in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9S'), '\x64' + chr(4453 - 4352) + chr(0b1100011) + '\x6f' + '\x64' + '\x65')(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b100100 + 0o24)) if roI3spqORKae(ES5oEprVxulp(b'\xe8'), '\x64' + '\x65' + '\143' + chr(3766 - 3655) + chr(100) + '\145')('\x75' + chr(0b10110 + 0o136) + chr(5647 - 5545) + '\055' + '\070') in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9P'), chr(100) + chr(0b1000010 + 0o43) + chr(0b10101 + 0o116) + chr(0b110011 + 0o74) + chr(0b1000010 + 0o42) + '\145')(chr(0b10100 + 0o141) + chr(1247 - 1131) + '\146' + chr(0b100010 + 0o13) + '\070') if roI3spqORKae(ES5oEprVxulp(b'\xf8\xc1\xc0'), chr(0b1100100) + chr(0b100011 + 0o102) + chr(99) + chr(9675 - 9564) + chr(0b100 + 0o140) + chr(5043 - 4942))(chr(0b1101101 + 0o10) + chr(0b110010 + 0o102) + chr(0b100100 + 0o102) + '\x2d' + '\070') in wXNZi6rDt0jg: HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(100) + chr(101) + chr(0b111111 + 0o44) + chr(0b1100010 + 0o15) + '\144' + chr(0b1100101))('\165' + chr(0b10111 + 0o135) + chr(102) + chr(0b101101) + '\070') ztCwr6MUeq7n = nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + '\x31', 8) if roI3spqORKae(ES5oEprVxulp(b'\xef\xc1'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + chr(0b1110100) + '\146' + chr(45) + chr(0b100111 + 0o21)) in wXNZi6rDt0jg: HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(215 - 115) + '\145' + '\x63' + chr(0b1101101 + 0o2) + chr(8866 - 8766) + '\x65')(chr(0b1110101) + chr(116) + chr(9341 - 9239) + chr(0b101011 + 0o2) + chr(2412 - 2356)) HPvC2ieDISrL = nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1000000 + 0o57) + chr(49), 8) if OMPKB_AuFZpn: w5vcgUzFN3bF = eemPYp2vtTSr.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xef\xc1'), chr(0b1100100) + '\x65' + chr(0b111000 + 0o53) + '\157' + '\144' + chr(3922 - 3821))(chr(12845 - 12728) + chr(116) + '\146' + '\055' + chr(56))) TDJduOjv7mC7 = eemPYp2vtTSr[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(111) + '\x31', 8)] PoMkbBOq9EMW = TDJduOjv7mC7.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x80'), '\144' + chr(0b11001 + 0o114) + '\143' + chr(111) + chr(5542 - 5442) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1000101 + 0o41) + chr(45) + '\x38')) else: PoMkbBOq9EMW = N9zlRy29S1SS(TDJduOjv7mC7).LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x80'), '\x64' + chr(101) + chr(0b1100001 + 0o2) + '\x6f' + '\144' + chr(101))(chr(0b1000101 + 0o60) + '\x74' + '\146' + chr(1846 - 1801) + '\070')) if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + '\145')(chr(792 - 675) + chr(0b1110100) + chr(10052 - 9950) + chr(1087 - 1042) + '\x38') and roI3spqORKae(ES5oEprVxulp(b'\xed\xdd\xc4'), chr(0b1010001 + 0o23) + chr(0b1100101) + chr(99) + chr(6529 - 6418) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(7028 - 6926) + chr(45) + '\x38') in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9@O\xfc'), chr(100) + chr(6540 - 6439) + chr(3907 - 3808) + chr(0b1101111) + chr(0b1010110 + 0o16) + chr(0b1100101))(chr(0b1011011 + 0o32) + chr(7302 - 7186) + chr(0b1100110) + chr(0b101101) + '\070') if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(0b1100100) + chr(5178 - 5077) + chr(99) + '\157' + chr(6481 - 6381) + '\145')(chr(0b110010 + 0o103) + chr(0b10111 + 0o135) + '\146' + chr(0b101100 + 0o1) + chr(0b111000)) and roI3spqORKae(ES5oEprVxulp(b'\xef\xc1'), chr(0b1100 + 0o130) + chr(101) + chr(0b1100011) + '\157' + '\144' + chr(0b101011 + 0o72))('\x75' + chr(0b0 + 0o164) + chr(7487 - 7385) + chr(553 - 508) + chr(56)) in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0E\x7f9@O\xfc'), chr(0b1100100) + '\x65' + chr(99) + chr(881 - 770) + chr(0b1100100 + 0o0) + '\145')(chr(117) + '\x74' + chr(0b1100110) + '\x2d' + chr(56)) if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), '\144' + '\145' + chr(99) + chr(8470 - 8359) + chr(100) + '\145')(chr(117) + chr(3105 - 2989) + '\x66' + chr(45) + chr(56)) and roI3spqORKae(ES5oEprVxulp(b'\xed\xdd\xc4'), chr(0b1001011 + 0o31) + chr(101) + chr(0b11011 + 0o110) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b110110 + 0o77) + chr(9449 - 9333) + chr(0b100 + 0o142) + chr(0b101001 + 0o4) + chr(56)) in wXNZi6rDt0jg: fBsoIoeG_eRQ = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9UO\xfc'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(6180 - 6080) + chr(0b1100101))(chr(9450 - 9333) + chr(0b1110100) + '\146' + chr(45) + chr(0b1011 + 0o55)) if _OaSP3sMznOY == nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1111 + 0o140) + chr(0b1111 + 0o41), 8): _OaSP3sMznOY = 5e-05 if XrSglziO_kwd == nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o31), 8): XrSglziO_kwd = 0.18 (Z7ICPihkHtHA, pat92IisfQkU) = ([], []) uNg9Yeq376oN = hUcsWwAd0nE_.get_version() if nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001), 8): for ffiOpFBWGmZU in vniSnlI09HNg: dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1001101 + 0o27) + chr(7153 - 7052) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110001 + 0o4) + '\164' + chr(0b110110 + 0o60) + chr(45) + chr(0b111000)) if ftfygxgFas5X(ffiOpFBWGmZU) > nzTpIcepk0o8(chr(0b110000) + chr(0b1011000 + 0o27) + '\062', 8): reSVCd0UbL79 = {} fGxDbmBdBlCw = {} fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(1235 - 1135) + '\145' + chr(6532 - 6433) + chr(111) + chr(100) + chr(0b111110 + 0o47))(chr(117) + chr(11185 - 11069) + '\x66' + chr(0b100 + 0o51) + chr(0b1100 + 0o54))] = h5ftM9zvebEG fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKgr\xd7\x9f\xb9\xc7u\x05N\n\x87\x97\x81\x82\xfe<V'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1001101 + 0o42) + chr(0b110110 + 0o56) + chr(7217 - 7116))(chr(117) + chr(9967 - 9851) + '\x66' + '\x2d' + chr(0b111000 + 0o0))] = uNg9Yeq376oN fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xba\xc3j\x10'), chr(7852 - 7752) + chr(0b1011011 + 0o12) + chr(2670 - 2571) + chr(6733 - 6622) + '\144' + '\x65')(chr(117) + chr(0b111 + 0o155) + chr(102) + chr(0b101101) + chr(2744 - 2688))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1100010 + 0o2) + chr(0b1100101) + chr(1085 - 986) + chr(0b1101111) + chr(0b10110 + 0o116) + chr(0b1100101))('\165' + chr(8792 - 8676) + chr(0b1100110) + chr(45) + chr(56)) % nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(111) + chr(0b1010 + 0o52) + chr(0b110010) + '\x31', 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9s\x05|\n'), chr(0b1100100) + '\145' + chr(0b1100011) + '\157' + '\144' + '\145')('\165' + '\164' + chr(102) + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(100) + '\x65' + chr(6678 - 6579) + chr(9425 - 9314) + chr(0b1100100) + chr(0b1100101))(chr(0b1100100 + 0o21) + chr(0b1100011 + 0o21) + chr(0b1011101 + 0o11) + chr(906 - 861) + '\x38') % nzTpIcepk0o8(chr(1365 - 1317) + chr(0b1101111) + chr(52) + chr(0b110010) + '\061', 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), '\x64' + chr(5018 - 4917) + '\x63' + '\157' + chr(707 - 607) + '\145')('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(0b1100101) + chr(99) + chr(111) + chr(0b1000000 + 0o44) + '\x65')(chr(0b1001001 + 0o54) + chr(10215 - 10099) + chr(102) + chr(45) + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(2240 - 2140) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(1221 - 1176) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(8934 - 8823) + chr(8974 - 8874) + chr(0b111100 + 0o51))('\x75' + chr(116) + chr(102) + '\x2d' + chr(0b110000 + 0o10)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(0b1100100) + '\x65' + '\143' + chr(0b1101111) + '\144' + chr(0b10011 + 0o122))(chr(0b111101 + 0o70) + '\x74' + '\x66' + '\055' + chr(296 - 240))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + '\x65' + chr(0b111111 + 0o44) + chr(0b1101101 + 0o2) + chr(100) + '\x65')(chr(11794 - 11677) + chr(116) + chr(0b1010111 + 0o17) + '\x2d' + chr(0b11110 + 0o32)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(2707 - 2607) + '\145' + '\143' + '\157' + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(939 - 838) + chr(99) + chr(0b1101111) + '\x64' + chr(8957 - 8856))(chr(0b1110011 + 0o2) + chr(116) + chr(0b101 + 0o141) + chr(0b101101) + chr(56)) nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Hb'), chr(0b1001110 + 0o26) + chr(101) + '\x63' + chr(0b111111 + 0o60) + '\144' + chr(0b1100101))(chr(117) + '\164' + chr(0b10011 + 0o123) + '\x2d' + chr(308 - 252)) FKO_XxLfWbYt = ffiOpFBWGmZU.LfRrQOxuDvnC() if FKO_XxLfWbYt[nzTpIcepk0o8('\060' + '\157' + '\x31', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x82\xa3\xbd'), chr(3073 - 2973) + '\x65' + '\x63' + chr(10835 - 10724) + chr(0b100110 + 0o76) + chr(101))(chr(0b1110101) + chr(0b1101110 + 0o6) + '\x66' + chr(0b101101) + '\070'): FKO_XxLfWbYt[nzTpIcepk0o8('\060' + chr(0b11111 + 0o120) + chr(0b10100 + 0o35), 8)] = roI3spqORKae(ES5oEprVxulp(b'\x9c\xbd\xbd6'), chr(100) + chr(101) + chr(99) + chr(0b101111 + 0o100) + chr(0b1100100) + chr(9149 - 9048))(chr(0b1110101) + chr(0b111 + 0o155) + chr(102) + chr(45) + chr(56)) cwMmVhWUM3ZC = FKO_XxLfWbYt[nzTpIcepk0o8(chr(291 - 243) + '\157' + '\x31', 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x82'), chr(8443 - 8343) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + '\145')('\165' + chr(5246 - 5130) + chr(5532 - 5430) + chr(0b11101 + 0o20) + chr(0b111000))) if fBsoIoeG_eRQ == roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0O\x7fY'), chr(0b101010 + 0o72) + '\x65' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b11011 + 0o112))(chr(117) + '\164' + chr(0b11111 + 0o107) + chr(45) + '\x38'): if zyRtA8NmEbRI == roI3spqORKae(ES5oEprVxulp(b'\xc1\xc7'), '\144' + chr(9662 - 9561) + chr(99) + chr(111) + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(74 - 29) + chr(0b10100 + 0o44)): _OaSP3sMznOY = jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(0b110001 + 0o76) + chr(0b10000 + 0o40), 8)]) * 0.001 else: _OaSP3sMznOY = hUcsWwAd0nE_.getfield(zyRtA8NmEbRI, EOVsduj7tJxx, cwMmVhWUM3ZC[nzTpIcepk0o8(chr(2237 - 2189) + chr(0b1010101 + 0o32) + chr(516 - 468), 8)]) if FKO_XxLfWbYt[nzTpIcepk0o8(chr(335 - 287) + chr(111) + chr(1354 - 1305), 8)][nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + chr(0b110000), 8)] != roI3spqORKae(ES5oEprVxulp(b'\x81'), '\144' + chr(0b10101 + 0o120) + '\143' + '\157' + '\x64' + '\145')(chr(2708 - 2591) + chr(12586 - 12470) + chr(0b1100110) + chr(0b11000 + 0o25) + chr(101 - 45)): (MUGp3g4tuXRY, ncDYK9LWVfBn) = (0.0, 90.0) else: (MUGp3g4tuXRY, ncDYK9LWVfBn) = (0.0, -90.0) nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0O\x7fY'), chr(100) + chr(8959 - 8858) + chr(99) + chr(0b10001 + 0o136) + chr(1339 - 1239) + chr(0b1011101 + 0o10))(chr(117) + chr(0b1110100) + '\146' + '\055' + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b11101 + 0o107) + '\x65' + chr(3975 - 3876) + chr(111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + '\x2d' + chr(0b100001 + 0o27))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(3213 - 3113) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b110000 + 0o64) + chr(0b1100101))(chr(0b1110101) + chr(0b100 + 0o160) + chr(4682 - 4580) + chr(0b101101) + '\070') % _OaSP3sMznOY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\x64' + '\x65' + chr(99) + '\157' + chr(0b1011000 + 0o14) + chr(0b1100101))(chr(0b1001011 + 0o52) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\144' + chr(0b111101 + 0o50) + chr(5257 - 5158) + chr(111) + chr(100) + chr(0b1100100 + 0o1))('\165' + chr(0b1110100) + chr(102) + chr(0b1101 + 0o40) + chr(2011 - 1955)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(0b1010011 + 0o21) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + '\x74' + chr(0b1000110 + 0o40) + chr(0b101101) + chr(715 - 659))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(7040 - 6940) + chr(3543 - 3442) + '\x63' + '\x6f' + chr(7983 - 7883) + chr(0b1100101))(chr(0b110101 + 0o100) + chr(0b1110100) + chr(0b1100110) + '\x2d' + '\070') % ncDYK9LWVfBn if ftfygxgFas5X(FKO_XxLfWbYt) > nzTpIcepk0o8(chr(48) + chr(1268 - 1157) + '\x36', 8): t1cL4AkBZt3j = FKO_XxLfWbYt[nzTpIcepk0o8('\060' + '\157' + '\x36', 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x97'), chr(8988 - 8888) + chr(101) + chr(1291 - 1192) + chr(111) + chr(0b1100100) + chr(101))(chr(117) + chr(13055 - 12939) + chr(727 - 625) + chr(682 - 637) + chr(1132 - 1076))) if ftfygxgFas5X(t1cL4AkBZt3j) == nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + '\x32', 8): NXbW5jBRufBw = nzTpIcepk0o8(chr(48) + '\x6f' + '\060', 8) _Zfv7_Ywl8tJ = t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x83'), '\144' + '\x65' + '\143' + chr(0b11000 + 0o127) + chr(100) + chr(6149 - 6048))(chr(117) + chr(0b11010 + 0o132) + chr(0b1100110) + chr(0b101101) + '\070')) GzduZJ_Pf_Im = FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10000 + 0o47), 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x97'), '\144' + chr(101) + chr(4066 - 3967) + chr(111) + '\x64' + chr(0b1 + 0o144))(chr(0b1110101) + chr(0b1000100 + 0o60) + chr(5239 - 5137) + '\055' + chr(776 - 720))) gmETemTYwe0s = nzTpIcepk0o8(_Zfv7_Ywl8tJ[nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + chr(2016 - 1966), 8)]) if gmETemTYwe0s < nzTpIcepk0o8('\x30' + chr(111) + chr(2246 - 2197) + chr(51) + chr(0b101111 + 0o3), 8): vhCH1m5Kub2C = N9zlRy29S1SS(nzTpIcepk0o8(chr(48) + chr(7057 - 6946) + '\063' + '\067' + chr(0b110010) + chr(0b110000), ord("\x08")) + gmETemTYwe0s) else: vhCH1m5Kub2C = N9zlRy29S1SS(nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b101000 + 0o15) + '\065' + chr(743 - 691), 5007 - 4999) + gmETemTYwe0s) E_X6tV8koIsq = nzTpIcepk0o8(_Zfv7_Ywl8tJ[nzTpIcepk0o8('\060' + chr(3194 - 3083) + chr(148 - 100), 8)]) if E_X6tV8koIsq < nzTpIcepk0o8(chr(48) + chr(3262 - 3151) + chr(49) + chr(292 - 242), 0b1000): E_X6tV8koIsq = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + '\145' + chr(99) + chr(12111 - 12000) + chr(0b1100100) + chr(2667 - 2566))('\x75' + chr(0b1110100) + '\146' + chr(45) + '\x38') + N9zlRy29S1SS(E_X6tV8koIsq) else: E_X6tV8koIsq = N9zlRy29S1SS(E_X6tV8koIsq) tIs1AyIkUN4z = nzTpIcepk0o8(_Zfv7_Ywl8tJ[nzTpIcepk0o8('\060' + '\x6f' + '\061', 8)]) if tIs1AyIkUN4z < nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + '\061' + chr(50), 8): tIs1AyIkUN4z = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(5920 - 5820) + chr(9434 - 9333) + chr(0b1010 + 0o131) + chr(9245 - 9134) + chr(0b1010000 + 0o24) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(1831 - 1729) + '\x2d' + '\070') + N9zlRy29S1SS(tIs1AyIkUN4z) else: tIs1AyIkUN4z = N9zlRy29S1SS(tIs1AyIkUN4z) oprIvDIRQyCb = t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + chr(0b1000 + 0o51), 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x96'), '\144' + '\145' + chr(0b1100011) + chr(0b1011110 + 0o21) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000))) uWR81NZWrdv8 = nzTpIcepk0o8(oprIvDIRQyCb[nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(4767 - 4656) + '\x30', 8)]) if GzduZJ_Pf_Im[nzTpIcepk0o8(chr(48) + '\157' + chr(0b101110 + 0o2), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xfc\xde'), chr(0b100010 + 0o102) + '\x65' + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(45) + chr(0b111000)): uWR81NZWrdv8 = uWR81NZWrdv8 + nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101001 + 0o6) + chr(0b10001 + 0o40) + chr(2103 - 2051), ord("\x08")) if uWR81NZWrdv8 < nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + chr(0b110001) + chr(50), 8): uWR81NZWrdv8 = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\144' + chr(101) + chr(99) + chr(10338 - 10227) + '\144' + '\145')('\165' + '\x74' + '\146' + chr(45) + '\070') + N9zlRy29S1SS(uWR81NZWrdv8) else: uWR81NZWrdv8 = N9zlRy29S1SS(uWR81NZWrdv8) XURpmPuEWCNF = nzTpIcepk0o8(oprIvDIRQyCb[nzTpIcepk0o8('\x30' + '\157' + chr(0b111 + 0o52), 8)]) if XURpmPuEWCNF < nzTpIcepk0o8('\060' + chr(0b111111 + 0o60) + chr(0b110001) + chr(0b110010), 8): XURpmPuEWCNF = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(3756 - 3656) + '\x65' + chr(2444 - 2345) + chr(7221 - 7110) + chr(100) + chr(101))(chr(0b1110101) + chr(1713 - 1597) + chr(8521 - 8419) + '\055' + chr(0b111000)) + N9zlRy29S1SS(XURpmPuEWCNF) else: XURpmPuEWCNF = N9zlRy29S1SS(XURpmPuEWCNF) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9c\x01e\x1f'), chr(956 - 856) + chr(2430 - 2329) + '\x63' + '\157' + '\144' + '\145')(chr(117) + chr(0b1101101 + 0o7) + chr(0b1100100 + 0o2) + chr(45) + chr(56))] = vhCH1m5Kub2C + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(100) + '\x65' + chr(0b1100011) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(12609 - 12493) + chr(0b1011101 + 0o11) + chr(0b10011 + 0o32) + chr(1025 - 969)) + E_X6tV8koIsq + roI3spqORKae(ES5oEprVxulp(b'\x96'), '\x64' + '\145' + chr(2414 - 2315) + chr(5890 - 5779) + chr(0b1100100) + chr(0b1100000 + 0o5))('\165' + chr(0b1000010 + 0o62) + '\x66' + '\055' + chr(56)) + tIs1AyIkUN4z + roI3spqORKae(ES5oEprVxulp(b'\x96'), '\144' + chr(0b1100101) + chr(0b1100010 + 0o1) + chr(1679 - 1568) + chr(0b1100100) + chr(0b1100101))(chr(0b1010101 + 0o40) + '\x74' + chr(0b1100110) + chr(1212 - 1167) + chr(0b111000)) + uWR81NZWrdv8 + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(2116 - 2016) + chr(0b1100101))(chr(0b100101 + 0o120) + chr(0b1110100) + chr(0b10101 + 0o121) + chr(1383 - 1338) + chr(0b101011 + 0o15)) + XURpmPuEWCNF + roI3spqORKae(ES5oEprVxulp(b'\x96\xa3\xbd(\x1d$'), chr(0b1001010 + 0o32) + chr(0b1000100 + 0o41) + '\143' + chr(0b1100 + 0o143) + chr(9697 - 9597) + chr(101))(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9s\t|\x1f\xb9\x8e\x85\x8d\xfc'), '\x64' + chr(0b1100101) + '\x63' + chr(7260 - 7149) + chr(100) + chr(101))(chr(0b1110101) + chr(5283 - 5167) + chr(0b1100110) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xff\xd2\xc3'), '\144' + chr(0b110 + 0o137) + chr(0b1000110 + 0o35) + '\x6f' + '\144' + chr(9121 - 9020))(chr(0b11000 + 0o135) + chr(12922 - 12806) + chr(102) + chr(45) + '\070') if wDEIk17vEWwT == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1011101 + 0o7) + chr(0b1100101) + chr(0b10001 + 0o122) + chr(0b1010001 + 0o36) + chr(3450 - 3350) + chr(101))(chr(0b1110101) + chr(0b1001110 + 0o46) + chr(7152 - 7050) + chr(0b101101) + chr(930 - 874)): if GzduZJ_Pf_Im[nzTpIcepk0o8(chr(48) + '\157' + chr(49), 8)][nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110 + 0o52), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xef'), '\144' + '\145' + chr(0b10110 + 0o115) + '\157' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000)): dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b'\xff\xda\xc2+Oav\x7f\xd0'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(9618 - 9507) + '\x64' + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(0b10000 + 0o35) + chr(0b101101 + 0o13)) if GzduZJ_Pf_Im[nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b11 + 0o154) + chr(187 - 138), 8)][nzTpIcepk0o8(chr(288 - 240) + chr(0b1011011 + 0o24) + chr(0b100111 + 0o11), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xeb'), chr(3262 - 3162) + chr(101) + '\x63' + '\157' + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(0b111001 + 0o55) + chr(0b11100 + 0o21) + '\x38'): dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b'\xff\xda\xc2+Kx{'), chr(6913 - 6813) + chr(0b1100101) + chr(99) + chr(111) + chr(3495 - 3395) + '\145')(chr(6554 - 6437) + '\x74' + '\x66' + chr(1898 - 1853) + '\070') else: dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + '\143' + chr(9735 - 9624) + '\144' + '\x65')(chr(0b1100001 + 0o24) + chr(116) + '\x66' + '\x2d' + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9w\x0fb\x13\x92\x9d\x85\x8d\xea'), chr(100) + chr(0b110 + 0o137) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + chr(0b1100110) + '\x2d' + chr(272 - 216))] = GzduZJ_Pf_Im[nzTpIcepk0o8(chr(830 - 782) + '\x6f' + chr(378 - 329), 8)][nzTpIcepk0o8('\x30' + chr(0b10011 + 0o134) + chr(50), 8)] elif ftfygxgFas5X(t1cL4AkBZt3j) > nzTpIcepk0o8('\x30' + chr(7710 - 7599) + '\062', 8): if roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9UO\xfc'), chr(100) + chr(0b1000011 + 0o42) + chr(0b1001001 + 0o32) + chr(0b10010 + 0o135) + chr(9633 - 9533) + chr(101))(chr(11691 - 11574) + chr(12420 - 12304) + chr(0b11111 + 0o107) + chr(1706 - 1661) + chr(56)) not in fBsoIoeG_eRQ: _OaSP3sMznOY = nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b110 + 0o52), 8) JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'\xc2\xf6\xfa'), '\x64' + '\145' + chr(99) + chr(0b1100111 + 0o10) + '\x64' + chr(3816 - 3715))(chr(0b1011110 + 0o27) + '\164' + chr(7990 - 7888) + '\x2d' + '\x38') Q4ZiDCds3gUR = t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(0b101010 + 0o6), 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x83'), '\144' + chr(101) + chr(0b111100 + 0o47) + chr(0b1101111) + '\x64' + chr(101))(chr(117) + chr(0b101001 + 0o113) + '\146' + chr(0b10101 + 0o30) + chr(0b111000))) gmETemTYwe0s = nzTpIcepk0o8(Q4ZiDCds3gUR[nzTpIcepk0o8(chr(0b110000) + chr(0b1101100 + 0o3) + chr(50), 8)]) if gmETemTYwe0s < nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b110011) + chr(50), 8): vhCH1m5Kub2C = N9zlRy29S1SS(nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b100001 + 0o26) + chr(2433 - 2383) + chr(0b110000), 8) + gmETemTYwe0s) else: vhCH1m5Kub2C = N9zlRy29S1SS(nzTpIcepk0o8(chr(138 - 90) + '\157' + chr(409 - 358) + chr(0b110101) + chr(53) + chr(0b11010 + 0o32), 8) + gmETemTYwe0s) E_X6tV8koIsq = nzTpIcepk0o8(Q4ZiDCds3gUR[nzTpIcepk0o8(chr(0b110000) + chr(6322 - 6211) + chr(0b110000), 8)]) if E_X6tV8koIsq < nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(0b100011 + 0o17), 8): E_X6tV8koIsq = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + '\145' + '\x63' + chr(0b1000000 + 0o57) + chr(0b1100100) + '\145')(chr(9807 - 9690) + chr(0b1000000 + 0o64) + chr(102) + '\055' + chr(0b101011 + 0o15)) + N9zlRy29S1SS(E_X6tV8koIsq) else: E_X6tV8koIsq = N9zlRy29S1SS(E_X6tV8koIsq) tIs1AyIkUN4z = nzTpIcepk0o8(Q4ZiDCds3gUR[nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11011 + 0o26), 8)]) if tIs1AyIkUN4z < nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(50), 8): tIs1AyIkUN4z = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(101) + chr(99) + chr(7586 - 7475) + '\x64' + chr(0b1100101))(chr(0b100111 + 0o116) + '\164' + chr(0b111001 + 0o55) + '\055' + '\070') + N9zlRy29S1SS(tIs1AyIkUN4z) else: tIs1AyIkUN4z = N9zlRy29S1SS(tIs1AyIkUN4z) oprIvDIRQyCb = t1cL4AkBZt3j[nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001), 8)].LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(3109 - 3009) + '\145' + chr(2454 - 2355) + chr(111) + chr(100) + chr(7268 - 7167))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b1011 + 0o42) + chr(3111 - 3055))) uWR81NZWrdv8 = nzTpIcepk0o8(oprIvDIRQyCb[nzTpIcepk0o8('\x30' + '\x6f' + chr(2261 - 2213), 8)]) if uWR81NZWrdv8 < nzTpIcepk0o8('\x30' + '\157' + chr(0b100 + 0o55) + chr(2126 - 2076), 8): uWR81NZWrdv8 = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100100) + chr(101) + '\x63' + chr(7932 - 7821) + chr(2632 - 2532) + chr(914 - 813))('\x75' + chr(0b11000 + 0o134) + chr(1504 - 1402) + chr(0b11110 + 0o17) + '\070') + N9zlRy29S1SS(uWR81NZWrdv8) else: uWR81NZWrdv8 = N9zlRy29S1SS(uWR81NZWrdv8) XURpmPuEWCNF = nzTpIcepk0o8(oprIvDIRQyCb[nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8)]) if XURpmPuEWCNF < nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + '\x31' + chr(1092 - 1042), 8): XURpmPuEWCNF = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100100) + '\x65' + '\143' + chr(5255 - 5144) + chr(0b1011001 + 0o13) + '\145')(chr(7657 - 7540) + chr(116) + chr(0b101100 + 0o72) + '\x2d' + chr(0b111000)) + N9zlRy29S1SS(XURpmPuEWCNF) else: XURpmPuEWCNF = N9zlRy29S1SS(XURpmPuEWCNF) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9c\x01e\x1f'), '\144' + chr(0b1100101) + chr(0b10000 + 0o123) + '\x6f' + chr(100) + chr(101))('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))] = vhCH1m5Kub2C + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1100100) + chr(8495 - 8394) + chr(0b1100011) + chr(0b1100100 + 0o13) + chr(674 - 574) + '\145')('\165' + chr(0b100011 + 0o121) + '\x66' + '\x2d' + chr(0b111000)) + E_X6tV8koIsq + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1100100) + chr(8975 - 8874) + '\143' + chr(111) + chr(100) + '\x65')(chr(117) + '\164' + '\x66' + chr(45) + chr(0b111000)) + tIs1AyIkUN4z + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(100) + chr(101) + chr(5386 - 5287) + chr(0b1101111) + chr(1073 - 973) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b111000 + 0o56) + chr(45) + '\x38') + uWR81NZWrdv8 + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b111110 + 0o46) + '\145' + '\x63' + chr(7118 - 7007) + chr(1098 - 998) + chr(0b10 + 0o143))('\165' + chr(116) + chr(102) + chr(0b101101) + '\070') + XURpmPuEWCNF + roI3spqORKae(ES5oEprVxulp(b'\x96\xa3\xbd(\x1d$'), '\144' + '\145' + '\143' + chr(0b1101111) + chr(4438 - 4338) + chr(101))(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9s\t|\x1f\xb9\x8e\x85\x8d\xfc'), '\144' + chr(0b1100101) + chr(0b100010 + 0o101) + chr(0b1101111) + '\x64' + chr(0b110110 + 0o57))(chr(0b1110101) + chr(4037 - 3921) + '\x66' + '\055' + chr(0b10010 + 0o46))] = roI3spqORKae(ES5oEprVxulp(b'\xff\xd2\xc3'), chr(100) + '\x65' + '\143' + chr(0b1101111) + chr(0b1000111 + 0o35) + '\x65')(chr(0b110011 + 0o102) + chr(8712 - 8596) + '\x66' + chr(0b11110 + 0o17) + chr(0b11011 + 0o35)) if wDEIk17vEWwT == roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1000010 + 0o43) + chr(0b1100011) + chr(0b111101 + 0o62) + chr(0b1100100) + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(116) + '\146' + chr(45) + chr(2544 - 2488)): if t1cL4AkBZt3j[nzTpIcepk0o8(chr(1134 - 1086) + '\x6f' + chr(54), 8)][nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xef'), chr(0b1000010 + 0o42) + '\145' + chr(0b1100011) + chr(111) + chr(0b110111 + 0o55) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(1039 - 994) + chr(56)): dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b'\xff\xda\xc2+Oav\x7f\xd0'), chr(100) + '\x65' + chr(8715 - 8616) + chr(0b1101111) + chr(8475 - 8375) + '\x65')(chr(0b1101110 + 0o7) + chr(5166 - 5050) + chr(0b1100110) + chr(45) + chr(1468 - 1412)) if t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(54), 8)][nzTpIcepk0o8(chr(473 - 425) + '\x6f' + '\060', 8)] == roI3spqORKae(ES5oEprVxulp(b'\xeb'), '\144' + chr(0b10110 + 0o117) + '\x63' + '\157' + '\x64' + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(0b1110100) + chr(3756 - 3654) + chr(683 - 638) + chr(1444 - 1388)): dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b'\xff\xda\xc2+Kx{'), chr(0b1100100) + chr(5653 - 5552) + '\143' + chr(0b1101111) + chr(1352 - 1252) + chr(101))('\165' + chr(12288 - 12172) + chr(0b1100110) + chr(45) + chr(0b111000)) else: dy1mAaicEvzk = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(0b1100011) + chr(0b1011011 + 0o24) + '\x64' + '\145')('\165' + chr(116) + chr(102) + '\055' + chr(56)) if ftfygxgFas5X(t1cL4AkBZt3j) > nzTpIcepk0o8(chr(48) + '\x6f' + chr(2113 - 2064), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9w\x0fb\x13\x92\x9d\x85\x8d\xea'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1001100 + 0o43) + chr(0b111011 + 0o51) + chr(0b1001100 + 0o31))('\165' + chr(6622 - 6506) + chr(102) + chr(298 - 253) + '\070')] = t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(901 - 790) + '\x36', 8)][nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010), 8)] else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9w\x0fb\x13\x92\x9d\x85\x8d\xea'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(8555 - 8455) + chr(101))(chr(0b1010 + 0o153) + chr(6642 - 6526) + chr(7350 - 7248) + '\x2d' + '\x38')] = t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2666 - 2611), 8)] if E63X9RhwfuOn == roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + '\143' + chr(111) + chr(100) + chr(101))(chr(7707 - 7590) + chr(4730 - 4614) + chr(7918 - 7816) + chr(45) + '\070'): E63X9RhwfuOn = t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(0b11001 + 0o126) + '\065', 0o10)] if t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(4556 - 4445) + chr(50), 8)][-nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(0b110001), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xef'), chr(3529 - 3429) + '\145' + chr(0b1100011) + chr(9755 - 9644) + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + chr(56)): HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(0b1100100) + '\x65' + '\143' + chr(773 - 662) + chr(0b100011 + 0o101) + chr(2720 - 2619))(chr(0b1110101) + chr(0b101000 + 0o114) + '\x66' + '\x2d' + '\070') if t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10100 + 0o40), 0o10)] == roI3spqORKae(ES5oEprVxulp(b'\xc1\xfa\xeetB@'), '\144' + '\x65' + '\143' + '\x6f' + '\x64' + chr(0b1010001 + 0o24))(chr(117) + chr(10514 - 10398) + chr(0b1100110) + '\055' + chr(0b111000)) and jLW6pRf2DSRk(t1cL4AkBZt3j[nzTpIcepk0o8(chr(1953 - 1905) + chr(111) + chr(0b110011), 8)]) != 0.0 and (roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9UO\xfc'), chr(2732 - 2632) + '\x65' + chr(99) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(0b1111 + 0o36) + chr(0b111000)) not in fBsoIoeG_eRQ): _OaSP3sMznOY = jLW6pRf2DSRk(t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(51), 8)]) * 1e-06 if t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + chr(50), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xc1\xc7'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1011 + 0o144) + chr(8190 - 8090) + '\x65')(chr(12846 - 12729) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111 + 0o61)) and fBsoIoeG_eRQ != roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0O\x7fY'), chr(0b1100100) + chr(9692 - 9591) + chr(99) + '\157' + chr(0b1001011 + 0o31) + '\x65')(chr(117) + chr(0b101011 + 0o111) + '\146' + '\055' + '\x38'): HsExji6d7tC1 = roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), '\x64' + '\x65' + chr(99) + chr(1759 - 1648) + chr(9162 - 9062) + chr(0b1100101))(chr(117) + '\164' + chr(8859 - 8757) + '\x2d' + chr(0b111000)) if t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52), 8)] == roI3spqORKae(ES5oEprVxulp(b'\xc1\xfa\xeetB@'), '\144' + chr(101) + '\143' + chr(7349 - 7238) + chr(1056 - 956) + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(2593 - 2477) + '\x66' + chr(45) + '\070') and jLW6pRf2DSRk(t1cL4AkBZt3j[nzTpIcepk0o8('\060' + chr(111) + '\x33', 8)]) != 0.0: _OaSP3sMznOY = jLW6pRf2DSRk(t1cL4AkBZt3j[nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011), 8)]) * 1e-06 if t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + '\064', 8)] == roI3spqORKae(ES5oEprVxulp(b'\xc1\xfa\xeetB@'), chr(0b111011 + 0o51) + chr(6384 - 6283) + chr(1919 - 1820) + '\x6f' + chr(6873 - 6773) + chr(5716 - 5615))(chr(4975 - 4858) + chr(0b1010010 + 0o42) + '\x66' + '\055' + chr(0b10001 + 0o47)) and _OaSP3sMznOY != 0.0 and (nzoPdASmAqfI != roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0O\x7fY'), '\x64' + chr(101) + chr(0b1011111 + 0o4) + chr(0b101001 + 0o106) + chr(100) + chr(0b1100101))(chr(4012 - 3895) + '\164' + chr(2541 - 2439) + chr(1299 - 1254) + chr(56))): (MUGp3g4tuXRY, ncDYK9LWVfBn) = (0.0, -90.0) if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(0b1100100) + chr(0b10100 + 0o121) + chr(99) + chr(0b101100 + 0o103) + '\144' + chr(101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b100111 + 0o6) + chr(56)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00]'), chr(100) + chr(6525 - 6424) + chr(9378 - 9279) + chr(0b111110 + 0o61) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(46 - 1) + '\070') if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), '\144' + '\x65' + chr(99) + chr(1086 - 975) + '\x64' + chr(101))('\x75' + chr(0b1011000 + 0o34) + chr(7228 - 7126) + chr(45) + '\x38'): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9]'), chr(4761 - 4661) + chr(101) + '\143' + '\157' + chr(6913 - 6813) + chr(0b10001 + 0o124))('\x75' + '\164' + chr(102) + chr(1645 - 1600) + '\070') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(1536 - 1436) + '\x65' + chr(0b1011000 + 0o13) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1000000 + 0o65) + chr(0b1110100) + '\x66' + chr(45) + chr(300 - 244))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\144' + chr(7880 - 7779) + chr(99) + '\x6f' + '\x64' + chr(0b1100101))(chr(117) + chr(4423 - 4307) + chr(0b1000010 + 0o44) + chr(0b101101) + chr(0b111000)) % _OaSP3sMznOY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\144' + chr(0b1100101) + '\143' + chr(0b10001 + 0o136) + chr(0b1010010 + 0o22) + chr(0b11100 + 0o111))('\x75' + '\164' + chr(102) + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\x64' + '\x65' + chr(5812 - 5713) + '\157' + chr(108 - 8) + chr(101))(chr(0b1000010 + 0o63) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), '\x64' + '\145' + chr(99) + chr(0b1011 + 0o144) + chr(100) + chr(101))(chr(5781 - 5664) + '\x74' + '\x66' + chr(1851 - 1806) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\x64' + chr(101) + chr(0b1100011) + chr(4520 - 4409) + chr(0b1010101 + 0o17) + '\145')(chr(0b1000000 + 0o65) + '\x74' + chr(102) + '\x2d' + '\x38') % ncDYK9LWVfBn if t1cL4AkBZt3j[nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1010011 + 0o34) + chr(0b10010 + 0o42), 8)] == roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + chr(4616 - 4517) + chr(0b1101111) + chr(3080 - 2980) + chr(0b1100101))('\165' + chr(5452 - 5336) + '\x66' + chr(595 - 550) + '\x38') or (_OaSP3sMznOY == 0.0 and nzoPdASmAqfI != roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0O\x7fY'), '\144' + '\145' + chr(0b1100011) + chr(7172 - 7061) + '\x64' + chr(7712 - 7611))(chr(11228 - 11111) + chr(116) + chr(102) + '\055' + '\x38')): if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\x64' + chr(101) + '\x63' + chr(0b1001010 + 0o45) + chr(100) + chr(0b110010 + 0o63))(chr(117) + chr(116) + chr(0b1010 + 0o134) + chr(0b101101) + chr(0b10 + 0o66)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N'), '\144' + chr(0b110101 + 0o60) + chr(0b11011 + 0o110) + chr(111) + chr(100) + chr(0b101111 + 0o66))(chr(117) + chr(0b1101001 + 0o13) + '\146' + '\x2d' + '\070') if HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), '\144' + '\145' + chr(5296 - 5197) + chr(111) + chr(6805 - 6705) + chr(10031 - 9930))('\x75' + chr(0b1110100) + chr(0b1100000 + 0o6) + '\055' + chr(0b111000)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), chr(3607 - 3507) + '\145' + '\143' + '\157' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1010110 + 0o36) + '\x66' + chr(45) + chr(0b111000)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(7954 - 7854) + chr(4910 - 4809) + chr(0b1100011) + chr(0b1101101 + 0o2) + '\x64' + chr(0b110100 + 0o61))('\165' + chr(0b1110100) + '\146' + '\x2d' + chr(0b100001 + 0o27))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1001101 + 0o27) + chr(101) + chr(6067 - 5968) + chr(0b1011100 + 0o23) + '\144' + chr(0b1010110 + 0o17))(chr(0b1101010 + 0o13) + '\x74' + '\x66' + '\055' + chr(56)) if tgCaEODbSrcw == nzTpIcepk0o8('\060' + '\157' + chr(0b101001 + 0o7), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(0b110 + 0o137) + chr(2363 - 2264) + '\157' + chr(7251 - 7151) + chr(0b1001001 + 0o34))('\165' + chr(7508 - 7392) + chr(102) + '\x2d' + '\x38')] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(2157 - 2109) + '\157' + '\060', 8)] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uTz`u\xd4\x9f\xa7\xc5X\x0ep\x17\x83'), chr(0b1100100) + chr(101) + chr(0b1011101 + 0o6) + chr(111) + chr(766 - 666) + '\x65')(chr(2091 - 1974) + chr(116) + '\x66' + '\055' + chr(3111 - 3055))] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + '\143' + chr(111) + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b10100 + 0o44)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(100) + chr(0b1001100 + 0o31) + chr(5089 - 4990) + chr(111) + chr(0b101100 + 0o70) + chr(0b1 + 0o144))('\x75' + '\164' + chr(0b100101 + 0o101) + chr(0b101000 + 0o5) + chr(0b110010 + 0o6))] = roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b1100101) + chr(2972 - 2873) + chr(111) + chr(4164 - 4064) + '\x65')(chr(0b10000 + 0o145) + '\164' + chr(0b100 + 0o142) + chr(0b1110 + 0o37) + chr(0b1101 + 0o53)) if M7GWgFE4VK5D != nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(1867 - 1819), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + '\144' + '\145')(chr(2248 - 2131) + chr(0b1110100) + chr(0b1100110) + chr(0b11011 + 0o22) + chr(56))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x30', 8)][:M7GWgFE4VK5D] else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(2220 - 2120) + chr(0b10101 + 0o120) + '\143' + '\x6f' + chr(9006 - 8906) + chr(0b1100101))('\x75' + chr(8402 - 8286) + chr(327 - 225) + chr(45) + chr(0b110011 + 0o5))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101111) + chr(48), 8)] if ZsCw5D6R0uXJ and NixjZbnCaKrH: NrOoJ8NdaX1V = hUcsWwAd0nE_.get_dictitem(NixjZbnCaKrH, roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(2659 - 2559) + chr(0b10100 + 0o121) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(10169 - 10067) + chr(45) + chr(200 - 144)), fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(0b1100100) + chr(101) + '\143' + '\157' + '\144' + chr(0b111011 + 0o52))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(2306 - 2250))], roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + chr(1026 - 926) + '\x65')(chr(117) + '\x74' + '\146' + chr(0b101101) + chr(2250 - 2194))) if ftfygxgFas5X(NrOoJ8NdaX1V) > nzTpIcepk0o8(chr(50 - 2) + chr(0b10110 + 0o131) + chr(1404 - 1356), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(0b1100101) + chr(6586 - 6487) + chr(111) + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(102) + '\055' + chr(56))] = NrOoJ8NdaX1V[nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1 + 0o57), 8)][roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b100100 + 0o100) + '\x65')(chr(0b1110101 + 0o0) + '\x74' + chr(0b10001 + 0o125) + chr(45) + '\070')] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1010101 + 0o32) + '\x64' + chr(1350 - 1249))(chr(117) + chr(8729 - 8613) + '\x66' + chr(0b101101) + chr(0b111000))] = NrOoJ8NdaX1V[nzTpIcepk0o8('\x30' + chr(111) + chr(0b100111 + 0o11), 8)][roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), '\x64' + '\x65' + chr(99) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1010010 + 0o43) + chr(10119 - 10003) + '\146' + chr(1349 - 1304) + chr(0b101001 + 0o17))] else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(2042 - 1942) + chr(101) + chr(0b1010001 + 0o22) + chr(0b101000 + 0o107) + chr(4505 - 4405) + chr(101))(chr(117) + chr(0b1001001 + 0o53) + '\x66' + chr(1271 - 1226) + '\070')] = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b101001 + 0o106) + chr(0b1100010 + 0o2) + chr(0b1100101))(chr(0b1101100 + 0o11) + '\164' + chr(1690 - 1588) + chr(0b101101) + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(6901 - 6801) + '\x65' + '\143' + chr(111) + '\144' + '\x65')(chr(924 - 807) + chr(116) + chr(0b10100 + 0o122) + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(3594 - 3493) + '\143' + '\157' + chr(0b1100100) + chr(6489 - 6388))(chr(117) + chr(0b100100 + 0o120) + chr(0b1100110) + '\055' + chr(0b110010 + 0o6)) elif nzTpIcepk0o8(hLIySoEW0NmV) != nzTpIcepk0o8(chr(48) + chr(111) + chr(2916 - 2862), 8): f9ijNiPCpOFu = hUcsWwAd0nE_.parse_site(fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), '\x64' + chr(101) + '\143' + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + '\x74' + chr(102) + chr(1978 - 1933) + chr(0b111000))], hLIySoEW0NmV, sEVgLUlRGUb0) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(100) + chr(0b110010 + 0o63) + chr(0b1 + 0o142) + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(45) + '\x38')] = f9ijNiPCpOFu if fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(0b10100 + 0o120) + chr(4983 - 4882) + chr(3475 - 3376) + chr(1144 - 1033) + chr(0b1001010 + 0o32) + chr(0b10001 + 0o124))(chr(7663 - 7546) + chr(116) + chr(0b10010 + 0o124) + chr(0b101101) + chr(56))] == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111 + 0o0) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + chr(552 - 496)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xe2\xfc\xaduD`q=\xdf\x8a\xa3\xc3'\x06~\x0f\x88\x90\xca\x85\xf6+\x1f>"), chr(100) + '\x65' + chr(0b10101 + 0o116) + '\157' + '\x64' + '\145')(chr(2340 - 2223) + '\164' + chr(102) + chr(45) + chr(2083 - 2027)), fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(0b10111 + 0o115) + '\x65' + chr(99) + chr(0b1101111) + '\x64' + '\145')(chr(9465 - 9348) + chr(0b100010 + 0o122) + chr(0b1100110) + chr(0b101101) + chr(0b111000))], fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(5143 - 5043) + '\x65' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(2151 - 2035) + chr(0b1000011 + 0o43) + '\055' + chr(0b110 + 0o62))]) if fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2jBwui\xd8\x84\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(101) + '\143' + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(2465 - 2348) + chr(0b1 + 0o163) + chr(102) + chr(0b101001 + 0o4) + '\070')] == roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1100101) + chr(7726 - 7627) + '\x6f' + chr(4842 - 4742) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + '\070'): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc2\xfc\xadjBwui\xd8\x84\xa0\x86i\x01|\x1f\xc6\x92\x85\x91\xa3y'), chr(0b1100100) + '\145' + '\143' + '\x6f' + '\x64' + chr(101))(chr(117) + chr(2569 - 2453) + chr(9856 - 9754) + '\x2d' + chr(2079 - 2023)), fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), '\144' + chr(101) + chr(0b1010101 + 0o16) + chr(7152 - 7041) + chr(100) + '\x65')(chr(0b1110101) + chr(0b100000 + 0o124) + '\x66' + chr(0b101101) + chr(0b111000))]) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(0b1001 + 0o133) + chr(0b1100101) + chr(99) + '\x6f' + chr(340 - 240) + chr(0b100001 + 0o104))(chr(0b1100111 + 0o16) + chr(116) + chr(0b1010110 + 0o20) + chr(951 - 906) + chr(0b100000 + 0o30))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b10100 + 0o34), 8)] if M7GWgFE4VK5D != nzTpIcepk0o8(chr(48) + '\x6f' + '\060', 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(0b1001000 + 0o34) + chr(101) + chr(6321 - 6222) + chr(111) + '\x64' + chr(101))(chr(117) + chr(0b1100010 + 0o22) + '\x66' + chr(45) + chr(0b111000))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(83 - 35) + chr(0b1101111) + chr(0b110000), 8)][:M7GWgFE4VK5D] else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), '\144' + '\x65' + chr(5797 - 5698) + chr(111) + chr(0b1100100) + chr(7553 - 7452))(chr(7128 - 7011) + chr(116) + '\x66' + '\055' + chr(389 - 333))] = FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + chr(9999 - 9888) + chr(48), 8)] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uD`qB\xdf\x8a\xa3\xc3'), chr(0b1000101 + 0o37) + '\x65' + chr(0b1010101 + 0o16) + '\157' + chr(0b1100100) + chr(0b1010001 + 0o24))(chr(0b110 + 0o157) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(1961 - 1905))] = roI3spqORKae(ES5oEprVxulp(b''), chr(0b111110 + 0o46) + '\x65' + chr(0b1000101 + 0o36) + '\157' + chr(0b1010100 + 0o20) + '\x65')(chr(0b1110101) + chr(7974 - 7858) + chr(3585 - 3483) + '\x2d' + '\x38') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uTz`u\xd4\x9f\xa7\xc5X\x0ep\x17\x83'), chr(0b10100 + 0o120) + chr(101) + chr(0b110110 + 0o55) + '\157' + chr(655 - 555) + chr(10127 - 10026))('\x75' + '\x74' + '\146' + chr(45) + chr(0b101000 + 0o20))] = fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(8236 - 8135) + '\x63' + chr(0b1101111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + chr(0b100100 + 0o11) + '\x38')] reSVCd0UbL79[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uTz`u\xd4\x9f\xa7\xc5X\x0ep\x17\x83'), chr(0b1100100) + chr(0b11001 + 0o114) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(1536 - 1419) + chr(0b1110100) + '\146' + chr(1275 - 1230) + '\x38')] = fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(3784 - 3684) + '\145' + chr(0b110101 + 0o56) + chr(111) + chr(100) + chr(0b1100000 + 0o5))(chr(0b1010100 + 0o41) + chr(116) + '\146' + chr(0b101101) + '\070')] f9ijNiPCpOFu = hUcsWwAd0nE_.parse_site(fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uLydq\xd4\xb4\xa0\xc7j\x05'), chr(0b10 + 0o142) + '\x65' + chr(0b1001011 + 0o30) + chr(0b10111 + 0o130) + chr(0b1100100) + chr(0b1100101))(chr(12180 - 12063) + chr(116) + chr(8585 - 8483) + chr(0b101101) + chr(502 - 446))], hLIySoEW0NmV, sEVgLUlRGUb0) reSVCd0UbL79[roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3rEq`t\xd2\xb4\xbe\xc7u\x05\x7f\x0e\xb9\x87\x8b\x8e\xe95@'), chr(100) + '\145' + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b110110 + 0o77) + chr(0b1110100) + chr(1641 - 1539) + chr(0b101101) + '\x38')] = f9ijNiPCpOFu reSVCd0UbL79[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2eD`ui\xd8\x84\xa0\xf9i\x01|\x1f\x95'), chr(0b1100100) + chr(0b1100101) + chr(1113 - 1014) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(5080 - 4964) + chr(0b1100110) + chr(0b100001 + 0o14) + chr(2485 - 2429))] = roI3spqORKae(ES5oEprVxulp(b'\xf8\xfb\xe4u\rg`h\xd5\x92'), chr(2196 - 2096) + chr(101) + chr(5984 - 5885) + '\157' + chr(2897 - 2797) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(1469 - 1424) + chr(778 - 722)) reSVCd0UbL79[roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3rEq`t\xd2\xb4\xa7\xc8t\x14x\x0e\x93\x80\x83\x8c\xf7'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\145')('\165' + chr(0b110011 + 0o101) + chr(0b11100 + 0o112) + chr(0b10110 + 0o27) + chr(0b111000))] = RWgSr3TDLKEe reSVCd0UbL79[roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3rEq`t\xd2\xb4\xba\xdfw\x05'), '\144' + chr(7954 - 7853) + chr(3980 - 3881) + chr(111) + '\x64' + '\145')(chr(117) + chr(0b101001 + 0o113) + '\x66' + chr(0b101101 + 0o0) + chr(0b111000))] = myQeYAKamFEM roI3spqORKae(Z7ICPihkHtHA, roI3spqORKae(ES5oEprVxulp(b'\xe4\xc7\xde2UsSr\xdb\x84\x9b\x93'), chr(0b11011 + 0o111) + chr(6802 - 6701) + chr(9294 - 9195) + chr(7579 - 7468) + chr(2560 - 2460) + '\145')(chr(0b11010 + 0o133) + '\x74' + chr(0b111011 + 0o53) + chr(0b101101) + chr(56)))(reSVCd0UbL79) if jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + '\x31', 8)]) == nzTpIcepk0o8(chr(48) + chr(111) + '\060', 8): pass elif HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xed\xd5'), '\144' + chr(4044 - 3943) + '\143' + chr(11667 - 11556) + chr(0b1100100) + chr(9062 - 8961))(chr(117) + chr(116) + '\146' + '\055' + chr(56)): if fBsoIoeG_eRQ != roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9UO\xfc'), chr(100) + chr(0b1001000 + 0o35) + '\x63' + chr(11487 - 11376) + '\144' + chr(101))(chr(0b101000 + 0o115) + chr(0b1001101 + 0o47) + chr(6410 - 6308) + chr(0b0 + 0o55) + '\070'): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(6927 - 6826) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1011010 + 0o13))('\165' + '\164' + '\146' + chr(0b10 + 0o53) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(100) + chr(101) + chr(0b1100011) + chr(0b1011010 + 0o25) + '\144' + chr(101))(chr(7415 - 7298) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000)) % (jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(957 - 909) + chr(0b1101111) + chr(330 - 281), 8)]) * 0.001) if nzoPdASmAqfI == roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b1101111 + 0o6) + '\164' + chr(0b1100110) + chr(1528 - 1483) + chr(1568 - 1512)): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(0b1100101) + '\x63' + chr(4775 - 4664) + chr(4345 - 4245) + chr(1947 - 1846))(chr(0b1001111 + 0o46) + chr(0b1110100) + '\146' + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + chr(3088 - 2987) + chr(0b1100011) + chr(1028 - 917) + '\x64' + chr(0b1100101))(chr(0b100110 + 0o117) + '\164' + chr(559 - 457) + chr(45) + '\070') elif cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b110000) + chr(0b1001001 + 0o46) + '\x31', 8)][nzTpIcepk0o8('\x30' + chr(111) + chr(1223 - 1175), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + chr(2055 - 1954) + chr(0b11010 + 0o111) + '\157' + '\144' + '\145')(chr(0b1110001 + 0o4) + chr(0b1110100) + chr(0b1100110) + '\055' + chr(56)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b"\xe0\xc7\xa0Gk9N'\xfd\xbb\xe3\xe7IMP(\xab\xce"), '\144' + chr(0b1100101) + '\x63' + chr(1246 - 1135) + '\144' + chr(0b1100101))(chr(0b10000 + 0o145) + '\164' + chr(0b1100110) + chr(1667 - 1622) + chr(509 - 453)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(0b10110 + 0o117) + chr(0b1100011) + chr(0b1000011 + 0o54) + '\144' + '\x65')(chr(0b1000 + 0o155) + '\164' + '\x66' + chr(1458 - 1413) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1100100) + chr(5942 - 5841) + chr(9514 - 9415) + chr(0b101001 + 0o106) + '\144' + chr(2704 - 2603))('\165' + chr(0b1110100) + chr(0b101100 + 0o72) + '\x2d' + '\070') % XrSglziO_kwd fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b110011 + 0o61) + chr(0b1100100 + 0o1) + chr(0b100010 + 0o101) + chr(0b110010 + 0o75) + '\x64' + chr(0b100010 + 0o103))(chr(0b100010 + 0o123) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(249 - 193))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\144' + '\145' + chr(0b1100011) + '\157' + chr(1691 - 1591) + chr(0b1010101 + 0o20))(chr(7117 - 7000) + chr(4097 - 3981) + '\x66' + chr(45) + chr(427 - 371)) % nzTpIcepk0o8('\x30' + chr(111) + '\x30', 8) if _OaSP3sMznOY != nzTpIcepk0o8(chr(48) + chr(111) + chr(2002 - 1954), 8) and fBsoIoeG_eRQ != roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9UO\xfc'), chr(0b1100100) + chr(0b1100101) + chr(6052 - 5953) + chr(0b1101111) + '\x64' + '\145')(chr(1352 - 1235) + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xfb\xf2\xffhDzs=\x9c\xcb\xa7\xc8d\x0f\x7f\t\x8f\x87\x9e\x86\xf7:\\>E\x9f\x9b_\x19\xde\xcc\x14\xb2\xae5\x06\x98\xa5\x1d\x9d\x8c\xff\xecd\rr}x\xdd\x8f\xee\x8b'\x0fg\x1f\x94\x86\x83\x87\xf07B>J\x98\xd7WX\xce\x85\x06\xb3\xe2`"), chr(0b1010100 + 0o20) + chr(0b1011110 + 0o7) + '\143' + chr(6968 - 6857) + '\x64' + '\145')('\x75' + chr(116) + '\x66' + chr(1235 - 1190) + chr(1976 - 1920))) else: nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b"\xe0\xc7\xa0Gk9]'\xfd\xbb\xe3\xe7IMP(\xab"), chr(3225 - 3125) + chr(8992 - 8891) + chr(99) + chr(0b1101111) + '\x64' + chr(7147 - 7046))(chr(1081 - 964) + chr(0b1110100) + '\146' + '\x2d' + chr(2299 - 2243)) OE_TMl23yeue = nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8)]) - nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + chr(0b1111 + 0o42), 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\x64' + chr(9541 - 9440) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b110 + 0o137))(chr(278 - 161) + chr(13062 - 12946) + '\x66' + chr(78 - 33) + chr(0b10001 + 0o47))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(8606 - 8505) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))(chr(12104 - 11987) + chr(0b1110100) + chr(2042 - 1940) + '\055' + '\x38') % oD8LLo_zqNZe[OE_TMl23yeue] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), '\144' + chr(6649 - 6548) + chr(6113 - 6014) + '\x6f' + chr(0b1100010 + 0o2) + chr(101))('\x75' + '\164' + chr(0b1100110) + chr(0b1101 + 0o40) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(0b1100100) + chr(101) + chr(2550 - 2451) + '\x6f' + chr(0b1100100) + '\145')('\x75' + chr(116) + chr(2931 - 2829) + chr(0b101101) + chr(56)) % ReAwxaIgTMy5[OE_TMl23yeue] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(5526 - 5425) + '\x63' + chr(0b1101111) + chr(0b111000 + 0o54) + chr(0b1100101))('\x75' + chr(0b1010011 + 0o41) + chr(3558 - 3456) + chr(0b100010 + 0o13) + chr(0b110010 + 0o6))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + chr(441 - 396) + '\070') % _OaSP3sMznOY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + chr(0b1100101) + chr(1316 - 1217) + '\x6f' + '\144' + chr(4072 - 3971))(chr(117) + chr(116) + chr(0b1000011 + 0o43) + chr(0b0 + 0o55) + chr(2539 - 2483))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1100100) + '\145' + chr(303 - 204) + chr(0b1101111 + 0o0) + '\144' + chr(0b111011 + 0o52))('\x75' + chr(0b1110100) + chr(0b111110 + 0o50) + chr(0b1111 + 0o36) + chr(0b111000)) % XrSglziO_kwd elif HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(4668 - 4568) + chr(0b1000110 + 0o37) + chr(7706 - 7607) + chr(0b110101 + 0o72) + chr(0b1010101 + 0o17) + '\x65')('\165' + chr(0b1110100) + chr(0b1100100 + 0o2) + '\055' + chr(1034 - 978)) and fBsoIoeG_eRQ == roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0Gc9@O\xfc'), '\144' + '\145' + chr(0b1100011) + chr(0b101 + 0o152) + chr(0b100001 + 0o103) + '\145')(chr(0b110101 + 0o100) + '\164' + chr(102) + chr(0b110 + 0o47) + '\x38'): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xba\xc3j\x10'), '\144' + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + '\x65')('\x75' + chr(2950 - 2834) + '\x66' + chr(0b101101) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(100) + '\145' + chr(397 - 298) + '\x6f' + '\144' + '\145')('\x75' + chr(116) + chr(0b1001011 + 0o33) + chr(1912 - 1867) + chr(0b111000)) % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + '\x6f' + '\x30', 8)]) + 273.0) if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(1851 - 1803) + chr(307 - 196) + chr(49), 8)][nzTpIcepk0o8(chr(63 - 15) + chr(0b1101111) + '\060', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\144' + '\145' + chr(4907 - 4808) + chr(0b1101111) + chr(1267 - 1167) + '\x65')(chr(0b110100 + 0o101) + chr(0b1101011 + 0o11) + '\146' + chr(0b101101) + '\x38'): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N.Q\xe1\xc6\x8f\xe8*4C7'), chr(100) + '\x65' + '\x63' + chr(9111 - 9000) + chr(100) + chr(1034 - 933))(chr(117) + chr(116) + chr(0b111110 + 0o50) + '\x2d' + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\x64' + chr(0b1100101) + chr(0b11111 + 0o104) + chr(0b1101111) + chr(100) + chr(101))(chr(13034 - 12917) + chr(12682 - 12566) + chr(0b110010 + 0o64) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1001100 + 0o30) + chr(0b100001 + 0o104) + chr(99) + chr(0b1101111) + '\144' + '\145')('\165' + chr(0b1110100) + '\146' + '\055' + chr(1300 - 1244)) % nzTpIcepk0o8(chr(0b100011 + 0o15) + '\x6f' + chr(0b110000), 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\x64' + chr(0b1100001 + 0o4) + chr(0b1100011) + '\157' + '\144' + chr(101))(chr(11176 - 11059) + chr(6394 - 6278) + chr(0b1000110 + 0o40) + '\x2d' + chr(0b1011 + 0o55))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + '\x65' + chr(99) + chr(7834 - 7723) + chr(0b1100 + 0o130) + '\x65')(chr(117) + chr(12194 - 12078) + '\146' + '\055' + '\x38') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(100) + chr(0b10011 + 0o122) + '\143' + '\157' + chr(100) + chr(7508 - 7407))('\x75' + chr(0b1001 + 0o153) + '\146' + chr(0b10110 + 0o27) + chr(0b110001 + 0o7))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + chr(0b0 + 0o145) + chr(0b1000000 + 0o43) + chr(0b111110 + 0o61) + '\144' + '\x65')(chr(117) + chr(763 - 647) + chr(690 - 588) + chr(0b101101) + '\x38') else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b10101 + 0o120))('\x75' + chr(0b1110100) + chr(0b11000 + 0o116) + chr(0b101101) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\144' + '\145' + '\x63' + chr(10061 - 9950) + chr(100) + '\x65')('\x75' + chr(0b1000100 + 0o60) + '\x66' + chr(0b101101) + '\x38') % _OaSP3sMznOY if cwMmVhWUM3ZC[nzTpIcepk0o8('\x30' + chr(200 - 89) + chr(0b100100 + 0o15), 8)][nzTpIcepk0o8('\060' + chr(10743 - 10632) + '\060', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(100) + chr(0b1100101) + chr(727 - 628) + chr(0b110 + 0o151) + chr(4291 - 4191) + chr(101))(chr(7282 - 7165) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0VyFY0\xf8\xd1\x82\xf6*!_W\xb2\xa6\xa7'), chr(100) + chr(0b1000111 + 0o36) + chr(8857 - 8758) + '\x6f' + chr(945 - 845) + '\145')(chr(0b1101 + 0o150) + chr(6004 - 5888) + '\x66' + chr(45) + chr(0b111000)) else: nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00].Q\xe1\xc6\x8f\xe8*4C7'), chr(100) + chr(1059 - 958) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1110 + 0o127))('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(0b111000)) Bk7v1FdfJZjW = nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001), 8)][nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101110 + 0o2), 8)]) - nzTpIcepk0o8(chr(1826 - 1778) + chr(111) + chr(0b110001), 8) nBwIVRc0AFcp = jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(8059 - 7948) + chr(52), 8)]) sHu0936XQqRl = jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(1730 - 1682) + chr(0b1101111) + '\x35', 8)]) if sHu0936XQqRl < nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1814 - 1761) + chr(0b110101), 8) and sHu0936XQqRl > -nzTpIcepk0o8('\x30' + chr(0b1101111) + '\065' + chr(0b101 + 0o60), 8): if nBwIVRc0AFcp > nzTpIcepk0o8(chr(0b110000) + chr(111) + '\064' + '\x37' + chr(51), 8) or nBwIVRc0AFcp < nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1101111) + chr(53) + chr(849 - 796), 8): gsp6HGi1cS3N = nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + chr(0b11011 + 0o25), 8) if nBwIVRc0AFcp > nzTpIcepk0o8(chr(1444 - 1396) + chr(0b1101111) + chr(0b100000 + 0o25) + '\x35', 8) and nBwIVRc0AFcp < nzTpIcepk0o8('\060' + chr(0b1000000 + 0o57) + chr(352 - 302) + chr(0b110000) + '\067', 8): gsp6HGi1cS3N = nzTpIcepk0o8('\060' + chr(111) + '\061', 8) if nBwIVRc0AFcp > nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(48) + chr(55), 8) and nBwIVRc0AFcp < nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1001111 + 0o40) + chr(0b110011) + chr(1916 - 1864) + chr(2112 - 2063), 8): gsp6HGi1cS3N = nzTpIcepk0o8('\060' + chr(7419 - 7308) + '\063', 8) if nBwIVRc0AFcp > nzTpIcepk0o8('\060' + '\x6f' + '\x33' + chr(52) + chr(49), 8) and nBwIVRc0AFcp < nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100) + '\067' + '\063', 8): gsp6HGi1cS3N = nzTpIcepk0o8('\x30' + '\157' + chr(52), 8) else: if sHu0936XQqRl > nzTpIcepk0o8(chr(417 - 369) + chr(9237 - 9126) + chr(53) + '\x35', 8): gsp6HGi1cS3N = nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32', 8) if sHu0936XQqRl < -nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + chr(53), 8): gsp6HGi1cS3N = nzTpIcepk0o8(chr(852 - 804) + '\157' + chr(2403 - 2350), 8) OE_TMl23yeue = gsp6HGi1cS3N fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(3878 - 3778) + chr(0b1101 + 0o130))('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\144' + '\145' + '\x63' + chr(7196 - 7085) + chr(0b1011110 + 0o6) + '\x65')(chr(0b1000001 + 0o64) + chr(0b1110100) + chr(5901 - 5799) + '\055' + '\x38') % taaXfxj9rEQE[OE_TMl23yeue] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(0b11010 + 0o112) + '\145' + chr(99) + '\x6f' + chr(1818 - 1718) + '\x65')(chr(0b1110101) + chr(116) + '\x66' + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(0b101001 + 0o74) + '\x63' + chr(0b1101111) + chr(0b10001 + 0o123) + chr(0b0 + 0o145))('\x75' + chr(116) + '\x66' + chr(0b110 + 0o47) + '\070') % lOreErtLtxjG[OE_TMl23yeue] if gsp6HGi1cS3N != Bk7v1FdfJZjW and cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + chr(0b1001 + 0o50), 8)][nzTpIcepk0o8('\060' + '\157' + '\060', 8)] != roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(0b1100100) + chr(5912 - 5811) + chr(0b1100011) + '\157' + '\144' + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(1086 - 1041) + chr(56)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\x81\xd6\xa0&hFFR\xe3\xd1\xee\xc5o\x05r\x11\xc6\x87\x9a\x86\xfa0H{B\xd1\x9eAX\xca\x98\x17\xab\xe2uU\xc3\xec(\xa1\xfe\xde\xadkHugh\xc3\x8e\xa3\xc3i\x14bV\xc6\x97\x85\x87\xf07B>H\x9e\xdeAX\xd7\x83\x06\xfb\xaf1R\x8c\xa4I\x81\xc4\xf6\xadbDfq~\xc5\x82\xa1\xc8'\x0fwZ\x92\x9c\x8f\xc3\xf58G>J\x98\xde^\x1c\x98"), '\144' + chr(101) + chr(1166 - 1067) + chr(0b1001011 + 0o44) + chr(0b1011100 + 0o10) + chr(101))(chr(4815 - 4698) + '\164' + chr(0b1100110) + '\x2d' + chr(56)) % (FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1106 - 1058), 8)], roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x82'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(0b1011110 + 0o27) + '\164' + chr(102) + '\055' + chr(350 - 294)), roI3spqORKae(ES5oEprVxulp(b'\xf5\xa7\xf4K\x14Vw{\xe5\xa8\x80\xd7'), chr(100) + '\x65' + chr(99) + '\x6f' + chr(0b111000 + 0o54) + '\145')(chr(0b1110101) + '\x74' + chr(8295 - 8193) + chr(45) + chr(0b111000)))(H4NoA26ON7iG(cwMmVhWUM3ZC)))) elif HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xff'), '\x64' + chr(3855 - 3754) + '\143' + '\157' + chr(0b10010 + 0o122) + chr(0b1100101))('\165' + chr(3160 - 3044) + chr(102) + chr(45) + chr(0b111000)): if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(614 - 566) + '\157' + chr(49), 8)][nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10010 + 0o37), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b101101 + 0o67) + chr(101) + '\x63' + chr(9632 - 9521) + chr(1301 - 1201) + chr(0b1100101))(chr(2543 - 2426) + chr(0b101100 + 0o110) + '\146' + '\x2d' + chr(0b111000)): if nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(0b1011110 + 0o21) + chr(555 - 507), 8)]) != nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2166 - 2118), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + chr(0b1100010 + 0o3) + chr(0b1100011) + '\x6f' + chr(100) + chr(6422 - 6321))(chr(117) + chr(116) + chr(102) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b100010 + 0o102) + chr(0b11010 + 0o113) + chr(99) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110100 + 0o1) + chr(0b1110100) + '\146' + chr(0b101101) + '\070') % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(111) + chr(48), 8)]) * 0.001) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b1100001 + 0o3) + chr(6951 - 6850) + '\143' + chr(0b1101111) + chr(6608 - 6508) + '\x65')(chr(0b101010 + 0o113) + chr(0b1110100) + chr(102) + chr(45) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1010011 + 0o21) + chr(101) + '\x63' + '\x6f' + chr(4221 - 4121) + '\145')(chr(117) + chr(4810 - 4694) + chr(0b110001 + 0o65) + '\x2d' + chr(0b111000)) nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), '\144' + '\x65' + chr(6710 - 6611) + chr(0b1101111) + chr(0b1100011 + 0o1) + chr(0b1100101))(chr(0b1110101) + chr(0b1101100 + 0o10) + '\x66' + '\055' + chr(0b1011 + 0o55)) else: nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Hb'), chr(6700 - 6600) + chr(0b10110 + 0o117) + chr(0b110101 + 0o56) + chr(6736 - 6625) + chr(0b1100100) + chr(0b1001010 + 0o33))(chr(7764 - 7647) + '\164' + chr(0b110001 + 0o65) + chr(0b100100 + 0o11) + chr(0b10011 + 0o45)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(100) + '\145' + chr(0b1000110 + 0o35) + '\x6f' + chr(7794 - 7694) + chr(0b1100101))('\165' + chr(2942 - 2826) + '\146' + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + '\145' + '\143' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(0b1101 + 0o150) + chr(116) + '\x66' + '\055' + '\070') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b10000 + 0o125))('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(4850 - 4750) + chr(0b111 + 0o136) + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(241 - 196) + chr(56)) elif cwMmVhWUM3ZC[nzTpIcepk0o8(chr(406 - 358) + chr(0b1001001 + 0o46) + '\061', 8)][nzTpIcepk0o8('\060' + chr(111) + chr(0b110001), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9d'), chr(0b110000 + 0o64) + '\x65' + '\x63' + chr(0b11100 + 0o123) + chr(8620 - 8520) + chr(0b1100101))('\x75' + '\x74' + '\146' + chr(0b100111 + 0o6) + chr(0b111000)): if nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(1952 - 1904) + chr(111) + chr(1392 - 1344), 8)]) == nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(0b1100001 + 0o3) + chr(101) + '\143' + '\x6f' + chr(0b1100100) + chr(101))(chr(5019 - 4902) + chr(0b1101100 + 0o10) + chr(0b1100110) + chr(0b1011 + 0o42) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(7981 - 7881) + chr(101) + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100 + 0o0) + chr(4271 - 4169) + chr(45) + chr(2693 - 2637)) % XrSglziO_kwd fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b10000 + 0o125))(chr(117) + chr(0b1011110 + 0o26) + chr(0b1100110) + chr(813 - 768) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b100010 + 0o102) + '\x65' + chr(7117 - 7018) + chr(111) + '\x64' + '\x65')('\x75' + chr(3914 - 3798) + chr(102) + '\055' + '\x38') % ORW8J19YsL8H fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(100) + chr(0b101110 + 0o67) + chr(99) + '\x6f' + chr(0b1001 + 0o133) + chr(0b111101 + 0o50))(chr(117) + chr(4997 - 4881) + '\x66' + '\055' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(278 - 233) + chr(0b101101 + 0o13)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(9124 - 9024) + chr(0b1100101) + chr(99) + chr(0b1101100 + 0o3) + chr(548 - 448) + chr(0b1100101))(chr(13329 - 13212) + chr(116) + '\x66' + chr(0b101101) + chr(967 - 911))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(101) + '\x63' + '\x6f' + chr(0b11 + 0o141) + chr(0b10 + 0o143))('\x75' + '\164' + chr(0b1100110) + chr(0b0 + 0o55) + '\070') % ncDYK9LWVfBn nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9]'), chr(0b1100100) + chr(1005 - 904) + chr(8028 - 7929) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(0b100010 + 0o104) + chr(45) + chr(0b11110 + 0o32)) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(0b1001 + 0o134) + chr(4660 - 4561) + chr(111) + chr(100) + chr(6289 - 6188))(chr(0b1110101) + '\x74' + chr(0b1100110) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(3951 - 3850))(chr(0b100111 + 0o116) + '\164' + chr(0b1100110) + chr(45) + '\070') % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + chr(0b101 + 0o53), 8)]) * 0.001) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(832 - 732) + chr(101) + '\143' + chr(2802 - 2691) + chr(0b1100100) + chr(0b111 + 0o136))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + chr(101) + '\143' + chr(111) + chr(100) + chr(550 - 449))(chr(0b101100 + 0o111) + chr(0b1010010 + 0o42) + chr(102) + chr(346 - 301) + chr(56)) nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), '\144' + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(0b11 + 0o142))('\165' + '\164' + '\146' + '\055' + chr(842 - 786)) elif cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(0b110001 + 0o0), 8)][nzTpIcepk0o8('\060' + '\x6f' + '\061', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9e'), chr(0b110001 + 0o63) + chr(101) + chr(6801 - 6702) + chr(11046 - 10935) + '\144' + '\145')('\x75' + chr(0b1000100 + 0o60) + chr(102) + chr(0b101101) + chr(56)): if nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(2068 - 1957) + chr(48), 8)]) == nzTpIcepk0o8(chr(0b11 + 0o55) + chr(10666 - 10555) + chr(48), 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + chr(0b1100100 + 0o1) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(6173 - 6072))(chr(0b10111 + 0o136) + chr(116) + chr(102) + chr(0b101101) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\x64' + chr(0b1100011 + 0o2) + chr(99) + '\x6f' + chr(0b110100 + 0o60) + '\x65')(chr(0b1110101) + '\x74' + chr(102) + chr(0b11110 + 0o17) + '\x38') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(100) + '\145' + chr(0b1100011) + chr(0b1000110 + 0o51) + chr(0b1011 + 0o131) + chr(0b1100101))(chr(0b1110001 + 0o4) + chr(0b1110100) + '\x66' + chr(0b101 + 0o50) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1001010 + 0o32) + chr(101) + '\143' + chr(111) + chr(1564 - 1464) + '\145')(chr(117) + chr(0b1001010 + 0o52) + chr(102) + chr(0b10111 + 0o26) + '\070') % cg2QU5q7Ixzo fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(4267 - 4167) + chr(0b1100101) + chr(0b1100011) + chr(6026 - 5915) + chr(3272 - 3172) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(1259 - 1214) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(5958 - 5858) + chr(0b1011011 + 0o12) + chr(0b111111 + 0o44) + '\157' + '\144' + '\x65')('\165' + '\x74' + chr(2864 - 2762) + '\055' + '\070') % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), '\x64' + chr(0b1010111 + 0o16) + chr(165 - 66) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(2391 - 2289) + chr(1671 - 1626) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(1687 - 1587) + chr(6538 - 6437) + chr(0b1100011) + chr(0b100011 + 0o114) + chr(0b11000 + 0o114) + '\x65')(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(0b101111 + 0o11)) % ncDYK9LWVfBn fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xba\xc3j\x10'), chr(0b100001 + 0o103) + chr(1715 - 1614) + chr(9070 - 8971) + '\x6f' + '\x64' + '\x65')('\x75' + '\164' + chr(0b1010110 + 0o20) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1100100) + chr(0b101100 + 0o71) + chr(99) + '\x6f' + chr(0b1000001 + 0o43) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b100000 + 0o30)) % drrqTaYV3rE7 nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00]'), '\x64' + chr(0b110101 + 0o60) + '\x63' + chr(12215 - 12104) + chr(0b1000111 + 0o35) + '\x65')(chr(117) + chr(116) + chr(0b1100110 + 0o0) + '\x2d' + chr(56)) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(8603 - 8492) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(427 - 371))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(9651 - 9551) + chr(0b1100101) + chr(99) + chr(2905 - 2794) + '\x64' + chr(0b111001 + 0o54))(chr(0b1110101) + chr(0b1110100) + chr(0b1000110 + 0o40) + chr(0b101101) + '\x38') % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(2748 - 2637) + chr(0b10110 + 0o32), 8)]) * 0.001) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + chr(9010 - 8909) + chr(99) + chr(0b1101111) + '\144' + chr(101))(chr(6466 - 6349) + chr(3130 - 3014) + '\x66' + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(0b110101 + 0o60) + chr(0b1100011) + chr(111) + chr(0b110010 + 0o62) + chr(0b11 + 0o142))(chr(0b1110101) + chr(7082 - 6966) + chr(0b1100101 + 0o1) + '\x2d' + '\070') nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), '\x64' + chr(7235 - 7134) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1001111 + 0o46) + chr(0b0 + 0o164) + chr(102) + chr(0b100110 + 0o7) + '\x38') elif cwMmVhWUM3ZC[nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061', 8)][nzTpIcepk0o8('\x30' + '\157' + '\061', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(100) + chr(101) + chr(0b100 + 0o137) + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + '\x74' + '\146' + chr(45) + chr(56)): if nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(0b110000) + chr(111) + '\060', 8)]) == nzTpIcepk0o8(chr(130 - 82) + '\x6f' + '\060', 8): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(2384 - 2284) + chr(0b111101 + 0o50) + chr(7420 - 7321) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(1673 - 1573) + chr(101) + '\143' + chr(0b110011 + 0o74) + chr(0b101010 + 0o72) + chr(5262 - 5161))(chr(117) + chr(0b1001010 + 0o52) + chr(0b1100110) + '\055' + chr(0b111000)) % XrSglziO_kwd fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\144' + '\145' + chr(904 - 805) + '\x6f' + '\144' + chr(0b11100 + 0o111))(chr(0b10000 + 0o145) + '\164' + chr(0b100100 + 0o102) + '\055' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1010110 + 0o16) + '\x65' + chr(2614 - 2515) + chr(5919 - 5808) + chr(554 - 454) + '\145')(chr(0b1110101) + chr(0b1000010 + 0o62) + chr(2241 - 2139) + chr(45) + chr(0b1100 + 0o54)) % ORW8J19YsL8H fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\144' + chr(101) + chr(5582 - 5483) + chr(3816 - 3705) + chr(0b110 + 0o136) + '\145')(chr(0b110011 + 0o102) + chr(8860 - 8744) + chr(0b1100110) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\x64' + chr(0b100110 + 0o77) + chr(4408 - 4309) + chr(6449 - 6338) + chr(0b110101 + 0o57) + chr(0b1100101))(chr(4660 - 4543) + chr(12433 - 12317) + chr(0b1000011 + 0o43) + '\055' + chr(0b10000 + 0o50)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), '\144' + chr(0b1000111 + 0o36) + chr(0b101000 + 0o73) + chr(3342 - 3231) + chr(0b111001 + 0o53) + '\145')('\x75' + chr(116) + '\146' + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(0b1100100) + chr(0b1001010 + 0o33) + chr(3144 - 3045) + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(607 - 505) + '\x2d' + chr(56)) % ncDYK9LWVfBn nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9]'), '\x64' + chr(101) + chr(0b10 + 0o141) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(303 - 258) + chr(0b111000)) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaf\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100 + 0o0) + '\145' + chr(99) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\144' + chr(0b110111 + 0o56) + '\x63' + chr(0b110010 + 0o75) + '\144' + chr(101))(chr(0b1110100 + 0o1) + chr(116) + chr(0b1100110) + chr(0b11001 + 0o24) + chr(56)) % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(3590 - 3479) + chr(267 - 219), 8)]) * 0.001) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b1100100) + '\145' + chr(0b110111 + 0o54) + chr(9236 - 9125) + chr(0b100101 + 0o77) + '\x65')('\x75' + '\x74' + '\146' + chr(45) + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(0b1001110 + 0o27) + chr(99) + chr(0b1101000 + 0o7) + '\144' + '\145')(chr(4392 - 4275) + '\164' + chr(102) + chr(0b1111 + 0o36) + chr(0b111000)) nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0Gk9N'), chr(100) + chr(1677 - 1576) + chr(2072 - 1973) + chr(0b1101111) + '\144' + chr(101))(chr(8033 - 7916) + '\164' + chr(0b1100110) + chr(0b101101) + '\070') elif HsExji6d7tC1 == roI3spqORKae(ES5oEprVxulp(b'\xf8'), chr(0b1100100) + chr(0b111010 + 0o53) + '\143' + '\x6f' + chr(100) + '\145')(chr(8152 - 8035) + '\164' + '\x66' + '\055' + '\070') and fBsoIoeG_eRQ == roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0E\x7f9@O\xfc'), chr(7746 - 7646) + chr(538 - 437) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(117) + '\x74' + '\x66' + chr(0b101101) + '\x38'): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xba\xc3j\x10'), '\144' + chr(7071 - 6970) + chr(0b1100011) + '\x6f' + chr(0b1011 + 0o131) + chr(101))('\x75' + '\164' + '\x66' + chr(0b101101) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\144' + chr(101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))('\x75' + chr(7269 - 7153) + chr(0b1100110) + '\x2d' + chr(1569 - 1513)) % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(625 - 577) + chr(111) + chr(0b110000), 8)]) + 273.0) if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(48) + chr(111) + '\x31', 8)][nzTpIcepk0o8(chr(48) + chr(0b110100 + 0o73) + chr(2216 - 2168), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100011 + 0o1) + chr(101) + chr(7293 - 7194) + chr(111) + chr(100) + chr(101))(chr(0b1010001 + 0o44) + chr(10640 - 10524) + chr(0b1001110 + 0o30) + chr(1413 - 1368) + chr(0b111000)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N.Q\xe1\xc6\x8d\xf4*4C7'), chr(0b1001000 + 0o34) + '\x65' + chr(0b11011 + 0o110) + chr(111) + chr(100) + chr(101))('\165' + '\x74' + '\x66' + chr(1071 - 1026) + chr(0b100010 + 0o26)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\x64' + chr(0b111001 + 0o54) + chr(99) + '\x6f' + chr(0b1001110 + 0o26) + chr(0b111010 + 0o53))('\x75' + chr(0b1010101 + 0o37) + chr(102) + chr(0b101 + 0o50) + chr(1864 - 1808))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1001110 + 0o41) + chr(0b1100100) + '\x65')(chr(1318 - 1201) + chr(116) + chr(0b1100110) + chr(971 - 926) + chr(1088 - 1032)) % nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(3641 - 3530) + '\x30', 8) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), '\x64' + '\x65' + '\x63' + chr(111) + '\x64' + chr(0b1000 + 0o135))(chr(0b1110101) + '\x74' + '\x66' + chr(45) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\144' + chr(0b1110 + 0o127) + chr(6659 - 6560) + chr(0b1101111) + chr(8147 - 8047) + chr(101))(chr(2226 - 2109) + '\164' + '\x66' + chr(0b11111 + 0o16) + chr(0b10100 + 0o44)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(2674 - 2574) + chr(0b11101 + 0o110) + chr(0b0 + 0o143) + chr(1687 - 1576) + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(0b1100110) + '\x2d' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b101 + 0o137) + chr(101) + chr(4935 - 4836) + chr(111) + chr(0b1100100) + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)) else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\x64' + '\145' + chr(1220 - 1121) + chr(0b101 + 0o152) + '\144' + '\145')(chr(117) + '\164' + chr(0b1010100 + 0o22) + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(100) + chr(0b10001 + 0o124) + chr(8117 - 8018) + '\x6f' + chr(0b10010 + 0o122) + '\145')(chr(117) + '\164' + chr(8514 - 8412) + chr(45) + chr(0b111000)) % _OaSP3sMznOY if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(233 - 185) + '\x6f' + '\x31', 8)][nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(374 - 326), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(0b1100100) + '\x65' + chr(0b1000111 + 0o34) + chr(5111 - 5000) + '\x64' + chr(3946 - 3845))('\x75' + chr(0b1100001 + 0o23) + chr(0b1100110) + chr(0b11011 + 0o22) + chr(1833 - 1777)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0VyFY0\xf8\xd1\x82\xf6*#CW\xb2\xa6\xa7'), chr(100) + '\145' + '\143' + chr(11623 - 11512) + '\x64' + chr(101))(chr(6264 - 6147) + chr(0b1110100) + chr(3119 - 3017) + '\055' + chr(56)) else: nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00].Q\xe1\xc6\x8d\xf4*4C7'), chr(0b101100 + 0o70) + chr(0b10111 + 0o116) + chr(99) + '\157' + '\x64' + '\145')('\165' + chr(0b1110100) + chr(0b100 + 0o142) + '\055' + '\x38') fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(4838 - 4737))('\x75' + chr(116) + '\x66' + chr(1224 - 1179) + chr(170 - 114))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + '\145' + '\x63' + chr(5886 - 5775) + chr(0b1001010 + 0o32) + chr(101))('\165' + chr(0b11010 + 0o132) + '\x66' + chr(0b101101) + chr(0b0 + 0o70)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), '\144' + '\x65' + chr(0b100110 + 0o75) + chr(0b1100110 + 0o11) + '\144' + '\x65')(chr(4037 - 3920) + chr(116) + chr(102) + chr(0b101101) + chr(1703 - 1647))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\x64' + chr(101) + '\x63' + '\157' + chr(9712 - 9612) + chr(101))(chr(0b1110101) + chr(3459 - 3343) + '\146' + '\055' + chr(0b111000)) % ncDYK9LWVfBn locSrhagcr8a = nzTpIcepk0o8(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(1813 - 1765) + chr(2199 - 2088) + '\x31', 8)][nzTpIcepk0o8('\060' + '\x6f' + chr(276 - 228), 8)]) - nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1100000 + 0o17) + chr(0b0 + 0o61), 8) if locSrhagcr8a == nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(54), 8): U2v82kVaSWop = PoMkbBOq9EMW[-nzTpIcepk0o8(chr(0b110000) + chr(0b1000101 + 0o52) + chr(0b10001 + 0o40), 8)] else: U2v82kVaSWop = PoMkbBOq9EMW[locSrhagcr8a] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9c\x05b\x19\x94\x9d\x9a\x97\xf06K'), chr(1135 - 1035) + chr(101) + '\143' + chr(0b11101 + 0o122) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(4717 - 4615) + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\xcf\xfc\xe2jDzsB\xc3\x8a\xba\xc3'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(6979 - 6879) + chr(101))(chr(117) + '\164' + '\146' + '\055' + chr(1265 - 1209)) + roI3spqORKae(ES5oEprVxulp(b'\x96'), chr(0b1100100) + '\145' + chr(99) + chr(0b101000 + 0o107) + chr(100) + chr(0b1100101))(chr(10159 - 10042) + chr(0b100 + 0o160) + chr(0b1100 + 0o132) + '\055' + chr(0b111000)) + U2v82kVaSWop + roI3spqORKae(ES5oEprVxulp(b'\x96'), '\x64' + chr(0b1100101) + chr(0b110110 + 0o55) + '\x6f' + chr(5596 - 5496) + '\x65')('\165' + chr(0b1110100) + chr(0b111111 + 0o47) + chr(0b101101) + chr(0b111000)) + roI3spqORKae(ES5oEprVxulp(b'\xe7\xbc\xe0oC'), chr(1458 - 1358) + chr(2227 - 2126) + chr(760 - 661) + chr(0b111011 + 0o64) + chr(1714 - 1614) + chr(0b111011 + 0o52))(chr(117) + chr(0b100000 + 0o124) + chr(0b111111 + 0o47) + chr(0b10111 + 0o26) + chr(1268 - 1212)) elif HsExji6d7tC1 != roI3spqORKae(ES5oEprVxulp(b'\xe2'), '\x64' + chr(101) + '\143' + chr(5406 - 5295) + chr(100) + chr(0b10011 + 0o122))(chr(0b1110101) + chr(116) + '\146' + chr(0b111 + 0o46) + chr(0b101111 + 0o11)): if ftfygxgFas5X(cwMmVhWUM3ZC) == nzTpIcepk0o8('\060' + '\157' + chr(49), 8): roI3spqORKae(cwMmVhWUM3ZC, roI3spqORKae(ES5oEprVxulp(b'\xe4\xc7\xde2UsSr\xdb\x84\x9b\x93'), chr(0b1100100) + chr(101) + chr(1623 - 1524) + chr(0b111100 + 0o63) + chr(3853 - 3753) + '\145')('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x9c'), '\144' + chr(0b1001000 + 0o35) + chr(0b1011111 + 0o4) + '\157' + chr(5074 - 4974) + chr(101))(chr(117) + chr(0b1110100) + chr(3938 - 3836) + chr(0b10110 + 0o27) + '\070')) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xba\xc3j\x10'), chr(0b1100100) + chr(0b10110 + 0o117) + chr(99) + '\157' + chr(3563 - 3463) + chr(0b1001 + 0o134))(chr(5372 - 5255) + chr(0b1110100) + chr(102) + chr(0b100011 + 0o12) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(0b1000001 + 0o43) + chr(101) + chr(6836 - 6737) + '\157' + '\144' + chr(0b1001010 + 0o33))(chr(117) + '\164' + chr(0b1100110) + '\055' + chr(324 - 268)) % (jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(48) + chr(1452 - 1341) + '\060', 8)]) + 273.0) if ztCwr6MUeq7n == nzTpIcepk0o8(chr(306 - 258) + '\157' + chr(0b110000), 8): if cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(111) + chr(49), 8)][nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + '\060', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100100) + '\x65' + '\143' + chr(0b1011 + 0o144) + '\144' + '\145')(chr(0b1110101) + chr(0b100100 + 0o120) + chr(0b111111 + 0o47) + chr(0b100111 + 0o6) + chr(0b1101 + 0o53)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00N'), '\x64' + chr(0b101001 + 0o74) + chr(0b1100011) + '\x6f' + '\144' + chr(101))(chr(11668 - 11551) + chr(11418 - 11302) + '\146' + '\055' + '\070') else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(0b100100 + 0o100) + chr(0b1100101) + chr(0b10101 + 0o116) + '\x6f' + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(4581 - 4479) + chr(1989 - 1944) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), '\x64' + chr(0b1100101) + chr(0b100001 + 0o102) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(56)) % _OaSP3sMznOY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(100) + chr(0b1100101) + chr(5326 - 5227) + '\157' + chr(100) + chr(0b1010101 + 0o20))('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(0b101011 + 0o71) + '\x65' + '\x63' + chr(0b1101101 + 0o2) + chr(0b1100100) + chr(101))(chr(12967 - 12850) + chr(2495 - 2379) + chr(0b1100110) + '\x2d' + chr(0b111000)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(3703 - 3603) + chr(101) + '\x63' + chr(0b1001100 + 0o43) + chr(0b1000011 + 0o41) + '\x65')(chr(0b1110101) + chr(0b1011010 + 0o32) + '\x66' + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), '\144' + chr(0b1100101) + chr(0b1001100 + 0o27) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110011 + 0o2) + '\x74' + chr(102) + chr(0b101101) + '\x38') % ncDYK9LWVfBn if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(48) + chr(12091 - 11980) + chr(0b11011 + 0o26), 8)][nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(0b110000), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9d'), '\x64' + chr(7951 - 7850) + chr(99) + chr(0b1101111) + chr(0b101001 + 0o73) + chr(0b101010 + 0o73))(chr(0b1110101) + '\164' + chr(0b101 + 0o141) + chr(0b101101) + chr(0b100110 + 0o22)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00]'), '\x64' + '\145' + '\x63' + chr(10609 - 10498) + chr(0b100010 + 0o102) + chr(0b1100101 + 0o0))('\x75' + chr(116) + chr(0b110001 + 0o65) + chr(0b101101) + '\x38') if cwMmVhWUM3ZC[nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + chr(2177 - 2128), 8)][nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1242 - 1194), 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9e'), '\x64' + chr(101) + '\143' + '\x6f' + '\144' + '\145')('\x75' + '\164' + '\146' + chr(1647 - 1602) + chr(0b111000)): nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0VyFY0\xf8'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(0b1001 + 0o57)) yLS7f7H75eq3 = nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49), 8) if cwMmVhWUM3ZC[nzTpIcepk0o8(chr(48) + chr(1364 - 1253) + chr(49), 8)][nzTpIcepk0o8('\060' + chr(0b1101111 + 0o0) + '\060', 8)] == roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(0b110011 + 0o61) + chr(0b101100 + 0o71) + '\143' + '\157' + chr(100) + '\145')(chr(0b1001100 + 0o51) + chr(116) + chr(6575 - 6473) + '\055' + '\070'): fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), '\144' + chr(101) + '\x63' + '\x6f' + chr(5476 - 5376) + chr(101))('\x75' + chr(0b1110100) + chr(0b10000 + 0o126) + chr(0b101101) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(2799 - 2699) + chr(5786 - 5685) + chr(99) + '\x6f' + chr(0b110100 + 0o60) + chr(101))(chr(0b1101000 + 0o15) + '\164' + '\x66' + chr(45) + '\070') nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0VyFY0\xfc\xaf'), chr(0b101100 + 0o70) + chr(0b1100101) + '\143' + chr(0b1101001 + 0o6) + chr(6600 - 6500) + chr(101))(chr(13020 - 12903) + '\x74' + '\146' + chr(0b101 + 0o50) + chr(56)) else: _OaSP3sMznOY = jLW6pRf2DSRk(cwMmVhWUM3ZC[nzTpIcepk0o8(chr(513 - 465) + chr(111) + '\061', 8)]) * 1e-06 fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90'), chr(100) + chr(8174 - 8073) + chr(0b1011000 + 0o13) + '\157' + '\x64' + '\x65')('\165' + chr(7916 - 7800) + '\146' + '\x2d' + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xab\xa35H'), chr(100) + chr(3487 - 3386) + chr(0b1100011) + chr(5706 - 5595) + '\144' + chr(0b1100101))(chr(0b1010011 + 0o42) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000)) % _OaSP3sMznOY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x93\xf10'), chr(100) + chr(101) + chr(3196 - 3097) + chr(111) + chr(0b11010 + 0o112) + chr(3288 - 3187))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(45) + '\x38')] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(3846 - 3745) + '\x63' + '\x6f' + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101 + 0o50) + chr(0b111000)) % MUGp3g4tuXRY fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xd8\xe1\xe8gYyqs\xc5\xb4\xaa\xc5X\x06x\x1f\x8a\x90\xb5\x97\xf1<Q\x7f'), chr(0b1010110 + 0o16) + '\145' + '\x63' + chr(4838 - 4727) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1010110 + 0o36) + '\146' + chr(1530 - 1485) + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa4\xa37K'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + '\144' + '\145')(chr(0b1110101) + chr(0b1010101 + 0o37) + chr(4144 - 4042) + '\x2d' + '\070') % ncDYK9LWVfBn nzoPdASmAqfI = roI3spqORKae(ES5oEprVxulp(b'\xe0\xc7\xa0R\x00].Q\xe1\xc6\x9a\xf4J'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(7290 - 7190) + chr(1362 - 1261))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101011 + 0o2) + chr(2320 - 2264)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9d\x13u'), chr(0b1100100) + chr(0b110010 + 0o63) + chr(0b1100011) + '\x6f' + '\144' + chr(0b100111 + 0o76))(chr(117) + '\x74' + chr(102) + chr(1050 - 1005) + chr(854 - 798))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062', 8)] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9j\x01v\x14\xb9\x99\x85\x8e\xfc7Q'), chr(100) + chr(0b1100010 + 0o3) + chr(0b1100011) + '\157' + '\x64' + '\x65')('\165' + chr(116) + chr(888 - 786) + chr(45) + chr(0b110110 + 0o2))] = roI3spqORKae(ES5oEprVxulp(b'\x89\xa2\xbd(\x1eq'), chr(7422 - 7322) + chr(0b10011 + 0o122) + '\x63' + chr(0b1101111) + chr(0b1001010 + 0o32) + chr(0b111110 + 0o47))(chr(117) + '\164' + chr(0b1010001 + 0o25) + '\x2d' + chr(0b111000)) % (jLW6pRf2DSRk(FKO_XxLfWbYt[nzTpIcepk0o8(chr(1754 - 1706) + chr(0b1101111) + chr(51), 8)]) * 0.001) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9c\x05r'), '\x64' + chr(0b1101 + 0o130) + chr(9730 - 9631) + chr(0b1000101 + 0o52) + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(0b1001111 + 0o27) + chr(1786 - 1741) + chr(2220 - 2164))] = FKO_XxLfWbYt[nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1394 - 1342), 8)] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9n\x0er'), chr(0b1000110 + 0o36) + chr(0b1100101) + chr(99) + '\x6f' + chr(930 - 830) + chr(9660 - 9559))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + '\070')] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + '\065', 8)] fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNK}s\xc2\x9f\xbc\xd3j\x05\x7f\x0e\xb9\x97\x85\x87\xfc*'), chr(0b1000011 + 0o41) + chr(0b1100101) + '\143' + '\157' + '\144' + chr(0b11 + 0o142))(chr(117) + chr(116) + '\146' + chr(816 - 771) + '\070')] = dy1mAaicEvzk fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2gCuxd\xc2\x9f\x91\xcbf\t}%\x88\x95\x87\x86\xea'), chr(0b1100 + 0o130) + chr(7562 - 7461) + '\x63' + chr(3120 - 3009) + chr(0b1100100) + chr(0b1100101))(chr(0b10 + 0o163) + '\x74' + '\x66' + chr(45) + chr(3004 - 2948))] = E63X9RhwfuOn fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2eD`ui\xd8\x84\xa0\xf9i\x01|\x1f\x95'), '\x64' + chr(4319 - 4218) + chr(0b1100011) + chr(111) + chr(0b111101 + 0o47) + chr(0b1100101))(chr(3849 - 3732) + chr(6579 - 6463) + chr(102) + chr(45) + chr(2091 - 2035))] = _NuwPUBWY7oy if roI3spqORKae(ES5oEprVxulp(b'\xe0\xc3\xa0O\x7fY9.\xf5'), chr(0b1100100) + chr(0b111011 + 0o52) + chr(99) + '\157' + chr(3937 - 3837) + '\145')('\x75' + chr(0b1010000 + 0o44) + chr(0b1100110) + chr(0b0 + 0o55) + '\070') in fBsoIoeG_eRQ: nzoPdASmAqfI = fBsoIoeG_eRQ fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKyx\xc5\x83\xa1\xc2X\x03~\x1e\x83\x87'), chr(7572 - 7472) + '\145' + chr(0b1100011) + chr(0b1000100 + 0o53) + chr(0b1100100) + chr(3511 - 3410))('\x75' + chr(10620 - 10504) + chr(102) + chr(0b1101 + 0o40) + '\x38')] = nzoPdASmAqfI fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9a\x0cp\x1d'), '\144' + '\x65' + chr(6815 - 6716) + chr(0b100101 + 0o112) + chr(0b1011100 + 0o10) + '\145')('\165' + '\x74' + chr(0b1000101 + 0o41) + '\x2d' + chr(1190 - 1134))] = roI3spqORKae(ES5oEprVxulp(b'\xcb'), '\x64' + chr(0b111 + 0o136) + '\143' + '\157' + chr(0b1100100) + chr(0b110001 + 0o64))(chr(117) + chr(0b1110100) + chr(0b111110 + 0o50) + '\x2d' + chr(56)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2u]qwt\xdc\x8e\xa0\xf9i\x01|\x1f'), chr(0b1100100) + chr(0b1100001 + 0o4) + '\143' + '\x6f' + '\144' + '\145')('\165' + chr(631 - 515) + '\x66' + '\x2d' + chr(56))] = FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000), 8)] if roI3spqORKae(ES5oEprVxulp(b'\xdf\xe7\xe9'), chr(8858 - 8758) + chr(101) + chr(7198 - 7099) + chr(206 - 95) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38') in FKO_XxLfWbYt[nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(109 - 61), 8)]: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9t\x14p\x14\x82\x95\x98\x87'), chr(100) + chr(101) + '\143' + '\x6f' + chr(6307 - 6207) + chr(0b1100101))(chr(8033 - 7916) + '\164' + chr(0b1100110) + '\x2d' + chr(56))] = roI3spqORKae(ES5oEprVxulp(b'\xdf'), '\144' + chr(9049 - 8948) + chr(2915 - 2816) + '\157' + chr(0b1100100) + chr(0b111011 + 0o52))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b110 + 0o47) + '\070') else: fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9t\x14p\x14\x82\x95\x98\x87'), chr(0b111100 + 0o50) + '\145' + chr(8312 - 8213) + chr(0b1010011 + 0o34) + chr(0b1010 + 0o132) + chr(101))('\165' + chr(12859 - 12743) + chr(102) + chr(789 - 744) + '\070')] = roI3spqORKae(ES5oEprVxulp(b'\xd9'), chr(100) + chr(0b101000 + 0o75) + chr(3625 - 3526) + '\x6f' + chr(0b1011110 + 0o6) + chr(0b11110 + 0o107))(chr(3145 - 3028) + chr(2967 - 2851) + '\x66' + chr(253 - 208) + chr(0b110101 + 0o3)) fGxDbmBdBlCw[roI3spqORKae(ES5oEprVxulp(b'\xc1\xf6\xecuXfqp\xd4\x85\xba\xf9i\x15|\x18\x83\x86'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + chr(0b110111 + 0o55) + chr(0b1000111 + 0o36))(chr(0b1011100 + 0o31) + '\x74' + chr(102) + '\055' + chr(0b111000))] = roI3spqORKae(ES5oEprVxulp(b'\x9d'), chr(0b1100100) + chr(0b1100000 + 0o5) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + chr(8499 - 8383) + chr(102) + '\x2d' + chr(56)) roI3spqORKae(pat92IisfQkU, roI3spqORKae(ES5oEprVxulp(b'\xe4\xc7\xde2UsSr\xdb\x84\x9b\x93'), chr(0b10001 + 0o123) + chr(101) + chr(0b1100011) + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(116) + '\x66' + chr(952 - 907) + '\x38'))(fGxDbmBdBlCw) Lbq81gOBsX3w = hUcsWwAd0nE_.measurements_methods(pat92IisfQkU, NdBgRJDyurSB) roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKco\xd8\x9f\xab'), chr(100) + '\145' + chr(0b1100010 + 0o1) + '\x6f' + '\x64' + chr(3980 - 3879))(chr(117) + '\164' + chr(0b11110 + 0o110) + '\055' + '\070'))(rHPU8oONrR4n, Lbq81gOBsX3w, roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKyx\xd0\x98\xbb\xd4b\rt\x14\x92\x87'), '\144' + '\145' + chr(125 - 26) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b10001 + 0o144) + chr(116) + chr(102) + chr(0b1110 + 0o37) + chr(0b100000 + 0o30))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xde\xf6\xfesA`g=\xc1\x9e\xba\x86n\x0e1'), chr(555 - 455) + chr(101) + chr(99) + chr(0b1101101 + 0o2) + chr(0b1100100) + chr(0b110111 + 0o56))(chr(0b1110101) + '\x74' + '\x66' + chr(0b101011 + 0o2) + '\070'), rHPU8oONrR4n) if ftfygxgFas5X(Z7ICPihkHtHA) > nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000), 8): roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\xc1\xf2\xeaoNKco\xd8\x9f\xab'), chr(0b100 + 0o140) + '\145' + '\143' + chr(111) + chr(100) + chr(0b11011 + 0o112))('\165' + chr(3039 - 2923) + chr(102) + '\055' + '\x38'))(LCmbVMeyipqX, Z7ICPihkHtHA, roI3spqORKae(ES5oEprVxulp(b'\xc9\xe1\xd2uTz`u\xd4\x9f\xa7\xc5t'), chr(0b1011011 + 0o11) + '\145' + chr(0b1100011) + '\x6f' + chr(0b111001 + 0o53) + '\145')('\165' + chr(0b101100 + 0o110) + chr(102) + '\x2d' + chr(0b101110 + 0o12))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xdf\xea\xe3rEq`t\xd2\x98\xee\xd6r\x141\x13\x88\xd4'), '\x64' + chr(1328 - 1227) + chr(99) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + chr(7935 - 7819) + chr(0b101001 + 0o75) + '\x2d' + chr(0b11001 + 0o37)), LCmbVMeyipqX) return (nzTpIcepk0o8('\060' + chr(111) + chr(49), 8), rHPU8oONrR4n)
PmagPy/PmagPy
SPD/lib/new_lib_curvature.py
fitcircle
def fitcircle(n, x, y): # n points, x points, y points """c Fit circle to arbitrary number of x,y pairs, based on the c modified least squares method of Umback and Jones (2000), c IEEE Transactions on Instrumentation and Measurement.""" # adding in normalize vectors step #x = numpy.array(x) / max(x) #y = numpy.array(y) / max(y) # sx, sx2, sx3, sy, sy2, sy3, sxy, sxy2, syx2 = (0,) * 9 print(type(sx), sx) for i in range(n): sx = sx + x[i] sx2 = sx2 + x[i]**2 sx3 = sx3 + x[i]**3 sy = sy + y[i] sy2 = sy2 + y[i]**2 sy3 = sy3 + y[i]**3 sxy = sxy + x[i] * y[i] sxy2 = sxy2 + x[i] * y[i]**2 syx2 = syx2 + y[i] * x[i]**2 A = n * sx2 - sx**2 B = n * sxy - sx*sy C = n * sy2 - sy**2 D = 0.5 * (n * sxy2 - sx * sy2 + n * sx3 - sx * sx2) E = 0.5 * (n * syx2 - sy * sx2 + n * sy3 - sy * sy2) # values check out up to here xo = old_div((D * C - B * E), (A * C - B**2)) yo = old_div((A * E - B * D), (A * C - B**2)) print("xo", xo) print("yo", yo) r = 0 for z in range(n): r = r + old_div(numpy.sqrt( (x[z]-xo)**2 + (y[z]-yo)**2 ), n) if xo <= numpy.mean(x) and yo <= numpy.mean(y): k = old_div(-1.,r) else: k = old_div(1.,r) SSE = lib_k.get_SSE(xo, yo, r, x, y) print("r", r) return k, xo, yo, SSE
python
def fitcircle(n, x, y): # n points, x points, y points """c Fit circle to arbitrary number of x,y pairs, based on the c modified least squares method of Umback and Jones (2000), c IEEE Transactions on Instrumentation and Measurement.""" # adding in normalize vectors step #x = numpy.array(x) / max(x) #y = numpy.array(y) / max(y) # sx, sx2, sx3, sy, sy2, sy3, sxy, sxy2, syx2 = (0,) * 9 print(type(sx), sx) for i in range(n): sx = sx + x[i] sx2 = sx2 + x[i]**2 sx3 = sx3 + x[i]**3 sy = sy + y[i] sy2 = sy2 + y[i]**2 sy3 = sy3 + y[i]**3 sxy = sxy + x[i] * y[i] sxy2 = sxy2 + x[i] * y[i]**2 syx2 = syx2 + y[i] * x[i]**2 A = n * sx2 - sx**2 B = n * sxy - sx*sy C = n * sy2 - sy**2 D = 0.5 * (n * sxy2 - sx * sy2 + n * sx3 - sx * sx2) E = 0.5 * (n * syx2 - sy * sx2 + n * sy3 - sy * sy2) # values check out up to here xo = old_div((D * C - B * E), (A * C - B**2)) yo = old_div((A * E - B * D), (A * C - B**2)) print("xo", xo) print("yo", yo) r = 0 for z in range(n): r = r + old_div(numpy.sqrt( (x[z]-xo)**2 + (y[z]-yo)**2 ), n) if xo <= numpy.mean(x) and yo <= numpy.mean(y): k = old_div(-1.,r) else: k = old_div(1.,r) SSE = lib_k.get_SSE(xo, yo, r, x, y) print("r", r) return k, xo, yo, SSE
[ "def", "fitcircle", "(", "n", ",", "x", ",", "y", ")", ":", "# n points, x points, y points", "# adding in normalize vectors step", "#x = numpy.array(x) / max(x)", "#y = numpy.array(y) / max(y)", "#", "sx", ",", "sx2", ",", "sx3", ",", "sy", ",", "sy2", ",", "sy3", ",", "sxy", ",", "sxy2", ",", "syx2", "=", "(", "0", ",", ")", "*", "9", "print", "(", "type", "(", "sx", ")", ",", "sx", ")", "for", "i", "in", "range", "(", "n", ")", ":", "sx", "=", "sx", "+", "x", "[", "i", "]", "sx2", "=", "sx2", "+", "x", "[", "i", "]", "**", "2", "sx3", "=", "sx3", "+", "x", "[", "i", "]", "**", "3", "sy", "=", "sy", "+", "y", "[", "i", "]", "sy2", "=", "sy2", "+", "y", "[", "i", "]", "**", "2", "sy3", "=", "sy3", "+", "y", "[", "i", "]", "**", "3", "sxy", "=", "sxy", "+", "x", "[", "i", "]", "*", "y", "[", "i", "]", "sxy2", "=", "sxy2", "+", "x", "[", "i", "]", "*", "y", "[", "i", "]", "**", "2", "syx2", "=", "syx2", "+", "y", "[", "i", "]", "*", "x", "[", "i", "]", "**", "2", "A", "=", "n", "*", "sx2", "-", "sx", "**", "2", "B", "=", "n", "*", "sxy", "-", "sx", "*", "sy", "C", "=", "n", "*", "sy2", "-", "sy", "**", "2", "D", "=", "0.5", "*", "(", "n", "*", "sxy2", "-", "sx", "*", "sy2", "+", "n", "*", "sx3", "-", "sx", "*", "sx2", ")", "E", "=", "0.5", "*", "(", "n", "*", "syx2", "-", "sy", "*", "sx2", "+", "n", "*", "sy3", "-", "sy", "*", "sy2", ")", "# values check out up to here", "xo", "=", "old_div", "(", "(", "D", "*", "C", "-", "B", "*", "E", ")", ",", "(", "A", "*", "C", "-", "B", "**", "2", ")", ")", "yo", "=", "old_div", "(", "(", "A", "*", "E", "-", "B", "*", "D", ")", ",", "(", "A", "*", "C", "-", "B", "**", "2", ")", ")", "print", "(", "\"xo\"", ",", "xo", ")", "print", "(", "\"yo\"", ",", "yo", ")", "r", "=", "0", "for", "z", "in", "range", "(", "n", ")", ":", "r", "=", "r", "+", "old_div", "(", "numpy", ".", "sqrt", "(", "(", "x", "[", "z", "]", "-", "xo", ")", "**", "2", "+", "(", "y", "[", "z", "]", "-", "yo", ")", "**", "2", ")", ",", "n", ")", "if", "xo", "<=", "numpy", ".", "mean", "(", "x", ")", "and", "yo", "<=", "numpy", ".", "mean", "(", "y", ")", ":", "k", "=", "old_div", "(", "-", "1.", ",", "r", ")", "else", ":", "k", "=", "old_div", "(", "1.", ",", "r", ")", "SSE", "=", "lib_k", ".", "get_SSE", "(", "xo", ",", "yo", ",", "r", ",", "x", ",", "y", ")", "print", "(", "\"r\"", ",", "r", ")", "return", "k", ",", "xo", ",", "yo", ",", "SSE" ]
c Fit circle to arbitrary number of x,y pairs, based on the c modified least squares method of Umback and Jones (2000), c IEEE Transactions on Instrumentation and Measurement.
[ "c", "Fit", "circle", "to", "arbitrary", "number", "of", "x", "y", "pairs", "based", "on", "the", "c", "modified", "least", "squares", "method", "of", "Umback", "and", "Jones", "(", "2000", ")", "c", "IEEE", "Transactions", "on", "Instrumentation", "and", "Measurement", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/SPD/lib/new_lib_curvature.py#L29-L75
train
c Fit circle to arbitrary number of x y pairs based on the c modified least squares method of Umback and Jones
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(132 - 84) + chr(0b1101111) + chr(0b110001) + '\066' + chr(0b110101), 55561 - 55553), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100100 + 0o16) + chr(0b110000) + chr(0b110010), 10620 - 10612), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1011 + 0o46) + chr(1931 - 1883) + chr(1410 - 1356), 31429 - 31421), nzTpIcepk0o8(chr(1555 - 1507) + chr(111) + chr(52) + '\x32', 47871 - 47863), nzTpIcepk0o8(chr(1841 - 1793) + chr(0b1101111) + chr(1229 - 1179) + '\x37' + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(512 - 463) + '\067' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(2315 - 2261) + chr(1381 - 1332), 31462 - 31454), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b101101 + 0o6) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(1910 - 1860) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(472 - 424) + '\157' + chr(0b110001) + chr(55) + chr(331 - 281), 23531 - 23523), nzTpIcepk0o8(chr(951 - 903) + chr(0b1101111) + chr(49) + chr(218 - 168) + chr(689 - 639), 52338 - 52330), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100101 + 0o15) + '\065', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1000010 + 0o55) + chr(0b110001) + '\061' + chr(0b10001 + 0o44), 9078 - 9070), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101001 + 0o10) + chr(0b101011 + 0o11) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100111 + 0o110) + chr(0b1001 + 0o51) + chr(48) + '\x36', 22689 - 22681), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\157' + '\x31' + chr(0b110001) + chr(0b110101), 8), nzTpIcepk0o8('\x30' + chr(0b1011011 + 0o24) + chr(0b110010) + chr(1980 - 1928) + chr(942 - 889), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001110 + 0o41) + chr(49) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10101 + 0o132) + chr(0b110011) + chr(0b110011), 37374 - 37366), nzTpIcepk0o8(chr(48) + chr(0b111000 + 0o67) + chr(0b110001) + chr(0b110101) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x32' + '\063' + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x35' + chr(2818 - 2764), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(53) + '\x37', 39721 - 39713), nzTpIcepk0o8('\x30' + chr(7424 - 7313) + chr(0b110001) + chr(0b110001) + '\x32', 0b1000), nzTpIcepk0o8(chr(1138 - 1090) + chr(0b1101111) + chr(0b110001) + chr(0b100110 + 0o16), 64888 - 64880), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\067' + chr(48), 14051 - 14043), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(48) + chr(53), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11000 + 0o33) + '\065' + chr(0b11100 + 0o24), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(543 - 432) + chr(49) + '\x31' + chr(0b101110 + 0o7), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(52) + chr(1930 - 1879), 0o10), nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + chr(2004 - 1955) + chr(0b110001) + chr(0b100010 + 0o20), 8), nzTpIcepk0o8('\x30' + chr(7133 - 7022) + chr(0b110010) + chr(48) + chr(1104 - 1053), ord("\x08")), nzTpIcepk0o8(chr(974 - 926) + chr(5949 - 5838) + chr(0b10100 + 0o35) + chr(55) + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(3518 - 3407) + '\x33' + chr(51), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(0b110001) + '\x31', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\065' + chr(0b110101), 12807 - 12799), nzTpIcepk0o8(chr(0b110000) + chr(3157 - 3046) + '\062' + '\063' + chr(0b100 + 0o54), 52423 - 52415), nzTpIcepk0o8(chr(48) + '\157' + chr(2132 - 2083) + chr(0b101001 + 0o13) + '\061', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b101 + 0o152) + chr(951 - 898) + chr(48), 2712 - 2704)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'['), chr(7748 - 7648) + chr(101) + chr(99) + '\157' + '\144' + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(45) + chr(0b110001 + 0o7)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def VAP3nuKpu9NG(NoZxuO7wjArS, bI5jsQ9OkQtj, Fi3yzxctM1zW): (JkrzfKC9ZyzA, ZZ84WilyjHrx, INYMUsBY8uOP, vsx6iGXkzl5d, hnERBa6p6JZy, z0LrmMA29kD4, fKQybd9DpIYt, mKG6Md1NwGAd, yIwRsJxWpcaJ) = (nzTpIcepk0o8('\x30' + '\157' + chr(48), 0o10),) * nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110001), ord("\x08")) v8jsMqaYV6U2(MJ07XsN5uFgW(JkrzfKC9ZyzA), JkrzfKC9ZyzA) for ZlbFMSG8gCoF in bbT2xIe5pzk7(NoZxuO7wjArS): JkrzfKC9ZyzA = JkrzfKC9ZyzA + bI5jsQ9OkQtj[ZlbFMSG8gCoF] ZZ84WilyjHrx = ZZ84WilyjHrx + bI5jsQ9OkQtj[ZlbFMSG8gCoF] ** nzTpIcepk0o8(chr(0b110000) + chr(9801 - 9690) + '\062', 30603 - 30595) INYMUsBY8uOP = INYMUsBY8uOP + bI5jsQ9OkQtj[ZlbFMSG8gCoF] ** nzTpIcepk0o8('\x30' + chr(7525 - 7414) + chr(0b110010 + 0o1), ord("\x08")) vsx6iGXkzl5d = vsx6iGXkzl5d + Fi3yzxctM1zW[ZlbFMSG8gCoF] hnERBa6p6JZy = hnERBa6p6JZy + Fi3yzxctM1zW[ZlbFMSG8gCoF] ** nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32', 8) z0LrmMA29kD4 = z0LrmMA29kD4 + Fi3yzxctM1zW[ZlbFMSG8gCoF] ** nzTpIcepk0o8(chr(0b110 + 0o52) + chr(551 - 440) + chr(0b1 + 0o62), 8) fKQybd9DpIYt = fKQybd9DpIYt + bI5jsQ9OkQtj[ZlbFMSG8gCoF] * Fi3yzxctM1zW[ZlbFMSG8gCoF] mKG6Md1NwGAd = mKG6Md1NwGAd + bI5jsQ9OkQtj[ZlbFMSG8gCoF] * Fi3yzxctM1zW[ZlbFMSG8gCoF] ** nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(1397 - 1347), 8) yIwRsJxWpcaJ = yIwRsJxWpcaJ + Fi3yzxctM1zW[ZlbFMSG8gCoF] * bI5jsQ9OkQtj[ZlbFMSG8gCoF] ** nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32', 8) MbjAvyP4Qyak = NoZxuO7wjArS * ZZ84WilyjHrx - JkrzfKC9ZyzA ** nzTpIcepk0o8('\060' + chr(10164 - 10053) + chr(0b111 + 0o53), 8) TQ0u0KgwFXN5 = NoZxuO7wjArS * fKQybd9DpIYt - JkrzfKC9ZyzA * vsx6iGXkzl5d eb_JimPifyhR = NoZxuO7wjArS * hnERBa6p6JZy - vsx6iGXkzl5d ** nzTpIcepk0o8('\060' + chr(111) + chr(0b100000 + 0o22), 8) hOjrMKpaybfC = 0.5 * (NoZxuO7wjArS * mKG6Md1NwGAd - JkrzfKC9ZyzA * hnERBa6p6JZy + NoZxuO7wjArS * INYMUsBY8uOP - JkrzfKC9ZyzA * ZZ84WilyjHrx) L63iXCLJOwQn = 0.5 * (NoZxuO7wjArS * yIwRsJxWpcaJ - vsx6iGXkzl5d * ZZ84WilyjHrx + NoZxuO7wjArS * z0LrmMA29kD4 - vsx6iGXkzl5d * hnERBa6p6JZy) nV2jZZi9TM8N = SVfYwQaP38MC(hOjrMKpaybfC * eb_JimPifyhR - TQ0u0KgwFXN5 * L63iXCLJOwQn, MbjAvyP4Qyak * eb_JimPifyhR - TQ0u0KgwFXN5 ** nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010), 8)) IZxnawTrqv5S = SVfYwQaP38MC(MbjAvyP4Qyak * L63iXCLJOwQn - TQ0u0KgwFXN5 * hOjrMKpaybfC, MbjAvyP4Qyak * eb_JimPifyhR - TQ0u0KgwFXN5 ** nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32', 8)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\r\xed'), '\x64' + '\x65' + '\143' + chr(0b100110 + 0o111) + '\x64' + chr(0b1100101))('\165' + '\x74' + chr(102) + chr(623 - 578) + chr(1543 - 1487)), nV2jZZi9TM8N) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0c\xed'), chr(3822 - 3722) + chr(101) + '\x63' + '\157' + chr(0b100101 + 0o77) + chr(4614 - 4513))('\x75' + chr(9208 - 9092) + '\146' + chr(45) + chr(0b0 + 0o70)), IZxnawTrqv5S) LCrwg7lcbmU9 = nzTpIcepk0o8(chr(0b110000) + chr(11441 - 11330) + chr(48), 8) for ZkpORfAzQ9Hw in bbT2xIe5pzk7(NoZxuO7wjArS): LCrwg7lcbmU9 = LCrwg7lcbmU9 + SVfYwQaP38MC(L6YB9g87uxKh.sqrt((bI5jsQ9OkQtj[ZkpORfAzQ9Hw] - nV2jZZi9TM8N) ** nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010), 8) + (Fi3yzxctM1zW[ZkpORfAzQ9Hw] - IZxnawTrqv5S) ** nzTpIcepk0o8('\x30' + chr(0b100100 + 0o113) + '\x32', 8)), NoZxuO7wjArS) if nV2jZZi9TM8N <= roI3spqORKae(L6YB9g87uxKh, roI3spqORKae(ES5oEprVxulp(b'?\xc7wD\xcd\t\x89\x1f\xd7\x0fam'), chr(0b110010 + 0o62) + chr(0b101100 + 0o71) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))(chr(0b1110101) + '\164' + chr(2540 - 2438) + '\055' + chr(56)))(bI5jsQ9OkQtj) and IZxnawTrqv5S <= roI3spqORKae(L6YB9g87uxKh, roI3spqORKae(ES5oEprVxulp(b'?\xc7wD\xcd\t\x89\x1f\xd7\x0fam'), '\x64' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(4048 - 3947))('\x75' + chr(116) + chr(0b11001 + 0o115) + chr(1895 - 1850) + chr(0b111000)))(Fi3yzxctM1zW): B6UAF1zReOyJ = SVfYwQaP38MC(-1.0, LCrwg7lcbmU9) else: B6UAF1zReOyJ = SVfYwQaP38MC(1.0, LCrwg7lcbmU9) ekAOQfotmWnv = ZwusOidR1t2U.get_SSE(nV2jZZi9TM8N, IZxnawTrqv5S, LCrwg7lcbmU9, bI5jsQ9OkQtj, Fi3yzxctM1zW) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x07'), chr(100) + chr(0b1100101) + '\143' + chr(0b1100100 + 0o13) + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + chr(56)), LCrwg7lcbmU9) return (B6UAF1zReOyJ, nV2jZZi9TM8N, IZxnawTrqv5S, ekAOQfotmWnv)
PmagPy/PmagPy
programs/vgp_di.py
main
def main(): """ NAME vgp_di.py DESCRIPTION converts site latitude, longitude and pole latitude, longitude to declination, inclination SYNTAX vgp_di.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: PLAT PLON SLAT SLON where: PLAT: pole latitude PLON: pole longitude (positive east) SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT D I where: D: declination I: inclination """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: # if one is -i while 1: try: ans=input("Input Pole Latitude [positive north]: <cntrl-D to quit> ") plat=float(ans) # assign input to plat, after conversion to floating point ans=input("Input Pole Longitude [positive east]: ") plon =float(ans) ans=input("Input Site Latitude: ") slat =float(ans) ans=input("Input Site Longitude: ") slong =float(ans) dec,inc=pmag.vgp_di(plat,plon,slat,slong) # call vgp_di function from pmag module print('%7.1f %7.1f'%(dec,inc)) # print out returned stuff except EOFError: print("\n Good-bye\n") sys.exit() elif '-f' in sys.argv: # manual input of file name ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') inp = f.readlines() # read from standard inp for line in inp: # read in the data (as string variable), line by line dec,inc= spitout(line) else: inp = sys.stdin.readlines() # read from standard input for line in inp: # read in the data (as string variable), line by line spitout(line)
python
def main(): """ NAME vgp_di.py DESCRIPTION converts site latitude, longitude and pole latitude, longitude to declination, inclination SYNTAX vgp_di.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: PLAT PLON SLAT SLON where: PLAT: pole latitude PLON: pole longitude (positive east) SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT D I where: D: declination I: inclination """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: # if one is -i while 1: try: ans=input("Input Pole Latitude [positive north]: <cntrl-D to quit> ") plat=float(ans) # assign input to plat, after conversion to floating point ans=input("Input Pole Longitude [positive east]: ") plon =float(ans) ans=input("Input Site Latitude: ") slat =float(ans) ans=input("Input Site Longitude: ") slong =float(ans) dec,inc=pmag.vgp_di(plat,plon,slat,slong) # call vgp_di function from pmag module print('%7.1f %7.1f'%(dec,inc)) # print out returned stuff except EOFError: print("\n Good-bye\n") sys.exit() elif '-f' in sys.argv: # manual input of file name ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') inp = f.readlines() # read from standard inp for line in inp: # read in the data (as string variable), line by line dec,inc= spitout(line) else: inp = sys.stdin.readlines() # read from standard input for line in inp: # read in the data (as string variable), line by line spitout(line)
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-i'", "in", "sys", ".", "argv", ":", "# if one is -i", "while", "1", ":", "try", ":", "ans", "=", "input", "(", "\"Input Pole Latitude [positive north]: <cntrl-D to quit> \"", ")", "plat", "=", "float", "(", "ans", ")", "# assign input to plat, after conversion to floating point", "ans", "=", "input", "(", "\"Input Pole Longitude [positive east]: \"", ")", "plon", "=", "float", "(", "ans", ")", "ans", "=", "input", "(", "\"Input Site Latitude: \"", ")", "slat", "=", "float", "(", "ans", ")", "ans", "=", "input", "(", "\"Input Site Longitude: \"", ")", "slong", "=", "float", "(", "ans", ")", "dec", ",", "inc", "=", "pmag", ".", "vgp_di", "(", "plat", ",", "plon", ",", "slat", ",", "slong", ")", "# call vgp_di function from pmag module", "print", "(", "'%7.1f %7.1f'", "%", "(", "dec", ",", "inc", ")", ")", "# print out returned stuff", "except", "EOFError", ":", "print", "(", "\"\\n Good-bye\\n\"", ")", "sys", ".", "exit", "(", ")", "elif", "'-f'", "in", "sys", ".", "argv", ":", "# manual input of file name", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", ")", "inp", "=", "f", ".", "readlines", "(", ")", "# read from standard inp", "for", "line", "in", "inp", ":", "# read in the data (as string variable), line by line", "dec", ",", "inc", "=", "spitout", "(", "line", ")", "else", ":", "inp", "=", "sys", ".", "stdin", ".", "readlines", "(", ")", "# read from standard input", "for", "line", "in", "inp", ":", "# read in the data (as string variable), line by line", "spitout", "(", "line", ")" ]
NAME vgp_di.py DESCRIPTION converts site latitude, longitude and pole latitude, longitude to declination, inclination SYNTAX vgp_di.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: PLAT PLON SLAT SLON where: PLAT: pole latitude PLON: pole longitude (positive east) SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT D I where: D: declination I: inclination
[ "NAME", "vgp_di", ".", "py", "DESCRIPTION", "converts", "site", "latitude", "longitude", "and", "pole", "latitude", "longitude", "to", "declination", "inclination", "SYNTAX", "vgp_di", ".", "py", "[", "-", "h", "]", "[", "-", "i", "]", "[", "-", "f", "FILE", "]", "[", "<", "filename", "]", "OPTIONS", "-", "h", "prints", "help", "message", "and", "quits", "-", "i", "interactive", "data", "entry", "-", "f", "FILE", "to", "specify", "file", "name", "on", "the", "command", "line", "INPUT", "for", "file", "entry", ":", "PLAT", "PLON", "SLAT", "SLON", "where", ":", "PLAT", ":", "pole", "latitude", "PLON", ":", "pole", "longitude", "(", "positive", "east", ")", "SLAT", ":", "site", "latitude", "(", "positive", "north", ")", "SLON", ":", "site", "longitude", "(", "positive", "east", ")", "OUTPUT", "D", "I", "where", ":", "D", ":", "declination", "I", ":", "inclination" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/vgp_di.py#L17-L77
train
NAME vgp_di. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + chr(458 - 409) + '\x37' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101100 + 0o13) + chr(0b10101 + 0o37), 0b1000), nzTpIcepk0o8('\x30' + chr(5364 - 5253) + chr(0b101101 + 0o6) + chr(52) + '\x33', 0b1000), nzTpIcepk0o8(chr(1150 - 1102) + chr(0b111001 + 0o66) + chr(0b110010) + chr(50) + '\063', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(49) + chr(0b10 + 0o62), 32784 - 32776), nzTpIcepk0o8(chr(348 - 300) + chr(0b1101111) + chr(657 - 606) + chr(792 - 741) + chr(54), 2488 - 2480), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + '\x32' + '\065' + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(854 - 805) + chr(265 - 217) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(2002 - 1891) + chr(0b10110 + 0o34) + chr(0b110 + 0o57) + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x31' + chr(1429 - 1376), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10111 + 0o40) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + chr(0b11011 + 0o34) + '\065', 0o10), nzTpIcepk0o8('\060' + chr(2495 - 2384) + '\x34' + chr(53), 21026 - 21018), nzTpIcepk0o8('\x30' + '\157' + chr(0b101111 + 0o4) + chr(51) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b100001 + 0o25), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\064' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + chr(2134 - 2023) + '\062' + chr(49) + chr(49), 0o10), nzTpIcepk0o8(chr(928 - 880) + chr(0b1101111) + chr(0b110010) + chr(55) + '\x33', 17642 - 17634), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x35' + '\x36', 22077 - 22069), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(0b1100 + 0o44) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2096 - 2047) + '\x36' + '\061', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(8472 - 8361) + chr(0b110001) + chr(2010 - 1957) + chr(558 - 508), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(48) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + '\064' + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(0b110001) + chr(0b110000) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110001 + 0o76) + chr(2094 - 2039) + '\065', 43871 - 43863), nzTpIcepk0o8(chr(1532 - 1484) + '\157' + '\x32' + chr(930 - 878) + chr(2108 - 2056), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + '\x33' + chr(2131 - 2082) + chr(0b1011 + 0o45), 0o10), nzTpIcepk0o8(chr(1398 - 1350) + chr(0b1101111) + chr(51) + '\066' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + '\067' + '\x37', 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\x6f' + '\x33' + '\x37' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1119 - 1068) + chr(0b101000 + 0o11) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10110 + 0o34) + chr(293 - 244) + '\x35', 20227 - 20219), nzTpIcepk0o8(chr(2227 - 2179) + '\157' + chr(0b110001) + '\x32' + chr(50), 63083 - 63075), nzTpIcepk0o8(chr(2021 - 1973) + '\x6f' + chr(2306 - 2256) + chr(55) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1011 + 0o50) + chr(50) + chr(0b110010), 23781 - 23773), nzTpIcepk0o8(chr(1177 - 1129) + chr(0b1101011 + 0o4) + chr(1736 - 1687) + chr(50) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(299 - 251) + chr(0b1101111) + '\063' + '\061' + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(9955 - 9844) + chr(2842 - 2787) + chr(51), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(6111 - 6000) + chr(0b110101) + chr(0b111 + 0o51), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'W'), chr(1881 - 1781) + '\x65' + chr(99) + chr(0b1010 + 0o145) + chr(100) + chr(101))(chr(0b1110101) + chr(4432 - 4316) + '\146' + chr(0b101101) + chr(1583 - 1527)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): if roI3spqORKae(ES5oEprVxulp(b'TT'), chr(100) + '\145' + chr(8697 - 8598) + chr(111) + chr(0b1000010 + 0o42) + '\x65')(chr(117) + chr(9695 - 9579) + chr(0b1001100 + 0o32) + chr(45) + chr(2004 - 1948)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x18V\xaa\xd7\xdb\xa7\xf3\x08\xeb\xac\r\x9f'), '\x64' + chr(101) + chr(0b100111 + 0o74) + '\x6f' + chr(0b1100100) + chr(0b111100 + 0o51))(chr(6484 - 6367) + chr(116) + chr(102) + chr(45) + chr(56))): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x00Z\xa6\xf6\xfd\x8f\xc2\x10\xc6\xbci\xa9'), chr(5103 - 5003) + '\x65' + chr(8240 - 8141) + chr(0b1011101 + 0o22) + '\x64' + chr(0b1100101))('\165' + chr(4155 - 4039) + chr(3225 - 3123) + '\x2d' + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'#I\x91\xf9\xef\x8b\xe7t\xda\xbe\x7f\xc5'), chr(0b101101 + 0o67) + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + chr(0b101 + 0o140))(chr(117) + '\x74' + chr(0b11001 + 0o115) + chr(0b101101) + chr(56)))() if roI3spqORKae(ES5oEprVxulp(b'TU'), '\x64' + '\x65' + chr(99) + '\x6f' + chr(1789 - 1689) + '\145')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x18V\xaa\xd7\xdb\xa7\xf3\x08\xeb\xac\r\x9f'), '\144' + chr(101) + chr(0b1100011) + chr(0b1011111 + 0o20) + '\144' + chr(1727 - 1626))('\165' + '\x74' + chr(0b100010 + 0o104) + chr(45) + chr(104 - 48))): while nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + chr(0b110001), ord("\x08")): try: CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'0R\x93\xe6\xf8\xfe\xfb*\xc5\xa8\x1e\xb1D\xae\x7fx\x16\xed\xdeN\x9e\x01\x05\xf5J5T\xd2\xad\xd2\x11\x95\xbd\xf9:\xe2\xe8t\xf7X\x17H\x91\xff\xa1\x9a\x8b1\xc6\xedO\x88L\xae(,C'), '\x64' + chr(0b1100101) + chr(1466 - 1367) + '\157' + '\144' + chr(0b1010000 + 0o25))(chr(0b1011101 + 0o30) + '\x74' + '\x66' + chr(0b101101) + chr(2653 - 2597))) yOX81cxVSDwr = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'0R\x93\xe6\xf8\xfe\xfb*\xc5\xa8\x1e\xb1J\xb4qe\x17\xfc\xdf\x0b\xe5*\x1a\xe9P(I\xcd\xbe\x97_\x9f\xae\xfe&\xe2\xe8t\xeb'), chr(0b1100100) + chr(101) + chr(5148 - 5049) + '\x6f' + chr(0b1100100) + chr(3575 - 3474))(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(1568 - 1523) + '\070')) j1qi1l65tYxo = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'0R\x93\xe6\xf8\xfe\xf8,\xdd\xa8\x1e\xb1D\xae\x7fx\x16\xed\xdeT\xe5Q'), '\144' + chr(101) + '\143' + '\157' + chr(0b11010 + 0o112) + chr(101))('\x75' + chr(0b1110100) + chr(141 - 39) + chr(0b101101) + '\070')) dcbj7KRNqoJt = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'0R\x93\xe6\xf8\xfe\xf8,\xdd\xa8\x1e\xb1J\xb4qe\x17\xfc\xdf\x0b\xffQJ'), '\144' + chr(0b101101 + 0o70) + chr(0b1100 + 0o127) + chr(10574 - 10463) + chr(0b1100100) + chr(0b1100010 + 0o3))(chr(0b1110101) + chr(116) + '\146' + chr(768 - 723) + chr(56))) lbeAHluXJ5cP = jLW6pRf2DSRk(CMfsDQitQrpd) (oD8LLo_zqNZe, ReAwxaIgTMy5) = hUcsWwAd0nE_.vgp_di(yOX81cxVSDwr, j1qi1l65tYxo, dcbj7KRNqoJt, lbeAHluXJ5cP) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\\\x0b\xcd\xa2\xea\xfe\x8er\x87\xfcX'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + chr(0b100011 + 0o101) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + chr(45) + chr(3119 - 3063)) % (oD8LLo_zqNZe, ReAwxaIgTMy5)) except dVZxwLTOCtbO: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"s\x1c\xa4\xfc\xe3\xba\x86'\xd0\xa84"), chr(1043 - 943) + chr(8230 - 8129) + '\143' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b10101 + 0o140) + '\164' + chr(0b111000 + 0o56) + chr(0b11000 + 0o25) + chr(0b1110 + 0o52))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'#I\x91\xf9\xef\x8b\xe7t\xda\xbe\x7f\xc5'), chr(100) + chr(101) + chr(99) + chr(111) + chr(9323 - 9223) + chr(2237 - 2136))('\165' + chr(116) + chr(0b1100110) + '\055' + '\x38'))() elif roI3spqORKae(ES5oEprVxulp(b'TZ'), '\144' + chr(101) + '\x63' + chr(111) + '\144' + '\145')(chr(117) + chr(0b1110100) + chr(9865 - 9763) + '\x2d' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x18V\xaa\xd7\xdb\xa7\xf3\x08\xeb\xac\r\x9f'), '\144' + chr(8063 - 7962) + chr(0b1000110 + 0o35) + '\157' + chr(2203 - 2103) + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b10001 + 0o34) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'TZ'), '\144' + '\x65' + '\143' + chr(111) + '\144' + '\x65')(chr(0b1010101 + 0o40) + chr(116) + '\x66' + chr(45) + '\x38')) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001), 8)] _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'\x0b'), '\144' + chr(0b1011000 + 0o15) + chr(0b100011 + 0o100) + chr(7991 - 7880) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + '\x66' + chr(45) + '\070')) kTVXhBR0AFNQ = _R8IKF5IwAfX.TKmlmUjNQ4dY() for ffiOpFBWGmZU in kTVXhBR0AFNQ: (oD8LLo_zqNZe, ReAwxaIgTMy5) = MfBiPDpMEPLG(ffiOpFBWGmZU) else: kTVXhBR0AFNQ = bpyfpu4kTbwL.stdin.TKmlmUjNQ4dY() for ffiOpFBWGmZU in kTVXhBR0AFNQ: MfBiPDpMEPLG(ffiOpFBWGmZU)
PmagPy/PmagPy
dev_setup.py
unix_install
def unix_install(): """ Edits or creates .bashrc, .bash_profile, and .profile files in the users HOME directory in order to add your current directory (hopefully your PmagPy directory) and assorted lower directories in the PmagPy/programs directory to your PATH environment variable. It also adds the PmagPy and the PmagPy/programs directories to PYTHONPATH. """ PmagPyDir = os.path.abspath(".") COMMAND = """\n for d in %s/programs/*/ "%s/programs/"; do case ":$PATH:" in *":$d:"*) :;; # already there *) PMAGPATHS="$PMAGPATHS:$d";; # or PATH="$PATH:$new_entry" esac done export PYTHONPATH="$PYTHONPATH:%s:%s/programs/" export PATH="$PATH:$PMAGPATHS" """ % (PmagPyDir, PmagPyDir, PmagPyDir, PmagPyDir) frc_path = os.path.join( os.environ["HOME"], ".bashrc") # not recommended, but hey it freaking works fbprof_path = os.path.join(os.environ["HOME"], ".bash_profile") fprof_path = os.path.join(os.environ["HOME"], ".profile") all_paths = [frc_path, fbprof_path, fprof_path] for f_path in all_paths: open_type = 'a' if not os.path.isfile(f_path): open_type = 'w+' fout = open(f_path, open_type) fout.write(COMMAND) fout.close() else: fin = open(f_path, 'r') current_f = fin.read() fin.close() if COMMAND not in current_f: fout = open(f_path, open_type) fout.write(COMMAND) fout.close() print("Install complete. Please restart the shell to complete install.\nIf you are seeing strange or non-existent paths in your PATH or PYTHONPATH variable please manually check your .bashrc, .bash_profile, and .profile or attempt to reinstall.")
python
def unix_install(): """ Edits or creates .bashrc, .bash_profile, and .profile files in the users HOME directory in order to add your current directory (hopefully your PmagPy directory) and assorted lower directories in the PmagPy/programs directory to your PATH environment variable. It also adds the PmagPy and the PmagPy/programs directories to PYTHONPATH. """ PmagPyDir = os.path.abspath(".") COMMAND = """\n for d in %s/programs/*/ "%s/programs/"; do case ":$PATH:" in *":$d:"*) :;; # already there *) PMAGPATHS="$PMAGPATHS:$d";; # or PATH="$PATH:$new_entry" esac done export PYTHONPATH="$PYTHONPATH:%s:%s/programs/" export PATH="$PATH:$PMAGPATHS" """ % (PmagPyDir, PmagPyDir, PmagPyDir, PmagPyDir) frc_path = os.path.join( os.environ["HOME"], ".bashrc") # not recommended, but hey it freaking works fbprof_path = os.path.join(os.environ["HOME"], ".bash_profile") fprof_path = os.path.join(os.environ["HOME"], ".profile") all_paths = [frc_path, fbprof_path, fprof_path] for f_path in all_paths: open_type = 'a' if not os.path.isfile(f_path): open_type = 'w+' fout = open(f_path, open_type) fout.write(COMMAND) fout.close() else: fin = open(f_path, 'r') current_f = fin.read() fin.close() if COMMAND not in current_f: fout = open(f_path, open_type) fout.write(COMMAND) fout.close() print("Install complete. Please restart the shell to complete install.\nIf you are seeing strange or non-existent paths in your PATH or PYTHONPATH variable please manually check your .bashrc, .bash_profile, and .profile or attempt to reinstall.")
[ "def", "unix_install", "(", ")", ":", "PmagPyDir", "=", "os", ".", "path", ".", "abspath", "(", "\".\"", ")", "COMMAND", "=", "\"\"\"\\n\nfor d in %s/programs/*/ \"%s/programs/\"; do\n case \":$PATH:\" in\n *\":$d:\"*) :;; # already there\n *) PMAGPATHS=\"$PMAGPATHS:$d\";; # or PATH=\"$PATH:$new_entry\"\n esac\ndone\nexport PYTHONPATH=\"$PYTHONPATH:%s:%s/programs/\"\nexport PATH=\"$PATH:$PMAGPATHS\" \"\"\"", "%", "(", "PmagPyDir", ",", "PmagPyDir", ",", "PmagPyDir", ",", "PmagPyDir", ")", "frc_path", "=", "os", ".", "path", ".", "join", "(", "os", ".", "environ", "[", "\"HOME\"", "]", ",", "\".bashrc\"", ")", "# not recommended, but hey it freaking works", "fbprof_path", "=", "os", ".", "path", ".", "join", "(", "os", ".", "environ", "[", "\"HOME\"", "]", ",", "\".bash_profile\"", ")", "fprof_path", "=", "os", ".", "path", ".", "join", "(", "os", ".", "environ", "[", "\"HOME\"", "]", ",", "\".profile\"", ")", "all_paths", "=", "[", "frc_path", ",", "fbprof_path", ",", "fprof_path", "]", "for", "f_path", "in", "all_paths", ":", "open_type", "=", "'a'", "if", "not", "os", ".", "path", ".", "isfile", "(", "f_path", ")", ":", "open_type", "=", "'w+'", "fout", "=", "open", "(", "f_path", ",", "open_type", ")", "fout", ".", "write", "(", "COMMAND", ")", "fout", ".", "close", "(", ")", "else", ":", "fin", "=", "open", "(", "f_path", ",", "'r'", ")", "current_f", "=", "fin", ".", "read", "(", ")", "fin", ".", "close", "(", ")", "if", "COMMAND", "not", "in", "current_f", ":", "fout", "=", "open", "(", "f_path", ",", "open_type", ")", "fout", ".", "write", "(", "COMMAND", ")", "fout", ".", "close", "(", ")", "print", "(", "\"Install complete. Please restart the shell to complete install.\\nIf you are seeing strange or non-existent paths in your PATH or PYTHONPATH variable please manually check your .bashrc, .bash_profile, and .profile or attempt to reinstall.\"", ")" ]
Edits or creates .bashrc, .bash_profile, and .profile files in the users HOME directory in order to add your current directory (hopefully your PmagPy directory) and assorted lower directories in the PmagPy/programs directory to your PATH environment variable. It also adds the PmagPy and the PmagPy/programs directories to PYTHONPATH.
[ "Edits", "or", "creates", ".", "bashrc", ".", "bash_profile", "and", ".", "profile", "files", "in", "the", "users", "HOME", "directory", "in", "order", "to", "add", "your", "current", "directory", "(", "hopefully", "your", "PmagPy", "directory", ")", "and", "assorted", "lower", "directories", "in", "the", "PmagPy", "/", "programs", "directory", "to", "your", "PATH", "environment", "variable", ".", "It", "also", "adds", "the", "PmagPy", "and", "the", "PmagPy", "/", "programs", "directories", "to", "PYTHONPATH", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dev_setup.py#L56-L96
train
Installs the user s do archive in a unix - style shell.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110010) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(11132 - 11021) + chr(51) + '\x33' + chr(0b110001), 404 - 396), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(643 - 595) + chr(0b100110 + 0o13), 0o10), nzTpIcepk0o8('\x30' + chr(0b11000 + 0o127) + '\x31' + '\064' + chr(355 - 302), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(1290 - 1242) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2301 - 2250) + '\065' + '\067', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\063' + '\065' + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + '\062' + chr(0b110111) + chr(48), 37695 - 37687), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + '\x31' + '\x32' + '\067', 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110110) + chr(2603 - 2551), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2077 - 2026) + chr(0b110010) + chr(88 - 36), 0o10), nzTpIcepk0o8('\060' + chr(10221 - 10110) + chr(0b11111 + 0o24) + '\064' + chr(1006 - 958), 47936 - 47928), nzTpIcepk0o8(chr(1230 - 1182) + chr(0b100101 + 0o112) + '\061' + chr(48) + chr(2186 - 2138), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b0 + 0o63) + chr(0b10110 + 0o41), 50747 - 50739), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(402 - 352) + chr(48) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + '\157' + '\062' + '\x33' + chr(2485 - 2433), 61347 - 61339), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(3480 - 3369) + chr(0b110010) + chr(55) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1575 - 1521) + '\065', 0b1000), nzTpIcepk0o8(chr(1784 - 1736) + chr(0b1110 + 0o141) + '\061' + '\061' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(51) + chr(0b10 + 0o57), 15671 - 15663), nzTpIcepk0o8(chr(48) + chr(1941 - 1830) + '\x32' + '\x35' + chr(2434 - 2379), ord("\x08")), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(1607 - 1558) + chr(50) + '\x32', 17589 - 17581), nzTpIcepk0o8('\060' + chr(7112 - 7001) + chr(0b101011 + 0o7) + chr(55) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\061' + chr(1983 - 1935), 0o10), nzTpIcepk0o8(chr(455 - 407) + chr(3910 - 3799) + '\063' + chr(0b100111 + 0o20), 8), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(49) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x34' + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + '\x6f' + chr(0b10001 + 0o46) + chr(0b110011), 11843 - 11835), nzTpIcepk0o8(chr(1078 - 1030) + chr(12208 - 12097) + chr(0b110011) + '\062' + chr(0b110110), 63692 - 63684), nzTpIcepk0o8('\060' + '\x6f' + chr(2166 - 2115) + chr(0b10001 + 0o37) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1845 - 1797) + chr(0b1101111) + chr(1879 - 1829) + '\064' + chr(0b11001 + 0o36), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101100 + 0o3) + chr(51) + chr(51) + '\x34', 0o10), nzTpIcepk0o8(chr(2147 - 2099) + chr(0b1101111) + '\x33' + chr(0b100100 + 0o15) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\x37', 0b1000), nzTpIcepk0o8('\x30' + chr(0b10110 + 0o131) + chr(0b110011) + '\066' + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(52) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(54) + '\x37', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001100 + 0o43) + '\x32' + '\x36', 58607 - 58599), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(637 - 589) + chr(0b110000), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + chr(1993 - 1940) + chr(0b11010 + 0o26), 25570 - 25562)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xfb'), chr(0b111110 + 0o46) + chr(0b1100101) + chr(378 - 279) + chr(111) + chr(100) + chr(7071 - 6970))('\165' + chr(116) + '\146' + chr(0b1001 + 0o44) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ktXkhIUwS8hr(): g8lv9OvUvCy1 = aHUqKstZLeS6.path.abspath(roI3spqORKae(ES5oEprVxulp(b'\xfb'), chr(0b1001101 + 0o27) + chr(0b1100101) + chr(0b1100011) + chr(0b1000101 + 0o52) + '\x64' + '\x65')(chr(0b1110101) + chr(116) + chr(0b11011 + 0o113) + chr(45) + chr(0b110011 + 0o5))) vniUefO70Z3f = roI3spqORKae(ES5oEprVxulp(b'\xdf\xd3\xe7\n2\xcf\x89\x98>\xda\xf4\xc530\xf6\xee\xd4R?x\xc2!\x90b0\xae\x04\x1e\xa5\xef\xd7\xae\xa0p\x81\x87\x1aq9\xe2\xee\xf9\xe5\nJ\xcf\xcd\xdb6\xc7\xb1\xc0b%\xa2\xcc\xfaa\x05#\x8dr\xd6&\x15\xae\x06\x1b\xf6\xea\x85\xe6\xebs\xc9\xc4]+6\xfa\xee\xe2\xa1F`\x8e\x81\xca2\xd5\xb0\x99`k\xee\xf9\xc9PG9\x8fr\x9fb6\xaevv\x97\x87\xf7\x9d\x9b_\xa0\xdbU&F\x8d\x94\x9e\xd1$\x14\xa7\xbe\x82s\xd0\xf6\xdb{?\xa5\xbc\xd4GmI\xee\x06\xf7u=\xaavz\x82\x88\x9d\xf8\xa1r\x84\xb9\x12lb\xb2\xac\xfb\x8bE`\x8a\x9e\xd94\xbe\xb0\x8f.z\x8c\xf9\xc3E"k\xdbr\xef\x11K\xc6iu\x86\x81\xf3\x94\xf25\xd7\xb6.V^\x8f\x9b\x89\xc01\x08\xd5\xc8\xcbm\x91\xa7\xcf0m\xe9\xfb\xc9T j\x80p\xb5-g\xfeII\xa2\xe0\xf7\x9d\x9b_\xce\xc4SRW\x94\x9d\xe3\xa55\r\xae\xaa\xe8\x16\xe0\x9c\xb3b?'), chr(0b1011100 + 0o10) + '\x65' + chr(0b1100011) + chr(0b1010011 + 0o34) + chr(100) + chr(101))(chr(117) + '\x74' + chr(4018 - 3916) + '\055' + '\070') % (g8lv9OvUvCy1, g8lv9OvUvCy1, g8lv9OvUvCy1, g8lv9OvUvCy1) gMIHvMcB5KFV = aHUqKstZLeS6.path.Y4yM9BcfTCNq(aHUqKstZLeS6.I3lWyC6_P_MO[roI3spqORKae(ES5oEprVxulp(b'\x9d\x96\xcc '), '\x64' + chr(0b1100101) + chr(0b1100001 + 0o2) + '\157' + chr(100) + '\145')('\x75' + '\x74' + '\x66' + chr(956 - 911) + chr(856 - 800))], roI3spqORKae(ES5oEprVxulp(b'\xfb\xbb\xe0\x16(\x9d\x8e'), chr(100) + chr(0b1111 + 0o126) + '\x63' + chr(2595 - 2484) + chr(0b1001110 + 0o26) + chr(0b1001101 + 0o30))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38')) oqTXIHskxpqh = aHUqKstZLeS6.path.Y4yM9BcfTCNq(aHUqKstZLeS6.I3lWyC6_P_MO[roI3spqORKae(ES5oEprVxulp(b'\x9d\x96\xcc '), '\144' + chr(0b111 + 0o136) + '\x63' + chr(7427 - 7316) + '\x64' + chr(3068 - 2967))('\165' + chr(0b1110100) + chr(7631 - 7529) + chr(0b101101) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xfb\xbb\xe0\x16(\xb0\x9d\xca8\xd2\xbd\x8c%'), '\144' + '\145' + chr(5615 - 5516) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(0b100001 + 0o14) + chr(0b10011 + 0o45))) D5GOTg5roJTU = aHUqKstZLeS6.path.Y4yM9BcfTCNq(aHUqKstZLeS6.I3lWyC6_P_MO[roI3spqORKae(ES5oEprVxulp(b'\x9d\x96\xcc '), chr(4106 - 4006) + '\145' + '\x63' + '\157' + '\144' + chr(0b101101 + 0o70))(chr(0b0 + 0o165) + chr(5409 - 5293) + '\146' + chr(0b101101) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'\xfb\xa9\xf3\n&\x86\x81\xdd'), chr(0b1100100) + '\145' + '\x63' + '\157' + chr(0b111111 + 0o45) + '\x65')(chr(2466 - 2349) + chr(116) + chr(3518 - 3416) + chr(45) + '\x38')) O7z5YiZnh64p = [gMIHvMcB5KFV, oqTXIHskxpqh, D5GOTg5roJTU] for NzjjdfkSIjHj in O7z5YiZnh64p: zsrjDyEUxkl6 = roI3spqORKae(ES5oEprVxulp(b'\xb4'), '\144' + chr(8414 - 8313) + chr(0b1100011) + '\x6f' + chr(5505 - 5405) + chr(1247 - 1146))('\165' + '\164' + chr(102) + chr(1668 - 1623) + chr(3022 - 2966)) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xbc\xaa\xe7\x0c,\x8a'), '\144' + chr(4379 - 4278) + '\x63' + '\x6f' + '\144' + chr(0b100 + 0o141))(chr(117) + '\x74' + chr(0b1010111 + 0o17) + chr(45) + '\x38'))(NzjjdfkSIjHj): zsrjDyEUxkl6 = roI3spqORKae(ES5oEprVxulp(b'\xa2\xf2'), chr(0b110010 + 0o62) + chr(1550 - 1449) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + '\146' + chr(0b100010 + 0o13) + chr(0b111000)) O9js3R580XKE = DnU3Rq9N5ala(NzjjdfkSIjHj, zsrjDyEUxkl6) roI3spqORKae(O9js3R580XKE, roI3spqORKae(ES5oEprVxulp(b'\xb8\xb5\xb1\r(\x9f\x9b\x89\x1b\xc4\xa5\xd2'), '\x64' + '\145' + chr(1319 - 1220) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + '\x74' + chr(0b100001 + 0o105) + chr(631 - 586) + chr(0b111000)))(vniUefO70Z3f) roI3spqORKae(O9js3R580XKE, roI3spqORKae(ES5oEprVxulp(b'\x8f\xbc\xf0R\x03\x8c\x8b\x81\x02\xd0\xec\x8a'), '\144' + chr(0b1100101) + chr(0b1100001 + 0o2) + '\157' + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(0b110 + 0o47) + '\x38'))() else: E8Pmqk8kxnzp = DnU3Rq9N5ala(NzjjdfkSIjHj, roI3spqORKae(ES5oEprVxulp(b'\xa7'), '\x64' + chr(101) + chr(0b1100011) + chr(0b100100 + 0o113) + chr(6500 - 6400) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1100110) + chr(1642 - 1597) + chr(0b100100 + 0o24))) wPcMDDVgakF1 = E8Pmqk8kxnzp.eoXknH7XUn7m() roI3spqORKae(E8Pmqk8kxnzp, roI3spqORKae(ES5oEprVxulp(b'\x8f\xbc\xf0R\x03\x8c\x8b\x81\x02\xd0\xec\x8a'), chr(2873 - 2773) + chr(2091 - 1990) + chr(4181 - 4082) + chr(111) + chr(0b1011100 + 0o10) + chr(7318 - 7217))(chr(6572 - 6455) + '\x74' + chr(0b1100110) + chr(45) + '\x38'))() if vniUefO70Z3f not in wPcMDDVgakF1: O9js3R580XKE = DnU3Rq9N5ala(NzjjdfkSIjHj, zsrjDyEUxkl6) roI3spqORKae(O9js3R580XKE, roI3spqORKae(ES5oEprVxulp(b'\xb8\xb5\xb1\r(\x9f\x9b\x89\x1b\xc4\xa5\xd2'), chr(2615 - 2515) + '\145' + chr(3307 - 3208) + chr(0b1001110 + 0o41) + '\144' + '\x65')(chr(0b1110101) + '\164' + chr(6554 - 6452) + chr(45) + chr(0b111000)))(vniUefO70Z3f) roI3spqORKae(O9js3R580XKE, roI3spqORKae(ES5oEprVxulp(b'\x8f\xbc\xf0R\x03\x8c\x8b\x81\x02\xd0\xec\x8a'), '\144' + '\145' + '\143' + chr(7514 - 7403) + chr(100) + chr(2562 - 2461))('\x75' + chr(6645 - 6529) + chr(10136 - 10034) + '\055' + '\070'))() v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x9c\xb7\xf2\x11!\x83\x81\x984\xdb\xb9\x90,z\xf2\xf9\x95\x15\x1du\xca3\xcc-?\xfcCH\xa2\xa1\xd5\xa8\xefc\x9b\x83Wq~\xa5\xb9\xb5\xa1\x11/\xcf\x8e\xd7:\xc4\xb8\x854z\xa6\xf5\xd5F9x\xc3>\x91BV\xe8\x06B\xb9\xb5\x87\xbd\xbdr\xd3\x95\x12g\x7f\xae\xb2\xf9\xf2\x112\x8e\x83\xdf2\x94\xbb\x92`q\xe9\xf2\x96P5p\xdc&\xda&k\xaeVZ\xa2\xa8\xd4\xfc\xa6y\xd3\x9f\x18wd\xe0\x85\x98\xd5-`\x80\x9f\x98\x07\xed\x80\xa8\x0fQ\xd6\xdd\xef}mo\xce \xd6)}\xe2C\x1b\xa6\xac\xc2\xbd\xbcr\xd3\x8b\x16lc\xa1\xb9\xb5\xf8E#\x87\x88\xdb<\x94\xad\x8f5m\xa6\xb2\xd9T>q\xdd1\x93h1\xecGH\xbe\x9f\xd7\xae\xa0q\x9a\x8a\x12.6\xa1\xbb\xbd\xa1K0\x9d\x82\xde>\xd8\xb1\xc0/m\xa6\xfd\xcfA(t\xdf&\x9f<p\xaeT^\xbf\xae\xd4\xa8\xae{\x9f\xc8'), chr(0b1100100) + chr(5658 - 5557) + chr(99) + chr(0b1001100 + 0o43) + '\x64' + chr(0b1100101))('\165' + '\164' + '\x66' + '\x2d' + '\070'))
PmagPy/PmagPy
dev_setup.py
windows_install
def windows_install(path_to_python=""): """ Sets the .py extension to be associated with the ftype Python which is then set to the python.exe you provide in the path_to_python variable or after the -p flag if run as a script. Once the python environment is set up the function proceeds to set PATH and PYTHONPATH using setx. Parameters ---------- path_to_python : the path the python.exe you want windows to execute when running .py files """ if not path_to_python: print("Please enter the path to your python.exe you wish Windows to use to run python files. If you do not, this script will not be able to set up a full python environment in Windows. If you already have a python environment set up in Windows such that you can run python scripts from command prompt with just a file name then ignore this message. Otherwise, you will need to run dev_setup.py again with the command line option '-p' followed by the correct full path to python.\nRun dev_setup.py with the -h flag for more details") print("Would you like to continue? [y/N] ") ans = input() if ans == 'y': pass else: return # be sure to add python.exe if the user forgets to include the file name if os.path.isdir(path_to_python): path_to_python = os.path.join(path_to_python, "python.exe") if not os.path.isfile(path_to_python): print("The path to python provided is not a full path to the python.exe file or this path does not exist, was given %s.\nPlease run again with the command line option '-p' followed by the correct full path to python.\nRun dev_setup.py with the -h flag for more details" % path_to_python) return # make windows associate .py with python subprocess.check_call('assoc .py=Python', shell=True) subprocess.check_call('ftype Python=%s ' % path_to_python + '"%1" %*', shell=True) PmagPyDir = os.path.abspath(".") ProgramsDir = os.path.join(PmagPyDir, 'programs') dirs_to_add = [ProgramsDir] for d in next(os.walk(ProgramsDir))[1]: dirs_to_add.append(os.path.join(ProgramsDir, d)) path = str(subprocess.check_output('echo %PATH%', shell=True)).strip('\n') if "PATH" in path: path = '' pypath = str(subprocess.check_output( 'echo %PYTHONPATH%', shell=True)).strip('\n') if "PYTHONPATH" in pypath: pypath = PmagPyDir + ';' + ProgramsDir else: pypath += ';' + PmagPyDir + ';' + ProgramsDir for d_add in dirs_to_add: path += ';' + d_add unique_path_list = [] for p in path.split(';'): p = p.replace('"', '') if p not in unique_path_list: unique_path_list.append(p) unique_pypath_list = [] for p in pypath.split(';'): p = p.replace('"', '') if p not in unique_pypath_list: unique_pypath_list.append(p) path = functools.reduce(lambda x, y: x + ';' + y, unique_path_list) pypath = functools.reduce(lambda x, y: x + ';' + y, unique_pypath_list) print('setx PATH "%s"' % path) subprocess.call('setx PATH "%s"' % path, shell=True) print('setx PYTHONPATH "%s"' % pypath) subprocess.call('setx PYTHONPATH "%s"' % (pypath), shell=True) print("Install complete. Please restart the command prompt to complete install")
python
def windows_install(path_to_python=""): """ Sets the .py extension to be associated with the ftype Python which is then set to the python.exe you provide in the path_to_python variable or after the -p flag if run as a script. Once the python environment is set up the function proceeds to set PATH and PYTHONPATH using setx. Parameters ---------- path_to_python : the path the python.exe you want windows to execute when running .py files """ if not path_to_python: print("Please enter the path to your python.exe you wish Windows to use to run python files. If you do not, this script will not be able to set up a full python environment in Windows. If you already have a python environment set up in Windows such that you can run python scripts from command prompt with just a file name then ignore this message. Otherwise, you will need to run dev_setup.py again with the command line option '-p' followed by the correct full path to python.\nRun dev_setup.py with the -h flag for more details") print("Would you like to continue? [y/N] ") ans = input() if ans == 'y': pass else: return # be sure to add python.exe if the user forgets to include the file name if os.path.isdir(path_to_python): path_to_python = os.path.join(path_to_python, "python.exe") if not os.path.isfile(path_to_python): print("The path to python provided is not a full path to the python.exe file or this path does not exist, was given %s.\nPlease run again with the command line option '-p' followed by the correct full path to python.\nRun dev_setup.py with the -h flag for more details" % path_to_python) return # make windows associate .py with python subprocess.check_call('assoc .py=Python', shell=True) subprocess.check_call('ftype Python=%s ' % path_to_python + '"%1" %*', shell=True) PmagPyDir = os.path.abspath(".") ProgramsDir = os.path.join(PmagPyDir, 'programs') dirs_to_add = [ProgramsDir] for d in next(os.walk(ProgramsDir))[1]: dirs_to_add.append(os.path.join(ProgramsDir, d)) path = str(subprocess.check_output('echo %PATH%', shell=True)).strip('\n') if "PATH" in path: path = '' pypath = str(subprocess.check_output( 'echo %PYTHONPATH%', shell=True)).strip('\n') if "PYTHONPATH" in pypath: pypath = PmagPyDir + ';' + ProgramsDir else: pypath += ';' + PmagPyDir + ';' + ProgramsDir for d_add in dirs_to_add: path += ';' + d_add unique_path_list = [] for p in path.split(';'): p = p.replace('"', '') if p not in unique_path_list: unique_path_list.append(p) unique_pypath_list = [] for p in pypath.split(';'): p = p.replace('"', '') if p not in unique_pypath_list: unique_pypath_list.append(p) path = functools.reduce(lambda x, y: x + ';' + y, unique_path_list) pypath = functools.reduce(lambda x, y: x + ';' + y, unique_pypath_list) print('setx PATH "%s"' % path) subprocess.call('setx PATH "%s"' % path, shell=True) print('setx PYTHONPATH "%s"' % pypath) subprocess.call('setx PYTHONPATH "%s"' % (pypath), shell=True) print("Install complete. Please restart the command prompt to complete install")
[ "def", "windows_install", "(", "path_to_python", "=", "\"\"", ")", ":", "if", "not", "path_to_python", ":", "print", "(", "\"Please enter the path to your python.exe you wish Windows to use to run python files. If you do not, this script will not be able to set up a full python environment in Windows. If you already have a python environment set up in Windows such that you can run python scripts from command prompt with just a file name then ignore this message. Otherwise, you will need to run dev_setup.py again with the command line option '-p' followed by the correct full path to python.\\nRun dev_setup.py with the -h flag for more details\"", ")", "print", "(", "\"Would you like to continue? [y/N] \"", ")", "ans", "=", "input", "(", ")", "if", "ans", "==", "'y'", ":", "pass", "else", ":", "return", "# be sure to add python.exe if the user forgets to include the file name", "if", "os", ".", "path", ".", "isdir", "(", "path_to_python", ")", ":", "path_to_python", "=", "os", ".", "path", ".", "join", "(", "path_to_python", ",", "\"python.exe\"", ")", "if", "not", "os", ".", "path", ".", "isfile", "(", "path_to_python", ")", ":", "print", "(", "\"The path to python provided is not a full path to the python.exe file or this path does not exist, was given %s.\\nPlease run again with the command line option '-p' followed by the correct full path to python.\\nRun dev_setup.py with the -h flag for more details\"", "%", "path_to_python", ")", "return", "# make windows associate .py with python", "subprocess", ".", "check_call", "(", "'assoc .py=Python'", ",", "shell", "=", "True", ")", "subprocess", ".", "check_call", "(", "'ftype Python=%s '", "%", "path_to_python", "+", "'\"%1\" %*'", ",", "shell", "=", "True", ")", "PmagPyDir", "=", "os", ".", "path", ".", "abspath", "(", "\".\"", ")", "ProgramsDir", "=", "os", ".", "path", ".", "join", "(", "PmagPyDir", ",", "'programs'", ")", "dirs_to_add", "=", "[", "ProgramsDir", "]", "for", "d", "in", "next", "(", "os", ".", "walk", "(", "ProgramsDir", ")", ")", "[", "1", "]", ":", "dirs_to_add", ".", "append", "(", "os", ".", "path", ".", "join", "(", "ProgramsDir", ",", "d", ")", ")", "path", "=", "str", "(", "subprocess", ".", "check_output", "(", "'echo %PATH%'", ",", "shell", "=", "True", ")", ")", ".", "strip", "(", "'\\n'", ")", "if", "\"PATH\"", "in", "path", ":", "path", "=", "''", "pypath", "=", "str", "(", "subprocess", ".", "check_output", "(", "'echo %PYTHONPATH%'", ",", "shell", "=", "True", ")", ")", ".", "strip", "(", "'\\n'", ")", "if", "\"PYTHONPATH\"", "in", "pypath", ":", "pypath", "=", "PmagPyDir", "+", "';'", "+", "ProgramsDir", "else", ":", "pypath", "+=", "';'", "+", "PmagPyDir", "+", "';'", "+", "ProgramsDir", "for", "d_add", "in", "dirs_to_add", ":", "path", "+=", "';'", "+", "d_add", "unique_path_list", "=", "[", "]", "for", "p", "in", "path", ".", "split", "(", "';'", ")", ":", "p", "=", "p", ".", "replace", "(", "'\"'", ",", "''", ")", "if", "p", "not", "in", "unique_path_list", ":", "unique_path_list", ".", "append", "(", "p", ")", "unique_pypath_list", "=", "[", "]", "for", "p", "in", "pypath", ".", "split", "(", "';'", ")", ":", "p", "=", "p", ".", "replace", "(", "'\"'", ",", "''", ")", "if", "p", "not", "in", "unique_pypath_list", ":", "unique_pypath_list", ".", "append", "(", "p", ")", "path", "=", "functools", ".", "reduce", "(", "lambda", "x", ",", "y", ":", "x", "+", "';'", "+", "y", ",", "unique_path_list", ")", "pypath", "=", "functools", ".", "reduce", "(", "lambda", "x", ",", "y", ":", "x", "+", "';'", "+", "y", ",", "unique_pypath_list", ")", "print", "(", "'setx PATH \"%s\"'", "%", "path", ")", "subprocess", ".", "call", "(", "'setx PATH \"%s\"'", "%", "path", ",", "shell", "=", "True", ")", "print", "(", "'setx PYTHONPATH \"%s\"'", "%", "pypath", ")", "subprocess", ".", "call", "(", "'setx PYTHONPATH \"%s\"'", "%", "(", "pypath", ")", ",", "shell", "=", "True", ")", "print", "(", "\"Install complete. Please restart the command prompt to complete install\"", ")" ]
Sets the .py extension to be associated with the ftype Python which is then set to the python.exe you provide in the path_to_python variable or after the -p flag if run as a script. Once the python environment is set up the function proceeds to set PATH and PYTHONPATH using setx. Parameters ---------- path_to_python : the path the python.exe you want windows to execute when running .py files
[ "Sets", "the", ".", "py", "extension", "to", "be", "associated", "with", "the", "ftype", "Python", "which", "is", "then", "set", "to", "the", "python", ".", "exe", "you", "provide", "in", "the", "path_to_python", "variable", "or", "after", "the", "-", "p", "flag", "if", "run", "as", "a", "script", ".", "Once", "the", "python", "environment", "is", "set", "up", "the", "function", "proceeds", "to", "set", "PATH", "and", "PYTHONPATH", "using", "setx", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dev_setup.py#L127-L193
train
Installs the given Python file into the Windows environment.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10111 + 0o31) + '\157' + '\x31' + chr(0b100010 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(0b10011 + 0o37) + '\060' + '\x35', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x36' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(82 - 33) + '\066' + '\063', 5236 - 5228), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b101100 + 0o4) + chr(49), 0o10), nzTpIcepk0o8(chr(48) + chr(8471 - 8360) + chr(54) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1100011 + 0o14) + chr(0b1001 + 0o51) + chr(1903 - 1855) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1774 - 1725) + '\064' + '\066', 3222 - 3214), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + '\061' + chr(0b11100 + 0o30) + chr(1638 - 1589), 30843 - 30835), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o52) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(5754 - 5643) + '\061' + chr(0b11000 + 0o37) + chr(53), 52778 - 52770), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(943 - 891) + chr(0b111 + 0o53), 57580 - 57572), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(51) + '\060', 2130 - 2122), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1609 - 1559) + chr(0b100 + 0o60) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(111) + '\x31' + chr(0b100111 + 0o16) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1743 - 1693) + '\066' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\064', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101111 + 0o4) + chr(873 - 823) + '\064', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(111) + chr(1489 - 1440) + chr(50) + '\x34', 26028 - 26020), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b101011 + 0o12) + chr(0b10100 + 0o41), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\064' + chr(1977 - 1925), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b110011) + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(54) + chr(0b110001 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b11110 + 0o121) + chr(848 - 797) + chr(0b1100 + 0o45), 33668 - 33660), nzTpIcepk0o8(chr(267 - 219) + chr(0b1101111) + chr(49) + chr(0b110001) + '\066', 0o10), nzTpIcepk0o8(chr(1482 - 1434) + '\x6f' + '\063' + chr(53) + '\064', 10550 - 10542), nzTpIcepk0o8(chr(0b100011 + 0o15) + '\157' + '\x31' + chr(0b101 + 0o54) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\067' + '\x35', 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(50) + chr(0b101 + 0o60) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1622 - 1574) + chr(0b1010010 + 0o35) + '\x32' + chr(54) + '\x34', 51813 - 51805), nzTpIcepk0o8('\060' + chr(111) + '\066' + '\061', 5840 - 5832), nzTpIcepk0o8(chr(2008 - 1960) + chr(0b1100110 + 0o11) + chr(49) + '\060' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(0b1101111) + chr(50) + chr(0b110111) + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b100001 + 0o26) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101 + 0o54) + '\x31' + '\061', ord("\x08")), nzTpIcepk0o8(chr(755 - 707) + '\157' + '\x31' + chr(0b110001) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\x30' + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(50) + chr(622 - 570), 8), nzTpIcepk0o8(chr(468 - 420) + chr(111) + chr(0b110001) + chr(0b110010) + chr(51), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(2226 - 2115) + chr(2509 - 2458) + '\061' + chr(558 - 510), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'!'), '\144' + chr(0b1100101) + '\x63' + chr(0b111111 + 0o60) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(1862 - 1806)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def _e2XDEf2N9aU(gXuo4q0aJoh6=roI3spqORKae(ES5oEprVxulp(b''), chr(8062 - 7962) + chr(0b1000111 + 0o36) + '\x63' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(2138 - 2036) + '\x2d' + '\070')): if not gXuo4q0aJoh6: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'_\xe9\xd7\x12\xb2P\xa7\x03\x0fL\x18Px\xd1\x02\xd6$\xa45\x19\x8c\xbfFvn\x95 \xc8\xda\x94A?\xcb\x16&"\xa91+\xad/\xfc\xdd\x06\xe1B\xee\x15\t\x18*K6\xc1\x05\xc4w\xf4 \x02\xc4\xeaA|n\x98 \x9d\xda\xc1_f\xcf\x07=$\xe8:s\xaef\xe9\xd7\x00\xef\x15\xce\x00AA\x12Wx\xc1\x05\x93j\xbb A\xc4\xebZp=\xcc<\xde\xda\xddA2\x9f\t \xebt=\xa7{\xa5\xd0\x16\xe1T\xe5\n\x04\x18\tMx\xd6\x0f\xc7$\xa1$M\x85\xbfTl"\x80o\xcd\xd1\xc0Y)\xd1^,"\xf1=!\xa7a\xe8\xd7\x1d\xb5\x15\xee\x08Ao\x14L<\xca\x1d\xc0*\xf4\x1d\x0b\xc4\xe6]ln\x8d#\xcf\xcd\xd5U?\x9f\x16(:\xe2t2\xe8\x7f\xfc\xc6\x1b\xae[\xa7\x03\x0fN\x14P7\xcb\x07\xd6j\xa0t\x1e\x81\xeb\x12l>\xcc&\xd3\x88\xe3X(\xdb\x11>?\xa7\'&\xabg\xa5\xc6\x1b\xa0A\xa7\x1f\x0eM]A9\xcbJ\xc1q\xbat\x1d\x9d\xebZv \xcc<\xde\xda\xddA2\xcc^/>\xe89s\xab`\xe8\xdf\x12\xafQ\xa7\x16\x13W\x10R,\x85\x1d\xdap\xbct\x07\x91\xecF9/\xcc)\xd4\xc4\xd1\x11(\xde\x13,l\xf3<6\xa6/\xec\xd5\x1d\xaeG\xe2F\x15P\x14Qx\xc8\x0f\xc0w\xb53\x08\xca\xbf}m&\x89=\xca\xc1\xc7Tj\x9f\x07&9\xa7#:\xa4c\xa5\xdc\x16\xa4Q\xa7\x12\x0e\x18\x0fW6\x85\x0e\xd6r\x8b\'\x08\x90\xeaB7>\x95o\xdc\xcf\xd5X(\x9f\t 8\xeft\'\xa0j\xa5\xd1\x1c\xacX\xe6\x08\x05\x18\x11K6\xc0J\xdct\xa0=\x02\x8a\xbf\x154>\xcbo\xdb\xc7\xd8])\xc8\x1b-l\xe5-s\xbcg\xe0\x92\x10\xaeG\xf5\x03\x02L]D-\xc9\x06\x93t\xb5 \x05\xc4\xeb]9>\x95;\xd5\xc7\xda\x1fL\xed\x0b\'l\xe31%\x97|\xe0\xc6\x06\xb1\x1b\xf7\x1fAO\x14V0\x85\x1e\xdba\xf4y\x05\xc4\xf9^x)\xcc)\xd2\xda\x94\\)\xcd\x1bi(\xe2 2\xa1c\xf6'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\157' + '\x64' + chr(101))(chr(0b1011100 + 0o31) + '\x74' + '\x66' + chr(45) + '\x38')) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'X\xea\xc7\x1f\xa5\x15\xfe\t\x14\x18\x11K3\xc0J\xc7k\xf47\x02\x8a\xeb[w;\x89p\x9d\xf3\xcd\x1e\x08\xe2^'), chr(0b1100 + 0o130) + '\145' + chr(0b100100 + 0o77) + chr(0b101011 + 0o104) + '\x64' + chr(0b110001 + 0o64))(chr(0b1110101) + '\164' + '\x66' + chr(857 - 812) + chr(0b10011 + 0o45))) CMfsDQitQrpd = QnTXOd5N96r1() if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'v'), chr(1091 - 991) + '\145' + '\143' + chr(0b1101111) + chr(100) + chr(6660 - 6559))('\165' + '\164' + '\146' + '\x2d' + '\x38'): pass else: return if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'W\xed\xe2B\x9bA\xc5_\x00i\x07`'), '\x64' + '\145' + '\143' + '\x6f' + chr(0b1000010 + 0o42) + chr(9596 - 9495))('\x75' + '\x74' + chr(815 - 713) + chr(1623 - 1578) + chr(0b1010 + 0o56)))(gXuo4q0aJoh6): gXuo4q0aJoh6 = aHUqKstZLeS6.path.Y4yM9BcfTCNq(gXuo4q0aJoh6, roI3spqORKae(ES5oEprVxulp(b'\x7f\xfc\xc6\x1b\xae[\xa9\x03\x19]'), chr(100) + '\x65' + '\143' + chr(111) + chr(6555 - 6455) + '\145')('\165' + chr(0b1110100) + '\x66' + chr(1154 - 1109) + chr(56))) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'f\xf6\xd4\x1a\xadP'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(4386 - 4286) + chr(101))('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(0b11010 + 0o36)))(gXuo4q0aJoh6): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'[\xed\xd7S\xb1T\xf3\x0eAL\x12\x02(\xdc\x1e\xdbk\xbat\x1d\x96\xf0Dp*\x89+\x9d\xc1\xc7\x11(\xd0\ni-\xa72&\xa4c\xa5\xc2\x12\xb5]\xa7\x12\x0e\x18\tJ=\x85\x1a\xcap\xbc;\x03\xca\xfaJ|n\x8a&\xd1\xcd\x94^4\x9f\n!%\xf4t#\xa9{\xed\x92\x17\xaeP\xf4F\x0fW\t\x02=\xdd\x03\xc0p\xf8t\x1a\x85\xec\x12~\'\x9a*\xd3\x88\x91Bh\xb5.%)\xe6\'6\xe8}\xf0\xdcS\xa0R\xe6\x0f\x0f\x18\nK,\xcdJ\xc7l\xb1t\x0e\x8b\xf2_x \x88o\xd1\xc1\xdaTf\xd0\x0e=%\xe8:s\xef"\xf5\x95S\xa7Z\xeb\n\x0eO\x18Fx\xc7\x13\x93p\xbc1M\x87\xf0@k+\x8f;\x9d\xce\xc1]*\x9f\x0e(8\xeft\'\xa7/\xf5\xcb\x07\xa9Z\xe9Hkj\x08Lx\xc1\x0f\xc5[\xa71\x19\x91\xef\x1ci7\xcc8\xd4\xdc\xdc\x112\xd7\x1bia\xeft5\xa4n\xe2\x92\x15\xaeG\xa7\x0b\x0eJ\x18\x02<\xc0\x1e\xd2m\xb8\''), chr(8769 - 8669) + '\145' + chr(0b1010 + 0o131) + chr(0b1101111) + chr(0b0 + 0o144) + chr(0b11100 + 0o111))(chr(8900 - 8783) + chr(116) + chr(0b111110 + 0o50) + chr(0b101101) + chr(0b10101 + 0o43)) % gXuo4q0aJoh6) return roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'l\xed\xd7\x10\xaaj\xe4\x07\rT'), '\x64' + '\x65' + '\143' + chr(0b1101111) + '\144' + chr(101))('\165' + chr(0b1110100) + chr(3002 - 2900) + '\x2d' + chr(0b11100 + 0o34)))(roI3spqORKae(ES5oEprVxulp(b'n\xf6\xc1\x1c\xa2\x15\xa9\x16\x18\x05-[,\xcd\x05\xdd'), chr(0b111000 + 0o54) + '\145' + chr(3862 - 3763) + chr(8975 - 8864) + chr(100) + '\145')(chr(6071 - 5954) + chr(419 - 303) + '\146' + chr(45) + chr(1942 - 1886)), shell=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49), 46158 - 46150)) roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'l\xed\xd7\x10\xaaj\xe4\x07\rT'), chr(3229 - 3129) + chr(101) + chr(0b1000011 + 0o40) + chr(10268 - 10157) + chr(0b1100100) + '\x65')(chr(117) + '\x74' + '\x66' + '\x2d' + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'i\xf1\xcb\x03\xa4\x15\xd7\x1f\x15P\x12Le\x80\x19\x93'), chr(0b1100100) + chr(3181 - 3080) + chr(99) + chr(111) + chr(7951 - 7851) + chr(0b1100101))('\165' + '\x74' + chr(102) + '\055' + chr(0b111000)) % gXuo4q0aJoh6 + roI3spqORKae(ES5oEprVxulp(b'-\xa0\x83Q\xe1\x10\xad'), chr(1092 - 992) + '\145' + chr(5269 - 5170) + chr(2586 - 2475) + chr(0b101100 + 0o70) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100011 + 0o3) + '\055' + '\x38'), shell=nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + '\061', 8)) g8lv9OvUvCy1 = aHUqKstZLeS6.path.abspath(roI3spqORKae(ES5oEprVxulp(b'!'), chr(0b1010 + 0o132) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(691 - 575) + chr(102) + chr(1268 - 1223) + '\070')) MY2YHYWpDBWI = aHUqKstZLeS6.path.Y4yM9BcfTCNq(g8lv9OvUvCy1, roI3spqORKae(ES5oEprVxulp(b'\x7f\xf7\xdd\x14\xb3T\xea\x15'), chr(0b100111 + 0o75) + chr(8154 - 8053) + '\143' + chr(0b11011 + 0o124) + chr(4385 - 4285) + '\x65')('\165' + chr(0b111001 + 0o73) + chr(0b1100110) + chr(1114 - 1069) + chr(0b111000))) QdV3e7sUoBSk = [MY2YHYWpDBWI] for vPPlOXQgR3SM in ltB3XhPy2rYf(roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'E\xc8\xe4\x00\xab\x04\xc275M\x12x'), chr(0b100 + 0o140) + chr(479 - 378) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(116) + chr(3423 - 3321) + '\055' + chr(0b11101 + 0o33)))(MY2YHYWpDBWI))[nzTpIcepk0o8('\060' + '\x6f' + chr(49), 8)]: roI3spqORKae(QdV3e7sUoBSk, roI3spqORKae(ES5oEprVxulp(b'G\xd1\xe1G\xb9R\xc0\t\x0bW(\x17'), chr(100) + '\145' + chr(3236 - 3137) + '\x6f' + chr(100) + '\145')('\x75' + chr(116) + '\x66' + chr(0b101101) + '\x38'))(roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'V\xb1\xcb>\xf8w\xe4\x005{3S'), chr(0b1100100) + '\145' + chr(598 - 499) + chr(1356 - 1245) + chr(450 - 350) + chr(0b1010101 + 0o20))(chr(0b101010 + 0o113) + '\164' + chr(0b1100110) + chr(45) + '\070'))(MY2YHYWpDBWI, vPPlOXQgR3SM)) _pSYqrosNb95 = N9zlRy29S1SS(eT8Y087E_kfd.check_output(roI3spqORKae(ES5oEprVxulp(b"j\xe6\xda\x1c\xe1\x10\xd7'5pX"), chr(100) + chr(0b1100101) + chr(99) + chr(0b111011 + 0o64) + chr(0b1100100) + chr(6344 - 6243))(chr(117) + chr(9961 - 9845) + '\x66' + chr(0b101101) + chr(0b111000)), shell=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(819 - 770), 8))).kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\x05'), '\x64' + chr(101) + chr(0b10000 + 0o123) + chr(5038 - 4927) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(11789 - 11673) + chr(0b1100110) + chr(0b1101 + 0o40) + chr(0b11110 + 0o32))) if roI3spqORKae(ES5oEprVxulp(b'_\xc4\xe6;'), chr(7009 - 6909) + chr(101) + chr(2832 - 2733) + chr(111) + chr(0b10111 + 0o115) + chr(0b0 + 0o145))(chr(117) + '\x74' + '\146' + '\x2d' + chr(56)) in _pSYqrosNb95: _pSYqrosNb95 = roI3spqORKae(ES5oEprVxulp(b''), chr(0b110110 + 0o56) + chr(0b1001011 + 0o32) + chr(99) + chr(0b110001 + 0o76) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + '\x66' + '\x2d' + chr(1066 - 1010)) e3YzzCzFaVWA = N9zlRy29S1SS(eT8Y087E_kfd.check_output(roI3spqORKae(ES5oEprVxulp(b'j\xe6\xda\x1c\xe1\x10\xd7?5p2l\x08\xe4>\xfb!'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101000 + 0o7) + chr(0b1100100) + '\x65')(chr(0b111111 + 0o66) + chr(10024 - 9908) + '\146' + chr(1793 - 1748) + chr(56)), shell=nzTpIcepk0o8(chr(48) + chr(8989 - 8878) + chr(0b110001), 8))).kdIDrcwZTCs5(roI3spqORKae(ES5oEprVxulp(b'\x05'), '\x64' + '\x65' + chr(0b11010 + 0o111) + '\x6f' + chr(0b1100100) + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(158 - 113) + '\x38')) if roI3spqORKae(ES5oEprVxulp(b"_\xdc\xe6;\x8e{\xd7'5p"), chr(0b100001 + 0o103) + '\x65' + chr(99) + chr(0b1101111) + chr(6615 - 6515) + chr(101))('\x75' + chr(116) + '\x66' + '\x2d' + '\x38') in e3YzzCzFaVWA: e3YzzCzFaVWA = g8lv9OvUvCy1 + roI3spqORKae(ES5oEprVxulp(b'4'), '\x64' + '\x65' + '\x63' + '\157' + '\144' + '\145')('\x75' + '\164' + chr(102) + chr(45) + chr(0b101101 + 0o13)) + MY2YHYWpDBWI else: e3YzzCzFaVWA += roI3spqORKae(ES5oEprVxulp(b'4'), '\144' + '\145' + chr(0b101100 + 0o67) + chr(111) + chr(0b1100100) + chr(0b1 + 0o144))(chr(0b1110101) + chr(0b1110100) + chr(5230 - 5128) + '\055' + chr(1733 - 1677)) + g8lv9OvUvCy1 + roI3spqORKae(ES5oEprVxulp(b'4'), '\144' + chr(0b1000110 + 0o37) + '\143' + '\157' + chr(0b111110 + 0o46) + '\145')(chr(0b1010010 + 0o43) + '\164' + chr(102) + chr(45) + chr(0b111000)) + MY2YHYWpDBWI for Xi4WkNhFRDWp in QdV3e7sUoBSk: _pSYqrosNb95 += roI3spqORKae(ES5oEprVxulp(b'4'), '\x64' + chr(0b101 + 0o140) + chr(0b1011001 + 0o12) + chr(0b1101111) + chr(100) + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(639 - 594) + '\070') + Xi4WkNhFRDWp RxCNAq8c7CY3 = [] for fSdw5wwLo9MO in roI3spqORKae(_pSYqrosNb95, roI3spqORKae(ES5oEprVxulp(b'C\xe3\xe0\x01\x90z\xff\x13%N\x13a'), chr(0b1100100) + '\145' + chr(8058 - 7959) + '\x6f' + '\x64' + '\145')('\x75' + chr(0b1101010 + 0o12) + '\146' + chr(0b101101) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'4'), '\144' + chr(0b100101 + 0o100) + chr(5681 - 5582) + chr(669 - 558) + chr(3524 - 3424) + chr(0b1000111 + 0o36))('\x75' + chr(1896 - 1780) + '\146' + chr(0b101101) + chr(56))): fSdw5wwLo9MO = fSdw5wwLo9MO.E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'-'), '\x64' + '\145' + chr(0b100100 + 0o77) + '\x6f' + chr(0b111100 + 0o50) + '\x65')(chr(5138 - 5021) + '\x74' + chr(102) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(0b1100011) + chr(4682 - 4571) + '\x64' + '\x65')('\x75' + chr(0b1000111 + 0o55) + chr(2507 - 2405) + chr(1417 - 1372) + chr(0b110101 + 0o3))) if fSdw5wwLo9MO not in RxCNAq8c7CY3: roI3spqORKae(RxCNAq8c7CY3, roI3spqORKae(ES5oEprVxulp(b'G\xd1\xe1G\xb9R\xc0\t\x0bW(\x17'), chr(161 - 61) + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(5138 - 5037))(chr(0b1011011 + 0o32) + '\x74' + chr(102) + '\055' + chr(56)))(fSdw5wwLo9MO) foV5uhzPJimH = [] for fSdw5wwLo9MO in roI3spqORKae(e3YzzCzFaVWA, roI3spqORKae(ES5oEprVxulp(b'C\xe3\xe0\x01\x90z\xff\x13%N\x13a'), chr(0b1100100) + '\x65' + '\143' + chr(0b1000101 + 0o52) + chr(8610 - 8510) + chr(0b1100101))('\x75' + chr(0b1 + 0o163) + '\146' + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'4'), chr(100) + '\145' + chr(0b1011 + 0o130) + chr(0b1101111) + chr(100) + chr(10129 - 10028))(chr(0b1001011 + 0o52) + chr(0b0 + 0o164) + chr(0b1000010 + 0o44) + chr(45) + chr(56))): fSdw5wwLo9MO = fSdw5wwLo9MO.E91dbqOZXBpJ(roI3spqORKae(ES5oEprVxulp(b'-'), '\x64' + chr(5811 - 5710) + '\x63' + chr(0b100111 + 0o110) + chr(4805 - 4705) + chr(101))(chr(117) + '\x74' + chr(0b110 + 0o140) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\145' + chr(99) + '\157' + '\144' + chr(0b111100 + 0o51))('\165' + '\x74' + '\x66' + chr(0b101101) + chr(56))) if fSdw5wwLo9MO not in foV5uhzPJimH: roI3spqORKae(foV5uhzPJimH, roI3spqORKae(ES5oEprVxulp(b'G\xd1\xe1G\xb9R\xc0\t\x0bW(\x17'), '\144' + chr(0b110001 + 0o64) + '\x63' + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(56)))(fSdw5wwLo9MO) _pSYqrosNb95 = NveCASsculZA.jYZAKYxMTtNT(lambda bI5jsQ9OkQtj, Fi3yzxctM1zW: bI5jsQ9OkQtj + roI3spqORKae(ES5oEprVxulp(b'4'), chr(100) + '\145' + chr(0b1011000 + 0o13) + chr(111) + chr(0b1001011 + 0o31) + chr(0b1100101))('\x75' + '\x74' + chr(7288 - 7186) + chr(0b10111 + 0o26) + chr(1659 - 1603)) + Fi3yzxctM1zW, RxCNAq8c7CY3) e3YzzCzFaVWA = NveCASsculZA.jYZAKYxMTtNT(lambda bI5jsQ9OkQtj, Fi3yzxctM1zW: bI5jsQ9OkQtj + roI3spqORKae(ES5oEprVxulp(b'4'), chr(0b1100100) + chr(101) + chr(0b100001 + 0o102) + chr(4819 - 4708) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(1922 - 1877) + chr(573 - 517)) + Fi3yzxctM1zW, foV5uhzPJimH) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'|\xe0\xc6\x0b\xe1e\xc62)\x18_\x07+\x87'), '\x64' + chr(378 - 277) + '\143' + chr(0b1101111) + chr(0b1100010 + 0o2) + chr(550 - 449))(chr(117) + chr(0b1110100) + '\x66' + chr(45) + chr(2122 - 2066)) % _pSYqrosNb95) roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'l\xb2\x84*\xa7\x01\xb77Wu\x18o'), '\x64' + chr(0b1100101) + chr(5663 - 5564) + '\157' + chr(5548 - 5448) + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'|\xe0\xc6\x0b\xe1e\xc62)\x18_\x07+\x87'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b1001001 + 0o33) + chr(101))(chr(0b1110101) + '\164' + chr(102) + chr(91 - 46) + '\070') % _pSYqrosNb95, shell=nzTpIcepk0o8(chr(1087 - 1039) + chr(0b1101111) + '\x31', 8)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'|\xe0\xc6\x0b\xe1e\xde2)w3r\x19\xf1"\x93&\xf1\'O'), chr(0b1100100) + chr(8448 - 8347) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(296 - 180) + chr(0b101010 + 0o74) + chr(0b10010 + 0o33) + chr(56)) % e3YzzCzFaVWA) roI3spqORKae(eT8Y087E_kfd, roI3spqORKae(ES5oEprVxulp(b'l\xb2\x84*\xa7\x01\xb77Wu\x18o'), '\144' + chr(101) + chr(5288 - 5189) + '\157' + chr(100) + chr(101))(chr(0b1110011 + 0o2) + '\x74' + chr(102) + chr(0b100000 + 0o15) + chr(0b11110 + 0o32)))(roI3spqORKae(ES5oEprVxulp(b'|\xe0\xc6\x0b\xe1e\xde2)w3r\x19\xf1"\x93&\xf1\'O'), chr(0b1100100) + chr(101) + '\143' + chr(0b11010 + 0o125) + chr(0b1100100) + chr(0b1100101))(chr(0b1000100 + 0o61) + chr(0b1110100) + '\x66' + '\055' + chr(56)) % e3YzzCzFaVWA, shell=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49), 8)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"F\xeb\xc1\x07\xa0Y\xebF\x02W\x10R4\xc0\x1e\xd6*\xf4\x04\x01\x81\xfeA|n\x9e*\xce\xdc\xd5C2\x9f\n!)\xa77<\xa5b\xe4\xdc\x17\xe1E\xf5\t\x0cH\t\x02,\xcaJ\xd0k\xb9$\x01\x81\xebW9'\x82<\xc9\xc9\xd8]"), chr(100) + chr(101) + chr(99) + chr(3184 - 3073) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110 + 0o146) + '\x66' + chr(0b1001 + 0o44) + chr(56)))
PmagPy/PmagPy
programs/pmag_results_extract.py
main
def main(): """ NAME pmag_results_extract.py DESCRIPTION make a tab delimited output file from pmag_results table SYNTAX pmag_results_extract.py [command line options] OPTIONS -h prints help message and quits -f RFILE, specify pmag_results table; default is pmag_results.txt -fa AFILE, specify er_ages table; default is NONE -fsp SFILE, specify pmag_specimens table, default is NONE -fcr CFILE, specify pmag_criteria table, default is NONE -g include specimen_grade in table - only works for PmagPy generated pmag_specimen formatted files. -tex, output in LaTeX format """ do_help = pmag.get_flag_arg_from_sys('-h') if do_help: print(main.__doc__) return False res_file = pmag.get_named_arg('-f', 'pmag_results.txt') crit_file = pmag.get_named_arg('-fcr', '') spec_file = pmag.get_named_arg('-fsp', '') age_file = pmag.get_named_arg('-fa', '') grade = pmag.get_flag_arg_from_sys('-g') latex = pmag.get_flag_arg_from_sys('-tex') WD = pmag.get_named_arg('-WD', os.getcwd()) ipmag.pmag_results_extract(res_file, crit_file, spec_file, age_file, latex, grade, WD)
python
def main(): """ NAME pmag_results_extract.py DESCRIPTION make a tab delimited output file from pmag_results table SYNTAX pmag_results_extract.py [command line options] OPTIONS -h prints help message and quits -f RFILE, specify pmag_results table; default is pmag_results.txt -fa AFILE, specify er_ages table; default is NONE -fsp SFILE, specify pmag_specimens table, default is NONE -fcr CFILE, specify pmag_criteria table, default is NONE -g include specimen_grade in table - only works for PmagPy generated pmag_specimen formatted files. -tex, output in LaTeX format """ do_help = pmag.get_flag_arg_from_sys('-h') if do_help: print(main.__doc__) return False res_file = pmag.get_named_arg('-f', 'pmag_results.txt') crit_file = pmag.get_named_arg('-fcr', '') spec_file = pmag.get_named_arg('-fsp', '') age_file = pmag.get_named_arg('-fa', '') grade = pmag.get_flag_arg_from_sys('-g') latex = pmag.get_flag_arg_from_sys('-tex') WD = pmag.get_named_arg('-WD', os.getcwd()) ipmag.pmag_results_extract(res_file, crit_file, spec_file, age_file, latex, grade, WD)
[ "def", "main", "(", ")", ":", "do_help", "=", "pmag", ".", "get_flag_arg_from_sys", "(", "'-h'", ")", "if", "do_help", ":", "print", "(", "main", ".", "__doc__", ")", "return", "False", "res_file", "=", "pmag", ".", "get_named_arg", "(", "'-f'", ",", "'pmag_results.txt'", ")", "crit_file", "=", "pmag", ".", "get_named_arg", "(", "'-fcr'", ",", "''", ")", "spec_file", "=", "pmag", ".", "get_named_arg", "(", "'-fsp'", ",", "''", ")", "age_file", "=", "pmag", ".", "get_named_arg", "(", "'-fa'", ",", "''", ")", "grade", "=", "pmag", ".", "get_flag_arg_from_sys", "(", "'-g'", ")", "latex", "=", "pmag", ".", "get_flag_arg_from_sys", "(", "'-tex'", ")", "WD", "=", "pmag", ".", "get_named_arg", "(", "'-WD'", ",", "os", ".", "getcwd", "(", ")", ")", "ipmag", ".", "pmag_results_extract", "(", "res_file", ",", "crit_file", ",", "spec_file", ",", "age_file", ",", "latex", ",", "grade", ",", "WD", ")" ]
NAME pmag_results_extract.py DESCRIPTION make a tab delimited output file from pmag_results table SYNTAX pmag_results_extract.py [command line options] OPTIONS -h prints help message and quits -f RFILE, specify pmag_results table; default is pmag_results.txt -fa AFILE, specify er_ages table; default is NONE -fsp SFILE, specify pmag_specimens table, default is NONE -fcr CFILE, specify pmag_criteria table, default is NONE -g include specimen_grade in table - only works for PmagPy generated pmag_specimen formatted files. -tex, output in LaTeX format
[ "NAME", "pmag_results_extract", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/pmag_results_extract.py#L8-L39
train
main function for pmag_results_extract. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(10590 - 10479) + chr(49) + chr(0b100011 + 0o23) + chr(1860 - 1807), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(524 - 474) + chr(0b11001 + 0o35) + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b1000 + 0o52), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(54) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(656 - 545) + chr(2266 - 2216) + chr(53) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\x36' + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101110 + 0o1) + chr(0b110001) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(569 - 521) + chr(6000 - 5889) + '\x32' + chr(0b110000), 23987 - 23979), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b10101 + 0o34) + '\x30' + chr(0b100001 + 0o20), 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b110100 + 0o73) + chr(0b10110 + 0o35) + chr(48) + chr(1530 - 1476), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + '\x32' + chr(0b10010 + 0o43) + chr(0b11110 + 0o23), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b101101 + 0o12) + chr(0b10000 + 0o42), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9065 - 8954) + chr(49) + chr(0b10001 + 0o40) + chr(0b11111 + 0o26), 0o10), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + chr(0b10011 + 0o36) + chr(1037 - 987) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101000 + 0o12) + chr(853 - 801) + chr(2214 - 2159), 51262 - 51254), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(7830 - 7719) + chr(0b100000 + 0o23) + '\x35' + chr(676 - 627), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(527 - 477) + chr(1076 - 1026), 8), nzTpIcepk0o8('\060' + chr(10863 - 10752) + chr(50) + chr(0b1000 + 0o50) + chr(2239 - 2184), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x37', 0b1000), nzTpIcepk0o8(chr(2201 - 2153) + '\x6f' + chr(0b110010) + chr(0b110110) + chr(0b101010 + 0o11), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b1110 + 0o44) + '\x37' + '\x35', 32099 - 32091), nzTpIcepk0o8('\x30' + chr(9013 - 8902) + '\x31' + chr(0b110111) + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1100 + 0o45) + '\x32' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(52) + chr(55), 0o10), nzTpIcepk0o8('\060' + chr(0b1001110 + 0o41) + chr(51) + chr(2263 - 2215) + '\x31', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(55), 15749 - 15741), nzTpIcepk0o8(chr(0b110000) + chr(7542 - 7431) + chr(2338 - 2285) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(0b110011) + chr(0b110110) + chr(2180 - 2127), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110100) + chr(53), 0o10), nzTpIcepk0o8('\060' + chr(10005 - 9894) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10011 + 0o36) + chr(0b101011 + 0o14), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\065' + '\063', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b101101 + 0o6) + chr(2028 - 1973), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(627 - 579) + '\067', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(55) + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(4205 - 4094) + '\x33' + chr(0b110111) + '\x30', 0b1000), nzTpIcepk0o8(chr(1211 - 1163) + '\x6f' + chr(0b110011) + chr(0b110101), 34509 - 34501), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\x6f' + chr(50) + '\x35' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + chr(49) + '\x37' + chr(1396 - 1348), 50280 - 50272), nzTpIcepk0o8(chr(0b110000) + chr(9870 - 9759) + '\x33' + '\x33' + chr(0b110111), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\x6f' + chr(659 - 606) + '\060', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'['), '\144' + '\x65' + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(10582 - 10465) + chr(0b1101101 + 0o7) + '\x66' + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): pn8Eeu5BkSJI = hUcsWwAd0nE_.get_flag_arg_from_sys(roI3spqORKae(ES5oEprVxulp(b'X\xdd'), '\144' + '\145' + chr(0b11011 + 0o110) + chr(0b1101111) + chr(100) + chr(0b1100101))('\x75' + chr(0b1110100) + '\146' + '\055' + chr(0b111000))) if pn8Eeu5BkSJI: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b"\x0c\xd3W\x14\xd9'aE.\xb7\xfen"), chr(0b1100100) + '\x65' + chr(9320 - 9221) + chr(0b1000000 + 0o57) + chr(6144 - 6044) + chr(9464 - 9363))('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b111000)))) return nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(1239 - 1128) + chr(0b110000 + 0o0), ord("\x08")) s282iMtmXh3x = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'X\xd3'), '\x64' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(100) + chr(7181 - 7080))('\165' + '\164' + chr(2258 - 2156) + chr(0b10011 + 0o32) + chr(0b110 + 0o62)), roI3spqORKae(ES5oEprVxulp(b'\x05\xd8s\x16\xf7\x04mc4\xaa\xddIc%\xdf\x9d'), chr(7452 - 7352) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(238 - 138) + chr(0b1011110 + 0o7))(chr(10925 - 10808) + '\164' + chr(1310 - 1208) + chr(1822 - 1777) + chr(570 - 514))) fjdMtUDzc4gD = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'X\xd3q\x03'), chr(3773 - 3673) + chr(0b1100101) + '\143' + chr(10430 - 10319) + '\x64' + chr(0b11001 + 0o114))(chr(0b1111 + 0o146) + chr(116) + chr(0b101000 + 0o76) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + chr(0b101011 + 0o70) + '\157' + chr(0b10110 + 0o116) + chr(0b101011 + 0o72))(chr(10633 - 10516) + chr(9555 - 9439) + '\146' + '\x2d' + chr(56))) QJgeTIOanow9 = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'X\xd3a\x01'), '\x64' + chr(101) + chr(6769 - 6670) + chr(0b100101 + 0o112) + chr(0b111100 + 0o50) + '\145')('\165' + chr(116) + chr(667 - 565) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1011011 + 0o12) + chr(99) + '\x6f' + chr(100) + chr(101))(chr(0b11101 + 0o130) + '\x74' + chr(0b10100 + 0o122) + chr(0b101101) + chr(443 - 387))) _FpkWd4wvvaT = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'X\xd3s'), chr(0b1010111 + 0o15) + chr(0b1100101) + '\x63' + chr(111) + chr(4170 - 4070) + chr(6523 - 6422))(chr(11408 - 11291) + '\164' + chr(0b111011 + 0o53) + chr(1701 - 1656) + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b100110 + 0o77) + chr(9708 - 9609) + chr(0b1101111) + chr(100) + '\145')(chr(5046 - 4929) + '\x74' + chr(10119 - 10017) + chr(0b101101) + chr(1268 - 1212))) yOzxEm2mFS8T = hUcsWwAd0nE_.get_flag_arg_from_sys(roI3spqORKae(ES5oEprVxulp(b'X\xd2'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(116) + chr(0b1100110) + chr(0b101011 + 0o2) + chr(2395 - 2339))) cl3Ncwxy1gE5 = hUcsWwAd0nE_.get_flag_arg_from_sys(roI3spqORKae(ES5oEprVxulp(b'X\xc1w\t'), '\x64' + '\x65' + chr(3877 - 3778) + chr(11245 - 11134) + '\x64' + '\145')(chr(0b100000 + 0o125) + '\x74' + chr(7673 - 7571) + chr(356 - 311) + '\070')) GP1zEShDyCxL = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'X\xe2V'), '\x64' + chr(1475 - 1374) + chr(7677 - 7578) + '\157' + '\144' + chr(8565 - 8464))('\165' + chr(116) + chr(1283 - 1181) + chr(1529 - 1484) + chr(56)), aHUqKstZLeS6.getcwd()) roI3spqORKae(GL09QZtbvKPg, roI3spqORKae(ES5oEprVxulp(b'\x05\xd8s\x16\xf7\x04mc4\xaa\xddI\x124\xdf\x9d`\xe6|\xc7'), chr(100) + chr(6441 - 6340) + '\x63' + chr(0b1101111) + chr(0b11110 + 0o106) + chr(0b100111 + 0o76))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(906 - 850)))(s282iMtmXh3x, fjdMtUDzc4gD, QJgeTIOanow9, _FpkWd4wvvaT, cl3Ncwxy1gE5, yOzxEm2mFS8T, GP1zEShDyCxL)
PmagPy/PmagPy
programs/replace_ac_specimens.py
main
def main(): """ NAME replace_AC_specimens.py DESCRIPTION finds anisotropy corrected data and replaces that specimen with it. puts in pmag_specimen format file SYNTAX replace_AC_specimens.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of file names -fu TFILE uncorrected pmag_specimen format file with thellier interpretations created by thellier_magic_redo.py -fc AFILE anisotropy corrected pmag_specimen format file created by thellier_magic_redo.py -F FILE pmag_specimens format output file DEFAULTS TFILE: thellier_specimens.txt AFILE: AC_specimens.txt FILE: TorAC_specimens.txt """ dir_path='.' tspec="thellier_specimens.txt" aspec="AC_specimens.txt" ofile="TorAC_specimens.txt" critfile="pmag_criteria.txt" ACSamplist,Samplist,sigmin=[],[],10000 GoodSamps,SpecOuts=[],[] # get arguments from command line if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-fu' in sys.argv: ind=sys.argv.index('-fu') tspec=sys.argv[ind+1] if '-fc' in sys.argv: ind=sys.argv.index('-fc') aspec=sys.argv[ind+1] if '-F' in sys.argv: ind=sys.argv.index('-F') ofile=sys.argv[ind+1] if '-WD' in sys.argv: ind=sys.argv.index('-WD') dir_path=sys.argv[ind+1] # read in pmag_specimens file tspec=dir_path+'/'+tspec aspec=dir_path+'/'+aspec ofile=dir_path+'/'+ofile Specs,file_type=pmag.magic_read(tspec) Specs,file_type=pmag.magic_read(tspec) Speclist=pmag.get_specs(Specs) ACSpecs,file_type=pmag.magic_read(aspec) ACspeclist=pmag.get_specs(ACSpecs) for spec in Specs: if spec["er_sample_name"] not in Samplist:Samplist.append(spec["er_sample_name"]) for spec in ACSpecs: if spec["er_sample_name"] not in ACSamplist:ACSamplist.append(spec["er_sample_name"]) # for samp in Samplist: useAC,Ints,ACInts,GoodSpecs,AC,UC=0,[],[],[],[],[] for spec in Specs: if spec["er_sample_name"].lower()==samp.lower(): UC.append(spec) if samp in ACSamplist: for spec in ACSpecs: if spec["er_sample_name"].lower()==samp.lower(): AC.append(spec) if len(AC)>0: AClist=[] for spec in AC: SpecOuts.append(spec) AClist.append(spec['er_specimen_name']) print('using AC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int']))) for spec in UC: if spec['er_specimen_name'] not in AClist: SpecOuts.append(spec) # print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int'])) else: for spec in UC: SpecOuts.append(spec) # print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int'])) SpecOuts,keys=pmag.fillkeys(SpecOuts) pmag.magic_write(ofile,SpecOuts,'pmag_specimens') print('thellier data assessed for AC correction put in ', ofile)
python
def main(): """ NAME replace_AC_specimens.py DESCRIPTION finds anisotropy corrected data and replaces that specimen with it. puts in pmag_specimen format file SYNTAX replace_AC_specimens.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of file names -fu TFILE uncorrected pmag_specimen format file with thellier interpretations created by thellier_magic_redo.py -fc AFILE anisotropy corrected pmag_specimen format file created by thellier_magic_redo.py -F FILE pmag_specimens format output file DEFAULTS TFILE: thellier_specimens.txt AFILE: AC_specimens.txt FILE: TorAC_specimens.txt """ dir_path='.' tspec="thellier_specimens.txt" aspec="AC_specimens.txt" ofile="TorAC_specimens.txt" critfile="pmag_criteria.txt" ACSamplist,Samplist,sigmin=[],[],10000 GoodSamps,SpecOuts=[],[] # get arguments from command line if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-fu' in sys.argv: ind=sys.argv.index('-fu') tspec=sys.argv[ind+1] if '-fc' in sys.argv: ind=sys.argv.index('-fc') aspec=sys.argv[ind+1] if '-F' in sys.argv: ind=sys.argv.index('-F') ofile=sys.argv[ind+1] if '-WD' in sys.argv: ind=sys.argv.index('-WD') dir_path=sys.argv[ind+1] # read in pmag_specimens file tspec=dir_path+'/'+tspec aspec=dir_path+'/'+aspec ofile=dir_path+'/'+ofile Specs,file_type=pmag.magic_read(tspec) Specs,file_type=pmag.magic_read(tspec) Speclist=pmag.get_specs(Specs) ACSpecs,file_type=pmag.magic_read(aspec) ACspeclist=pmag.get_specs(ACSpecs) for spec in Specs: if spec["er_sample_name"] not in Samplist:Samplist.append(spec["er_sample_name"]) for spec in ACSpecs: if spec["er_sample_name"] not in ACSamplist:ACSamplist.append(spec["er_sample_name"]) # for samp in Samplist: useAC,Ints,ACInts,GoodSpecs,AC,UC=0,[],[],[],[],[] for spec in Specs: if spec["er_sample_name"].lower()==samp.lower(): UC.append(spec) if samp in ACSamplist: for spec in ACSpecs: if spec["er_sample_name"].lower()==samp.lower(): AC.append(spec) if len(AC)>0: AClist=[] for spec in AC: SpecOuts.append(spec) AClist.append(spec['er_specimen_name']) print('using AC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int']))) for spec in UC: if spec['er_specimen_name'] not in AClist: SpecOuts.append(spec) # print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int'])) else: for spec in UC: SpecOuts.append(spec) # print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int'])) SpecOuts,keys=pmag.fillkeys(SpecOuts) pmag.magic_write(ofile,SpecOuts,'pmag_specimens') print('thellier data assessed for AC correction put in ', ofile)
[ "def", "main", "(", ")", ":", "dir_path", "=", "'.'", "tspec", "=", "\"thellier_specimens.txt\"", "aspec", "=", "\"AC_specimens.txt\"", "ofile", "=", "\"TorAC_specimens.txt\"", "critfile", "=", "\"pmag_criteria.txt\"", "ACSamplist", ",", "Samplist", ",", "sigmin", "=", "[", "]", ",", "[", "]", ",", "10000", "GoodSamps", ",", "SpecOuts", "=", "[", "]", ",", "[", "]", "# get arguments from command line", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-fu'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-fu'", ")", "tspec", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-fc'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-fc'", ")", "aspec", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-F'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-F'", ")", "ofile", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-WD'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-WD'", ")", "dir_path", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "# read in pmag_specimens file", "tspec", "=", "dir_path", "+", "'/'", "+", "tspec", "aspec", "=", "dir_path", "+", "'/'", "+", "aspec", "ofile", "=", "dir_path", "+", "'/'", "+", "ofile", "Specs", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "tspec", ")", "Specs", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "tspec", ")", "Speclist", "=", "pmag", ".", "get_specs", "(", "Specs", ")", "ACSpecs", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "aspec", ")", "ACspeclist", "=", "pmag", ".", "get_specs", "(", "ACSpecs", ")", "for", "spec", "in", "Specs", ":", "if", "spec", "[", "\"er_sample_name\"", "]", "not", "in", "Samplist", ":", "Samplist", ".", "append", "(", "spec", "[", "\"er_sample_name\"", "]", ")", "for", "spec", "in", "ACSpecs", ":", "if", "spec", "[", "\"er_sample_name\"", "]", "not", "in", "ACSamplist", ":", "ACSamplist", ".", "append", "(", "spec", "[", "\"er_sample_name\"", "]", ")", "#", "for", "samp", "in", "Samplist", ":", "useAC", ",", "Ints", ",", "ACInts", ",", "GoodSpecs", ",", "AC", ",", "UC", "=", "0", ",", "[", "]", ",", "[", "]", ",", "[", "]", ",", "[", "]", ",", "[", "]", "for", "spec", "in", "Specs", ":", "if", "spec", "[", "\"er_sample_name\"", "]", ".", "lower", "(", ")", "==", "samp", ".", "lower", "(", ")", ":", "UC", ".", "append", "(", "spec", ")", "if", "samp", "in", "ACSamplist", ":", "for", "spec", "in", "ACSpecs", ":", "if", "spec", "[", "\"er_sample_name\"", "]", ".", "lower", "(", ")", "==", "samp", ".", "lower", "(", ")", ":", "AC", ".", "append", "(", "spec", ")", "if", "len", "(", "AC", ")", ">", "0", ":", "AClist", "=", "[", "]", "for", "spec", "in", "AC", ":", "SpecOuts", ".", "append", "(", "spec", ")", "AClist", ".", "append", "(", "spec", "[", "'er_specimen_name'", "]", ")", "print", "(", "'using AC: '", ",", "spec", "[", "'er_specimen_name'", "]", ",", "'%7.1f'", "%", "(", "1e6", "*", "float", "(", "spec", "[", "'specimen_int'", "]", ")", ")", ")", "for", "spec", "in", "UC", ":", "if", "spec", "[", "'er_specimen_name'", "]", "not", "in", "AClist", ":", "SpecOuts", ".", "append", "(", "spec", ")", "# print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int']))", "else", ":", "for", "spec", "in", "UC", ":", "SpecOuts", ".", "append", "(", "spec", ")", "# print 'using UC: ',spec['er_specimen_name'],'%7.1f'%(1e6*float(spec['specimen_int']))", "SpecOuts", ",", "keys", "=", "pmag", ".", "fillkeys", "(", "SpecOuts", ")", "pmag", ".", "magic_write", "(", "ofile", ",", "SpecOuts", ",", "'pmag_specimens'", ")", "print", "(", "'thellier data assessed for AC correction put in '", ",", "ofile", ")" ]
NAME replace_AC_specimens.py DESCRIPTION finds anisotropy corrected data and replaces that specimen with it. puts in pmag_specimen format file SYNTAX replace_AC_specimens.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of file names -fu TFILE uncorrected pmag_specimen format file with thellier interpretations created by thellier_magic_redo.py -fc AFILE anisotropy corrected pmag_specimen format file created by thellier_magic_redo.py -F FILE pmag_specimens format output file DEFAULTS TFILE: thellier_specimens.txt AFILE: AC_specimens.txt FILE: TorAC_specimens.txt
[ "NAME", "replace_AC_specimens", ".", "py", "DESCRIPTION", "finds", "anisotropy", "corrected", "data", "and", "replaces", "that", "specimen", "with", "it", ".", "puts", "in", "pmag_specimen", "format", "file", "SYNTAX", "replace_AC_specimens", ".", "py", "[", "command", "line", "options", "]" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/replace_ac_specimens.py#L6-L96
train
get an anisotropy corrected data and replace it with an anisotropy corrected data and create a new one
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(604 - 553) + chr(0b101001 + 0o15) + chr(0b111 + 0o55), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(2629 - 2576) + chr(2481 - 2428), 0o10), nzTpIcepk0o8(chr(486 - 438) + '\x6f' + '\063' + '\062' + chr(0b11110 + 0o31), 0o10), nzTpIcepk0o8('\x30' + chr(0b1100 + 0o143) + '\061' + '\066' + '\062', ord("\x08")), nzTpIcepk0o8(chr(220 - 172) + '\157' + chr(0b100100 + 0o15) + chr(0b100110 + 0o14), 38194 - 38186), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\061' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(2197 - 2148) + chr(0b110010) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(859 - 809) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(8755 - 8644) + chr(1140 - 1091) + chr(981 - 931) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b101001 + 0o106) + chr(0b11000 + 0o32) + '\064' + '\066', 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1001100 + 0o43) + '\063' + chr(1697 - 1644), 13316 - 13308), nzTpIcepk0o8(chr(149 - 101) + '\157' + chr(1867 - 1816) + chr(0b110001) + chr(1092 - 1038), 23538 - 23530), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(0b11101 + 0o26) + '\x30' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(1783 - 1735) + '\x34', 44115 - 44107), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\066' + chr(1724 - 1669), 0o10), nzTpIcepk0o8(chr(48) + chr(6948 - 6837) + '\x33' + chr(48) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(49) + chr(0b11000 + 0o37), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\067' + '\x36', 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b101111 + 0o100) + '\x33' + chr(0b110111) + chr(0b110110), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(1319 - 1267) + chr(0b110110), 8), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(3778 - 3667) + chr(0b110010) + chr(0b110010) + '\063', 50928 - 50920), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + '\x31' + '\x31' + chr(224 - 174), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(51), 0o10), nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + chr(2087 - 2038) + '\060' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(9158 - 9047) + chr(51) + chr(1958 - 1906) + chr(0b110110), 315 - 307), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(52) + chr(861 - 811), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(2456 - 2401) + '\x37', 37508 - 37500), nzTpIcepk0o8(chr(2025 - 1977) + chr(9868 - 9757) + chr(50) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110110) + chr(424 - 374), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(55) + chr(2312 - 2261), 0o10), nzTpIcepk0o8(chr(1763 - 1715) + chr(7579 - 7468) + chr(50) + chr(53) + chr(0b110011), 45694 - 45686), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + '\x32' + chr(0b111 + 0o51), 51893 - 51885), nzTpIcepk0o8(chr(1258 - 1210) + chr(2508 - 2397) + chr(0b110010) + chr(838 - 789) + '\063', 0o10), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + chr(0b1010 + 0o50) + '\x35' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + '\x31' + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(6261 - 6150) + chr(0b110001) + chr(50) + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1962 - 1911) + chr(0b110101) + '\x37', 3086 - 3078), nzTpIcepk0o8(chr(1558 - 1510) + chr(11415 - 11304) + chr(1523 - 1472) + chr(55) + chr(2356 - 2303), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(49) + '\x35' + chr(2936 - 2881), 46660 - 46652), nzTpIcepk0o8(chr(0b110000) + chr(10012 - 9901) + '\x33' + '\063' + chr(54), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10100 + 0o34) + chr(0b1101111) + chr(53) + chr(0b10010 + 0o36), 26486 - 26478)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xda'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + '\144' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): qjksZ7GK0xkJ = roI3spqORKae(ES5oEprVxulp(b'\xda'), chr(7639 - 7539) + '\x65' + '\x63' + chr(0b1110 + 0o141) + chr(0b0 + 0o144) + chr(101))(chr(3173 - 3056) + chr(116) + chr(0b11001 + 0o115) + chr(45) + '\070') Af5UZp9oPnbg = roI3spqORKae(ES5oEprVxulp(b'\x80\x85\xb2\x1ef\xa04\xe3\x08\xd5m\xab\xa5\xad\x9a\xa4!\xcd\xd0\xd2\xeb>'), chr(0b1100100) + '\145' + chr(0b1100011) + '\x6f' + chr(100) + '\145')(chr(117) + chr(0b1100110 + 0o16) + '\x66' + chr(1405 - 1360) + chr(56)) KHdXF7VIF_aw = roI3spqORKae(ES5oEprVxulp(b'\xb5\xae\x88\x01z\xac2\xf8:\xc3s\xbd\xe8\xb0\x8f\xb5'), chr(0b100100 + 0o100) + chr(0b11110 + 0o107) + chr(0b1100011) + chr(0b110 + 0o151) + chr(0b1001010 + 0o32) + '\145')(chr(766 - 649) + chr(0b1111 + 0o145) + '\146' + chr(0b101101) + '\x38') ucgtpUSoC3xd = roI3spqORKae(ES5oEprVxulp(b'\xa0\x82\xa53I\x96"\xe12\xc5t\xa3\xa3\xaa\x84\xef;\xc6\x8a'), '\x64' + chr(101) + chr(99) + chr(0b1011 + 0o144) + chr(100) + chr(0b10101 + 0o120))(chr(117) + chr(116) + chr(102) + chr(1572 - 1527) + chr(180 - 124)) SxuYNdA_ZnAr = roI3spqORKae(ES5oEprVxulp(b'\x84\x80\xb6\x15U\xaa#\xf8#\xc3o\xa7\xa7\xea\x83\xb9;'), '\x64' + chr(5282 - 5181) + '\143' + chr(0b1100100 + 0o13) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + chr(0b11010 + 0o114) + '\055' + chr(0b101 + 0o63)) (B9SiWOQVZ2qg, ZHJbWKlPS2HW, IfTJgkSvRkh2) = ([], [], nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + chr(50) + '\063' + chr(0b110100) + '\x32' + chr(0b110000), ord("\x08"))) (FkS2QYA55FQ7, bLknrGHrdL75) = ([], []) if roI3spqORKae(ES5oEprVxulp(b'\xd9\x85'), chr(3105 - 3005) + chr(101) + '\x63' + chr(544 - 433) + '\144' + '\145')(chr(3765 - 3648) + chr(3186 - 3070) + chr(0b1001011 + 0o33) + '\055' + chr(2725 - 2669)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95\x87\x9e6]\xb0\t\xdc\x15\xc7.\xac'), chr(0b1000101 + 0o37) + chr(9626 - 9525) + chr(99) + '\157' + chr(100) + chr(0b111111 + 0o46))(chr(1729 - 1612) + '\164' + '\146' + '\x2d' + '\070')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x8d\x8b\x92\x17{\x988\xc48\xd7J\x9a'), chr(0b1000001 + 0o43) + chr(101) + chr(3460 - 3361) + '\157' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b1000111 + 0o37) + chr(0b101101) + chr(0b100 + 0o64)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xae\x98\xa5\x18i\x9c\x1d\xa0$\xd5\\\xf6'), '\x64' + '\x65' + '\x63' + '\x6f' + '\144' + chr(8785 - 8684))('\x75' + '\164' + chr(0b1100110) + chr(0b111 + 0o46) + '\070'))() if roI3spqORKae(ES5oEprVxulp(b'\xd9\x8b\xa2'), chr(0b111110 + 0o46) + '\x65' + '\x63' + chr(0b1101111) + chr(7531 - 7431) + chr(101))(chr(0b100101 + 0o120) + chr(116) + chr(0b1000 + 0o136) + chr(1531 - 1486) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95\x87\x9e6]\xb0\t\xdc\x15\xc7.\xac'), chr(0b1011100 + 0o10) + chr(10116 - 10015) + chr(7328 - 7229) + '\157' + chr(0b1100100) + '\x65')('\x75' + chr(0b1001011 + 0o51) + chr(7674 - 7572) + chr(0b10 + 0o53) + '\070')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xd9\x8b\xa2'), '\x64' + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))(chr(0b110100 + 0o101) + chr(116) + chr(0b1100000 + 0o6) + chr(0b101101) + chr(1865 - 1809))) Af5UZp9oPnbg = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\060' + chr(8711 - 8600) + chr(0b110001), 20422 - 20414)] if roI3spqORKae(ES5oEprVxulp(b'\xd9\x8b\xb4'), '\x64' + chr(101) + '\x63' + '\157' + chr(100) + '\x65')(chr(0b1110101) + chr(116) + chr(6167 - 6065) + chr(581 - 536) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95\x87\x9e6]\xb0\t\xdc\x15\xc7.\xac'), '\144' + chr(0b111010 + 0o53) + '\143' + chr(111) + chr(100) + chr(0b10001 + 0o124))(chr(0b100100 + 0o121) + '\164' + '\146' + chr(0b101101) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xd9\x8b\xb4'), chr(100) + chr(0b1100101) + '\143' + chr(111) + '\144' + '\145')(chr(6351 - 6234) + chr(0b1110100) + chr(102) + chr(1981 - 1936) + chr(0b111000))) KHdXF7VIF_aw = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(2051 - 1940) + chr(719 - 670), 8)] if roI3spqORKae(ES5oEprVxulp(b'\xd9\xab'), '\144' + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(0b11101 + 0o110))(chr(0b1110101) + chr(116) + '\146' + chr(0b100001 + 0o14) + chr(1081 - 1025)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95\x87\x9e6]\xb0\t\xdc\x15\xc7.\xac'), '\x64' + chr(7865 - 7764) + '\143' + chr(111) + '\x64' + chr(101))('\x75' + chr(6530 - 6414) + chr(0b1000111 + 0o37) + chr(45) + chr(630 - 574))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xd9\xab'), chr(100) + chr(0b1000 + 0o135) + '\143' + chr(2836 - 2725) + chr(8308 - 8208) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b1111 + 0o36) + '\x38')) ucgtpUSoC3xd = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1257 - 1209) + '\x6f' + chr(0b101100 + 0o5), 8)] if roI3spqORKae(ES5oEprVxulp(b'\xd9\xba\x93'), chr(1127 - 1027) + chr(0b1001 + 0o134) + chr(455 - 356) + chr(11594 - 11483) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + chr(936 - 891) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x95\x87\x9e6]\xb0\t\xdc\x15\xc7.\xac'), chr(100) + '\x65' + '\143' + '\x6f' + '\x64' + chr(6229 - 6128))('\165' + chr(0b1101010 + 0o12) + chr(0b100110 + 0o100) + chr(45) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xd9\xba\x93'), '\144' + '\x65' + chr(99) + chr(712 - 601) + chr(0b1100100) + chr(1336 - 1235))(chr(0b1110101) + '\x74' + chr(0b1011110 + 0o10) + chr(0b101101) + '\070')) qjksZ7GK0xkJ = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001), 8)] Af5UZp9oPnbg = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'\xdb'), '\144' + chr(5856 - 5755) + chr(0b1100011) + chr(9303 - 9192) + chr(0b100011 + 0o101) + chr(8309 - 8208))(chr(0b1110101) + chr(116) + chr(0b11110 + 0o110) + chr(0b101101) + chr(1021 - 965)) + Af5UZp9oPnbg KHdXF7VIF_aw = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'\xdb'), chr(100) + '\145' + chr(0b1111 + 0o124) + '\x6f' + chr(9586 - 9486) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b100001 + 0o14) + chr(56)) + KHdXF7VIF_aw ucgtpUSoC3xd = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'\xdb'), chr(100) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1 + 0o143) + chr(0b1100001 + 0o4))(chr(117) + chr(0b1110100) + chr(102) + '\055' + chr(56)) + ucgtpUSoC3xd (JlNPC9Ow4uxx, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(Af5UZp9oPnbg) (JlNPC9Ow4uxx, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(Af5UZp9oPnbg) N8RIOUft3cb1 = hUcsWwAd0nE_.get_specs(JlNPC9Ow4uxx) (FAvL_cpLuA2M, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(KHdXF7VIF_aw) UY1wEerTqemy = hUcsWwAd0nE_.get_specs(FAvL_cpLuA2M) for L66BkZPPV93j in JlNPC9Ow4uxx: if L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), chr(5346 - 5246) + chr(0b1100101) + chr(0b1100011) + chr(0b1011101 + 0o22) + '\144' + '\x65')(chr(12463 - 12346) + chr(1369 - 1253) + chr(3516 - 3414) + chr(1330 - 1285) + '\x38')] not in ZHJbWKlPS2HW: roI3spqORKae(ZHJbWKlPS2HW, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), '\144' + '\x65' + '\x63' + '\157' + '\x64' + chr(0b1100101))('\165' + '\164' + chr(102) + chr(45) + chr(0b111000)))(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), '\x64' + chr(6120 - 6019) + chr(3309 - 3210) + chr(0b1100111 + 0o10) + '\x64' + chr(0b1011001 + 0o14))(chr(117) + chr(0b1110100) + '\x66' + chr(0b101010 + 0o3) + '\x38')]) for L66BkZPPV93j in FAvL_cpLuA2M: if L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), chr(0b1100100) + '\145' + '\143' + chr(0b1001011 + 0o44) + chr(1047 - 947) + '\145')('\165' + chr(0b10111 + 0o135) + chr(0b1011010 + 0o14) + '\055' + '\070')] not in B9SiWOQVZ2qg: roI3spqORKae(B9SiWOQVZ2qg, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), chr(100) + chr(101) + chr(0b1100011) + chr(2055 - 1944) + '\x64' + chr(0b1000101 + 0o40))(chr(0b10110 + 0o137) + '\164' + '\x66' + chr(45) + chr(0b110001 + 0o7)))(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(0b100100 + 0o100) + '\145')(chr(0b1000100 + 0o61) + chr(5429 - 5313) + '\146' + '\055' + chr(0b111000))]) for NrOoJ8NdaX1V in ZHJbWKlPS2HW: (loM3MhdUKfPi, onUEhWOmC3SX, Rn0m0pgmU6se, prFvQvjLxwEB, hd5FyXXy_Ype, zZjY4dfhgAAI) = (nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + '\x30', ord("\x08")), [], [], [], [], []) for L66BkZPPV93j in JlNPC9Ow4uxx: if roI3spqORKae(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), '\144' + chr(0b1100101) + chr(7193 - 7094) + chr(10996 - 10885) + '\144' + chr(0b1100101))('\165' + '\x74' + chr(134 - 32) + chr(45) + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xac\x83\xef7D\x9e\x1c\xcb3\xefO\xba'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101 + 0o142) + chr(0b1100100) + '\145')(chr(0b1001110 + 0o47) + chr(116) + '\146' + chr(45) + chr(2879 - 2823)))() == roI3spqORKae(NrOoJ8NdaX1V, roI3spqORKae(ES5oEprVxulp(b'\xac\x83\xef7D\x9e\x1c\xcb3\xefO\xba'), '\x64' + '\145' + chr(7600 - 7501) + chr(0b1101100 + 0o3) + '\144' + chr(0b1100101))('\165' + chr(3301 - 3185) + '\x66' + chr(0b1101 + 0o40) + chr(2292 - 2236)))(): roI3spqORKae(zZjY4dfhgAAI, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), '\144' + chr(101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + '\x66' + chr(148 - 103) + '\x38'))(L66BkZPPV93j) if NrOoJ8NdaX1V in B9SiWOQVZ2qg: for L66BkZPPV93j in FAvL_cpLuA2M: if roI3spqORKae(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01k\xa4!\xfd2\xf9s\xaf\xab\xa1'), chr(100) + chr(1552 - 1451) + '\x63' + '\x6f' + chr(0b1011111 + 0o5) + '\145')(chr(9877 - 9760) + '\164' + chr(102) + '\x2d' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xac\x83\xef7D\x9e\x1c\xcb3\xefO\xba'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b10101 + 0o132) + chr(0b1100100) + chr(101))(chr(117) + chr(309 - 193) + '\146' + '\x2d' + '\070'))() == roI3spqORKae(NrOoJ8NdaX1V, roI3spqORKae(ES5oEprVxulp(b'\xac\x83\xef7D\x9e\x1c\xcb3\xefO\xba'), '\144' + chr(101) + chr(0b1100011) + '\157' + chr(1269 - 1169) + chr(4920 - 4819))('\165' + '\164' + '\x66' + '\055' + '\x38'))(): roI3spqORKae(hd5FyXXy_Ype, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(45) + '\x38'))(L66BkZPPV93j) if ftfygxgFas5X(hd5FyXXy_Ype) > nzTpIcepk0o8('\x30' + '\157' + chr(645 - 597), 8): x0t_u4ZbCqW8 = [] for L66BkZPPV93j in hd5FyXXy_Ype: roI3spqORKae(bLknrGHrdL75, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), '\144' + '\x65' + '\x63' + '\157' + chr(4482 - 4382) + '\x65')('\x75' + chr(0b1110100) + chr(0b100100 + 0o102) + '\055' + chr(56)))(L66BkZPPV93j) roI3spqORKae(x0t_u4ZbCqW8, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), '\x64' + '\x65' + chr(0b1100011) + chr(0b1100011 + 0o14) + '\x64' + chr(0b1010011 + 0o22))(chr(11635 - 11518) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)))(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01z\xac2\xf8:\xc3s\x91\xa8\xa5\x9a\xa4'), chr(100) + chr(0b1100101) + chr(0b1000101 + 0o36) + chr(0b110100 + 0o73) + chr(100) + chr(8093 - 7992))('\x75' + '\x74' + '\x66' + chr(0b11 + 0o52) + '\x38')]) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x81\x9e\xbe\x1cm\xe9\x10\xd2m\x86'), '\x64' + chr(101) + chr(5585 - 5486) + '\157' + chr(0b1001010 + 0o32) + chr(359 - 258))('\165' + chr(116) + '\x66' + chr(778 - 733) + chr(0b111000)), L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01z\xac2\xf8:\xc3s\x91\xa8\xa5\x9a\xa4'), chr(742 - 642) + chr(0b1100101) + chr(646 - 547) + chr(0b1010101 + 0o32) + chr(100) + '\145')(chr(0b110101 + 0o100) + '\x74' + chr(1807 - 1705) + '\055' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xd1\xda\xf9Cl'), chr(0b1011011 + 0o11) + '\145' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))('\165' + chr(0b1000011 + 0o61) + '\146' + chr(45) + chr(56)) % (1000000.0 * jLW6pRf2DSRk(L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x87\x9d\xb2\x11c\xa44\xff\x08\xcfs\xba'), chr(0b1100100) + '\x65' + chr(99) + chr(111) + chr(100) + '\x65')('\165' + chr(6253 - 6137) + chr(102) + chr(45) + '\x38')]))) for L66BkZPPV93j in zZjY4dfhgAAI: if L66BkZPPV93j[roI3spqORKae(ES5oEprVxulp(b'\x91\x9f\x88\x01z\xac2\xf8:\xc3s\x91\xa8\xa5\x9a\xa4'), chr(5846 - 5746) + '\145' + '\x63' + chr(111) + chr(6170 - 6070) + chr(8207 - 8106))(chr(8530 - 8413) + '\164' + '\146' + chr(1025 - 980) + chr(0b111 + 0o61))] not in x0t_u4ZbCqW8: roI3spqORKae(bLknrGHrdL75, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), chr(0b1100100) + chr(6181 - 6080) + chr(8131 - 8032) + '\157' + chr(100) + chr(509 - 408))(chr(3698 - 3581) + chr(0b1110100) + chr(3477 - 3375) + '\x2d' + '\x38'))(L66BkZPPV93j) else: for L66BkZPPV93j in zZjY4dfhgAAI: roI3spqORKae(bLknrGHrdL75, roI3spqORKae(ES5oEprVxulp(b'\xbc\xb9\x84Fr\xae\x16\xfe=\xc9H\xfb'), chr(0b1100100) + chr(0b10001 + 0o124) + '\x63' + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b10110 + 0o27) + '\x38'))(L66BkZPPV93j) (bLknrGHrdL75, HOp0ZjSPeQln) = hUcsWwAd0nE_.fillkeys(bLknrGHrdL75) roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'\x99\x8c\xb0\x1bi\x96&\xe3>\xd2x'), chr(0b1100100) + chr(8005 - 7904) + chr(1729 - 1630) + chr(7469 - 7358) + '\144' + '\x65')('\x75' + '\x74' + '\146' + chr(0b101101) + chr(1035 - 979)))(ucgtpUSoC3xd, bLknrGHrdL75, roI3spqORKae(ES5oEprVxulp(b'\x84\x80\xb6\x15U\xba!\xf44\xcfp\xab\xa8\xb7'), chr(100) + chr(101) + chr(99) + chr(516 - 405) + chr(0b1100100) + chr(6403 - 6302))('\x75' + chr(116) + chr(0b1000000 + 0o46) + chr(1735 - 1690) + chr(320 - 264))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x80\x85\xb2\x1ef\xa04\xe3w\xc2|\xba\xa7\xe4\x96\xb2<\xdb\x8d\xd5\xf6.;"\x89P_T\xb1\x1b\xc8\x7f\xf9\xde;2\x9b\x94\x00\xb0\xd4\x9d\xa2\x06*\xa0?\xb1'), chr(4758 - 4658) + chr(4739 - 4638) + chr(99) + chr(111) + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(5846 - 5744) + chr(45) + chr(0b100001 + 0o27)), ucgtpUSoC3xd)
PmagPy/PmagPy
dialogs/thellier_gui_lib.py
check_specimen_PI_criteria
def check_specimen_PI_criteria(pars,acceptance_criteria): ''' # Check if specimen pass Acceptance criteria ''' #if 'pars' not in self.Data[specimen].kes(): # return pars['specimen_fail_criteria']=[] for crit in list(acceptance_criteria.keys()): if crit not in list(pars.keys()): continue if acceptance_criteria[crit]['value']==-999: continue if acceptance_criteria[crit]['category']!='IE-SPEC': continue cutoff_value=acceptance_criteria[crit]['value'] if crit=='specimen_scat': if pars["specimen_scat"] in ["Fail",'b',0,'0','FALSE',"False",False,"f"]: pars['specimen_fail_criteria'].append('specimen_scat') elif crit=='specimen_k' or crit=='specimen_k_prime': if abs(pars[crit])>cutoff_value: pars['specimen_fail_criteria'].append(crit) # high threshold value: elif acceptance_criteria[crit]['threshold_type']=="high": if pars[crit]>cutoff_value: pars['specimen_fail_criteria'].append(crit) elif acceptance_criteria[crit]['threshold_type']=="low": if pars[crit]<cutoff_value: pars['specimen_fail_criteria'].append(crit) return pars
python
def check_specimen_PI_criteria(pars,acceptance_criteria): ''' # Check if specimen pass Acceptance criteria ''' #if 'pars' not in self.Data[specimen].kes(): # return pars['specimen_fail_criteria']=[] for crit in list(acceptance_criteria.keys()): if crit not in list(pars.keys()): continue if acceptance_criteria[crit]['value']==-999: continue if acceptance_criteria[crit]['category']!='IE-SPEC': continue cutoff_value=acceptance_criteria[crit]['value'] if crit=='specimen_scat': if pars["specimen_scat"] in ["Fail",'b',0,'0','FALSE',"False",False,"f"]: pars['specimen_fail_criteria'].append('specimen_scat') elif crit=='specimen_k' or crit=='specimen_k_prime': if abs(pars[crit])>cutoff_value: pars['specimen_fail_criteria'].append(crit) # high threshold value: elif acceptance_criteria[crit]['threshold_type']=="high": if pars[crit]>cutoff_value: pars['specimen_fail_criteria'].append(crit) elif acceptance_criteria[crit]['threshold_type']=="low": if pars[crit]<cutoff_value: pars['specimen_fail_criteria'].append(crit) return pars
[ "def", "check_specimen_PI_criteria", "(", "pars", ",", "acceptance_criteria", ")", ":", "#if 'pars' not in self.Data[specimen].kes():", "# return", "pars", "[", "'specimen_fail_criteria'", "]", "=", "[", "]", "for", "crit", "in", "list", "(", "acceptance_criteria", ".", "keys", "(", ")", ")", ":", "if", "crit", "not", "in", "list", "(", "pars", ".", "keys", "(", ")", ")", ":", "continue", "if", "acceptance_criteria", "[", "crit", "]", "[", "'value'", "]", "==", "-", "999", ":", "continue", "if", "acceptance_criteria", "[", "crit", "]", "[", "'category'", "]", "!=", "'IE-SPEC'", ":", "continue", "cutoff_value", "=", "acceptance_criteria", "[", "crit", "]", "[", "'value'", "]", "if", "crit", "==", "'specimen_scat'", ":", "if", "pars", "[", "\"specimen_scat\"", "]", "in", "[", "\"Fail\"", ",", "'b'", ",", "0", ",", "'0'", ",", "'FALSE'", ",", "\"False\"", ",", "False", ",", "\"f\"", "]", ":", "pars", "[", "'specimen_fail_criteria'", "]", ".", "append", "(", "'specimen_scat'", ")", "elif", "crit", "==", "'specimen_k'", "or", "crit", "==", "'specimen_k_prime'", ":", "if", "abs", "(", "pars", "[", "crit", "]", ")", ">", "cutoff_value", ":", "pars", "[", "'specimen_fail_criteria'", "]", ".", "append", "(", "crit", ")", "# high threshold value:", "elif", "acceptance_criteria", "[", "crit", "]", "[", "'threshold_type'", "]", "==", "\"high\"", ":", "if", "pars", "[", "crit", "]", ">", "cutoff_value", ":", "pars", "[", "'specimen_fail_criteria'", "]", ".", "append", "(", "crit", ")", "elif", "acceptance_criteria", "[", "crit", "]", "[", "'threshold_type'", "]", "==", "\"low\"", ":", "if", "pars", "[", "crit", "]", "<", "cutoff_value", ":", "pars", "[", "'specimen_fail_criteria'", "]", ".", "append", "(", "crit", ")", "return", "pars" ]
# Check if specimen pass Acceptance criteria
[ "#", "Check", "if", "specimen", "pass", "Acceptance", "criteria" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/dialogs/thellier_gui_lib.py#L295-L324
train
Check if specimen pass Acceptance criteria
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(234 - 186) + '\157' + '\063' + chr(0b111 + 0o60) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1295 - 1247) + chr(0b1101111) + '\x32' + chr(0b110010) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(0b110101) + '\x34', 64008 - 64000), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\065' + '\060', 38995 - 38987), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(0b110010) + chr(1755 - 1707), 0b1000), nzTpIcepk0o8('\x30' + chr(0b100111 + 0o110) + '\062' + chr(0b110101) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(54) + chr(48), 28672 - 28664), nzTpIcepk0o8(chr(1551 - 1503) + chr(0b1101111) + chr(51) + chr(0b100101 + 0o17) + chr(159 - 104), 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1100 + 0o143) + chr(275 - 224) + '\062' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(53) + chr(2656 - 2602), 51875 - 51867), nzTpIcepk0o8('\060' + chr(8350 - 8239) + chr(51) + chr(52) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(2160 - 2112) + '\157' + '\066' + chr(52), 47789 - 47781), nzTpIcepk0o8(chr(780 - 732) + '\157' + chr(1009 - 957) + chr(0b1001 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(64 - 16) + chr(4084 - 3973) + '\x36' + chr(0b110001 + 0o0), 47878 - 47870), nzTpIcepk0o8(chr(48) + chr(1047 - 936) + '\x32' + chr(1672 - 1622) + chr(51), 22379 - 22371), nzTpIcepk0o8(chr(2286 - 2238) + chr(4669 - 4558) + chr(2102 - 2052) + chr(0b110110) + chr(1541 - 1487), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(0b110111) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x36' + '\x31', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(1956 - 1907) + chr(329 - 274) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1495 - 1447) + chr(111) + '\x31' + chr(0b1110 + 0o43) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\061' + '\x31' + chr(52), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(48) + chr(0b110110), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\064' + '\x34', 0b1000), nzTpIcepk0o8('\x30' + chr(3264 - 3153) + chr(0b10111 + 0o32) + chr(53), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100111 + 0o14) + '\x32' + chr(49), 8), nzTpIcepk0o8(chr(48) + chr(4090 - 3979) + '\062' + chr(52) + chr(2299 - 2247), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b11111 + 0o22) + '\x34' + '\x37', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1452 - 1402) + chr(490 - 442) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b11101 + 0o122) + chr(1065 - 1010) + '\x36', 21676 - 21668), nzTpIcepk0o8(chr(48) + chr(111) + '\x33' + chr(53) + chr(1662 - 1608), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(0b110011) + chr(52) + '\066', 0o10), nzTpIcepk0o8(chr(230 - 182) + chr(1386 - 1275) + chr(0b101101 + 0o5) + '\066' + chr(0b110000), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(491 - 440) + chr(0b10110 + 0o33) + '\x33', 29424 - 29416), nzTpIcepk0o8(chr(231 - 183) + chr(0b1101111) + '\063' + chr(0b10011 + 0o36), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10001 + 0o42) + chr(1936 - 1888) + '\062', 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(169 - 119) + chr(0b11111 + 0o27) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b110110), 15911 - 15903), nzTpIcepk0o8('\x30' + chr(0b1011111 + 0o20) + chr(0b101 + 0o56) + '\x32' + chr(0b1111 + 0o46), 64793 - 64785), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\063' + chr(0b100 + 0o61), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + '\x35' + chr(0b10001 + 0o37), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd7'), chr(0b1100100) + chr(0b1100101) + chr(99) + chr(111) + chr(6762 - 6662) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b1011000 + 0o16) + '\x2d' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def aSy1JosTTs2H(fem5xMtGDpRf, MpLYV5cxpZrJ): fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eH\x81]Jn\xf0\xc4P\xc5\x1c>%\xe7'), '\x64' + chr(0b1010011 + 0o22) + chr(0b1100010 + 0o1) + chr(7459 - 7348) + chr(0b1000101 + 0o37) + chr(0b1100101))('\x75' + '\x74' + '\x66' + '\055' + chr(0b11001 + 0o37))] = [] for CdDbps1C4JkW in H4NoA26ON7iG(roI3spqORKae(MpLYV5cxpZrJ, roI3spqORKae(ES5oEprVxulp(b'\x92\xf3\x95\x9b'), chr(664 - 564) + chr(0b110 + 0o137) + chr(0b1100011) + chr(0b1101111) + chr(100) + '\x65')(chr(0b11101 + 0o130) + '\164' + chr(0b1100110) + '\055' + chr(0b111000)))()): if CdDbps1C4JkW not in H4NoA26ON7iG(roI3spqORKae(fem5xMtGDpRf, roI3spqORKae(ES5oEprVxulp(b'\x92\xf3\x95\x9b'), '\x64' + '\x65' + '\143' + '\x6f' + chr(4527 - 4427) + '\145')('\165' + chr(10841 - 10725) + chr(0b1100110) + chr(0b101101) + chr(56)))()): continue if MpLYV5cxpZrJ[CdDbps1C4JkW][roI3spqORKae(ES5oEprVxulp(b'\x8f\xf7\x80\x9d5'), '\144' + chr(0b11101 + 0o110) + '\x63' + chr(1072 - 961) + chr(0b111111 + 0o45) + chr(0b1100101))(chr(10665 - 10548) + '\x74' + chr(102) + chr(0b101101) + chr(0b111000))] == -nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(49) + '\x37' + chr(809 - 757) + chr(0b110100 + 0o3), 0b1000): continue if MpLYV5cxpZrJ[CdDbps1C4JkW][roI3spqORKae(ES5oEprVxulp(b'\x9a\xf7\x98\x8d7\xc7\xc2\x9e'), chr(0b1011100 + 0o10) + '\145' + '\x63' + chr(2189 - 2078) + '\144' + chr(0b110110 + 0o57))(chr(117) + chr(116) + chr(5666 - 5564) + chr(0b101101) + chr(2182 - 2126))] != roI3spqORKae(ES5oEprVxulp(b'\xb0\xd3\xc1\xbb\x00\xed\xf3'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(6394 - 6294) + chr(0b101101 + 0o70))('\165' + chr(0b100010 + 0o122) + chr(0b1011010 + 0o14) + chr(0b1000 + 0o45) + '\x38'): continue Mw3MHkx5sEMC = MpLYV5cxpZrJ[CdDbps1C4JkW][roI3spqORKae(ES5oEprVxulp(b'\x8f\xf7\x80\x9d5'), '\144' + chr(101) + '\x63' + chr(0b1101111) + '\x64' + chr(6639 - 6538))(chr(10800 - 10683) + chr(116) + chr(102) + chr(0b100011 + 0o12) + chr(0b100101 + 0o23))] if CdDbps1C4JkW == roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8e]\x83UR'), chr(0b1010001 + 0o23) + chr(101) + chr(3319 - 3220) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\x74' + chr(102) + '\x2d' + chr(56)): if fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8e]\x83UR'), chr(0b1010111 + 0o15) + chr(0b1100101) + chr(0b1010110 + 0o15) + '\x6f' + '\144' + '\x65')('\165' + '\164' + '\146' + chr(0b100100 + 0o11) + '\070')] in [roI3spqORKae(ES5oEprVxulp(b'\xbf\xf7\x85\x84'), '\144' + chr(101) + '\143' + '\x6f' + chr(100) + chr(7355 - 7254))(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(2008 - 1952)), roI3spqORKae(ES5oEprVxulp(b'\x9b'), chr(1386 - 1286) + chr(2797 - 2696) + '\x63' + '\x6f' + chr(100) + chr(3876 - 3775))('\x75' + chr(0b1101100 + 0o10) + chr(2791 - 2689) + '\x2d' + '\x38'), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(0b111101 + 0o62) + chr(48), ord("\x08")), roI3spqORKae(ES5oEprVxulp(b'\xc9'), chr(343 - 243) + chr(4016 - 3915) + chr(0b1100011) + chr(2807 - 2696) + '\144' + chr(7122 - 7021))(chr(8031 - 7914) + '\x74' + chr(0b1100110) + chr(0b100010 + 0o13) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xbf\xd7\xa0\xbb\x15'), '\144' + chr(0b1100101) + chr(99) + chr(3678 - 3567) + chr(0b111100 + 0o50) + '\145')(chr(0b1110101) + chr(0b100001 + 0o123) + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xbf\xf7\x80\x9b5'), chr(3967 - 3867) + '\145' + '\143' + '\x6f' + chr(0b1100100 + 0o0) + chr(5270 - 5169))(chr(0b1110101) + '\164' + chr(0b11101 + 0o111) + chr(508 - 463) + chr(56)), nzTpIcepk0o8('\060' + '\157' + '\060', 8), roI3spqORKae(ES5oEprVxulp(b'\x9f'), chr(100) + '\x65' + chr(4154 - 4055) + chr(0b1101001 + 0o6) + chr(0b1100100) + chr(101))(chr(0b1010011 + 0o42) + chr(116) + chr(102) + chr(1516 - 1471) + '\070')]: roI3spqORKae(fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eH\x81]Jn\xf0\xc4P\xc5\x1c>%\xe7'), chr(0b1011001 + 0o13) + '\x65' + chr(0b110 + 0o135) + chr(0b1101111) + chr(3573 - 3473) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b10101 + 0o30) + chr(0b101100 + 0o14))], roI3spqORKae(ES5oEprVxulp(b'\xb1\xc2\xbf\xdc(\xcf\xf7\x88\xbbA\xb5\x01'), '\144' + '\x65' + chr(5351 - 5252) + '\x6f' + '\x64' + chr(4090 - 3989))('\x75' + chr(0b1100000 + 0o24) + '\x66' + chr(1245 - 1200) + chr(0b1110 + 0o52)))(roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8e]\x83UR'), chr(100) + chr(0b1100101) + chr(99) + '\157' + chr(0b1011011 + 0o11) + chr(101))(chr(117) + '\164' + chr(102) + chr(45) + chr(0b111000))) elif CdDbps1C4JkW == roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eE'), chr(0b1100100) + chr(9255 - 9154) + chr(99) + chr(658 - 547) + chr(0b101011 + 0o71) + '\145')('\x75' + '\x74' + '\146' + chr(1735 - 1690) + chr(2397 - 2341)) or CdDbps1C4JkW == roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eE\xbfDTX\xfe\xd3'), '\x64' + chr(0b101100 + 0o71) + '\x63' + chr(111) + '\144' + '\145')(chr(13648 - 13531) + chr(116) + chr(102) + chr(0b101101) + '\x38'): if zQBGwUT7UU8L(fem5xMtGDpRf[CdDbps1C4JkW]) > Mw3MHkx5sEMC: roI3spqORKae(fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eH\x81]Jn\xf0\xc4P\xc5\x1c>%\xe7'), chr(0b1001101 + 0o27) + chr(0b11 + 0o142) + chr(0b1001 + 0o132) + '\157' + chr(0b1100100) + '\145')(chr(0b101000 + 0o115) + chr(0b1110100) + chr(102) + '\x2d' + chr(0b10110 + 0o42))], roI3spqORKae(ES5oEprVxulp(b'\xb1\xc2\xbf\xdc(\xcf\xf7\x88\xbbA\xb5\x01'), chr(0b1100100) + chr(9200 - 9099) + chr(99) + '\x6f' + chr(2690 - 2590) + chr(6824 - 6723))('\x75' + chr(0b1110100) + chr(3181 - 3079) + '\055' + chr(56)))(CdDbps1C4JkW) elif MpLYV5cxpZrJ[CdDbps1C4JkW][roI3spqORKae(ES5oEprVxulp(b'\x8d\xfe\x9e\x8d#\xc0\xdf\x8b\xb5q\x94MVT'), chr(8946 - 8846) + chr(0b1101 + 0o130) + chr(8703 - 8604) + '\x6f' + chr(0b1100100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + chr(1937 - 1881))] == roI3spqORKae(ES5oEprVxulp(b'\x91\xff\x8b\x80'), '\144' + '\145' + '\x63' + chr(0b1 + 0o156) + '\x64' + '\x65')('\x75' + '\x74' + '\146' + chr(0b101101) + '\x38'): if fem5xMtGDpRf[CdDbps1C4JkW] > Mw3MHkx5sEMC: roI3spqORKae(fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eH\x81]Jn\xf0\xc4P\xc5\x1c>%\xe7'), chr(0b1100100) + chr(0b111110 + 0o47) + chr(0b1 + 0o142) + chr(2000 - 1889) + chr(9408 - 9308) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(8354 - 8252) + '\055' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xb1\xc2\xbf\xdc(\xcf\xf7\x88\xbbA\xb5\x01'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\x64' + chr(2243 - 2142))('\x75' + chr(0b1001 + 0o153) + chr(0b1100110) + chr(422 - 377) + chr(2556 - 2500)))(CdDbps1C4JkW) elif MpLYV5cxpZrJ[CdDbps1C4JkW][roI3spqORKae(ES5oEprVxulp(b'\x8d\xfe\x9e\x8d#\xc0\xdf\x8b\xb5q\x94MVT'), chr(100) + chr(0b1100101) + '\143' + chr(0b1010001 + 0o36) + chr(0b1001010 + 0o32) + '\x65')(chr(117) + chr(11552 - 11436) + '\146' + chr(295 - 250) + chr(0b110110 + 0o2))] == roI3spqORKae(ES5oEprVxulp(b'\x95\xf9\x9b'), chr(0b100000 + 0o104) + chr(0b1010110 + 0o17) + chr(9716 - 9617) + '\x6f' + chr(4277 - 4177) + chr(1951 - 1850))('\165' + chr(0b1110100) + chr(102) + '\055' + '\x38'): if fem5xMtGDpRf[CdDbps1C4JkW] < Mw3MHkx5sEMC: roI3spqORKae(fem5xMtGDpRf[roI3spqORKae(ES5oEprVxulp(b'\x8a\xe6\x89\x8b9\xc5\xd5\x89\x8eH\x81]Jn\xf0\xc4P\xc5\x1c>%\xe7'), '\x64' + chr(0b1100101) + chr(1596 - 1497) + chr(111) + '\x64' + '\145')('\x75' + chr(0b1110100) + chr(0b1100110) + chr(1321 - 1276) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'\xb1\xc2\xbf\xdc(\xcf\xf7\x88\xbbA\xb5\x01'), chr(100) + chr(3286 - 3185) + chr(0b10011 + 0o120) + chr(0b1101111) + chr(0b1100100) + chr(2087 - 1986))(chr(11369 - 11252) + '\164' + '\146' + '\x2d' + '\070'))(CdDbps1C4JkW) return fem5xMtGDpRf
PmagPy/PmagPy
programs/dia_vgp.py
main
def main(): """ NAME dia_vgp.py DESCRIPTION converts declination inclination alpha95 to virtual geomagnetic pole, dp and dm SYNTAX dia_vgp.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: D I A95 SLAT SLON where: D: declination I: inclination A95: alpha_95 SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT PLON PLAT DP DM where: PLAT: pole latitude PLON: pole longitude (positive east) DP: 95% confidence angle in parallel DM: 95% confidence angle in meridian """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: # if one is -i while 1: try: ans=input("Input Declination: <cntrl-D to quit> ") Dec=float(ans) # assign input to Dec, after conversion to floating point ans=input("Input Inclination: ") Inc =float(ans) ans=input("Input Alpha 95: ") a95 =float(ans) ans=input("Input Site Latitude: ") slat =float(ans) ans=input("Input Site Longitude: ") slong =float(ans) spitout(Dec,Inc,a95,slat,slong) # call dia_vgp function from pmag module print('%7.1f %7.1f %7.1f %7.1f'%(plong,plat,dp,dm)) # print out returned stuff except: print("\n Good-bye\n") sys.exit() elif '-f' in sys.argv: # manual input of file name ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') inlist = [] for line in f.readlines(): inlist.append([]) # loop over the elements, split by whitespace for el in line.split(): inlist[-1].append(float(el)) spitout(inlist) else: input = sys.stdin.readlines() # read from standard input inlist = [] for line in input: # read in the data (as string variable), line by line inlist.append([]) # loop over the elements, split by whitespace for el in line.split(): inlist[-1].append(float(el)) spitout(inlist)
python
def main(): """ NAME dia_vgp.py DESCRIPTION converts declination inclination alpha95 to virtual geomagnetic pole, dp and dm SYNTAX dia_vgp.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: D I A95 SLAT SLON where: D: declination I: inclination A95: alpha_95 SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT PLON PLAT DP DM where: PLAT: pole latitude PLON: pole longitude (positive east) DP: 95% confidence angle in parallel DM: 95% confidence angle in meridian """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: # if one is -i while 1: try: ans=input("Input Declination: <cntrl-D to quit> ") Dec=float(ans) # assign input to Dec, after conversion to floating point ans=input("Input Inclination: ") Inc =float(ans) ans=input("Input Alpha 95: ") a95 =float(ans) ans=input("Input Site Latitude: ") slat =float(ans) ans=input("Input Site Longitude: ") slong =float(ans) spitout(Dec,Inc,a95,slat,slong) # call dia_vgp function from pmag module print('%7.1f %7.1f %7.1f %7.1f'%(plong,plat,dp,dm)) # print out returned stuff except: print("\n Good-bye\n") sys.exit() elif '-f' in sys.argv: # manual input of file name ind=sys.argv.index('-f') file=sys.argv[ind+1] f=open(file,'r') inlist = [] for line in f.readlines(): inlist.append([]) # loop over the elements, split by whitespace for el in line.split(): inlist[-1].append(float(el)) spitout(inlist) else: input = sys.stdin.readlines() # read from standard input inlist = [] for line in input: # read in the data (as string variable), line by line inlist.append([]) # loop over the elements, split by whitespace for el in line.split(): inlist[-1].append(float(el)) spitout(inlist)
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-i'", "in", "sys", ".", "argv", ":", "# if one is -i", "while", "1", ":", "try", ":", "ans", "=", "input", "(", "\"Input Declination: <cntrl-D to quit> \"", ")", "Dec", "=", "float", "(", "ans", ")", "# assign input to Dec, after conversion to floating point", "ans", "=", "input", "(", "\"Input Inclination: \"", ")", "Inc", "=", "float", "(", "ans", ")", "ans", "=", "input", "(", "\"Input Alpha 95: \"", ")", "a95", "=", "float", "(", "ans", ")", "ans", "=", "input", "(", "\"Input Site Latitude: \"", ")", "slat", "=", "float", "(", "ans", ")", "ans", "=", "input", "(", "\"Input Site Longitude: \"", ")", "slong", "=", "float", "(", "ans", ")", "spitout", "(", "Dec", ",", "Inc", ",", "a95", ",", "slat", ",", "slong", ")", "# call dia_vgp function from pmag module", "print", "(", "'%7.1f %7.1f %7.1f %7.1f'", "%", "(", "plong", ",", "plat", ",", "dp", ",", "dm", ")", ")", "# print out returned stuff", "except", ":", "print", "(", "\"\\n Good-bye\\n\"", ")", "sys", ".", "exit", "(", ")", "elif", "'-f'", "in", "sys", ".", "argv", ":", "# manual input of file name", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "f", "=", "open", "(", "file", ",", "'r'", ")", "inlist", "=", "[", "]", "for", "line", "in", "f", ".", "readlines", "(", ")", ":", "inlist", ".", "append", "(", "[", "]", ")", "# loop over the elements, split by whitespace", "for", "el", "in", "line", ".", "split", "(", ")", ":", "inlist", "[", "-", "1", "]", ".", "append", "(", "float", "(", "el", ")", ")", "spitout", "(", "inlist", ")", "else", ":", "input", "=", "sys", ".", "stdin", ".", "readlines", "(", ")", "# read from standard input", "inlist", "=", "[", "]", "for", "line", "in", "input", ":", "# read in the data (as string variable), line by line", "inlist", ".", "append", "(", "[", "]", ")", "# loop over the elements, split by whitespace", "for", "el", "in", "line", ".", "split", "(", ")", ":", "inlist", "[", "-", "1", "]", ".", "append", "(", "float", "(", "el", ")", ")", "spitout", "(", "inlist", ")" ]
NAME dia_vgp.py DESCRIPTION converts declination inclination alpha95 to virtual geomagnetic pole, dp and dm SYNTAX dia_vgp.py [-h] [-i] [-f FILE] [< filename] OPTIONS -h prints help message and quits -i interactive data entry -f FILE to specify file name on the command line INPUT for file entry: D I A95 SLAT SLON where: D: declination I: inclination A95: alpha_95 SLAT: site latitude (positive north) SLON: site longitude (positive east) OUTPUT PLON PLAT DP DM where: PLAT: pole latitude PLON: pole longitude (positive east) DP: 95% confidence angle in parallel DM: 95% confidence angle in meridian
[ "NAME", "dia_vgp", ".", "py", "DESCRIPTION", "converts", "declination", "inclination", "alpha95", "to", "virtual", "geomagnetic", "pole", "dp", "and", "dm", "SYNTAX", "dia_vgp", ".", "py", "[", "-", "h", "]", "[", "-", "i", "]", "[", "-", "f", "FILE", "]", "[", "<", "filename", "]", "OPTIONS", "-", "h", "prints", "help", "message", "and", "quits", "-", "i", "interactive", "data", "entry", "-", "f", "FILE", "to", "specify", "file", "name", "on", "the", "command", "line", "INPUT", "for", "file", "entry", ":", "D", "I", "A95", "SLAT", "SLON", "where", ":", "D", ":", "declination", "I", ":", "inclination", "A95", ":", "alpha_95", "SLAT", ":", "site", "latitude", "(", "positive", "north", ")", "SLON", ":", "site", "longitude", "(", "positive", "east", ")", "OUTPUT", "PLON", "PLAT", "DP", "DM", "where", ":", "PLAT", ":", "pole", "latitude", "PLON", ":", "pole", "longitude", "(", "positive", "east", ")", "DP", ":", "95%", "confidence", "angle", "in", "parallel", "DM", ":", "95%", "confidence", "angle", "in", "meridian" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/dia_vgp.py#L27-L102
train
main function for pmag dia_vgp. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\067' + chr(51), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1464 - 1415) + '\x32' + chr(51), 18179 - 18171), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(48) + chr(50), 11562 - 11554), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1607 - 1557) + chr(1864 - 1809) + chr(49), 0o10), nzTpIcepk0o8(chr(1436 - 1388) + chr(111) + chr(2293 - 2242) + chr(55) + '\062', 0o10), nzTpIcepk0o8(chr(2055 - 2007) + chr(565 - 454) + '\063' + chr(53) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1530 - 1482) + chr(9636 - 9525) + '\061' + chr(2350 - 2301) + chr(158 - 108), ord("\x08")), nzTpIcepk0o8(chr(903 - 855) + '\x6f' + '\062' + '\x32' + chr(0b11010 + 0o33), 61217 - 61209), nzTpIcepk0o8('\060' + chr(111) + '\x36' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(1150 - 1102) + chr(3862 - 3751) + '\x33' + chr(55) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(0b11 + 0o61) + chr(53), 30152 - 30144), nzTpIcepk0o8('\x30' + chr(0b111011 + 0o64) + chr(0b110010) + chr(367 - 313) + chr(1430 - 1382), 0b1000), nzTpIcepk0o8(chr(1931 - 1883) + '\x6f' + chr(984 - 933) + chr(0b1110 + 0o43), 6337 - 6329), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\157' + '\066' + '\066', 46648 - 46640), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + chr(0b110010) + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + chr(51) + chr(2469 - 2419) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(2096 - 2046) + chr(0b110110), 38408 - 38400), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(48) + chr(1806 - 1751), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1001001 + 0o46) + chr(1144 - 1092) + chr(0b11101 + 0o24), 34603 - 34595), nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(11044 - 10933) + chr(0b10 + 0o60) + chr(0b110010), 17107 - 17099), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(0b1010 + 0o46) + chr(214 - 160), 39767 - 39759), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + '\061' + chr(1637 - 1589) + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\064' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b10110 + 0o33) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(0b110001) + chr(51) + '\062', 37320 - 37312), nzTpIcepk0o8('\x30' + chr(7325 - 7214) + '\067', ord("\x08")), nzTpIcepk0o8(chr(313 - 265) + chr(0b1101111) + chr(0b10000 + 0o42) + '\061' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(0b101011 + 0o10) + chr(1991 - 1937) + '\062', 35463 - 35455), nzTpIcepk0o8('\x30' + '\x6f' + chr(369 - 320) + chr(0b100110 + 0o20) + chr(0b110001 + 0o2), 41149 - 41141), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + '\062' + '\060' + '\063', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(740 - 690) + chr(55) + '\x31', 8), nzTpIcepk0o8('\060' + chr(111) + chr(2294 - 2244) + chr(376 - 324) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1010001 + 0o36) + chr(50) + chr(278 - 223) + chr(54), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\x31' + '\065' + chr(682 - 634), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + '\x32' + '\066', 8), nzTpIcepk0o8(chr(1915 - 1867) + chr(0b110011 + 0o74) + chr(0b110001) + '\x35' + chr(2614 - 2559), 41070 - 41062), nzTpIcepk0o8('\060' + chr(8263 - 8152) + chr(1946 - 1896) + '\064' + chr(0b110 + 0o53), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(11020 - 10909) + chr(0b11101 + 0o30) + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x95'), chr(0b1100100) + chr(3532 - 3431) + '\143' + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1100011 + 0o21) + '\146' + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): if roI3spqORKae(ES5oEprVxulp(b'\x96;'), '\x64' + '\145' + chr(0b1100011) + chr(3152 - 3041) + chr(0b1100100) + chr(0b111010 + 0o53))(chr(117) + chr(0b1010100 + 0o40) + '\x66' + chr(1295 - 1250) + chr(2142 - 2086)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xda9\xcb\xfd\xad\x91\x12\xd8r\x9cV\xd2'), '\x64' + '\x65' + '\x63' + chr(0b1101111) + '\x64' + chr(0b11100 + 0o111))(chr(10666 - 10549) + chr(116) + chr(102) + chr(560 - 515) + '\070')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xc25\xc7\xdc\x8b\xb9#\xc0_\x8c2\xe4'), chr(7395 - 7295) + '\145' + chr(6414 - 6315) + chr(0b1101111) + chr(0b111001 + 0o53) + chr(0b100001 + 0o104))(chr(117) + chr(116) + chr(0b1100110) + chr(45) + '\x38'))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xe1&\xf0\xd3\x99\xbd\x06\xa4C\x8e$\x88'), '\144' + chr(101) + '\143' + '\157' + chr(100) + '\145')('\x75' + chr(0b1011110 + 0o26) + chr(0b1010001 + 0o25) + chr(0b101101) + chr(0b111000)))() if roI3spqORKae(ES5oEprVxulp(b'\x96:'), chr(0b1010110 + 0o16) + '\145' + '\x63' + chr(111) + '\x64' + chr(9999 - 9898))(chr(0b1010101 + 0o40) + chr(116) + chr(102) + chr(0b101101) + chr(971 - 915)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xda9\xcb\xfd\xad\x91\x12\xd8r\x9cV\xd2'), chr(0b1100100) + '\145' + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b1011100 + 0o30) + chr(102) + chr(386 - 341) + '\x38')): while nzTpIcepk0o8('\x30' + chr(0b11 + 0o154) + chr(0b110001), ord("\x08")): try: CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xf2=\xf2\xcc\x8e\xc8\x0e\xf0S\x91\x0c\xdexB}\xbc8}"\x1dl|\xb21Ic\x1e\'\xff\x9dS{\xf6\xd0\xd0\x80Hv'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(4944 - 4843))(chr(0b1000011 + 0o62) + '\164' + chr(0b1100110) + chr(45) + chr(56))) Qbsd0S23Doeg = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xf2=\xf2\xcc\x8e\xc8\x03\xfbS\x91\x0c\xdexB}\xbc8}"\x01'), chr(100) + '\145' + chr(0b111001 + 0o52) + chr(8526 - 8415) + '\x64' + '\x65')(chr(117) + chr(0b1011100 + 0o30) + chr(0b10000 + 0o126) + '\055' + chr(2273 - 2217))) P1EuQhC9YRxo = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xf2=\xf2\xcc\x8e\xc8\x0b\xf9@\x95\x04\x90 \x03.\xf3v'), chr(0b1011101 + 0o7) + '\x65' + chr(99) + chr(111) + '\144' + chr(0b101110 + 0o67))(chr(13644 - 13527) + chr(116) + chr(6495 - 6393) + chr(0b100001 + 0o14) + '\070')) Ix8Y40EarIbj = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xf2=\xf2\xcc\x8e\xc8\x19\xfcD\x98E\xfcxB}\xa7##g\x1b/2'), chr(0b1010011 + 0o21) + chr(0b1000010 + 0o43) + chr(0b110010 + 0o61) + '\157' + chr(2771 - 2671) + '\145')(chr(0b1110101) + chr(0b100100 + 0o120) + '\x66' + chr(45) + chr(1942 - 1886))) dcbj7KRNqoJt = jLW6pRf2DSRk(CMfsDQitQrpd) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xf2=\xf2\xcc\x8e\xc8\x19\xfcD\x98E\xfcvXs\xba"2fD52\xe6'), '\x64' + chr(0b1100101) + chr(3309 - 3210) + chr(0b1101111) + '\x64' + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(116) + '\146' + '\x2d' + '\070')) lbeAHluXJ5cP = jLW6pRf2DSRk(CMfsDQitQrpd) MfBiPDpMEPLG(Qbsd0S23Doeg, P1EuQhC9YRxo, Ix8Y40EarIbj, dcbj7KRNqoJt, lbeAHluXJ5cP) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\x9ed\xac\x88\x9c\xc8o\xa2\x1e\xcc\x03\x90<\x01:\xe20g'\x16!#\xa0"), chr(100) + chr(101) + chr(0b1001011 + 0o30) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(7314 - 7212) + chr(0b101101) + chr(0b111000)) % (eqIkPVID7hiI, yOX81cxVSDwr, El4w8QMGwyUW, _zcxIoncSRlL)) except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xb1s\xc5\xd6\x95\x8cg\xf7I\x98o'), '\144' + chr(101) + chr(3807 - 3708) + '\157' + '\144' + chr(101))('\165' + chr(0b1100100 + 0o20) + chr(3834 - 3732) + '\x2d' + '\070')) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xe1&\xf0\xd3\x99\xbd\x06\xa4C\x8e$\x88'), '\x64' + chr(0b1100101) + chr(9709 - 9610) + '\x6f' + '\144' + chr(7078 - 6977))(chr(117) + chr(116) + '\146' + chr(45) + '\x38'))() elif roI3spqORKae(ES5oEprVxulp(b'\x965'), '\144' + chr(2536 - 2435) + '\x63' + chr(0b1011010 + 0o25) + chr(100) + '\145')(chr(117) + chr(116) + chr(0b11011 + 0o113) + chr(272 - 227) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xda9\xcb\xfd\xad\x91\x12\xd8r\x9cV\xd2'), chr(100) + '\x65' + chr(0b10 + 0o141) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(10582 - 10465) + '\164' + chr(0b10101 + 0o121) + chr(0b10110 + 0o27) + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\x965'), '\x64' + '\x65' + chr(9434 - 9335) + chr(0b1101111) + chr(0b100000 + 0o104) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(45) + chr(56))) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(2196 - 2148) + '\x6f' + chr(112 - 63), 8)] _R8IKF5IwAfX = DnU3Rq9N5ala(GtsVUCYulgYX, roI3spqORKae(ES5oEprVxulp(b'\xc9'), chr(0b1100100) + '\145' + chr(0b111011 + 0o50) + chr(111) + chr(5570 - 5470) + chr(810 - 709))(chr(117) + '\164' + chr(5204 - 5102) + '\x2d' + '\x38')) Y1UipRJoTixF = [] for ffiOpFBWGmZU in roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xef\x18\xef\xd5\x97\xbd \xdba\xc9\x01\xe9'), chr(100) + '\x65' + chr(0b1000110 + 0o35) + chr(0b1001001 + 0o46) + '\x64' + chr(0b1100 + 0o131))('\165' + '\164' + chr(4743 - 4641) + chr(82 - 37) + '\x38'))(): roI3spqORKae(Y1UipRJoTixF, roI3spqORKae(ES5oEprVxulp(b'\xf3\x07\xd1\x8d\x82\x8f\r\xfaZ\x920\x85'), '\144' + chr(0b1100101) + chr(0b110010 + 0o61) + chr(0b1011010 + 0o25) + chr(0b1100100) + chr(8371 - 8270))('\165' + chr(11367 - 11251) + chr(1484 - 1382) + chr(45) + '\070'))([]) for poiEiq5MsMMo in roI3spqORKae(ffiOpFBWGmZU, roI3spqORKae(ES5oEprVxulp(b'\xf75\xd0\xcb\xab\xa72\xe0t\x8b\x0b\xf3'), '\144' + '\x65' + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(0b110110 + 0o76) + chr(6743 - 6641) + chr(790 - 745) + '\070'))(): roI3spqORKae(Y1UipRJoTixF[-nzTpIcepk0o8('\060' + chr(0b100101 + 0o112) + chr(0b101010 + 0o7), 8)], roI3spqORKae(ES5oEprVxulp(b'\xf3\x07\xd1\x8d\x82\x8f\r\xfaZ\x920\x85'), '\x64' + chr(9666 - 9565) + chr(0b1000111 + 0o34) + '\x6f' + '\x64' + '\x65')(chr(0b1110101) + chr(8582 - 8466) + '\146' + '\x2d' + chr(0b111000)))(jLW6pRf2DSRk(poiEiq5MsMMo)) MfBiPDpMEPLG(Y1UipRJoTixF) else: QnTXOd5N96r1 = bpyfpu4kTbwL.stdin.TKmlmUjNQ4dY() Y1UipRJoTixF = [] for ffiOpFBWGmZU in QnTXOd5N96r1: roI3spqORKae(Y1UipRJoTixF, roI3spqORKae(ES5oEprVxulp(b'\xf3\x07\xd1\x8d\x82\x8f\r\xfaZ\x920\x85'), chr(0b110100 + 0o60) + '\x65' + chr(0b1100 + 0o127) + chr(0b101010 + 0o105) + chr(8054 - 7954) + chr(101))('\x75' + chr(116) + '\x66' + '\055' + chr(56)))([]) for poiEiq5MsMMo in roI3spqORKae(ffiOpFBWGmZU, roI3spqORKae(ES5oEprVxulp(b'\xf75\xd0\xcb\xab\xa72\xe0t\x8b\x0b\xf3'), chr(100) + chr(0b1100101) + '\143' + chr(0b1000010 + 0o55) + '\x64' + chr(0b1010110 + 0o17))(chr(0b10100 + 0o141) + '\164' + '\x66' + chr(0b101101) + '\070'))(): roI3spqORKae(Y1UipRJoTixF[-nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + '\061', 8)], roI3spqORKae(ES5oEprVxulp(b'\xf3\x07\xd1\x8d\x82\x8f\r\xfaZ\x920\x85'), chr(0b10001 + 0o123) + '\x65' + chr(0b111100 + 0o47) + '\157' + chr(0b100100 + 0o100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(0b101101) + chr(275 - 219)))(jLW6pRf2DSRk(poiEiq5MsMMo)) MfBiPDpMEPLG(Y1UipRJoTixF)
PmagPy/PmagPy
programs/plot_2cdfs.py
main
def main(): """ NAME plot_2cdfs.py DESCRIPTION makes plots of cdfs of data in input file SYNTAX plot_2cdfs.py [-h][command line options] OPTIONS -h prints help message and quits -f FILE1 FILE2 -t TITLE -fmt [svg,eps,png,pdf,jpg..] specify format of output figure, default is svg """ fmt='svg' title="" if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] X=numpy.loadtxt(file) file=sys.argv[ind+2] X2=numpy.loadtxt(file) # else: # X=numpy.loadtxt(sys.stdin,dtype=numpy.float) else: print('-f option required') print(main.__doc__) sys.exit() if '-fmt' in sys.argv: ind=sys.argv.index('-fmt') fmt=sys.argv[ind+1] if '-t' in sys.argv: ind=sys.argv.index('-t') title=sys.argv[ind+1] CDF={'X':1} pmagplotlib.plot_init(CDF['X'],5,5) pmagplotlib.plot_cdf(CDF['X'],X,'','r','') pmagplotlib.plot_cdf(CDF['X'],X2,title,'b','') D,p=scipy.stats.ks_2samp(X,X2) if p>=.05: print(D,p,' not rejected at 95%') else: print(D,p,' rejected at 95%') pmagplotlib.draw_figs(CDF) ans= input('S[a]ve plot, <Return> to quit ') if ans=='a': files={'X':'CDF_.'+fmt} pmagplotlib.save_plots(CDF,files)
python
def main(): """ NAME plot_2cdfs.py DESCRIPTION makes plots of cdfs of data in input file SYNTAX plot_2cdfs.py [-h][command line options] OPTIONS -h prints help message and quits -f FILE1 FILE2 -t TITLE -fmt [svg,eps,png,pdf,jpg..] specify format of output figure, default is svg """ fmt='svg' title="" if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-f' in sys.argv: ind=sys.argv.index('-f') file=sys.argv[ind+1] X=numpy.loadtxt(file) file=sys.argv[ind+2] X2=numpy.loadtxt(file) # else: # X=numpy.loadtxt(sys.stdin,dtype=numpy.float) else: print('-f option required') print(main.__doc__) sys.exit() if '-fmt' in sys.argv: ind=sys.argv.index('-fmt') fmt=sys.argv[ind+1] if '-t' in sys.argv: ind=sys.argv.index('-t') title=sys.argv[ind+1] CDF={'X':1} pmagplotlib.plot_init(CDF['X'],5,5) pmagplotlib.plot_cdf(CDF['X'],X,'','r','') pmagplotlib.plot_cdf(CDF['X'],X2,title,'b','') D,p=scipy.stats.ks_2samp(X,X2) if p>=.05: print(D,p,' not rejected at 95%') else: print(D,p,' rejected at 95%') pmagplotlib.draw_figs(CDF) ans= input('S[a]ve plot, <Return> to quit ') if ans=='a': files={'X':'CDF_.'+fmt} pmagplotlib.save_plots(CDF,files)
[ "def", "main", "(", ")", ":", "fmt", "=", "'svg'", "title", "=", "\"\"", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "X", "=", "numpy", ".", "loadtxt", "(", "file", ")", "file", "=", "sys", ".", "argv", "[", "ind", "+", "2", "]", "X2", "=", "numpy", ".", "loadtxt", "(", "file", ")", "# else:", "# X=numpy.loadtxt(sys.stdin,dtype=numpy.float)", "else", ":", "print", "(", "'-f option required'", ")", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-fmt'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-fmt'", ")", "fmt", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-t'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-t'", ")", "title", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "CDF", "=", "{", "'X'", ":", "1", "}", "pmagplotlib", ".", "plot_init", "(", "CDF", "[", "'X'", "]", ",", "5", ",", "5", ")", "pmagplotlib", ".", "plot_cdf", "(", "CDF", "[", "'X'", "]", ",", "X", ",", "''", ",", "'r'", ",", "''", ")", "pmagplotlib", ".", "plot_cdf", "(", "CDF", "[", "'X'", "]", ",", "X2", ",", "title", ",", "'b'", ",", "''", ")", "D", ",", "p", "=", "scipy", ".", "stats", ".", "ks_2samp", "(", "X", ",", "X2", ")", "if", "p", ">=", ".05", ":", "print", "(", "D", ",", "p", ",", "' not rejected at 95%'", ")", "else", ":", "print", "(", "D", ",", "p", ",", "' rejected at 95%'", ")", "pmagplotlib", ".", "draw_figs", "(", "CDF", ")", "ans", "=", "input", "(", "'S[a]ve plot, <Return> to quit '", ")", "if", "ans", "==", "'a'", ":", "files", "=", "{", "'X'", ":", "'CDF_.'", "+", "fmt", "}", "pmagplotlib", ".", "save_plots", "(", "CDF", ",", "files", ")" ]
NAME plot_2cdfs.py DESCRIPTION makes plots of cdfs of data in input file SYNTAX plot_2cdfs.py [-h][command line options] OPTIONS -h prints help message and quits -f FILE1 FILE2 -t TITLE -fmt [svg,eps,png,pdf,jpg..] specify format of output figure, default is svg
[ "NAME", "plot_2cdfs", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/plot_2cdfs.py#L11-L65
train
NAME plot_2cdfs. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10111 + 0o31) + '\x6f' + chr(0b11 + 0o57) + chr(51) + '\064', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5923 - 5812) + chr(0b1 + 0o61) + '\x35' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1798 - 1750) + '\157' + '\x31' + chr(52) + chr(54), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\063' + chr(0b110 + 0o52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + chr(1356 - 1306) + chr(0b11100 + 0o32) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(4344 - 4233) + chr(0b110011) + '\x36' + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + '\x34' + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + chr(0b101110 + 0o4) + '\065' + chr(49), 0o10), nzTpIcepk0o8(chr(1305 - 1257) + chr(111) + '\x33' + chr(1607 - 1558) + chr(0b1001 + 0o47), 0o10), nzTpIcepk0o8(chr(463 - 415) + chr(111) + chr(445 - 394) + '\061', 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(8838 - 8727) + chr(0b110010) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(5440 - 5329) + chr(0b110010) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(51) + chr(0b110011) + chr(2362 - 2309), ord("\x08")), nzTpIcepk0o8(chr(570 - 522) + chr(111) + chr(51) + chr(0b110110) + '\x33', 18787 - 18779), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(470 - 418) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1278 - 1227) + chr(51) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + '\065' + chr(0b11010 + 0o33), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(53), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\157' + chr(0b11100 + 0o25) + chr(54) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(460 - 411) + '\x37' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100000 + 0o117) + chr(0b100101 + 0o17) + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(6940 - 6829) + chr(51) + chr(0b10000 + 0o42) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\x31' + chr(1664 - 1612), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(54) + chr(0b11101 + 0o23), 65251 - 65243), nzTpIcepk0o8(chr(1040 - 992) + chr(0b1101111) + '\x33' + '\063' + chr(426 - 375), 33065 - 33057), nzTpIcepk0o8('\x30' + chr(0b1100010 + 0o15) + chr(52) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(2062 - 2014) + chr(10224 - 10113) + '\x31' + chr(0b110101) + '\x33', 23315 - 23307), nzTpIcepk0o8('\x30' + chr(1855 - 1744) + chr(0b101010 + 0o7) + chr(52), 8), nzTpIcepk0o8('\060' + chr(6845 - 6734) + chr(51) + '\x30' + chr(1197 - 1149), 3852 - 3844), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(1212 - 1162) + '\064' + '\063', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10 + 0o61) + chr(2363 - 2312) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(1663 - 1611) + '\062', 17721 - 17713), nzTpIcepk0o8('\060' + chr(10917 - 10806) + chr(1318 - 1267) + chr(50) + chr(53), 27497 - 27489), nzTpIcepk0o8(chr(52 - 4) + '\x6f' + '\062' + chr(0b10010 + 0o36) + '\062', 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(1031 - 920) + '\061' + chr(0b110000), 29505 - 29497), nzTpIcepk0o8('\x30' + chr(7194 - 7083) + chr(0b110011) + chr(55) + chr(0b110 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(2249 - 2201) + chr(0b1101111) + chr(0b110011) + '\x34' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(650 - 602) + chr(0b1010001 + 0o36) + chr(0b110001) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(53) + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(51) + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1106 - 1058) + chr(0b1101111) + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb2'), chr(4924 - 4824) + '\x65' + chr(0b1100011) + chr(0b1101111 + 0o0) + chr(0b1011100 + 0o10) + chr(0b1100101))(chr(11167 - 11050) + chr(0b11011 + 0o131) + chr(0b1100110) + chr(1109 - 1064) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'\xef\xdd\x01'), '\x64' + chr(0b1001 + 0o134) + chr(99) + chr(0b1000010 + 0o55) + '\x64' + chr(101))(chr(117) + '\x74' + chr(102) + '\x2d' + chr(0b111000)) OO0tRW9aj_xh = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(101) + chr(0b1100011) + '\x6f' + '\x64' + chr(101))(chr(6002 - 5885) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(1859 - 1803)) if roI3spqORKae(ES5oEprVxulp(b'\xb1\xc3'), chr(100) + chr(2585 - 2484) + '\x63' + chr(9775 - 9664) + chr(0b110110 + 0o56) + chr(0b1011011 + 0o12))(chr(0b1010101 + 0o40) + chr(4606 - 4490) + chr(0b110 + 0o140) + chr(1173 - 1128) + chr(2721 - 2665)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xfd\xc1/\x9c\xe6\x8b\xbd\xe4\x8ax"q'), '\144' + chr(9158 - 9057) + chr(8290 - 8191) + chr(4693 - 4582) + '\x64' + '\145')(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(56))): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xe5\xcd#\xbd\xc0\xa3\x8c\xfc\xa7hFG'), chr(8811 - 8711) + chr(101) + chr(7916 - 7817) + '\157' + chr(0b1100100) + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xc6\xde\x14\xb2\xd2\xa7\xa9\x98\xbbjP+'), chr(0b1100100) + chr(711 - 610) + chr(2211 - 2112) + chr(0b111001 + 0o66) + '\x64' + chr(0b1100011 + 0o2))(chr(0b1001 + 0o154) + '\x74' + '\x66' + '\x2d' + chr(0b111 + 0o61)))() if roI3spqORKae(ES5oEprVxulp(b'\xb1\xcd'), '\x64' + chr(2800 - 2699) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + chr(101))('\165' + chr(0b11100 + 0o130) + chr(102) + chr(0b101101) + chr(0b111 + 0o61)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xfd\xc1/\x9c\xe6\x8b\xbd\xe4\x8ax"q'), '\x64' + '\145' + chr(5809 - 5710) + '\x6f' + '\x64' + '\x65')('\165' + chr(4381 - 4265) + chr(5730 - 5628) + '\x2d' + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xb1\xcd'), '\144' + '\145' + chr(99) + '\x6f' + chr(0b1100100) + chr(0b11011 + 0o112))(chr(117) + chr(116) + chr(0b101010 + 0o74) + chr(0b11010 + 0o23) + '\x38')) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + '\157' + '\061', 49666 - 49658)] mxhyDqTAMpMC = L6YB9g87uxKh.loadtxt(GtsVUCYulgYX) GtsVUCYulgYX = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50), 0o10)] ZR1p6dphXlR8 = L6YB9g87uxKh.loadtxt(GtsVUCYulgYX) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xb1\xcdF\xb7\xc1\x86\x8c\xc6\xa69cv\xac\x86\xcf\xab\x08i'), '\x64' + chr(2433 - 2332) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b10010 + 0o123))('\165' + '\x74' + '\x66' + chr(45) + '\x38')) v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\xe5\xcd#\xbd\xc0\xa3\x8c\xfc\xa7hFG'), '\x64' + '\x65' + '\143' + chr(111) + chr(2722 - 2622) + '\x65')('\x75' + '\164' + chr(7912 - 7810) + '\x2d' + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xc6\xde\x14\xb2\xd2\xa7\xa9\x98\xbbjP+'), chr(0b1100100) + '\x65' + chr(0b110001 + 0o62) + chr(111) + '\144' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(584 - 539) + chr(0b10000 + 0o50)))() if roI3spqORKae(ES5oEprVxulp(b'\xb1\xcd\x0b\xac'), chr(0b1010010 + 0o22) + chr(0b1001 + 0o134) + chr(0b10010 + 0o121) + chr(111) + '\x64' + chr(3879 - 3778))(chr(3392 - 3275) + chr(6721 - 6605) + chr(102) + chr(1213 - 1168) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xfd\xc1/\x9c\xe6\x8b\xbd\xe4\x8ax"q'), '\144' + chr(0b1000101 + 0o40) + '\x63' + chr(0b1101111) + '\144' + chr(0b111000 + 0o55))(chr(0b1010010 + 0o43) + chr(0b1110100) + chr(0b1100000 + 0o6) + chr(0b1100 + 0o41) + chr(0b10100 + 0o44))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xb1\xcd\x0b\xac'), chr(3898 - 3798) + chr(0b1100101) + '\143' + chr(111) + chr(0b100000 + 0o104) + '\x65')(chr(0b1000000 + 0o65) + chr(116) + '\146' + chr(45) + chr(0b11010 + 0o36))) JummcHpaNLEw = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31', 8)] if roI3spqORKae(ES5oEprVxulp(b'\xb1\xdf'), chr(100) + '\145' + chr(99) + '\157' + chr(5115 - 5015) + chr(101))('\x75' + chr(0b1110100 + 0o0) + '\x66' + chr(45) + chr(2604 - 2548)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xfd\xc1/\x9c\xe6\x8b\xbd\xe4\x8ax"q'), chr(0b10101 + 0o117) + chr(0b1011 + 0o132) + chr(0b110110 + 0o55) + '\x6f' + chr(0b1100100) + chr(101))(chr(117) + chr(116) + chr(0b1100000 + 0o6) + '\055' + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'\xb1\xdf'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(9353 - 9252))('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b111000))) OO0tRW9aj_xh = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + '\x6f' + '\x31', 8)] gVe3LxEGMJBn = {roI3spqORKae(ES5oEprVxulp(b'\xc4'), '\144' + '\x65' + chr(0b1100011) + chr(12042 - 11931) + chr(6717 - 6617) + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(0b101 + 0o50) + chr(0b111000)): nzTpIcepk0o8('\x30' + chr(9235 - 9124) + '\x31', 8)} roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\xec\xc7\t\xac\xee\x9b\x8b\xc0\xbc'), '\x64' + '\x65' + chr(4846 - 4747) + '\157' + chr(100) + chr(101))('\x75' + chr(116) + chr(102) + '\055' + '\070'))(gVe3LxEGMJBn[roI3spqORKae(ES5oEprVxulp(b'\xc4'), chr(100) + chr(0b1001010 + 0o33) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(117) + chr(0b1110100) + '\146' + chr(45) + '\070')], nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(0b10101 + 0o40), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11011 + 0o124) + '\065', 8)) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\xec\xc7\t\xac\xee\x91\x81\xcf'), '\144' + '\x65' + chr(0b1001111 + 0o24) + chr(0b1101111) + '\x64' + chr(1834 - 1733))(chr(117) + chr(116) + chr(4443 - 4341) + '\055' + '\x38'))(gVe3LxEGMJBn[roI3spqORKae(ES5oEprVxulp(b'\xc4'), '\x64' + chr(0b1100101) + chr(2332 - 2233) + '\x6f' + '\x64' + chr(5617 - 5516))(chr(8086 - 7969) + '\x74' + '\146' + chr(0b101101) + chr(778 - 722))], mxhyDqTAMpMC, roI3spqORKae(ES5oEprVxulp(b''), '\x64' + '\145' + '\x63' + chr(10909 - 10798) + chr(2704 - 2604) + chr(0b1000110 + 0o37))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xee'), chr(100) + '\x65' + chr(6321 - 6222) + '\x6f' + chr(0b1100100) + chr(2185 - 2084))(chr(0b1001 + 0o154) + '\164' + chr(0b100010 + 0o104) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1011011 + 0o11) + chr(101) + chr(0b1100011) + '\x6f' + '\144' + chr(6657 - 6556))('\x75' + '\164' + chr(102) + chr(0b101101) + '\070')) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\xec\xc7\t\xac\xee\x91\x81\xcf'), chr(8780 - 8680) + chr(0b11101 + 0o110) + chr(99) + chr(0b1101111) + chr(0b110 + 0o136) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\x2d' + chr(459 - 403)))(gVe3LxEGMJBn[roI3spqORKae(ES5oEprVxulp(b'\xc4'), chr(5527 - 5427) + chr(0b11010 + 0o113) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\x38')], ZR1p6dphXlR8, OO0tRW9aj_xh, roI3spqORKae(ES5oEprVxulp(b'\xfe'), chr(0b111000 + 0o54) + chr(0b101001 + 0o74) + chr(1347 - 1248) + chr(111) + chr(100) + '\145')(chr(4221 - 4104) + chr(0b1011 + 0o151) + '\146' + chr(1285 - 1240) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + chr(99) + chr(0b111000 + 0o67) + chr(0b1100100) + '\x65')('\x75' + chr(116) + '\146' + chr(45) + '\070')) (hOjrMKpaybfC, fSdw5wwLo9MO) = wnoNUOmKe_M_.stats.ks_2samp(mxhyDqTAMpMC, ZR1p6dphXlR8) if fSdw5wwLo9MO >= 0.05: v8jsMqaYV6U2(hOjrMKpaybfC, fSdw5wwLo9MO, roI3spqORKae(ES5oEprVxulp(b'\xbc\xc5\t\xac\x91\x80\x80\xc3\xadzev\xb9\xd3\xc7\xadM4D\\'), '\x64' + '\145' + chr(99) + '\x6f' + '\x64' + chr(0b110110 + 0o57))(chr(117) + '\164' + chr(3129 - 3027) + chr(0b100101 + 0o10) + '\x38')) else: v8jsMqaYV6U2(hOjrMKpaybfC, fSdw5wwLo9MO, roI3spqORKae(ES5oEprVxulp(b'\xbc\xd9\x03\xb2\xd4\x91\x91\xcc\xac9pg\xfd\xca\x93\xfc'), chr(0b1100100) + chr(101) + '\x63' + chr(3022 - 2911) + '\144' + chr(0b101001 + 0o74))(chr(0b1110101) + chr(8311 - 8195) + chr(0b1100110) + chr(0b101101) + chr(679 - 623))) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\xf8\xd9\x07\xaf\xee\x94\x8c\xce\xbb'), chr(0b1100100) + chr(101) + chr(99) + chr(9957 - 9846) + chr(100) + '\x65')(chr(1214 - 1097) + chr(296 - 180) + '\x66' + chr(1005 - 960) + '\x38'))(gVe3LxEGMJBn) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'\xcf\xf0\x07\x85\xc7\x97\xc5\x89\xb8u~g\xf1\xd3\x9a\x8b\x08y\x04\x0bK\xec,\xc4\xb4\x04\x1ay\xa9\xd7\xff'), chr(100) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(192 - 91))('\x75' + chr(0b1110100) + chr(102) + chr(0b111 + 0o46) + '\070')) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'\xfd'), chr(0b1100100) + '\145' + '\143' + chr(111) + chr(4488 - 4388) + chr(0b110111 + 0o56))('\x75' + '\x74' + '\x66' + '\x2d' + '\x38'): wR5_YWECjaY7 = {roI3spqORKae(ES5oEprVxulp(b'\xc4'), chr(100) + chr(9240 - 9139) + chr(99) + chr(12255 - 12144) + chr(0b1110 + 0o126) + chr(0b1100101))('\x75' + chr(0b1110010 + 0o2) + chr(102) + chr(45) + chr(0b101110 + 0o12)): roI3spqORKae(ES5oEprVxulp(b'\xdf\xef \x87\x9f'), chr(100) + chr(0b101011 + 0o72) + '\x63' + chr(0b10000 + 0o137) + chr(9315 - 9215) + chr(0b1100101))(chr(117) + chr(0b1110100 + 0o0) + chr(102) + chr(0b101101) + '\x38') + JummcHpaNLEw} roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\xef\xca\x10\xbd\xee\x82\x89\xc6\xbcj'), chr(0b1100100) + chr(3084 - 2983) + chr(0b1000101 + 0o36) + chr(111) + chr(0b11010 + 0o112) + chr(0b1 + 0o144))(chr(1675 - 1558) + '\164' + chr(0b1100110) + chr(238 - 193) + chr(0b1101 + 0o53)))(gVe3LxEGMJBn, wR5_YWECjaY7)
PmagPy/PmagPy
programs/lowrie_magic.py
main
def main(): """ NAME lowrie_magic.py DESCRIPTION plots intensity decay curves for Lowrie experiments SYNTAX lowrie_magic.py -h [command line options] INPUT takes measurements formatted input files OPTIONS -h prints help message and quits -f FILE: specify input file, default is magic_measurements.txt -N do not normalize by maximum magnetization -fmt [svg, pdf, eps, png] specify fmt, default is svg -sav saves plots and quits -DM [2, 3] MagIC data model number """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if len(sys.argv) <= 1: print(main.__doc__) print('you must supply a file name') sys.exit() FIG = {} # plot dictionary FIG['lowrie'] = 1 # demag is figure 1 pmagplotlib.plot_init(FIG['lowrie'], 6, 6) norm = 1 # default is to normalize by maximum axis in_file = pmag.get_named_arg("-f", "measurements.txt") dir_path = pmag.get_named_arg("-WD", ".") in_file = pmag.resolve_file_name(in_file, dir_path) data_model = pmag.get_named_arg("-DM", 3) data_model = int(float(data_model)) fmt = pmag.get_named_arg("-fmt", "svg") if '-N' in sys.argv: norm = 0 # don't normalize if '-sav' in sys.argv: plot = 1 # silently save and quit else: plot = 0 # generate plots print(in_file) # read in data PmagRecs, file_type = pmag.magic_read(in_file) if data_model == 2 and file_type != "magic_measurements": print('bad input file', file_type) sys.exit() if data_model == 3 and file_type != "measurements": print('bad input file', file_type) sys.exit() if data_model == 2: meth_code_col = 'magic_method_codes' spec_col = 'er_specimen_name' dec_col = "measurement_dec" inc_col = 'measurement_inc' moment_col = 'measurement_magn_moment' temp_col = 'treatment_temp' else: meth_code_col = 'method_codes' spec_col = 'specimen' dec_col = 'dir_dec' inc_col = 'dir_inc' moment_col = 'magn_moment' temp_col = "treat_temp" PmagRecs = pmag.get_dictitem( PmagRecs, meth_code_col, 'LP-IRM-3D', 'has') # get all 3D IRM records if len(PmagRecs) == 0: print('no records found with the method code LP-IRM-3D') sys.exit() specs = pmag.get_dictkey(PmagRecs, spec_col, '') sids = [] for spec in specs: if spec not in sids: sids.append(spec) # get list of unique specimen names for spc in sids: # step through the specimen names print(spc) specdata = pmag.get_dictitem( PmagRecs, spec_col, spc, 'T') # get all this one's data DIMs, Temps = [], [] for dat in specdata: # step through the data DIMs.append([float(dat[dec_col]), float( dat[inc_col]), float(dat[moment_col])]) Temps.append(float(dat[temp_col])-273.) carts = pmag.dir2cart(DIMs).transpose() if norm == 1: # want to normalize nrm = (DIMs[0][2]) # normalize by NRM ylab = "M/M_o" else: nrm = 1. # don't normalize ylab = "Magnetic moment (Am^2)" xlab = "Temperature (C)" pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[0]) / nrm, sym='r-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[0]) / nrm, sym='ro') # X direction pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[1]) / nrm, sym='c-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[1]) / nrm, sym='cs') # Y direction pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[2]) / nrm, sym='k-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[2]) / nrm, sym='k^', title=spc, xlab=xlab, ylab=ylab) # Z direction files = {'lowrie': 'lowrie:_'+spc+'_.'+fmt} if plot == 0: pmagplotlib.draw_figs(FIG) ans = input('S[a]ve figure? [q]uit, <return> to continue ') if ans == 'a': pmagplotlib.save_plots(FIG, files) elif ans == 'q': sys.exit() else: pmagplotlib.save_plots(FIG, files) pmagplotlib.clearFIG(FIG['lowrie'])
python
def main(): """ NAME lowrie_magic.py DESCRIPTION plots intensity decay curves for Lowrie experiments SYNTAX lowrie_magic.py -h [command line options] INPUT takes measurements formatted input files OPTIONS -h prints help message and quits -f FILE: specify input file, default is magic_measurements.txt -N do not normalize by maximum magnetization -fmt [svg, pdf, eps, png] specify fmt, default is svg -sav saves plots and quits -DM [2, 3] MagIC data model number """ if '-h' in sys.argv: print(main.__doc__) sys.exit() if len(sys.argv) <= 1: print(main.__doc__) print('you must supply a file name') sys.exit() FIG = {} # plot dictionary FIG['lowrie'] = 1 # demag is figure 1 pmagplotlib.plot_init(FIG['lowrie'], 6, 6) norm = 1 # default is to normalize by maximum axis in_file = pmag.get_named_arg("-f", "measurements.txt") dir_path = pmag.get_named_arg("-WD", ".") in_file = pmag.resolve_file_name(in_file, dir_path) data_model = pmag.get_named_arg("-DM", 3) data_model = int(float(data_model)) fmt = pmag.get_named_arg("-fmt", "svg") if '-N' in sys.argv: norm = 0 # don't normalize if '-sav' in sys.argv: plot = 1 # silently save and quit else: plot = 0 # generate plots print(in_file) # read in data PmagRecs, file_type = pmag.magic_read(in_file) if data_model == 2 and file_type != "magic_measurements": print('bad input file', file_type) sys.exit() if data_model == 3 and file_type != "measurements": print('bad input file', file_type) sys.exit() if data_model == 2: meth_code_col = 'magic_method_codes' spec_col = 'er_specimen_name' dec_col = "measurement_dec" inc_col = 'measurement_inc' moment_col = 'measurement_magn_moment' temp_col = 'treatment_temp' else: meth_code_col = 'method_codes' spec_col = 'specimen' dec_col = 'dir_dec' inc_col = 'dir_inc' moment_col = 'magn_moment' temp_col = "treat_temp" PmagRecs = pmag.get_dictitem( PmagRecs, meth_code_col, 'LP-IRM-3D', 'has') # get all 3D IRM records if len(PmagRecs) == 0: print('no records found with the method code LP-IRM-3D') sys.exit() specs = pmag.get_dictkey(PmagRecs, spec_col, '') sids = [] for spec in specs: if spec not in sids: sids.append(spec) # get list of unique specimen names for spc in sids: # step through the specimen names print(spc) specdata = pmag.get_dictitem( PmagRecs, spec_col, spc, 'T') # get all this one's data DIMs, Temps = [], [] for dat in specdata: # step through the data DIMs.append([float(dat[dec_col]), float( dat[inc_col]), float(dat[moment_col])]) Temps.append(float(dat[temp_col])-273.) carts = pmag.dir2cart(DIMs).transpose() if norm == 1: # want to normalize nrm = (DIMs[0][2]) # normalize by NRM ylab = "M/M_o" else: nrm = 1. # don't normalize ylab = "Magnetic moment (Am^2)" xlab = "Temperature (C)" pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[0]) / nrm, sym='r-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[0]) / nrm, sym='ro') # X direction pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[1]) / nrm, sym='c-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[1]) / nrm, sym='cs') # Y direction pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[2]) / nrm, sym='k-') pmagplotlib.plot_xy(FIG['lowrie'], Temps, abs(carts[2]) / nrm, sym='k^', title=spc, xlab=xlab, ylab=ylab) # Z direction files = {'lowrie': 'lowrie:_'+spc+'_.'+fmt} if plot == 0: pmagplotlib.draw_figs(FIG) ans = input('S[a]ve figure? [q]uit, <return> to continue ') if ans == 'a': pmagplotlib.save_plots(FIG, files) elif ans == 'q': sys.exit() else: pmagplotlib.save_plots(FIG, files) pmagplotlib.clearFIG(FIG['lowrie'])
[ "def", "main", "(", ")", ":", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "len", "(", "sys", ".", "argv", ")", "<=", "1", ":", "print", "(", "main", ".", "__doc__", ")", "print", "(", "'you must supply a file name'", ")", "sys", ".", "exit", "(", ")", "FIG", "=", "{", "}", "# plot dictionary", "FIG", "[", "'lowrie'", "]", "=", "1", "# demag is figure 1", "pmagplotlib", ".", "plot_init", "(", "FIG", "[", "'lowrie'", "]", ",", "6", ",", "6", ")", "norm", "=", "1", "# default is to normalize by maximum axis", "in_file", "=", "pmag", ".", "get_named_arg", "(", "\"-f\"", ",", "\"measurements.txt\"", ")", "dir_path", "=", "pmag", ".", "get_named_arg", "(", "\"-WD\"", ",", "\".\"", ")", "in_file", "=", "pmag", ".", "resolve_file_name", "(", "in_file", ",", "dir_path", ")", "data_model", "=", "pmag", ".", "get_named_arg", "(", "\"-DM\"", ",", "3", ")", "data_model", "=", "int", "(", "float", "(", "data_model", ")", ")", "fmt", "=", "pmag", ".", "get_named_arg", "(", "\"-fmt\"", ",", "\"svg\"", ")", "if", "'-N'", "in", "sys", ".", "argv", ":", "norm", "=", "0", "# don't normalize", "if", "'-sav'", "in", "sys", ".", "argv", ":", "plot", "=", "1", "# silently save and quit", "else", ":", "plot", "=", "0", "# generate plots", "print", "(", "in_file", ")", "# read in data", "PmagRecs", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "in_file", ")", "if", "data_model", "==", "2", "and", "file_type", "!=", "\"magic_measurements\"", ":", "print", "(", "'bad input file'", ",", "file_type", ")", "sys", ".", "exit", "(", ")", "if", "data_model", "==", "3", "and", "file_type", "!=", "\"measurements\"", ":", "print", "(", "'bad input file'", ",", "file_type", ")", "sys", ".", "exit", "(", ")", "if", "data_model", "==", "2", ":", "meth_code_col", "=", "'magic_method_codes'", "spec_col", "=", "'er_specimen_name'", "dec_col", "=", "\"measurement_dec\"", "inc_col", "=", "'measurement_inc'", "moment_col", "=", "'measurement_magn_moment'", "temp_col", "=", "'treatment_temp'", "else", ":", "meth_code_col", "=", "'method_codes'", "spec_col", "=", "'specimen'", "dec_col", "=", "'dir_dec'", "inc_col", "=", "'dir_inc'", "moment_col", "=", "'magn_moment'", "temp_col", "=", "\"treat_temp\"", "PmagRecs", "=", "pmag", ".", "get_dictitem", "(", "PmagRecs", ",", "meth_code_col", ",", "'LP-IRM-3D'", ",", "'has'", ")", "# get all 3D IRM records", "if", "len", "(", "PmagRecs", ")", "==", "0", ":", "print", "(", "'no records found with the method code LP-IRM-3D'", ")", "sys", ".", "exit", "(", ")", "specs", "=", "pmag", ".", "get_dictkey", "(", "PmagRecs", ",", "spec_col", ",", "''", ")", "sids", "=", "[", "]", "for", "spec", "in", "specs", ":", "if", "spec", "not", "in", "sids", ":", "sids", ".", "append", "(", "spec", ")", "# get list of unique specimen names", "for", "spc", "in", "sids", ":", "# step through the specimen names", "print", "(", "spc", ")", "specdata", "=", "pmag", ".", "get_dictitem", "(", "PmagRecs", ",", "spec_col", ",", "spc", ",", "'T'", ")", "# get all this one's data", "DIMs", ",", "Temps", "=", "[", "]", ",", "[", "]", "for", "dat", "in", "specdata", ":", "# step through the data", "DIMs", ".", "append", "(", "[", "float", "(", "dat", "[", "dec_col", "]", ")", ",", "float", "(", "dat", "[", "inc_col", "]", ")", ",", "float", "(", "dat", "[", "moment_col", "]", ")", "]", ")", "Temps", ".", "append", "(", "float", "(", "dat", "[", "temp_col", "]", ")", "-", "273.", ")", "carts", "=", "pmag", ".", "dir2cart", "(", "DIMs", ")", ".", "transpose", "(", ")", "if", "norm", "==", "1", ":", "# want to normalize", "nrm", "=", "(", "DIMs", "[", "0", "]", "[", "2", "]", ")", "# normalize by NRM", "ylab", "=", "\"M/M_o\"", "else", ":", "nrm", "=", "1.", "# don't normalize", "ylab", "=", "\"Magnetic moment (Am^2)\"", "xlab", "=", "\"Temperature (C)\"", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "0", "]", ")", "/", "nrm", ",", "sym", "=", "'r-'", ")", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "0", "]", ")", "/", "nrm", ",", "sym", "=", "'ro'", ")", "# X direction", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "1", "]", ")", "/", "nrm", ",", "sym", "=", "'c-'", ")", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "1", "]", ")", "/", "nrm", ",", "sym", "=", "'cs'", ")", "# Y direction", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "2", "]", ")", "/", "nrm", ",", "sym", "=", "'k-'", ")", "pmagplotlib", ".", "plot_xy", "(", "FIG", "[", "'lowrie'", "]", ",", "Temps", ",", "abs", "(", "carts", "[", "2", "]", ")", "/", "nrm", ",", "sym", "=", "'k^'", ",", "title", "=", "spc", ",", "xlab", "=", "xlab", ",", "ylab", "=", "ylab", ")", "# Z direction", "files", "=", "{", "'lowrie'", ":", "'lowrie:_'", "+", "spc", "+", "'_.'", "+", "fmt", "}", "if", "plot", "==", "0", ":", "pmagplotlib", ".", "draw_figs", "(", "FIG", ")", "ans", "=", "input", "(", "'S[a]ve figure? [q]uit, <return> to continue '", ")", "if", "ans", "==", "'a'", ":", "pmagplotlib", ".", "save_plots", "(", "FIG", ",", "files", ")", "elif", "ans", "==", "'q'", ":", "sys", ".", "exit", "(", ")", "else", ":", "pmagplotlib", ".", "save_plots", "(", "FIG", ",", "files", ")", "pmagplotlib", ".", "clearFIG", "(", "FIG", "[", "'lowrie'", "]", ")" ]
NAME lowrie_magic.py DESCRIPTION plots intensity decay curves for Lowrie experiments SYNTAX lowrie_magic.py -h [command line options] INPUT takes measurements formatted input files OPTIONS -h prints help message and quits -f FILE: specify input file, default is magic_measurements.txt -N do not normalize by maximum magnetization -fmt [svg, pdf, eps, png] specify fmt, default is svg -sav saves plots and quits -DM [2, 3] MagIC data model number
[ "NAME", "lowrie_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/lowrie_magic.py#L11-L127
train
main function for the main function of the main function
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(714 - 666) + chr(111) + chr(1270 - 1221) + chr(52) + '\x33', 0b1000), nzTpIcepk0o8(chr(1339 - 1291) + '\157' + chr(49) + chr(0b100000 + 0o22) + chr(0b10011 + 0o36), 62869 - 62861), nzTpIcepk0o8('\x30' + chr(10352 - 10241) + '\x33' + '\061' + chr(1030 - 979), 55981 - 55973), nzTpIcepk0o8(chr(1961 - 1913) + '\x6f' + chr(0b110110) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\067' + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100010 + 0o115) + chr(50) + chr(0b110100) + '\061', 16216 - 16208), nzTpIcepk0o8(chr(0b110000) + chr(3406 - 3295) + chr(0b1110 + 0o43) + chr(609 - 561) + chr(0b100110 + 0o15), 57859 - 57851), nzTpIcepk0o8(chr(913 - 865) + chr(8143 - 8032) + '\x31' + chr(1642 - 1590) + chr(0b110011), 8), nzTpIcepk0o8(chr(1692 - 1644) + '\157' + '\x31' + chr(48) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b1111 + 0o42) + chr(0b11100 + 0o26) + chr(51), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(4851 - 4740) + chr(50) + chr(54) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(997 - 949) + chr(111) + chr(49) + '\x34' + '\062', 0o10), nzTpIcepk0o8(chr(105 - 57) + '\157' + '\x33' + chr(490 - 438) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1536 - 1488) + chr(0b1101111) + chr(53) + chr(0b101100 + 0o4), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + '\x30' + '\x30', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(111) + '\x32' + chr(0b110010) + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7594 - 7483) + '\062' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(111) + chr(1590 - 1539) + '\067' + chr(0b101101 + 0o10), 61759 - 61751), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49) + chr(0b11 + 0o55) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11272 - 11161) + chr(0b1001 + 0o50) + chr(54) + chr(0b10111 + 0o31), 54041 - 54033), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1110 + 0o141) + '\x33' + chr(0b110001) + '\x36', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(392 - 343) + '\x32' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b101100 + 0o13), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100) + chr(2269 - 2221), ord("\x08")), nzTpIcepk0o8(chr(2304 - 2256) + '\x6f' + '\x31' + chr(1455 - 1402) + '\065', 0b1000), nzTpIcepk0o8(chr(1933 - 1885) + chr(0b1011001 + 0o26) + '\x33' + chr(676 - 624) + chr(0b1101 + 0o46), 8), nzTpIcepk0o8(chr(2036 - 1988) + chr(0b1101111) + chr(49) + chr(0b101001 + 0o15) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\066' + chr(0b110010), 7818 - 7810), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o11) + '\x33' + chr(53), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x36' + chr(0b10111 + 0o33), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\063' + chr(1231 - 1176) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(111) + chr(0b1101 + 0o44) + chr(0b10100 + 0o41) + chr(0b110111), 21534 - 21526), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + '\x34' + '\067', 0o10), nzTpIcepk0o8(chr(699 - 651) + chr(111) + '\061' + '\x37' + '\x34', 15383 - 15375), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(2184 - 2134) + chr(0b10100 + 0o41), 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\065' + '\x31', 0b1000), nzTpIcepk0o8(chr(2102 - 2054) + chr(111) + chr(0b101010 + 0o11) + '\x35' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + chr(2092 - 2041) + chr(0b11011 + 0o26) + '\063', 8), nzTpIcepk0o8(chr(483 - 435) + chr(5281 - 5170) + chr(0b1100 + 0o46) + chr(1031 - 976) + chr(0b11000 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(146 - 96) + chr(0b110010) + chr(54), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b110110 + 0o71) + chr(53) + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(100) + chr(101) + '\x63' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(5239 - 5122) + '\164' + chr(0b111001 + 0o55) + chr(249 - 204) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): if roI3spqORKae(ES5oEprVxulp(b'N9'), '\144' + chr(505 - 404) + '\143' + chr(0b1000101 + 0o52) + '\x64' + chr(0b1011100 + 0o11))(chr(0b111001 + 0o74) + '\164' + chr(102) + chr(1364 - 1319) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02;\x82s\xe8\xd8\x1b.\x072\x86\x00'), '\144' + chr(0b1100101) + chr(0b1010101 + 0o16) + chr(0b1101111) + chr(0b101010 + 0o72) + chr(101))(chr(0b1110101) + chr(11625 - 11509) + chr(0b1100110) + chr(0b101101) + chr(0b11111 + 0o31))): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x1a7\x8eR\xce\xf0*6*"\xe26'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + chr(4397 - 4297) + chr(101))('\165' + '\x74' + chr(1244 - 1142) + chr(45) + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), chr(0b110101 + 0o57) + chr(0b1010 + 0o133) + '\x63' + chr(0b1001011 + 0o44) + '\144' + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b111000)))() if ftfygxgFas5X(roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02;\x82s\xe8\xd8\x1b.\x072\x86\x00'), chr(100) + chr(9602 - 9501) + chr(99) + '\157' + chr(100) + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(1296 - 1240)))) <= nzTpIcepk0o8('\060' + chr(111) + chr(0b11100 + 0o25), 0b1000): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x1a7\x8eR\xce\xf0*6*"\xe26'), '\x64' + chr(101) + chr(99) + chr(0b1000010 + 0o55) + chr(0b1001111 + 0o25) + '\145')(chr(117) + chr(4161 - 4045) + '\146' + chr(0b101101) + chr(0b111000)))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x1a>\xbe\x17\xd2\xd40\x17e \xc0\x12\x93D9\xb5u\xdd$\x19\xa27/N\x0c\x8e\x12'), chr(100) + chr(0b1000010 + 0o43) + '\x63' + chr(5707 - 5596) + chr(0b1100100) + '\x65')(chr(117) + chr(5259 - 5143) + chr(358 - 256) + chr(0b101011 + 0o2) + '\x38')) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), chr(6633 - 6533) + chr(0b100011 + 0o102) + '\x63' + '\157' + chr(1425 - 1325) + chr(0b10000 + 0o125))(chr(13087 - 12970) + '\x74' + '\146' + chr(0b101101) + chr(56)))() rKSToK9WUVwu = {} rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(0b1100100) + chr(0b10110 + 0o117) + chr(0b110100 + 0o57) + chr(0b1001100 + 0o43) + '\x64' + '\145')('\165' + chr(116) + chr(0b1100110) + chr(1777 - 1732) + chr(0b1 + 0o67))] = nzTpIcepk0o8(chr(0b110000) + '\157' + chr(675 - 626), 8) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xc8-\n1'), chr(9496 - 9396) + '\145' + '\x63' + '\157' + chr(100) + chr(4219 - 4118))('\x75' + chr(0b1000001 + 0o63) + chr(0b1100110) + chr(0b101101) + '\x38'))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(3617 - 3517) + chr(0b1100101) + chr(0b1100011) + chr(8460 - 8349) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1010110 + 0o20) + '\x2d' + '\070')], nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11110 + 0o30), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b110110), 8)) xBFFJFaziFDU = nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + chr(1774 - 1725), 8) bORHD_jakCEx = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'N7'), chr(0b1100100) + chr(3545 - 3444) + chr(8027 - 7928) + chr(7666 - 7555) + chr(100) + chr(9007 - 8906))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b11001 + 0o37)), roI3spqORKae(ES5oEprVxulp(b'\x0e4\xaaD\xca\xd3&\x0e =\xc1\x11\xcd\\8\xe1'), chr(100) + chr(0b1101 + 0o130) + chr(99) + '\157' + '\144' + chr(101))('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b111000))) qjksZ7GK0xkJ = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'N\x06\x8f'), '\x64' + chr(0b1100101) + chr(99) + chr(111) + '\144' + chr(8427 - 8326))(chr(0b111111 + 0o66) + chr(3770 - 3654) + '\x66' + chr(1497 - 1452) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'M'), '\144' + '\145' + chr(99) + '\157' + chr(6954 - 6854) + '\145')(chr(722 - 605) + chr(0b11 + 0o161) + '\146' + chr(0b10110 + 0o27) + '\070')) bORHD_jakCEx = hUcsWwAd0nE_.resolve_file_name(bORHD_jakCEx, qjksZ7GK0xkJ) ucvilvMnwW1d = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'N\x15\x86'), chr(7234 - 7134) + chr(0b1001010 + 0o33) + chr(99) + '\x6f' + '\x64' + '\145')(chr(117) + '\x74' + chr(102) + '\055' + chr(0b111000)), nzTpIcepk0o8(chr(48) + chr(0b10111 + 0o130) + chr(51), ord("\x08"))) ucvilvMnwW1d = nzTpIcepk0o8(jLW6pRf2DSRk(ucvilvMnwW1d)) JummcHpaNLEw = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'N7\xa6C'), chr(0b100101 + 0o77) + chr(0b1100101) + chr(99) + '\x6f' + '\144' + chr(101))(chr(0b111110 + 0o67) + '\x74' + '\x66' + chr(1362 - 1317) + '\x38'), roI3spqORKae(ES5oEprVxulp(b"\x10'\xac"), chr(5348 - 5248) + '\x65' + '\x63' + '\157' + chr(100) + '\145')(chr(117) + '\164' + '\x66' + chr(490 - 445) + chr(56))) if roI3spqORKae(ES5oEprVxulp(b'N\x1f'), chr(0b1100100) + chr(0b1001010 + 0o33) + '\143' + chr(0b1101111) + chr(0b1000111 + 0o35) + '\145')(chr(0b100100 + 0o121) + chr(0b1110100) + '\x66' + '\055' + chr(0b100000 + 0o30)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02;\x82s\xe8\xd8\x1b.\x072\x86\x00'), '\144' + chr(0b11100 + 0o111) + '\143' + chr(3198 - 3087) + '\x64' + '\x65')('\x75' + '\164' + chr(102) + chr(1058 - 1013) + '\x38')): xBFFJFaziFDU = nzTpIcepk0o8(chr(48) + chr(2378 - 2267) + '\x30', ord("\x08")) if roI3spqORKae(ES5oEprVxulp(b'N"\xaaA'), chr(100) + '\145' + chr(897 - 798) + chr(0b100100 + 0o113) + '\x64' + chr(0b10100 + 0o121))(chr(12870 - 12753) + '\x74' + '\x66' + chr(0b101101) + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x02;\x82s\xe8\xd8\x1b.\x072\x86\x00'), chr(7303 - 7203) + chr(0b1100101) + chr(0b1100011) + chr(5343 - 5232) + chr(0b111110 + 0o46) + chr(0b11010 + 0o113))(chr(12651 - 12534) + chr(0b1110100) + '\146' + chr(45) + '\070')): mocO8sWgkzH7 = nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001), 8) else: mocO8sWgkzH7 = nzTpIcepk0o8('\060' + chr(0b110 + 0o151) + chr(48), 8) v8jsMqaYV6U2(bORHD_jakCEx) (F84pw7Bt38Dj, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(bORHD_jakCEx) if ucvilvMnwW1d == nzTpIcepk0o8('\060' + '\x6f' + '\062', ord("\x08")) and mWsDpG3yRGLz != roI3spqORKae(ES5oEprVxulp(b'\x0e0\xac^\xdc\xfe.\x06$ \xc0\x10\x86E%\xfb`\x8e'), chr(0b1011001 + 0o13) + chr(101) + chr(2409 - 2310) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b10001 + 0o125) + chr(0b100000 + 0o15) + chr(265 - 209)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x010\xaf\x17\xd6\xcf3\x161s\xd3\x0b\x8fM'), chr(340 - 240) + chr(101) + '\143' + chr(0b10010 + 0o135) + chr(7823 - 7723) + '\x65')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b11001 + 0o24) + '\x38'), mWsDpG3yRGLz) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), chr(1437 - 1337) + chr(6693 - 6592) + chr(99) + chr(111) + '\144' + chr(0b100101 + 0o100))('\x75' + chr(0b1101011 + 0o11) + chr(0b10010 + 0o124) + chr(45) + chr(0b111000)))() if ucvilvMnwW1d == nzTpIcepk0o8(chr(0b110000) + '\157' + '\063', 8) and mWsDpG3yRGLz != roI3spqORKae(ES5oEprVxulp(b'\x0e4\xaaD\xca\xd3&\x0e =\xc1\x11'), '\x64' + '\145' + chr(0b1111 + 0o124) + '\x6f' + chr(0b1100100) + chr(0b1100000 + 0o5))(chr(0b1110101) + chr(116) + chr(0b1010100 + 0o22) + chr(0b101101) + chr(826 - 770)): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x010\xaf\x17\xd6\xcf3\x161s\xd3\x0b\x8fM'), chr(0b1100100) + chr(0b1100101) + chr(99) + '\157' + chr(0b1001100 + 0o30) + chr(6820 - 6719))('\x75' + chr(0b1110100) + chr(102) + chr(1838 - 1793) + chr(56)), mWsDpG3yRGLz) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), '\144' + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + '\145')('\x75' + '\x74' + chr(0b1100110) + '\055' + chr(56)))() if ucvilvMnwW1d == nzTpIcepk0o8('\x30' + chr(111) + '\x32', 8): im7jlMl1M8ou = roI3spqORKae(ES5oEprVxulp(b'\x0e0\xac^\xdc\xfe.\x061;\xda\x06\xbcK/\xf1q\x8e'), '\x64' + chr(101) + '\143' + '\157' + '\x64' + chr(0b1100101 + 0o0))('\165' + '\164' + '\x66' + '\x2d' + '\x38') G0Y2ViaJspVh = roI3spqORKae(ES5oEprVxulp(b'\x06#\x94D\xcf\xc4 \n(6\xdb=\x8dI-\xf0'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(9141 - 9040))(chr(0b1010001 + 0o44) + '\164' + chr(0b1100110) + chr(0b101101) + chr(3076 - 3020)) mScoN7pKV96f = roI3spqORKae(ES5oEprVxulp(b'\x0e4\xaaD\xca\xd3&\x0e =\xc1=\x87M#'), chr(4789 - 4689) + chr(9013 - 8912) + '\143' + chr(111) + chr(8900 - 8800) + chr(1631 - 1530))(chr(3646 - 3529) + chr(116) + chr(102) + chr(1689 - 1644) + '\x38') RAkReWON3U5l = roI3spqORKae(ES5oEprVxulp(b'\x0e4\xaaD\xca\xd3&\x0e =\xc1=\x8aF#'), chr(8870 - 8770) + chr(0b1100101) + chr(9422 - 9323) + chr(0b1101111) + chr(459 - 359) + '\x65')('\x75' + '\164' + chr(9381 - 9279) + chr(0b101101) + chr(0b111000)) hREPJm3csfKH = roI3spqORKae(ES5oEprVxulp(b"\x0e4\xaaD\xca\xd3&\x0e =\xc1=\x8eI'\xfbK\x90-\x1d\xab<{"), chr(9542 - 9442) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + chr(2419 - 2318))('\x75' + '\x74' + '\146' + chr(1124 - 1079) + '\070') D91JWbooTUy3 = roI3spqORKae(ES5oEprVxulp(b'\x17#\xaeV\xcb\xcc&\r1\x0c\xc1\x07\x8eX'), chr(0b1000000 + 0o44) + chr(0b1100100 + 0o1) + '\143' + chr(0b1011110 + 0o21) + chr(4134 - 4034) + chr(0b101110 + 0o67))('\165' + chr(0b1110100) + chr(9614 - 9512) + chr(0b101101) + '\070') else: im7jlMl1M8ou = roI3spqORKae(ES5oEprVxulp(b'\x0e4\xbf_\xd0\xc5\x1c\x00*7\xd0\x11'), chr(0b1 + 0o143) + chr(0b1100101) + chr(7245 - 7146) + chr(0b10010 + 0o135) + chr(100) + '\145')(chr(117) + '\164' + '\146' + chr(0b101101) + '\x38') G0Y2ViaJspVh = roI3spqORKae(ES5oEprVxulp(b'\x10!\xaeT\xd6\xcc&\r'), chr(1624 - 1524) + '\x65' + chr(99) + chr(12132 - 12021) + chr(100) + '\145')(chr(3069 - 2952) + chr(0b1110100) + '\x66' + chr(1856 - 1811) + chr(0b111000)) mScoN7pKV96f = roI3spqORKae(ES5oEprVxulp(b'\x078\xb9h\xdb\xc4 '), chr(6547 - 6447) + chr(0b1100101) + chr(1387 - 1288) + chr(0b1101111) + '\x64' + chr(101))('\x75' + chr(0b1110100) + chr(0b1010111 + 0o17) + chr(0b1011 + 0o42) + '\070') RAkReWON3U5l = roI3spqORKae(ES5oEprVxulp(b'\x078\xb9h\xd6\xcf '), '\144' + chr(3433 - 3332) + chr(6181 - 6082) + chr(4867 - 4756) + chr(100) + chr(695 - 594))(chr(117) + chr(6794 - 6678) + '\x66' + '\x2d' + chr(0b1101 + 0o53)) hREPJm3csfKH = roI3spqORKae(ES5oEprVxulp(b'\x0e0\xacY\xe0\xcc,\x0e =\xc1'), chr(100) + chr(0b1001001 + 0o34) + chr(0b1100011) + chr(3103 - 2992) + chr(100) + chr(101))(chr(0b1110101) + chr(0b10111 + 0o135) + chr(0b10100 + 0o122) + chr(1512 - 1467) + chr(0b111000)) D91JWbooTUy3 = roI3spqORKae(ES5oEprVxulp(b'\x17#\xaeV\xcb\xfe7\x06(#'), chr(7230 - 7130) + chr(101) + '\143' + '\157' + '\144' + '\145')(chr(0b110001 + 0o104) + chr(0b1011101 + 0o27) + '\146' + chr(0b101101) + chr(0b100100 + 0o24)) F84pw7Bt38Dj = hUcsWwAd0nE_.get_dictitem(F84pw7Bt38Dj, im7jlMl1M8ou, roI3spqORKae(ES5oEprVxulp(b'/\x01\xe6~\xed\xecnP\x01'), chr(0b1100100) + '\x65' + chr(8860 - 8761) + chr(0b1101111) + chr(6264 - 6164) + '\145')('\x75' + '\x74' + '\x66' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x0b0\xb8'), '\x64' + chr(101) + '\143' + chr(111) + chr(0b1100011 + 0o1) + chr(9731 - 9630))(chr(0b111101 + 0o70) + chr(0b1110100) + '\x66' + chr(0b10110 + 0o27) + '\070')) if ftfygxgFas5X(F84pw7Bt38Dj) == nzTpIcepk0o8('\060' + chr(111) + chr(48), 8): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\r>\xebE\xda\xc2,\x11! \x95\x04\x8c].\xf14\x8a+\x04\xa6r{H\x08\xc3\x1aW\xe9Z\x94\x0bG\x1f\xfa\r\x8c\xeb\xf7\xc6N\x18\x99z\x92\x92\x07'), chr(0b1100100) + chr(2582 - 2481) + chr(0b1010110 + 0o15) + '\157' + '\x64' + '\145')(chr(117) + chr(116) + '\x66' + chr(45) + chr(56))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), '\144' + chr(101) + chr(0b1100011) + '\x6f' + chr(9129 - 9029) + '\145')(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + chr(1356 - 1300)))() o53SjI9laMAg = hUcsWwAd0nE_.get_dictkey(F84pw7Bt38Dj, G0Y2ViaJspVh, roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + chr(101))(chr(0b1110100 + 0o1) + '\164' + chr(0b111 + 0o137) + '\x2d' + '\x38')) Wbavx5JmRXKA = [] for L66BkZPPV93j in o53SjI9laMAg: if L66BkZPPV93j not in Wbavx5JmRXKA: roI3spqORKae(Wbavx5JmRXKA, roI3spqORKae(ES5oEprVxulp(b'+\x05\x98\x03\xc7\xc6\x04\x0c/<\xe0W'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + chr(0b111110 + 0o46) + chr(2788 - 2687))(chr(0b1000 + 0o155) + chr(0b1101110 + 0o6) + chr(102) + '\055' + chr(56)))(L66BkZPPV93j) for WBwPtPVEzw7G in Wbavx5JmRXKA: v8jsMqaYV6U2(WBwPtPVEzw7G) Vx7XDlhozexJ = hUcsWwAd0nE_.get_dictitem(F84pw7Bt38Dj, G0Y2ViaJspVh, WBwPtPVEzw7G, roI3spqORKae(ES5oEprVxulp(b'7'), chr(0b1100100) + '\x65' + chr(0b111010 + 0o51) + chr(111) + chr(0b1100100) + '\145')(chr(0b11101 + 0o130) + '\164' + '\146' + '\x2d' + '\x38')) (Iil7mVOO5LSy, TjnJHwEdiu_i) = ([], []) for LMcCiF4czwpp in Vx7XDlhozexJ: roI3spqORKae(Iil7mVOO5LSy, roI3spqORKae(ES5oEprVxulp(b'+\x05\x98\x03\xc7\xc6\x04\x0c/<\xe0W'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + '\x64' + '\145')(chr(0b1010000 + 0o45) + chr(2818 - 2702) + chr(7579 - 7477) + '\x2d' + '\x38'))([jLW6pRf2DSRk(LMcCiF4czwpp[mScoN7pKV96f]), jLW6pRf2DSRk(LMcCiF4czwpp[RAkReWON3U5l]), jLW6pRf2DSRk(LMcCiF4czwpp[hREPJm3csfKH])]) roI3spqORKae(TjnJHwEdiu_i, roI3spqORKae(ES5oEprVxulp(b'+\x05\x98\x03\xc7\xc6\x04\x0c/<\xe0W'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(9062 - 8962) + '\145')(chr(0b11101 + 0o130) + chr(0b1110100) + chr(0b100000 + 0o106) + chr(0b1101 + 0o40) + chr(0b10111 + 0o41)))(jLW6pRf2DSRk(LMcCiF4czwpp[D91JWbooTUy3]) - 273.0) clmZBMqk8BxH = hUcsWwAd0nE_.dir2cart(Iil7mVOO5LSy).transpose() if xBFFJFaziFDU == nzTpIcepk0o8('\060' + chr(4941 - 4830) + '\061', 8): xL8ARFIkesQn = Iil7mVOO5LSy[nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8)][nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062', 8)] v5E0eutotooZ = roI3spqORKae(ES5oEprVxulp(b'.~\x86h\xd0'), chr(0b1100100) + chr(101) + chr(770 - 671) + chr(2714 - 2603) + chr(0b101111 + 0o65) + chr(3915 - 3814))(chr(5878 - 5761) + '\x74' + chr(0b111011 + 0o53) + chr(0b101101) + '\x38') else: xL8ARFIkesQn = 1.0 v5E0eutotooZ = roI3spqORKae(ES5oEprVxulp(b'.0\xacY\xda\xd5*\x00e>\xda\x0f\x86F4\xb5<\xbc/.\xfc{'), chr(5887 - 5787) + '\x65' + '\x63' + '\157' + chr(975 - 875) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(6744 - 6642) + chr(594 - 549) + chr(0b11001 + 0o37)) ikxkW8dy4ZA_ = roI3spqORKae(ES5oEprVxulp(b'74\xa6G\xda\xd3"\x170!\xd0B\xcbki'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(0b1000001 + 0o44))('\x75' + chr(12904 - 12788) + chr(102) + chr(45) + chr(0b100 + 0o64)) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), chr(0b1000100 + 0o40) + '\145' + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b110100 + 0o101) + chr(116) + '\146' + chr(0b101101) + chr(0b100100 + 0o24)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(0b1110101) + chr(116) + '\x66' + chr(45) + chr(0b1000 + 0o60))], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8(chr(1530 - 1482) + chr(2515 - 2404) + chr(0b110000), 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x11|'), chr(9646 - 9546) + chr(4700 - 4599) + chr(363 - 264) + chr(0b1101001 + 0o6) + chr(0b1100100) + '\145')(chr(0b1000000 + 0o65) + '\x74' + chr(0b1011000 + 0o16) + chr(0b1101 + 0o40) + chr(2686 - 2630))) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), '\x64' + '\x65' + chr(99) + chr(10339 - 10228) + '\x64' + '\145')(chr(0b1110000 + 0o5) + chr(0b1100001 + 0o23) + chr(1633 - 1531) + '\055' + chr(0b1000 + 0o60)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(7478 - 7378) + chr(0b11111 + 0o106) + chr(99) + '\x6f' + '\144' + chr(0b1011 + 0o132))(chr(0b1110101) + chr(116) + chr(0b1010110 + 0o20) + chr(1945 - 1900) + chr(0b110100 + 0o4))], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8('\x30' + chr(111) + chr(0b101 + 0o53), 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x11>'), chr(0b100101 + 0o77) + chr(101) + '\143' + '\157' + chr(100) + chr(0b1100101))(chr(9870 - 9753) + chr(12909 - 12793) + chr(102) + chr(0b1100 + 0o41) + '\070')) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), chr(0b0 + 0o144) + '\145' + '\143' + chr(111) + chr(3170 - 3070) + '\x65')('\x75' + chr(0b1110100) + chr(0b1011010 + 0o14) + chr(0b101101) + '\070'))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), '\144' + '\x65' + '\x63' + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b101111 + 0o105) + chr(0b1100110) + chr(0b10011 + 0o32) + chr(730 - 674))], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8('\060' + '\157' + chr(0b110001), 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x00|'), chr(100) + chr(6300 - 6199) + chr(4975 - 4876) + chr(0b1101010 + 0o5) + chr(0b0 + 0o144) + chr(0b1100101))('\165' + chr(6464 - 6348) + '\146' + chr(45) + '\x38')) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + '\x64' + chr(101))('\165' + chr(0b1110100) + chr(0b1011111 + 0o7) + '\x2d' + '\070'))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), '\144' + chr(0b1111 + 0o126) + chr(0b1010101 + 0o16) + chr(0b1101111) + chr(0b10010 + 0o122) + chr(0b101000 + 0o75))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + '\070')], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8('\x30' + '\157' + '\x31', 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x00"'), chr(2785 - 2685) + chr(0b1100101) + '\x63' + chr(6904 - 6793) + chr(0b111110 + 0o46) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070')) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), chr(0b101010 + 0o72) + chr(0b1011110 + 0o7) + chr(99) + '\x6f' + chr(0b1000110 + 0o36) + chr(8581 - 8480))(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + '\070'))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1101111) + chr(9515 - 9415) + chr(655 - 554))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(1541 - 1485))], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8('\060' + '\157' + chr(0b110010), 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x08|'), chr(100) + chr(0b1100101) + '\143' + chr(111) + chr(100) + '\145')(chr(0b1011101 + 0o30) + chr(0b1110100) + chr(0b100111 + 0o77) + '\x2d' + chr(0b111000))) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x13=\xa4C\xe0\xd9:'), chr(0b1100100) + chr(0b110101 + 0o60) + chr(99) + chr(0b1101111) + '\144' + '\145')(chr(117) + chr(0b1000011 + 0o61) + '\146' + chr(0b10000 + 0o35) + chr(0b111000)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(100) + chr(9150 - 9049) + chr(0b110111 + 0o54) + chr(0b1101111) + chr(0b1111 + 0o125) + chr(101))(chr(117) + chr(0b1001110 + 0o46) + chr(0b1100110) + chr(45) + '\x38')], TjnJHwEdiu_i, zQBGwUT7UU8L(clmZBMqk8BxH[nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32', 8)]) / xL8ARFIkesQn, sym=roI3spqORKae(ES5oEprVxulp(b'\x08\x0f'), chr(0b10001 + 0o123) + chr(0b10000 + 0o125) + '\x63' + chr(8277 - 8166) + chr(0b1001 + 0o133) + '\145')('\x75' + chr(116) + '\x66' + '\055' + '\070'), title=WBwPtPVEzw7G, xlab=ikxkW8dy4ZA_, ylab=v5E0eutotooZ) wR5_YWECjaY7 = {roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(100) + chr(1315 - 1214))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(56)): roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4y<'), chr(9205 - 9105) + chr(101) + chr(4714 - 4615) + chr(0b1101111) + '\144' + chr(0b11100 + 0o111))(chr(117) + chr(0b11101 + 0o127) + chr(102) + '\x2d' + '\x38') + WBwPtPVEzw7G + roI3spqORKae(ES5oEprVxulp(b'<\x7f'), chr(0b111100 + 0o50) + chr(0b110 + 0o137) + chr(4919 - 4820) + chr(0b1101111) + chr(0b10000 + 0o124) + chr(101))('\x75' + chr(0b1001101 + 0o47) + chr(102) + chr(0b101101) + '\x38') + JummcHpaNLEw} if mocO8sWgkzH7 == nzTpIcepk0o8('\060' + chr(0b1 + 0o156) + chr(0b100 + 0o54), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x07#\xaa@\xe0\xc7*\x046'), '\144' + chr(3816 - 3715) + '\143' + '\157' + chr(5909 - 5809) + chr(0b1100101))('\x75' + chr(5531 - 5415) + chr(1311 - 1209) + chr(0b101010 + 0o3) + chr(56)))(rKSToK9WUVwu) CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'0\n\xaaj\xc9\xc4c\x05,4\xc0\x10\x86\x17`\xcee\xa07\x19\xba~/\x1c\x1f\x86\x03G\xef\\\xc5O\x13\x13\xb5\n\x86\xa5\xcf\xff\r$\xae\x17\x9f\x81'), chr(100) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(1082 - 981))('\165' + '\164' + chr(102) + '\x2d' + '\x38')) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'\x02'), chr(4864 - 4764) + '\145' + chr(0b100 + 0o137) + chr(0b1000110 + 0o51) + chr(0b1100100) + chr(0b1011111 + 0o6))(chr(7725 - 7608) + chr(4301 - 4185) + '\x66' + '\x2d' + chr(0b10001 + 0o47)): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x100\xbdR\xe0\xd1/\x0c1 '), chr(0b1000010 + 0o42) + chr(0b1100010 + 0o3) + chr(5664 - 5565) + chr(7830 - 7719) + chr(0b1100100) + chr(0b1100101))('\165' + chr(8154 - 8038) + chr(0b1101 + 0o131) + chr(0b101101 + 0o0) + chr(2912 - 2856)))(rKSToK9WUVwu, wR5_YWECjaY7) elif CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'\x12'), '\144' + chr(101) + chr(755 - 656) + '\157' + chr(0b1001001 + 0o33) + chr(101))(chr(0b110 + 0o157) + '\x74' + '\x66' + chr(45) + '\x38'): roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'9$\xb9]\xdc\xf4\x0fR6 \xf4Z'), '\x64' + chr(1351 - 1250) + chr(99) + '\157' + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1011100 + 0o12) + chr(0b10 + 0o53) + chr(0b100111 + 0o21)))() else: roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x100\xbdR\xe0\xd1/\x0c1 '), '\144' + chr(0b1100101) + chr(99) + chr(0b1101111) + chr(0b1010011 + 0o21) + chr(0b1011100 + 0o11))(chr(117) + chr(0b1110100) + chr(569 - 467) + '\x2d' + chr(761 - 705)))(rKSToK9WUVwu, wR5_YWECjaY7) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'\x00=\xaeV\xcd\xe7\n$'), '\144' + chr(0b110 + 0o137) + chr(5814 - 5715) + chr(0b1101000 + 0o7) + chr(4417 - 4317) + '\x65')(chr(117) + '\164' + chr(102) + chr(1393 - 1348) + chr(0b110110 + 0o2)))(rKSToK9WUVwu[roI3spqORKae(ES5oEprVxulp(b'\x0f>\xbcE\xd6\xc4'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(11897 - 11786) + '\144' + chr(0b10101 + 0o120))('\165' + chr(116) + '\x66' + chr(0b101101) + chr(0b100101 + 0o23))])
PmagPy/PmagPy
programs/deprecated/reorder_samples.py
main
def main(): """ NAME reorder_samples.py DESCRIPTION takes specimen file and reorders sample file with selected orientation methods placed first SYNTAX reorder_samples.py [command line options] OPTIONS -h prints help message and quits -fsp: specimen input pmag_specimens format file, default is "pmag_specimens.txt" -fsm: sample input er_samples format file, default is "er_samples.txt" -F: output er_samples format file, default is "er_samples.txt" OUPUT writes re-ordered er_samples.txt file """ infile='pmag_specimens.txt' sampfile="er_samples.txt" outfile="er_samples.txt" # get command line stuff if "-h" in sys.argv: print(main.__doc__) sys.exit() if '-fsp' in sys.argv: ind=sys.argv.index("-fsp") infile=sys.argv[ind+1] if '-fsm' in sys.argv: ind=sys.argv.index("-fsm") sampfile=sys.argv[ind+1] if '-F' in sys.argv: ind=sys.argv.index("-F") outfile=sys.argv[ind+1] if '-WD' in sys.argv: ind=sys.argv.index("-WD") dir_path=sys.argv[ind+1] infile=dir_path+'/'+infile sampfile=dir_path+'/'+sampfile outfile=dir_path+'/'+outfile # now do re-ordering pmag.ReorderSamples(infile,sampfile,outfile)
python
def main(): """ NAME reorder_samples.py DESCRIPTION takes specimen file and reorders sample file with selected orientation methods placed first SYNTAX reorder_samples.py [command line options] OPTIONS -h prints help message and quits -fsp: specimen input pmag_specimens format file, default is "pmag_specimens.txt" -fsm: sample input er_samples format file, default is "er_samples.txt" -F: output er_samples format file, default is "er_samples.txt" OUPUT writes re-ordered er_samples.txt file """ infile='pmag_specimens.txt' sampfile="er_samples.txt" outfile="er_samples.txt" # get command line stuff if "-h" in sys.argv: print(main.__doc__) sys.exit() if '-fsp' in sys.argv: ind=sys.argv.index("-fsp") infile=sys.argv[ind+1] if '-fsm' in sys.argv: ind=sys.argv.index("-fsm") sampfile=sys.argv[ind+1] if '-F' in sys.argv: ind=sys.argv.index("-F") outfile=sys.argv[ind+1] if '-WD' in sys.argv: ind=sys.argv.index("-WD") dir_path=sys.argv[ind+1] infile=dir_path+'/'+infile sampfile=dir_path+'/'+sampfile outfile=dir_path+'/'+outfile # now do re-ordering pmag.ReorderSamples(infile,sampfile,outfile)
[ "def", "main", "(", ")", ":", "infile", "=", "'pmag_specimens.txt'", "sampfile", "=", "\"er_samples.txt\"", "outfile", "=", "\"er_samples.txt\"", "# get command line stuff", "if", "\"-h\"", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-fsp'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "\"-fsp\"", ")", "infile", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-fsm'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "\"-fsm\"", ")", "sampfile", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-F'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "\"-F\"", ")", "outfile", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-WD'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "\"-WD\"", ")", "dir_path", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "infile", "=", "dir_path", "+", "'/'", "+", "infile", "sampfile", "=", "dir_path", "+", "'/'", "+", "sampfile", "outfile", "=", "dir_path", "+", "'/'", "+", "outfile", "# now do re-ordering", "pmag", ".", "ReorderSamples", "(", "infile", ",", "sampfile", ",", "outfile", ")" ]
NAME reorder_samples.py DESCRIPTION takes specimen file and reorders sample file with selected orientation methods placed first SYNTAX reorder_samples.py [command line options] OPTIONS -h prints help message and quits -fsp: specimen input pmag_specimens format file, default is "pmag_specimens.txt" -fsm: sample input er_samples format file, default is "er_samples.txt" -F: output er_samples format file, default is "er_samples.txt" OUPUT writes re-ordered er_samples.txt file
[ "NAME", "reorder_samples", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/deprecated/reorder_samples.py#L7-L50
train
NAME reorder_samples. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + chr(0b110001) + chr(0b10110 + 0o41) + '\065', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100111 + 0o12) + '\x32' + chr(250 - 200), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\x34' + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\x37' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\065' + '\x35', 21895 - 21887), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11011 + 0o31) + '\x30', 45327 - 45319), nzTpIcepk0o8(chr(0b110000) + chr(0b100100 + 0o113) + chr(50) + chr(0b110101) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + chr(0b100 + 0o57) + '\064' + chr(0b11010 + 0o30), 9952 - 9944), nzTpIcepk0o8(chr(48) + chr(12220 - 12109) + '\062' + chr(0b110001 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(2244 - 2196) + '\x6f' + chr(404 - 355) + chr(1564 - 1514) + chr(55), 0o10), nzTpIcepk0o8(chr(1873 - 1825) + '\x6f' + chr(0b110010) + '\x37', 0b1000), nzTpIcepk0o8(chr(184 - 136) + chr(111) + chr(0b110001) + chr(1394 - 1340) + chr(2288 - 2234), 21356 - 21348), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(52) + '\064', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x37' + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + '\066' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(1516 - 1468) + '\157' + chr(819 - 768) + chr(2370 - 2321), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(784 - 735) + '\064' + '\065', 10897 - 10889), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11100 + 0o27) + chr(0b110000 + 0o0) + chr(0b1110 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\x6f' + chr(49) + chr(332 - 279) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(622 - 574) + chr(0b1101111) + '\x31' + chr(49) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + '\x33' + chr(1841 - 1789), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(55) + '\x34', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + '\x37' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7017 - 6906) + '\x32' + chr(0b11 + 0o56) + chr(53), 8), nzTpIcepk0o8(chr(48) + chr(426 - 315) + chr(1041 - 991) + chr(219 - 166) + chr(78 - 23), ord("\x08")), nzTpIcepk0o8(chr(803 - 755) + chr(0b1010001 + 0o36) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(49) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(449 - 401) + chr(6591 - 6480) + '\x37' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(2717 - 2664) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1033 - 985) + chr(6832 - 6721) + chr(0b10001 + 0o42) + chr(0b110010 + 0o4) + '\x34', 16066 - 16058), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110101) + chr(49), 14865 - 14857), nzTpIcepk0o8('\060' + '\157' + chr(55) + '\060', 0b1000), nzTpIcepk0o8('\060' + chr(1378 - 1267) + chr(0b110001) + chr(0b110001 + 0o1) + chr(0b100010 + 0o25), 8), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(0b110011 + 0o74) + chr(631 - 581) + chr(0b110010) + '\x35', 2464 - 2456), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + chr(1876 - 1822) + chr(0b110111), 41220 - 41212), nzTpIcepk0o8(chr(48) + chr(11252 - 11141) + chr(0b101001 + 0o11) + '\060' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(8591 - 8480) + '\062' + '\x34' + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101011 + 0o4) + chr(50) + '\x37' + '\x36', 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\061' + chr(48) + '\061', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(53) + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'S'), '\x64' + chr(0b10011 + 0o122) + chr(0b1100011) + chr(0b1101111) + chr(0b1011001 + 0o13) + '\x65')(chr(0b10 + 0o163) + chr(0b1110100) + chr(7307 - 7205) + '\055' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): XvbvbiHwSGUb = roI3spqORKae(ES5oEprVxulp(b'\r?\xc4\x1c\xb2S\xda\x87p>z\x13\n\xfe\x10\xc5a\x11'), '\x64' + chr(101) + chr(99) + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(5846 - 5730) + chr(0b1000000 + 0o46) + chr(1869 - 1824) + chr(0b11111 + 0o31)) d5btEfZv4_dM = roI3spqORKae(ES5oEprVxulp(b'\x18 \xfa\x08\x8cM\xda\x8ev$9\x02\x1c\xf9'), chr(0b1100100) + chr(0b110011 + 0o62) + chr(0b110101 + 0o56) + chr(10884 - 10773) + '\x64' + '\x65')(chr(0b1011010 + 0o33) + chr(0b1110100) + chr(2520 - 2418) + chr(710 - 665) + chr(1741 - 1685)) neY2HPRd1pS4 = roI3spqORKae(ES5oEprVxulp(b'\x18 \xfa\x08\x8cM\xda\x8ev$9\x02\x1c\xf9'), chr(0b100011 + 0o101) + chr(1989 - 1888) + '\143' + chr(111) + chr(0b101110 + 0o66) + chr(101))(chr(0b1011100 + 0o31) + chr(116) + '\x66' + chr(1725 - 1680) + '\x38') if roI3spqORKae(ES5oEprVxulp(b'P:'), chr(0b1100100) + '\145' + chr(7348 - 7249) + chr(0b1101111) + chr(0b111010 + 0o52) + chr(0b1100101))(chr(0b1000100 + 0o61) + '\164' + chr(2005 - 1903) + '\x2d' + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x1c8\xec?\xbaY\xf2\xafQ6$\x14'), chr(0b1100100) + chr(6340 - 6239) + '\x63' + chr(0b1101111) + chr(8649 - 8549) + chr(0b1100101))('\165' + chr(7086 - 6970) + '\x66' + chr(0b10101 + 0o30) + '\x38')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\x044\xe0\x1e\x9cq\xc3\xb7|&@"'), chr(8928 - 8828) + chr(101) + chr(0b111 + 0o134) + chr(5799 - 5688) + chr(0b11000 + 0o114) + '\145')(chr(117) + '\x74' + chr(277 - 175) + '\x2d' + chr(0b110001 + 0o7)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b"''\xd7\x11\x8eu\xe6\xd3`$VN"), '\144' + chr(0b1100101) + chr(4143 - 4044) + chr(0b1101111) + chr(0b1011110 + 0o6) + '\x65')(chr(0b100100 + 0o121) + '\x74' + chr(8457 - 8355) + '\x2d' + '\070'))() if roI3spqORKae(ES5oEprVxulp(b'P4\xd6\x0b'), chr(0b110110 + 0o56) + chr(0b11001 + 0o114) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(5043 - 4926) + chr(8397 - 8281) + chr(0b1011010 + 0o14) + chr(0b101 + 0o50) + chr(260 - 204)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x1c8\xec?\xbaY\xf2\xafQ6$\x14'), chr(0b1001001 + 0o33) + '\x65' + chr(0b1100011) + chr(8995 - 8884) + chr(0b101101 + 0o67) + '\x65')(chr(0b1110101) + '\164' + chr(102) + chr(0b100011 + 0o12) + '\x38')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'P4\xd6\x0b'), chr(0b1100100) + chr(0b11101 + 0o110) + chr(0b111 + 0o134) + '\x6f' + '\144' + chr(0b1 + 0o144))('\165' + '\164' + chr(0b101000 + 0o76) + '\x2d' + chr(1998 - 1942))) XvbvbiHwSGUb = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8)] if roI3spqORKae(ES5oEprVxulp(b'P4\xd6\x16'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + chr(0b1000010 + 0o42) + '\145')(chr(1471 - 1354) + chr(0b110100 + 0o100) + chr(0b1100000 + 0o6) + '\055' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x1c8\xec?\xbaY\xf2\xafQ6$\x14'), chr(888 - 788) + chr(4897 - 4796) + chr(99) + '\157' + chr(8471 - 8371) + chr(101))('\165' + chr(12704 - 12588) + chr(0b1001 + 0o135) + chr(0b101101) + chr(0b100110 + 0o22))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'P4\xd6\x16'), chr(0b1100100) + chr(0b1011010 + 0o13) + chr(0b1010101 + 0o16) + chr(111) + '\144' + chr(0b1010100 + 0o21))(chr(117) + chr(0b1001 + 0o153) + chr(1854 - 1752) + chr(0b100101 + 0o10) + chr(0b111000))) d5btEfZv4_dM = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(111) + chr(49), 8)] if roI3spqORKae(ES5oEprVxulp(b'P\x14'), chr(9174 - 9074) + '\x65' + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')('\165' + '\164' + chr(102) + '\055' + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x1c8\xec?\xbaY\xf2\xafQ6$\x14'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b10 + 0o155) + chr(100) + '\x65')(chr(0b1110101) + chr(116) + chr(9064 - 8962) + '\x2d' + chr(0b111000))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'P\x14'), chr(0b101101 + 0o67) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\165' + '\x74' + '\146' + chr(0b10 + 0o53) + chr(0b111000 + 0o0))) neY2HPRd1pS4 = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'P\x05\xe1'), chr(0b1010001 + 0o23) + '\x65' + chr(0b1100011) + chr(0b1101101 + 0o2) + chr(2448 - 2348) + chr(101))('\165' + chr(738 - 622) + chr(102) + '\x2d' + chr(601 - 545)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\x1c8\xec?\xbaY\xf2\xafQ6$\x14'), chr(8162 - 8062) + '\145' + '\143' + chr(3316 - 3205) + chr(0b11000 + 0o114) + '\145')(chr(0b101011 + 0o112) + chr(0b1010000 + 0o44) + chr(0b10110 + 0o120) + '\055' + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'P\x05\xe1'), chr(100) + '\x65' + chr(0b11111 + 0o104) + '\157' + chr(0b11001 + 0o113) + '\145')('\165' + chr(116) + '\146' + chr(0b1110 + 0o37) + '\x38')) qjksZ7GK0xkJ = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + '\x31', 8)] XvbvbiHwSGUb = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'R'), chr(100) + chr(0b1100101) + '\143' + chr(0b111011 + 0o64) + '\x64' + chr(101))('\x75' + chr(0b1100001 + 0o23) + '\146' + chr(0b101101) + chr(0b111000)) + XvbvbiHwSGUb d5btEfZv4_dM = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'R'), '\x64' + chr(0b111001 + 0o54) + '\x63' + chr(0b1101111) + '\144' + '\145')('\x75' + chr(116) + '\146' + chr(1716 - 1671) + '\x38') + d5btEfZv4_dM neY2HPRd1pS4 = qjksZ7GK0xkJ + roI3spqORKae(ES5oEprVxulp(b'R'), chr(1785 - 1685) + '\x65' + '\143' + '\157' + '\144' + chr(0b1100101))(chr(0b101101 + 0o110) + '\164' + chr(0b1100011 + 0o3) + chr(0b111 + 0o46) + chr(2638 - 2582)) + neY2HPRd1pS4 roI3spqORKae(hUcsWwAd0nE_, roI3spqORKae(ES5oEprVxulp(b'/7\xca\t\x89E\xd8\xb1r:g\x1a\x01\xfe'), chr(0b1100100) + chr(3446 - 3345) + chr(0b1100011) + chr(284 - 173) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + chr(0b0 + 0o55) + chr(207 - 151)))(XvbvbiHwSGUb, d5btEfZv4_dM, neY2HPRd1pS4)
PmagPy/PmagPy
pmagpy/contribution_builder.py
not_null
def not_null(val, zero_as_null=True): """ Comprehensive check to see if a value is null or not. Returns True for: non-empty iterables, True, non-zero floats and ints, non-emtpy strings. Returns False for: empty iterables, False, zero, empty strings. Parameters ---------- val : any Python object zero_as_null: bool treat zero as null, default True Returns --------- boolean """ def can_iter(x): """ Returns True for a non-empty iterable """ try: any(x) return True except TypeError: return False def not_empty(x): """ Returns true if x has length """ if len(x): return True return False def exists(x): """ Returns true if x """ if x: return True return False def is_nan(x): """ Returns True if x is nan """ try: if np.isnan(x): return True except TypeError: return False return False # return True iff you have a non-empty iterable # and False for an empty iterable (including an empty string) if can_iter(val): return not_empty(val) # if value is not iterable, return False for np.nan, None, 0, or False # & True for all else else: if is_nan(val): return False if not zero_as_null: if val == 0: return True return exists(val)
python
def not_null(val, zero_as_null=True): """ Comprehensive check to see if a value is null or not. Returns True for: non-empty iterables, True, non-zero floats and ints, non-emtpy strings. Returns False for: empty iterables, False, zero, empty strings. Parameters ---------- val : any Python object zero_as_null: bool treat zero as null, default True Returns --------- boolean """ def can_iter(x): """ Returns True for a non-empty iterable """ try: any(x) return True except TypeError: return False def not_empty(x): """ Returns true if x has length """ if len(x): return True return False def exists(x): """ Returns true if x """ if x: return True return False def is_nan(x): """ Returns True if x is nan """ try: if np.isnan(x): return True except TypeError: return False return False # return True iff you have a non-empty iterable # and False for an empty iterable (including an empty string) if can_iter(val): return not_empty(val) # if value is not iterable, return False for np.nan, None, 0, or False # & True for all else else: if is_nan(val): return False if not zero_as_null: if val == 0: return True return exists(val)
[ "def", "not_null", "(", "val", ",", "zero_as_null", "=", "True", ")", ":", "def", "can_iter", "(", "x", ")", ":", "\"\"\"\n Returns True for a non-empty iterable\n \"\"\"", "try", ":", "any", "(", "x", ")", "return", "True", "except", "TypeError", ":", "return", "False", "def", "not_empty", "(", "x", ")", ":", "\"\"\"\n Returns true if x has length\n \"\"\"", "if", "len", "(", "x", ")", ":", "return", "True", "return", "False", "def", "exists", "(", "x", ")", ":", "\"\"\"\n Returns true if x\n \"\"\"", "if", "x", ":", "return", "True", "return", "False", "def", "is_nan", "(", "x", ")", ":", "\"\"\"\n Returns True if x is nan\n \"\"\"", "try", ":", "if", "np", ".", "isnan", "(", "x", ")", ":", "return", "True", "except", "TypeError", ":", "return", "False", "return", "False", "# return True iff you have a non-empty iterable", "# and False for an empty iterable (including an empty string)", "if", "can_iter", "(", "val", ")", ":", "return", "not_empty", "(", "val", ")", "# if value is not iterable, return False for np.nan, None, 0, or False", "# & True for all else", "else", ":", "if", "is_nan", "(", "val", ")", ":", "return", "False", "if", "not", "zero_as_null", ":", "if", "val", "==", "0", ":", "return", "True", "return", "exists", "(", "val", ")" ]
Comprehensive check to see if a value is null or not. Returns True for: non-empty iterables, True, non-zero floats and ints, non-emtpy strings. Returns False for: empty iterables, False, zero, empty strings. Parameters ---------- val : any Python object zero_as_null: bool treat zero as null, default True Returns --------- boolean
[ "Comprehensive", "check", "to", "see", "if", "a", "value", "is", "null", "or", "not", ".", "Returns", "True", "for", ":", "non", "-", "empty", "iterables", "True", "non", "-", "zero", "floats", "and", "ints", "non", "-", "emtpy", "strings", ".", "Returns", "False", "for", ":", "empty", "iterables", "False", "zero", "empty", "strings", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2251-L2319
train
Returns True if a value is not null or False otherwise.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2092 - 2043) + '\x34' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x31' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x35' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(1054 - 1006) + chr(6429 - 6318) + '\x31' + '\067' + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(174 - 123) + chr(0b110010) + '\x32', 0o10), nzTpIcepk0o8(chr(1232 - 1184) + '\x6f' + '\x32' + chr(0b110010) + chr(429 - 380), 46018 - 46010), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11 + 0o56) + chr(0b11001 + 0o30) + chr(2283 - 2230), 0o10), nzTpIcepk0o8('\060' + chr(2569 - 2458) + '\065' + chr(0b100001 + 0o17), 0o10), nzTpIcepk0o8('\060' + chr(9501 - 9390) + '\061' + '\060' + chr(53), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001 + 0o0) + chr(455 - 401) + chr(973 - 924), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110100), 6383 - 6375), nzTpIcepk0o8(chr(357 - 309) + '\157' + '\x32' + chr(0b110000) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + '\157' + chr(53) + chr(0b110110), 45904 - 45896), nzTpIcepk0o8('\x30' + chr(8881 - 8770) + chr(869 - 819) + chr(0b110100) + chr(0b10 + 0o65), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000 + 0o2) + chr(0b101011 + 0o10) + chr(192 - 139), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110110) + '\062', 20599 - 20591), nzTpIcepk0o8(chr(322 - 274) + chr(4282 - 4171) + chr(0b110011) + '\x35' + '\064', 0o10), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110000 + 0o3) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2144 - 2095) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(2070 - 2016) + chr(0b0 + 0o67), 27897 - 27889), nzTpIcepk0o8(chr(298 - 250) + '\x6f' + chr(1409 - 1360) + chr(0b11001 + 0o30) + '\x33', 26372 - 26364), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\x30' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + '\064', 38665 - 38657), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110111) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\157' + chr(0b11100 + 0o25) + chr(0b110001) + chr(52), 48125 - 48117), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(916 - 866) + '\x30', 49026 - 49018), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110111) + chr(50), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(507 - 454) + '\061', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(49) + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1011000 + 0o27) + chr(50) + chr(0b110011) + '\x36', 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(111) + '\x36' + chr(0b11 + 0o64), 24683 - 24675), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101111 + 0o2) + chr(0b110001) + '\063', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + '\061' + chr(51), 3392 - 3384), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + '\065' + chr(0b110001), 61745 - 61737), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(0b101100 + 0o13) + chr(52), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + '\061' + chr(0b1 + 0o63), 0o10), nzTpIcepk0o8('\060' + chr(896 - 785) + '\063' + '\062' + chr(0b1000 + 0o51), 47971 - 47963), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100001 + 0o22) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x34' + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(53) + chr(487 - 439), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'M'), chr(0b1 + 0o143) + '\145' + chr(6888 - 6789) + chr(0b1101111) + chr(0b101100 + 0o70) + '\x65')('\165' + chr(0b1110100) + chr(0b1001011 + 0o33) + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def OPdnCSWnXMKM(pXwvT17vr09s, oo7ITNfOsl2a=nzTpIcepk0o8(chr(997 - 949) + chr(111) + chr(1774 - 1725), 0b1000)): def CcZ8b3XkS_Lz(bI5jsQ9OkQtj): try: VF4pKOObtlPc(bI5jsQ9OkQtj) return nzTpIcepk0o8(chr(2039 - 1991) + chr(5149 - 5038) + chr(0b110001), 8) except jZIjKu8IFANs: return nzTpIcepk0o8('\x30' + chr(5304 - 5193) + chr(734 - 686), 0b1000) def CFctCOGcgtbk(bI5jsQ9OkQtj): if ftfygxgFas5X(bI5jsQ9OkQtj): return nzTpIcepk0o8(chr(48) + chr(6824 - 6713) + '\061', 8) return nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000), 8) def zSIynPuEvlQ4(bI5jsQ9OkQtj): if bI5jsQ9OkQtj: return nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + '\x31', 8) return nzTpIcepk0o8('\060' + chr(111) + '\060', 8) def On3Mzzao7Nlq(bI5jsQ9OkQtj): try: if roI3spqORKae(nDF4gVNx0u9Q, roI3spqORKae(ES5oEprVxulp(b'\x14\xbb^J\x86\xe69i\x11 2\xdd'), chr(100) + chr(4424 - 4323) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(8545 - 8428) + chr(0b1000110 + 0o56) + chr(0b1100110) + chr(0b11111 + 0o16) + chr(0b0 + 0o70)))(bI5jsQ9OkQtj): return nzTpIcepk0o8(chr(2241 - 2193) + chr(1599 - 1488) + chr(49), 8) except jZIjKu8IFANs: return nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), 8) return nzTpIcepk0o8(chr(0b110000) + '\157' + '\x30', 8) if CcZ8b3XkS_Lz(pXwvT17vr09s): return CFctCOGcgtbk(pXwvT17vr09s) else: if On3Mzzao7Nlq(pXwvT17vr09s): return nzTpIcepk0o8(chr(48) + '\x6f' + chr(48), 8) if not oo7ITNfOsl2a: if pXwvT17vr09s == nzTpIcepk0o8('\060' + chr(3747 - 3636) + chr(0b101111 + 0o1), 8): return nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001), 8) return zSIynPuEvlQ4(pXwvT17vr09s)
PmagPy/PmagPy
pmagpy/contribution_builder.py
get_intensity_col
def get_intensity_col(data): """ Check measurement dataframe for intensity columns 'magn_moment', 'magn_volume', 'magn_mass','magn_uncal'. Return the first intensity column that is in the dataframe AND has data. Parameters ---------- data : pandas DataFrame Returns --------- str intensity method column or "" """ # possible intensity columns intlist = ['magn_moment', 'magn_volume', 'magn_mass','magn_uncal'] # intensity columns that are in the data int_meths = [col_name for col_name in data.columns if col_name in intlist] # drop fully null columns data.dropna(axis='columns', how='all') # ignore columns with only blank values (including "") for col_name in int_meths[:]: if not data[col_name].any(): int_meths.remove(col_name) if len(int_meths): if 'magn_moment' in int_meths: return 'magn_moment' return int_meths[0] return ""
python
def get_intensity_col(data): """ Check measurement dataframe for intensity columns 'magn_moment', 'magn_volume', 'magn_mass','magn_uncal'. Return the first intensity column that is in the dataframe AND has data. Parameters ---------- data : pandas DataFrame Returns --------- str intensity method column or "" """ # possible intensity columns intlist = ['magn_moment', 'magn_volume', 'magn_mass','magn_uncal'] # intensity columns that are in the data int_meths = [col_name for col_name in data.columns if col_name in intlist] # drop fully null columns data.dropna(axis='columns', how='all') # ignore columns with only blank values (including "") for col_name in int_meths[:]: if not data[col_name].any(): int_meths.remove(col_name) if len(int_meths): if 'magn_moment' in int_meths: return 'magn_moment' return int_meths[0] return ""
[ "def", "get_intensity_col", "(", "data", ")", ":", "# possible intensity columns", "intlist", "=", "[", "'magn_moment'", ",", "'magn_volume'", ",", "'magn_mass'", ",", "'magn_uncal'", "]", "# intensity columns that are in the data", "int_meths", "=", "[", "col_name", "for", "col_name", "in", "data", ".", "columns", "if", "col_name", "in", "intlist", "]", "# drop fully null columns", "data", ".", "dropna", "(", "axis", "=", "'columns'", ",", "how", "=", "'all'", ")", "# ignore columns with only blank values (including \"\")", "for", "col_name", "in", "int_meths", "[", ":", "]", ":", "if", "not", "data", "[", "col_name", "]", ".", "any", "(", ")", ":", "int_meths", ".", "remove", "(", "col_name", ")", "if", "len", "(", "int_meths", ")", ":", "if", "'magn_moment'", "in", "int_meths", ":", "return", "'magn_moment'", "return", "int_meths", "[", "0", "]", "return", "\"\"" ]
Check measurement dataframe for intensity columns 'magn_moment', 'magn_volume', 'magn_mass','magn_uncal'. Return the first intensity column that is in the dataframe AND has data. Parameters ---------- data : pandas DataFrame Returns --------- str intensity method column or ""
[ "Check", "measurement", "dataframe", "for", "intensity", "columns", "magn_moment", "magn_volume", "magn_mass", "magn_uncal", ".", "Return", "the", "first", "intensity", "column", "that", "is", "in", "the", "dataframe", "AND", "has", "data", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2328-L2356
train
Returns the first intensity column that is in the dataframe and has data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(813 - 765) + chr(0b1101111) + '\067' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + '\x32' + '\x32', 56990 - 56982), nzTpIcepk0o8(chr(914 - 866) + chr(10892 - 10781) + chr(55) + chr(48), 21666 - 21658), nzTpIcepk0o8(chr(0b11111 + 0o21) + '\x6f' + '\x31' + '\062' + chr(1750 - 1698), 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(0b110110) + '\x33', 0b1000), nzTpIcepk0o8(chr(2044 - 1996) + '\x6f' + chr(49) + '\064' + chr(0b101110 + 0o2), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1267 - 1216) + '\x30', 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(62 - 7) + '\x35', 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(145 - 94) + chr(0b1001 + 0o55), 0o10), nzTpIcepk0o8(chr(1379 - 1331) + '\157' + '\x32' + '\064' + chr(50), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x30' + '\x36', 0b1000), nzTpIcepk0o8('\x30' + chr(8568 - 8457) + chr(963 - 914) + chr(49) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x31' + '\x33' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011001 + 0o26) + chr(252 - 201) + chr(1386 - 1336) + chr(1337 - 1287), 17539 - 17531), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100111 + 0o16) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110110) + chr(55), 9154 - 9146), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(0b110000) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + chr(1671 - 1620) + chr(0b101101 + 0o6) + '\x33', 52759 - 52751), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1835 - 1785) + chr(0b110001) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(0b10000 + 0o47), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + '\063' + chr(0b110100) + chr(0b110000), 47894 - 47886), nzTpIcepk0o8(chr(48) + '\157' + chr(2327 - 2277) + '\x36' + chr(55), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + '\x31' + chr(0b11001 + 0o35) + chr(0b110001), 59694 - 59686), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(111) + '\061' + chr(0b110000) + chr(0b1 + 0o60), 22027 - 22019), nzTpIcepk0o8(chr(0b110000) + chr(0b1010 + 0o145) + '\061' + chr(53) + '\065', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b1111 + 0o44) + chr(54) + chr(2099 - 2050), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(657 - 606) + '\x34' + chr(0b110110), 43667 - 43659), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110101) + chr(0b10000 + 0o42), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + '\x31' + '\x31', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(0b110001 + 0o2) + chr(0b1011 + 0o52), ord("\x08")), nzTpIcepk0o8(chr(310 - 262) + '\157' + chr(0b110011) + chr(0b101000 + 0o13) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(10095 - 9984) + '\x32' + chr(0b11111 + 0o22) + chr(0b100110 + 0o20), 0b1000), nzTpIcepk0o8(chr(1345 - 1297) + '\x6f' + '\x33' + chr(0b110001) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1001110 + 0o41) + chr(51) + chr(0b11000 + 0o30) + '\063', 3854 - 3846), nzTpIcepk0o8('\060' + chr(111) + chr(2142 - 2091) + chr(0b110010) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010110 + 0o31) + '\061' + chr(1694 - 1646), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110110) + '\062', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b10111 + 0o31) + '\x32', 37067 - 37059), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b110001), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x35' + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x11'), '\x64' + chr(0b10101 + 0o120) + chr(2975 - 2876) + chr(0b111100 + 0o63) + chr(100) + chr(0b1 + 0o144))(chr(0b1010110 + 0o37) + chr(7159 - 7043) + '\146' + chr(421 - 376) + chr(0b100010 + 0o26)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def pGVZ5qdyNr38(FfKOThdpoDTb): CtVbSzlHGZGP = [roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\rw\x90;\xcc\xb2'), '\x64' + '\145' + '\143' + '\157' + '\x64' + chr(101))(chr(4998 - 4881) + '\164' + '\146' + chr(1114 - 1069) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\x16w\x91+\xcf\xa3'), chr(100) + chr(101) + '\143' + '\x6f' + chr(9258 - 9158) + chr(0b1100101))(chr(0b1001011 + 0o52) + '\164' + chr(0b11011 + 0o113) + chr(0b100100 + 0o11) + '\070'), roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\ry\x8e-'), '\144' + chr(3267 - 3166) + chr(0b1111 + 0o124) + '\157' + chr(100) + chr(0b1100101))('\x75' + chr(116) + '\146' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\x15v\x9e?\xce'), chr(184 - 84) + '\x65' + '\x63' + chr(8799 - 8688) + '\x64' + '\x65')('\x75' + '\164' + chr(0b1100110) + '\x2d' + chr(56))] IIT8XH9gtwqC = [VuRTNmVdcYm1 for VuRTNmVdcYm1 in FfKOThdpoDTb.U39jSiI54Mlp if VuRTNmVdcYm1 in CtVbSzlHGZGP] roI3spqORKae(FfKOThdpoDTb, roI3spqORKae(ES5oEprVxulp(b'[\xe0W$\xdd\x01'), '\x64' + chr(9132 - 9031) + chr(529 - 430) + chr(0b1100100 + 0o13) + '\x64' + chr(2158 - 2057))('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(3132 - 3076)))(axis=roI3spqORKae(ES5oEprVxulp(b'\\\xfdT!\xde\x0ek'), chr(100) + chr(7607 - 7506) + '\x63' + chr(9682 - 9571) + chr(2343 - 2243) + chr(0b100110 + 0o77))(chr(12738 - 12621) + chr(3403 - 3287) + chr(0b1100110) + chr(1657 - 1612) + '\x38'), how=roI3spqORKae(ES5oEprVxulp(b'^\xfeT'), chr(7901 - 7801) + chr(7455 - 7354) + '\143' + '\x6f' + '\x64' + chr(2650 - 2549))('\165' + chr(116) + '\146' + chr(1861 - 1816) + '\x38')) for VuRTNmVdcYm1 in IIT8XH9gtwqC[:]: if not roI3spqORKae(FfKOThdpoDTb[VuRTNmVdcYm1], roI3spqORKae(ES5oEprVxulp(b'i\xd4\x0c$\xf8/W\x9f*\xce\x96.'), '\x64' + '\145' + chr(0b100100 + 0o77) + '\x6f' + chr(100) + '\145')('\165' + chr(0b1110100) + chr(0b111101 + 0o51) + '\x2d' + '\x38'))(): roI3spqORKae(IIT8XH9gtwqC, roI3spqORKae(ES5oEprVxulp(b'O\xdfT\x01\xdb\x04*\xb73\xe9\x87\x08'), chr(2183 - 2083) + '\145' + chr(0b1100011) + chr(0b110101 + 0o72) + chr(7889 - 7789) + chr(0b1010100 + 0o21))(chr(0b1011010 + 0o33) + chr(0b1110100) + '\x66' + chr(45) + '\x38'))(VuRTNmVdcYm1) if ftfygxgFas5X(IIT8XH9gtwqC): if roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\rw\x90;\xcc\xb2'), '\x64' + chr(8829 - 8728) + '\x63' + chr(0b1100110 + 0o11) + chr(0b1100100) + chr(0b1100101))(chr(0b1000000 + 0o65) + chr(13425 - 13309) + chr(0b100001 + 0o105) + chr(0b100100 + 0o11) + chr(1369 - 1313)) in IIT8XH9gtwqC: return roI3spqORKae(ES5oEprVxulp(b'R\xf3_:\xec\rw\x90;\xcc\xb2'), '\144' + chr(0b1100101) + chr(0b1011110 + 0o5) + chr(3705 - 3594) + chr(0b111111 + 0o45) + chr(0b1100101))(chr(11419 - 11302) + '\164' + '\146' + chr(0b100001 + 0o14) + chr(0b111000)) return IIT8XH9gtwqC[nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + chr(0b110000), 0o10)] return roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + chr(0b101111 + 0o64) + chr(0b1000001 + 0o56) + chr(6808 - 6708) + '\145')(chr(11981 - 11864) + '\164' + chr(102) + chr(0b100101 + 0o10) + chr(0b1011 + 0o55))
PmagPy/PmagPy
pmagpy/contribution_builder.py
add_sites_to_meas_table
def add_sites_to_meas_table(dir_path): """ Add site columns to measurements table (e.g., to plot intensity data), or generate an informative error message. Parameters ---------- dir_path : str directory with data files Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with site/sample """ reqd_tables = ['measurements', 'specimens', 'samples', 'sites'] con = Contribution(dir_path, read_tables=reqd_tables) # check that all required tables are available missing_tables = [] for table in reqd_tables: if table not in con.tables: missing_tables.append(table) if missing_tables: return False, "You are missing {} tables".format(", ".join(missing_tables)) # put sample column into the measurements table con.propagate_name_down('sample', 'measurements') # put site column into the measurements table con.propagate_name_down('site', 'measurements') # check that column propagation was successful if 'site' not in con.tables['measurements'].df.columns: return False, "Something went wrong with propagating sites down to the measurement level" return True, con.tables['measurements'].df
python
def add_sites_to_meas_table(dir_path): """ Add site columns to measurements table (e.g., to plot intensity data), or generate an informative error message. Parameters ---------- dir_path : str directory with data files Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with site/sample """ reqd_tables = ['measurements', 'specimens', 'samples', 'sites'] con = Contribution(dir_path, read_tables=reqd_tables) # check that all required tables are available missing_tables = [] for table in reqd_tables: if table not in con.tables: missing_tables.append(table) if missing_tables: return False, "You are missing {} tables".format(", ".join(missing_tables)) # put sample column into the measurements table con.propagate_name_down('sample', 'measurements') # put site column into the measurements table con.propagate_name_down('site', 'measurements') # check that column propagation was successful if 'site' not in con.tables['measurements'].df.columns: return False, "Something went wrong with propagating sites down to the measurement level" return True, con.tables['measurements'].df
[ "def", "add_sites_to_meas_table", "(", "dir_path", ")", ":", "reqd_tables", "=", "[", "'measurements'", ",", "'specimens'", ",", "'samples'", ",", "'sites'", "]", "con", "=", "Contribution", "(", "dir_path", ",", "read_tables", "=", "reqd_tables", ")", "# check that all required tables are available", "missing_tables", "=", "[", "]", "for", "table", "in", "reqd_tables", ":", "if", "table", "not", "in", "con", ".", "tables", ":", "missing_tables", ".", "append", "(", "table", ")", "if", "missing_tables", ":", "return", "False", ",", "\"You are missing {} tables\"", ".", "format", "(", "\", \"", ".", "join", "(", "missing_tables", ")", ")", "# put sample column into the measurements table", "con", ".", "propagate_name_down", "(", "'sample'", ",", "'measurements'", ")", "# put site column into the measurements table", "con", ".", "propagate_name_down", "(", "'site'", ",", "'measurements'", ")", "# check that column propagation was successful", "if", "'site'", "not", "in", "con", ".", "tables", "[", "'measurements'", "]", ".", "df", ".", "columns", ":", "return", "False", ",", "\"Something went wrong with propagating sites down to the measurement level\"", "return", "True", ",", "con", ".", "tables", "[", "'measurements'", "]", ".", "df" ]
Add site columns to measurements table (e.g., to plot intensity data), or generate an informative error message. Parameters ---------- dir_path : str directory with data files Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with site/sample
[ "Add", "site", "columns", "to", "measurements", "table", "(", "e", ".", "g", ".", "to", "plot", "intensity", "data", ")", "or", "generate", "an", "informative", "error", "message", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2359-L2394
train
Add site columns to the measurements table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(50) + '\x37', 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(2531 - 2480) + chr(848 - 798) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1203 - 1152) + chr(48) + chr(215 - 165), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1 + 0o156) + '\063' + chr(1869 - 1815) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\065' + chr(48), 13613 - 13605), nzTpIcepk0o8('\060' + chr(3839 - 3728) + '\063' + chr(0b110011) + chr(1215 - 1167), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000 + 0o2) + chr(0b110101 + 0o2) + chr(0b100101 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\067' + chr(0b110011), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(494 - 445) + chr(0b110001 + 0o0) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(1770 - 1722) + '\x6f' + chr(0b110001) + chr(0b10111 + 0o33) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(1265 - 1217) + chr(111) + '\x33' + chr(1273 - 1224) + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6030 - 5919) + chr(50) + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + '\x31' + chr(0b10101 + 0o41) + chr(644 - 595), ord("\x08")), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(3700 - 3589) + '\x37' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101101 + 0o2) + '\061' + '\066' + chr(0b110000), 36866 - 36858), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b101011 + 0o104) + chr(0b110011) + '\x36' + '\066', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101101 + 0o2) + '\061' + chr(2192 - 2142) + chr(0b1100 + 0o50), 8), nzTpIcepk0o8('\060' + chr(0b100001 + 0o116) + '\062' + '\x31' + chr(0b100111 + 0o15), 1118 - 1110), nzTpIcepk0o8('\060' + chr(1726 - 1615) + '\x31' + '\062' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b100000 + 0o25) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\061' + chr(0b11010 + 0o27), 0b1000), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b110001) + '\x31' + chr(0b101101 + 0o4), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b110110) + chr(51), 0b1000), nzTpIcepk0o8(chr(310 - 262) + '\157' + chr(0b110011) + '\x30' + chr(383 - 333), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101100 + 0o5) + chr(0b111 + 0o56) + chr(986 - 931), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110000 + 0o2) + '\060' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + '\x34' + '\x32', 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + '\065' + chr(2308 - 2258), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100101 + 0o112) + chr(49) + chr(814 - 762) + '\065', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + '\064', 52675 - 52667), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(511 - 461) + chr(0b10110 + 0o32) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(0b110110) + chr(0b111 + 0o54), 8), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b1101111) + '\x31' + '\067' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + '\067' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001) + chr(0b110010 + 0o3), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + '\060' + '\063', 2131 - 2123), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1000 + 0o147) + chr(2684 - 2629) + chr(221 - 166), 65279 - 65271), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x35' + '\062', 8), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\061' + chr(0b1101 + 0o46), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b100001 + 0o116) + chr(1391 - 1338) + chr(0b10011 + 0o35), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'9'), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(0b110100 + 0o60) + chr(0b110110 + 0o57))(chr(3632 - 3515) + '\x74' + '\x66' + chr(0b100010 + 0o13) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def wSLlQZaG_51S(qjksZ7GK0xkJ): No1O0g0axK6X = [roI3spqORKae(ES5oEprVxulp(b'z\xb0\xa3\x86\x1d\xaa\xdc\x16/:\xba\xd3'), '\144' + chr(0b1100101) + chr(99) + chr(111) + chr(2386 - 2286) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b10001 + 0o47)), roI3spqORKae(ES5oEprVxulp(b'd\xa5\xa7\x96\x01\xb5\xdc\x159'), chr(0b100 + 0o140) + '\x65' + chr(0b1100011) + '\157' + '\144' + '\145')(chr(9612 - 9495) + '\164' + chr(0b1100110) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'd\xb4\xaf\x85\x04\xbd\xca'), '\144' + '\x65' + chr(5863 - 5764) + '\x6f' + chr(0b1001110 + 0o26) + '\x65')(chr(5671 - 5554) + '\x74' + chr(0b1100110) + chr(0b101100 + 0o1) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'd\xbc\xb6\x90\x1b'), '\x64' + chr(101) + chr(0b1100001 + 0o2) + chr(0b1101111) + '\x64' + '\145')(chr(117) + '\164' + chr(3034 - 2932) + chr(1872 - 1827) + chr(271 - 215))] D3H9MFOOog2W = TB0DbVB7zsJj(qjksZ7GK0xkJ, read_tables=No1O0g0axK6X) zf8ME3IVT_Vx = [] for JlcDRbBtmPwV in No1O0g0axK6X: if JlcDRbBtmPwV not in roI3spqORKae(D3H9MFOOog2W, roI3spqORKae(ES5oEprVxulp(b'@\xb2\xb6\xa6"\x80\x89\x08\x03\r\xbe\xec'), chr(1738 - 1638) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + chr(56))): roI3spqORKae(zf8ME3IVT_Vx, roI3spqORKae(ES5oEprVxulp(b'_\x81\x91\xc1\x10\xbf\xfe\x14 ;\x9b\x95'), chr(6536 - 6436) + chr(0b1100101) + chr(1063 - 964) + chr(111) + chr(100) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'))(JlcDRbBtmPwV) if zf8ME3IVT_Vx: return (nzTpIcepk0o8(chr(2298 - 2250) + chr(111) + chr(667 - 619), 0o10), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"N\xba\xb7\xd5\t\xaa\xdc['=\xbd\xd3\x18T\x17\xd6/\xf1s\x98\xa8+\xdf\xa7\x1c"), '\144' + chr(0b1100101) + chr(7244 - 7145) + chr(0b10001 + 0o136) + '\144' + '\x65')(chr(10708 - 10591) + chr(0b1110100) + '\146' + chr(0b101101) + chr(2457 - 2401)), roI3spqORKae(ES5oEprVxulp(b'f\xe6\xf1\xbe/\xeb\xdf\x14\x1b\x0b\x8d\xea'), chr(3592 - 3492) + '\x65' + '\143' + chr(3203 - 3092) + '\x64' + chr(8827 - 8726))('\x75' + chr(0b100110 + 0o116) + chr(0b1001010 + 0o34) + '\055' + chr(0b111000)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b';\xf5'), '\144' + '\145' + chr(0b1000 + 0o133) + chr(111) + chr(0b1100100) + chr(7029 - 6928))('\x75' + chr(10157 - 10041) + '\146' + chr(45) + chr(1411 - 1355)), roI3spqORKae(ES5oEprVxulp(b'N\xe1\xbb\xb8Q\x9a\xda\x1d\x1e\x17\x80\xd1'), '\x64' + '\x65' + chr(99) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(6667 - 6565) + chr(1569 - 1524) + chr(56)))(zf8ME3IVT_Vx))) roI3spqORKae(D3H9MFOOog2W, roI3spqORKae(ES5oEprVxulp(b'g\xa7\xad\x85\t\xbf\xd8\x0f/\x0b\xa0\xc1\x1c_/\x92;\xfb='), chr(0b1100100) + chr(0b100 + 0o141) + '\143' + chr(0b1000000 + 0o57) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1010001 + 0o43) + '\x66' + chr(45) + chr(2618 - 2562)))(roI3spqORKae(ES5oEprVxulp(b'd\xb4\xaf\x85\x04\xbd'), '\x64' + '\x65' + '\143' + '\x6f' + '\144' + '\145')(chr(10945 - 10828) + '\164' + chr(102) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'z\xb0\xa3\x86\x1d\xaa\xdc\x16/:\xba\xd3'), chr(0b1100100) + chr(1271 - 1170) + chr(0b1100011) + chr(111) + '\144' + chr(5792 - 5691))(chr(0b1000011 + 0o62) + chr(4704 - 4588) + '\146' + '\x2d' + chr(0b10110 + 0o42))) roI3spqORKae(D3H9MFOOog2W, roI3spqORKae(ES5oEprVxulp(b'g\xa7\xad\x85\t\xbf\xd8\x0f/\x0b\xa0\xc1\x1c_/\x92;\xfb='), chr(100) + '\145' + chr(99) + '\x6f' + chr(0b1010111 + 0o15) + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(45) + chr(2352 - 2296)))(roI3spqORKae(ES5oEprVxulp(b'd\xbc\xb6\x90'), chr(100) + '\x65' + chr(0b100111 + 0o74) + chr(111) + '\144' + chr(0b1010100 + 0o21))(chr(2213 - 2096) + '\164' + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'z\xb0\xa3\x86\x1d\xaa\xdc\x16/:\xba\xd3'), chr(1394 - 1294) + chr(0b110101 + 0o60) + chr(6244 - 6145) + chr(0b100001 + 0o116) + chr(2816 - 2716) + chr(101))('\165' + chr(0b1110100) + chr(3572 - 3470) + chr(0b1010 + 0o43) + chr(0b11011 + 0o35))) if roI3spqORKae(ES5oEprVxulp(b'd\xbc\xb6\x90'), '\x64' + chr(4241 - 4140) + chr(0b1011000 + 0o13) + chr(0b11110 + 0o121) + chr(0b1000101 + 0o37) + chr(4911 - 4810))(chr(12529 - 12412) + chr(116) + chr(102) + chr(0b10001 + 0o34) + chr(56)) not in roI3spqORKae(D3H9MFOOog2W.tables[roI3spqORKae(ES5oEprVxulp(b'z\xb0\xa3\x86\x1d\xaa\xdc\x16/:\xba\xd3'), '\144' + '\145' + chr(0b1100011) + chr(0b1101111) + chr(351 - 251) + chr(101))(chr(117) + chr(0b1110100) + '\x66' + '\055' + '\x38')].df, roI3spqORKae(ES5oEprVxulp(b'B\xe6\xfb\x9f;\xb1\xf0N~\x19\xa2\xd0'), chr(100) + '\145' + chr(3493 - 3394) + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(116) + chr(102) + chr(45) + chr(309 - 253))): return (nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x30', 8), roI3spqORKae(ES5oEprVxulp(b'D\xba\xaf\x90\x1c\xb0\xd0\x15-t\xb9\xc5\x1fNP\x81&\xe3=\x8b\xe9>\xda\xb6\x07\xa7\xd2X\nl\xe1\xd4\x1eMdt$\x1fY"c\xb0\xb1\xd5\x0c\xb7\xce\x15j \xa1\x80\x05R\x15\xd69\xe92\x9f\xbc;\xd6\xaf\n\xe9\xd6\n\ty\xf6\xd6\x13'), chr(0b100111 + 0o75) + '\145' + chr(8015 - 7916) + chr(111) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(931 - 886) + chr(0b111000 + 0o0))) return (nzTpIcepk0o8(chr(2149 - 2101) + chr(0b10011 + 0o134) + '\x31', 0b1000), roI3spqORKae(D3H9MFOOog2W.tables[roI3spqORKae(ES5oEprVxulp(b'z\xb0\xa3\x86\x1d\xaa\xdc\x16/:\xba\xd3'), chr(3428 - 3328) + chr(3838 - 3737) + '\143' + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(3988 - 3872) + '\146' + chr(543 - 498) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'}\xa5\x8d\x9bP\x9c\xf7!26\xac\xd8'), chr(0b1100100) + chr(0b101011 + 0o72) + chr(0b10110 + 0o115) + chr(11088 - 10977) + '\x64' + '\x65')(chr(0b111110 + 0o67) + '\x74' + chr(0b1100110) + chr(1367 - 1322) + chr(0b111000))))
PmagPy/PmagPy
pmagpy/contribution_builder.py
prep_for_intensity_plot
def prep_for_intensity_plot(data, meth_code, dropna=(), reqd_cols=()): """ Strip down measurement data to what is needed for an intensity plot. Find the column with intensity data. Drop empty columns, and make sure required columns are present. Keep only records with the specified method code. Parameters ---------- data : pandas DataFrame measurement dataframe meth_code : str MagIC method code to include, i.e. 'LT-AF-Z' dropna : list columns that must not be empty reqd_cols : list columns that must be present Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with required columns """ # initialize dropna = list(dropna) reqd_cols = list(reqd_cols) # get intensity column try: magn_col = get_intensity_col(data) except AttributeError: return False, "Could not get intensity method from data" # drop empty columns if magn_col not in dropna: dropna.append(magn_col) data = data.dropna(axis=0, subset=dropna) # add to reqd_cols list if 'method_codes' not in reqd_cols: reqd_cols.append('method_codes') if magn_col not in reqd_cols: reqd_cols.append(magn_col) # drop non reqd cols, make sure all reqd cols are present try: data = data[reqd_cols] except KeyError as ex: print(ex) missing = set(reqd_cols).difference(data.columns) return False, "missing these required columns: {}".format(", ".join(missing)) # filter out records without the correct method code data = data[data['method_codes'].str.contains(meth_code).astype(bool)] return True, data
python
def prep_for_intensity_plot(data, meth_code, dropna=(), reqd_cols=()): """ Strip down measurement data to what is needed for an intensity plot. Find the column with intensity data. Drop empty columns, and make sure required columns are present. Keep only records with the specified method code. Parameters ---------- data : pandas DataFrame measurement dataframe meth_code : str MagIC method code to include, i.e. 'LT-AF-Z' dropna : list columns that must not be empty reqd_cols : list columns that must be present Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with required columns """ # initialize dropna = list(dropna) reqd_cols = list(reqd_cols) # get intensity column try: magn_col = get_intensity_col(data) except AttributeError: return False, "Could not get intensity method from data" # drop empty columns if magn_col not in dropna: dropna.append(magn_col) data = data.dropna(axis=0, subset=dropna) # add to reqd_cols list if 'method_codes' not in reqd_cols: reqd_cols.append('method_codes') if magn_col not in reqd_cols: reqd_cols.append(magn_col) # drop non reqd cols, make sure all reqd cols are present try: data = data[reqd_cols] except KeyError as ex: print(ex) missing = set(reqd_cols).difference(data.columns) return False, "missing these required columns: {}".format(", ".join(missing)) # filter out records without the correct method code data = data[data['method_codes'].str.contains(meth_code).astype(bool)] return True, data
[ "def", "prep_for_intensity_plot", "(", "data", ",", "meth_code", ",", "dropna", "=", "(", ")", ",", "reqd_cols", "=", "(", ")", ")", ":", "# initialize", "dropna", "=", "list", "(", "dropna", ")", "reqd_cols", "=", "list", "(", "reqd_cols", ")", "# get intensity column", "try", ":", "magn_col", "=", "get_intensity_col", "(", "data", ")", "except", "AttributeError", ":", "return", "False", ",", "\"Could not get intensity method from data\"", "# drop empty columns", "if", "magn_col", "not", "in", "dropna", ":", "dropna", ".", "append", "(", "magn_col", ")", "data", "=", "data", ".", "dropna", "(", "axis", "=", "0", ",", "subset", "=", "dropna", ")", "# add to reqd_cols list", "if", "'method_codes'", "not", "in", "reqd_cols", ":", "reqd_cols", ".", "append", "(", "'method_codes'", ")", "if", "magn_col", "not", "in", "reqd_cols", ":", "reqd_cols", ".", "append", "(", "magn_col", ")", "# drop non reqd cols, make sure all reqd cols are present", "try", ":", "data", "=", "data", "[", "reqd_cols", "]", "except", "KeyError", "as", "ex", ":", "print", "(", "ex", ")", "missing", "=", "set", "(", "reqd_cols", ")", ".", "difference", "(", "data", ".", "columns", ")", "return", "False", ",", "\"missing these required columns: {}\"", ".", "format", "(", "\", \"", ".", "join", "(", "missing", ")", ")", "# filter out records without the correct method code", "data", "=", "data", "[", "data", "[", "'method_codes'", "]", ".", "str", ".", "contains", "(", "meth_code", ")", ".", "astype", "(", "bool", ")", "]", "return", "True", ",", "data" ]
Strip down measurement data to what is needed for an intensity plot. Find the column with intensity data. Drop empty columns, and make sure required columns are present. Keep only records with the specified method code. Parameters ---------- data : pandas DataFrame measurement dataframe meth_code : str MagIC method code to include, i.e. 'LT-AF-Z' dropna : list columns that must not be empty reqd_cols : list columns that must be present Returns ---------- status : bool True if successful, else False data : pandas DataFrame measurement data with required columns
[ "Strip", "down", "measurement", "data", "to", "what", "is", "needed", "for", "an", "intensity", "plot", ".", "Find", "the", "column", "with", "intensity", "data", ".", "Drop", "empty", "columns", "and", "make", "sure", "required", "columns", "are", "present", ".", "Keep", "only", "records", "with", "the", "specified", "method", "code", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2433-L2484
train
Prepare the data for an intensity plot.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(272 - 223) + chr(0b110111) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x34' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + chr(1907 - 1858) + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\064' + chr(0b11010 + 0o31), 34568 - 34560), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(55) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(694 - 646) + chr(10323 - 10212) + '\062' + chr(0b110110) + chr(0b110011), 8208 - 8200), nzTpIcepk0o8(chr(1256 - 1208) + chr(111) + chr(1299 - 1250) + chr(0b110001) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1065 - 1017) + '\x6f' + chr(1200 - 1145) + '\x34', 49640 - 49632), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b110001) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001011 + 0o44) + '\x33' + chr(160 - 106), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b100 + 0o62), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011 + 0o1) + chr(50), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + '\x34' + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10 + 0o60) + '\x36' + chr(2335 - 2284), 8), nzTpIcepk0o8(chr(1827 - 1779) + '\x6f' + chr(50) + '\066' + chr(51), 8), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(0b1101001 + 0o6) + chr(50) + chr(0b110110) + '\x32', 9594 - 9586), nzTpIcepk0o8(chr(48) + chr(111) + '\065' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(0b110111) + '\065', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b100 + 0o153) + chr(0b110001) + chr(0b1101 + 0o47) + chr(1019 - 965), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(51) + '\x32' + '\x31', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101000 + 0o7) + chr(0b11110 + 0o23) + chr(0b11000 + 0o36) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + chr(0b110001) + '\x34', 0b1000), nzTpIcepk0o8(chr(444 - 396) + chr(6145 - 6034) + chr(0b11101 + 0o25) + chr(50) + chr(982 - 931), 31547 - 31539), nzTpIcepk0o8(chr(48) + chr(0b10000 + 0o137) + chr(2113 - 2062) + chr(0b110101 + 0o2) + chr(0b10010 + 0o40), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\063' + chr(53) + chr(0b110010), 64903 - 64895), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101111 + 0o3) + chr(0b110101) + chr(0b101 + 0o62), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(11809 - 11698) + '\x33' + chr(0b1010 + 0o47) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11 + 0o154) + chr(0b100011 + 0o17) + chr(51) + chr(0b100 + 0o56), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b110101) + chr(0b110101), 59341 - 59333), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31' + chr(1847 - 1795) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1011100 + 0o23) + '\063' + chr(0b110111) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100011 + 0o114) + chr(1979 - 1930) + chr(55) + chr(1062 - 1010), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10001 + 0o40) + chr(0b11111 + 0o25), 42883 - 42875), nzTpIcepk0o8(chr(0b110000) + chr(0b1010000 + 0o37) + '\061' + chr(1757 - 1708) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + chr(3524 - 3413) + chr(0b110010) + chr(1337 - 1282) + chr(49), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(269 - 219) + chr(48) + '\x33', 0o10), nzTpIcepk0o8(chr(1703 - 1655) + '\157' + chr(887 - 837) + chr(52) + chr(49), 8), nzTpIcepk0o8(chr(1599 - 1551) + chr(0b1101111) + chr(51) + chr(0b10101 + 0o34) + chr(54), 55245 - 55237), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(757 - 706) + '\061' + chr(2086 - 2035), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1000111 + 0o50) + '\065' + chr(0b10111 + 0o31), 9350 - 9342)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Q'), chr(8631 - 8531) + chr(0b1100101) + '\143' + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1110101) + chr(0b100000 + 0o124) + chr(628 - 526) + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def vivvn_RaHsUu(FfKOThdpoDTb, NpCo7y0gquHT, vjo_Id7sdcDX=(), ONiuvH9E1FFz=()): vjo_Id7sdcDX = H4NoA26ON7iG(vjo_Id7sdcDX) ONiuvH9E1FFz = H4NoA26ON7iG(ONiuvH9E1FFz) try: C5H4KGTJIBVY = pGVZ5qdyNr38(FfKOThdpoDTb) except bIsJhlpYrrU2: return (nzTpIcepk0o8(chr(1362 - 1314) + '\157' + chr(1697 - 1649), 0o10), roI3spqORKae(ES5oEprVxulp(b'<H|\x0f[\x93&S;>iG\xd5+\xda\xdd\xc6OS\x15\xb8\x005\xb3\x97\x8f\xdb\xa7\xf5\x89E\x9f\x0ec!\x99\xe7\xc0\xba\xaa'), '\x64' + '\145' + chr(3187 - 3088) + '\x6f' + '\144' + chr(0b1100101))('\x75' + chr(3575 - 3459) + chr(1886 - 1784) + chr(0b100100 + 0o11) + chr(56))) if C5H4KGTJIBVY not in vjo_Id7sdcDX: roI3spqORKae(vjo_Id7sdcDX, roI3spqORKae(ES5oEprVxulp(b'7sZWG\xd4\x0fS%q[\x17'), chr(0b1100100) + '\x65' + chr(7441 - 7342) + chr(0b1101111) + chr(0b110000 + 0o64) + '\145')('\x75' + chr(0b101110 + 0o106) + '\146' + chr(0b11 + 0o52) + '\x38'))(C5H4KGTJIBVY) FfKOThdpoDTb = FfKOThdpoDTb.dropna(axis=nzTpIcepk0o8(chr(48) + '\157' + chr(0b101111 + 0o1), 8), subset=vjo_Id7sdcDX) if roI3spqORKae(ES5oEprVxulp(b'\x12B}\x0bP\xd7\x17_ zkQ'), chr(0b1100100) + chr(9226 - 9125) + '\x63' + chr(11702 - 11591) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\x38') not in ONiuvH9E1FFz: roI3spqORKae(ONiuvH9E1FFz, roI3spqORKae(ES5oEprVxulp(b'7sZWG\xd4\x0fS%q[\x17'), chr(100) + chr(885 - 784) + chr(99) + chr(10996 - 10885) + chr(0b1100001 + 0o3) + chr(0b110110 + 0o57))(chr(117) + chr(116) + chr(0b1000100 + 0o42) + chr(0b101101) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x12B}\x0bP\xd7\x17_ zkQ'), chr(100) + chr(101) + '\143' + '\157' + chr(0b1100011 + 0o1) + '\x65')(chr(0b101100 + 0o111) + '\x74' + chr(0b1111 + 0o127) + chr(0b101101) + chr(56))) if C5H4KGTJIBVY not in ONiuvH9E1FFz: roI3spqORKae(ONiuvH9E1FFz, roI3spqORKae(ES5oEprVxulp(b'7sZWG\xd4\x0fS%q[\x17'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(0b1001000 + 0o34) + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(45) + chr(2630 - 2574)))(C5H4KGTJIBVY) try: FfKOThdpoDTb = FfKOThdpoDTb[ONiuvH9E1FFz] except knUxyjfq07F9 as dclkBu6Bdnnh: v8jsMqaYV6U2(dclkBu6Bdnnh) NXbW5jBRufBw = Bvi71nNyvlqO(ONiuvH9E1FFz)._61auecdOib2(FfKOThdpoDTb.U39jSiI54Mlp) return (nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(48), 8), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x12Nz\x10V\xdd/\x1c;vkQ\xc4+\xc1\xd6\xc3_T\x14\xb4\x10l\xf0\x95\x86\xda\xa2\xf4\x9e_\xd9\x07q'), chr(0b1100100) + chr(0b1100101) + chr(2758 - 2659) + chr(2395 - 2284) + '\x64' + chr(0b1010110 + 0o17))('\165' + chr(0b1000111 + 0o55) + chr(102) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x0e\x14:(x\x80.S\x1eAMh'), chr(100) + chr(1879 - 1778) + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b10101 + 0o140) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(714 - 658)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'S\x07'), '\144' + '\145' + chr(9724 - 9625) + chr(6062 - 5951) + '\x64' + chr(0b111001 + 0o54))('\165' + '\164' + '\x66' + chr(0b100011 + 0o12) + chr(0b100110 + 0o22)), roI3spqORKae(ES5oEprVxulp(b'&\x13p.\x06\xf1+Z\x1b]@S'), chr(5041 - 4941) + chr(0b1100101) + '\143' + chr(0b1011000 + 0o27) + chr(0b1100100) + chr(101))('\165' + chr(0b1001100 + 0o50) + '\146' + chr(0b101101) + chr(0b101100 + 0o14)))(NXbW5jBRufBw))) FfKOThdpoDTb = FfKOThdpoDTb[FfKOThdpoDTb[roI3spqORKae(ES5oEprVxulp(b'\x12B}\x0bP\xd7\x17_ zkQ'), chr(0b100011 + 0o101) + '\145' + chr(0b1001011 + 0o30) + chr(111) + '\x64' + '\x65')(chr(10550 - 10433) + '\x74' + '\x66' + chr(1012 - 967) + chr(0b110101 + 0o3))].str.contains(NpCo7y0gquHT).xqAChpcBkssb(TVUhqOt5_BbS)] return (nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31', ord("\x08")), FfKOThdpoDTb)
PmagPy/PmagPy
pmagpy/contribution_builder.py
stringify_col
def stringify_col(df, col_name): """ Take a dataframe and string-i-fy a column of values. Turn nan/None into "" and all other values into strings. Parameters ---------- df : dataframe col_name : string """ df = df.copy() df[col_name] = df[col_name].fillna("") df[col_name] = df[col_name].astype(str) return df
python
def stringify_col(df, col_name): """ Take a dataframe and string-i-fy a column of values. Turn nan/None into "" and all other values into strings. Parameters ---------- df : dataframe col_name : string """ df = df.copy() df[col_name] = df[col_name].fillna("") df[col_name] = df[col_name].astype(str) return df
[ "def", "stringify_col", "(", "df", ",", "col_name", ")", ":", "df", "=", "df", ".", "copy", "(", ")", "df", "[", "col_name", "]", "=", "df", "[", "col_name", "]", ".", "fillna", "(", "\"\"", ")", "df", "[", "col_name", "]", "=", "df", "[", "col_name", "]", ".", "astype", "(", "str", ")", "return", "df" ]
Take a dataframe and string-i-fy a column of values. Turn nan/None into "" and all other values into strings. Parameters ---------- df : dataframe col_name : string
[ "Take", "a", "dataframe", "and", "string", "-", "i", "-", "fy", "a", "column", "of", "values", ".", "Turn", "nan", "/", "None", "into", "and", "all", "other", "values", "into", "strings", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2486-L2499
train
Takes a dataframe and string - i - fy a column of values.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(770 - 722) + '\157' + chr(0b10001 + 0o40) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(1336 - 1288) + chr(0b11111 + 0o120) + '\066' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + '\x34' + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\063' + chr(0b11010 + 0o34), 55118 - 55110), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(0b10010 + 0o43) + chr(0b10110 + 0o40), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(1015 - 964) + chr(53) + chr(919 - 866), 27074 - 27066), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(50) + chr(0b110011) + '\x32', 0o10), nzTpIcepk0o8(chr(1373 - 1325) + chr(111) + chr(0b101010 + 0o7) + chr(0b110010 + 0o4) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + chr(233 - 183) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b110001) + chr(0b1001 + 0o54) + '\x33', 52131 - 52123), nzTpIcepk0o8(chr(48) + '\157' + '\063' + '\x31' + chr(0b110010), 13205 - 13197), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(11632 - 11521) + chr(2537 - 2486) + '\x30' + chr(1587 - 1539), 4662 - 4654), nzTpIcepk0o8(chr(0b110000) + chr(7472 - 7361) + '\067' + chr(69 - 18), 0o10), nzTpIcepk0o8(chr(1120 - 1072) + '\x6f' + '\x31' + '\x32' + '\x34', 0o10), nzTpIcepk0o8(chr(641 - 593) + chr(2762 - 2651) + '\062' + '\065' + chr(0b100111 + 0o12), 47193 - 47185), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(49) + chr(742 - 694), 30081 - 30073), nzTpIcepk0o8('\060' + chr(111) + chr(1493 - 1443) + '\x34' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x35' + chr(0b110000), 853 - 845), nzTpIcepk0o8('\060' + chr(10874 - 10763) + '\x32' + '\060' + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(1377 - 1328) + chr(54) + chr(50), 0o10), nzTpIcepk0o8(chr(775 - 727) + '\x6f' + chr(0b100 + 0o56) + chr(0b100111 + 0o13) + chr(524 - 476), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(2410 - 2360) + chr(2494 - 2441) + chr(0b1000 + 0o55), 0b1000), nzTpIcepk0o8(chr(908 - 860) + chr(9852 - 9741) + '\062' + chr(48) + chr(2102 - 2052), 0o10), nzTpIcepk0o8(chr(48) + chr(5038 - 4927) + chr(53) + chr(55), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\062' + chr(0b11010 + 0o32) + chr(53), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(7615 - 7504) + chr(0b11101 + 0o24) + chr(0b110001) + chr(2697 - 2644), ord("\x08")), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(51) + '\064' + chr(0b1010 + 0o51), 38073 - 38065), nzTpIcepk0o8(chr(2051 - 2003) + '\157' + '\x31' + chr(0b110111) + chr(55), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(49) + chr(0b101011 + 0o7), ord("\x08")), nzTpIcepk0o8('\x30' + chr(9029 - 8918) + chr(0b110010) + '\065' + chr(53), 8), nzTpIcepk0o8(chr(2290 - 2242) + chr(1388 - 1277) + chr(0b110010) + '\x34' + chr(1710 - 1657), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110100) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000 + 0o1) + chr(0b1101 + 0o43) + chr(0b10101 + 0o42), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\x31' + '\061', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + '\x34' + '\062', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1000110 + 0o51) + '\061' + '\x30' + '\067', 8), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(4109 - 3998) + chr(0b110001) + chr(0b110110) + '\x35', 8290 - 8282), nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b1101111) + '\x31' + chr(0b110111) + chr(0b10 + 0o60), 9768 - 9760), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(432 - 377) + chr(0b110011 + 0o3), 0o10), nzTpIcepk0o8('\x30' + chr(395 - 284) + '\x33' + chr(51) + '\x32', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + '\065' + chr(2179 - 2131), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'%'), chr(0b1010001 + 0o23) + '\x65' + '\143' + '\x6f' + chr(0b1100100) + chr(0b101 + 0o140))(chr(0b1110101) + chr(0b1001100 + 0o50) + '\x66' + chr(716 - 671) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def kaTEKt2cnBQr(jpOn8DNZxbbx, VuRTNmVdcYm1): jpOn8DNZxbbx = jpOn8DNZxbbx.copy() jpOn8DNZxbbx[VuRTNmVdcYm1] = jpOn8DNZxbbx[VuRTNmVdcYm1].fillna(roI3spqORKae(ES5oEprVxulp(b''), chr(0b100000 + 0o104) + chr(4813 - 4712) + '\x63' + chr(5212 - 5101) + chr(1910 - 1810) + '\x65')(chr(11609 - 11492) + '\x74' + chr(1279 - 1177) + '\x2d' + chr(2347 - 2291))) jpOn8DNZxbbx[VuRTNmVdcYm1] = jpOn8DNZxbbx[VuRTNmVdcYm1].xqAChpcBkssb(N9zlRy29S1SS) return jpOn8DNZxbbx
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.add_empty_magic_table
def add_empty_magic_table(self, dtype, col_names=None, groups=None): """ Add a blank MagicDataFrame to the contribution. You can provide either a list of column names, or a list of column group names. If provided, col_names takes precedence. """ if dtype not in self.table_names: print("-W- {} is not a valid MagIC table name".format(dtype)) print("-I- Valid table names are: {}".format(", ".join(self.table_names))) return data_container = MagicDataFrame(dtype=dtype, columns=col_names, groups=groups) self.tables[dtype] = data_container
python
def add_empty_magic_table(self, dtype, col_names=None, groups=None): """ Add a blank MagicDataFrame to the contribution. You can provide either a list of column names, or a list of column group names. If provided, col_names takes precedence. """ if dtype not in self.table_names: print("-W- {} is not a valid MagIC table name".format(dtype)) print("-I- Valid table names are: {}".format(", ".join(self.table_names))) return data_container = MagicDataFrame(dtype=dtype, columns=col_names, groups=groups) self.tables[dtype] = data_container
[ "def", "add_empty_magic_table", "(", "self", ",", "dtype", ",", "col_names", "=", "None", ",", "groups", "=", "None", ")", ":", "if", "dtype", "not", "in", "self", ".", "table_names", ":", "print", "(", "\"-W- {} is not a valid MagIC table name\"", ".", "format", "(", "dtype", ")", ")", "print", "(", "\"-I- Valid table names are: {}\"", ".", "format", "(", "\", \"", ".", "join", "(", "self", ".", "table_names", ")", ")", ")", "return", "data_container", "=", "MagicDataFrame", "(", "dtype", "=", "dtype", ",", "columns", "=", "col_names", ",", "groups", "=", "groups", ")", "self", ".", "tables", "[", "dtype", "]", "=", "data_container" ]
Add a blank MagicDataFrame to the contribution. You can provide either a list of column names, or a list of column group names. If provided, col_names takes precedence.
[ "Add", "a", "blank", "MagicDataFrame", "to", "the", "contribution", ".", "You", "can", "provide", "either", "a", "list", "of", "column", "names", "or", "a", "list", "of", "column", "group", "names", ".", "If", "provided", "col_names", "takes", "precedence", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L87-L99
train
Add a blank MagicDataFrame to the contribution.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\157' + chr(0b1110 + 0o43) + chr(51) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\067' + chr(52), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(0b1101111) + '\x32' + chr(718 - 669) + chr(1160 - 1110), 0b1000), nzTpIcepk0o8('\060' + chr(0b1011101 + 0o22) + '\x31' + chr(675 - 625) + '\061', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011) + chr(49) + '\067', 42955 - 42947), nzTpIcepk0o8('\060' + chr(0b1001000 + 0o47) + chr(0b0 + 0o61) + '\061' + chr(0b10101 + 0o35), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\x32' + chr(55) + chr(0b11001 + 0o30), 35483 - 35475), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + chr(1454 - 1405) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(54) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101011 + 0o4) + chr(51) + chr(0b11110 + 0o27) + chr(2240 - 2190), 52710 - 52702), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + '\063' + '\x32' + chr(0b101000 + 0o16), 9164 - 9156), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(1555 - 1504) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(262 - 212) + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(52) + chr(352 - 301), 47698 - 47690), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(53) + '\x30', 2992 - 2984), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + '\x31' + chr(0b11001 + 0o35), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1010100 + 0o33) + chr(0b100101 + 0o15) + chr(1736 - 1685) + chr(860 - 808), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(490 - 439) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + chr(51) + '\x36' + '\066', 61673 - 61665), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(1557 - 1505) + '\x33', 8), nzTpIcepk0o8(chr(0b110000) + chr(9559 - 9448) + chr(163 - 114), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + '\x31' + chr(55) + chr(0b101010 + 0o10), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(554 - 505) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111111 + 0o60) + chr(0b100010 + 0o22), 0b1000), nzTpIcepk0o8('\x30' + chr(3374 - 3263) + chr(51) + chr(52) + chr(0b11000 + 0o32), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + '\x6f' + chr(0b110010) + '\x34' + chr(751 - 696), 0o10), nzTpIcepk0o8(chr(161 - 113) + chr(0b1000000 + 0o57) + '\x33' + chr(51) + chr(2479 - 2429), ord("\x08")), nzTpIcepk0o8(chr(549 - 501) + chr(111) + '\063' + chr(877 - 826) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(4447 - 4336) + '\063' + chr(563 - 510) + '\x32', 8), nzTpIcepk0o8('\060' + chr(2985 - 2874) + chr(352 - 302) + chr(246 - 196), 35111 - 35103), nzTpIcepk0o8(chr(1856 - 1808) + chr(11574 - 11463) + chr(52) + chr(1723 - 1675), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(2097 - 1986) + chr(0b110001) + chr(54) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010) + '\061' + chr(512 - 461), 26784 - 26776), nzTpIcepk0o8(chr(1412 - 1364) + chr(111) + chr(0b110001) + '\x34', 0b1000), nzTpIcepk0o8(chr(1536 - 1488) + '\157' + chr(49) + chr(0b100010 + 0o16) + chr(0b110011 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x35' + chr(2470 - 2415), 30851 - 30843), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1689 - 1638) + chr(0b110111) + chr(0b110101), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110010) + '\x34' + chr(2201 - 2153), 43362 - 43354), nzTpIcepk0o8(chr(48) + chr(111) + chr(949 - 898) + '\x31' + chr(301 - 251), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + chr(440 - 391) + chr(51), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(0b110101) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'q'), '\x64' + '\x65' + chr(99) + chr(5348 - 5237) + chr(100) + chr(0b100110 + 0o77))(chr(2300 - 2183) + chr(12455 - 12339) + '\x66' + '\055' + chr(0b1100 + 0o54)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def UfHA1zAXeM8O(hXMPsSrOQzbh, RcX9bbuOzh5L, rlxfQfdSHlRp=None, Npj4un59pdkA=None): if RcX9bbuOzh5L not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'+\xdd\xe8=\xaa\x15\xd7\xac\xdd\x8f\xa5'), '\x64' + chr(0b1100101) + chr(0b110001 + 0o62) + '\157' + '\x64' + chr(0b111110 + 0o47))(chr(0b1110101) + chr(116) + chr(0b10011 + 0o123) + chr(1622 - 1577) + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'r\xeb\xa7q\xb47\x99\xa4\xc3\xca\xb80\xe6\x03\t\xae\xea\x7f\x9aJeZ\x06e\x85\xee\x99\xf9\x9esB\x1c\xee,)N\x90\xc5'), chr(0b11100 + 0o110) + chr(0b1100101) + '\x63' + chr(10082 - 9971) + chr(5513 - 5413) + '\145')(chr(117) + chr(0b1110100) + '\x66' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'.\x8f\xb9\x1a\x88y\xdf\xa2\xe1\xb5\x95\x15'), chr(100) + chr(101) + '\x63' + '\x6f' + '\x64' + '\145')(chr(0b1101001 + 0o14) + chr(0b1110100) + '\146' + chr(0b10101 + 0o30) + chr(179 - 123)))(RcX9bbuOzh5L)) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'r\xf5\xa7q\x99+\xd5\xa4\xd4\xca\xa2>\xf0O\r\xae\xf2\x7f\x9bFrZ*v\x87\x9d\xfa\xa2\x97'), '\x64' + chr(8186 - 8085) + chr(6741 - 6642) + chr(111) + '\x64' + chr(0b11010 + 0o113))(chr(0b110010 + 0o103) + chr(0b10111 + 0o135) + chr(102) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'.\x8f\xb9\x1a\x88y\xdf\xa2\xe1\xb5\x95\x15'), chr(0b1011001 + 0o13) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1010100 + 0o20) + chr(0b101 + 0o140))(chr(117) + chr(3822 - 3706) + '\x66' + chr(45) + chr(0b110101 + 0o3)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b's\x9c'), chr(0b1100000 + 0o4) + chr(0b1100101) + chr(9688 - 9589) + chr(0b1011 + 0o144) + chr(4968 - 4868) + chr(0b1000110 + 0o37))('\165' + '\x74' + chr(102) + chr(0b1000 + 0o45) + chr(0b10010 + 0o46)), roI3spqORKae(ES5oEprVxulp(b'\x06\x88\xf3\x1c\xf6\x08\xda\xab\xe4\xa9\x98.'), chr(693 - 593) + '\145' + chr(0b1100011) + chr(0b100110 + 0o111) + chr(0b111010 + 0o52) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b11010 + 0o23) + chr(177 - 121)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'+\xdd\xe8=\xaa\x15\xd7\xac\xdd\x8f\xa5'), chr(0b100111 + 0o75) + '\145' + chr(0b100111 + 0o74) + chr(0b1001 + 0o146) + chr(0b1100100) + chr(101))(chr(117) + chr(0b100111 + 0o115) + chr(0b110 + 0o140) + chr(0b101101) + '\x38'))))) return ryt57olzQEqV = j3QHvEcjwt5D(dtype=RcX9bbuOzh5L, columns=rlxfQfdSHlRp, groups=Npj4un59pdkA) hXMPsSrOQzbh.WgtSJX0sIYpL[RcX9bbuOzh5L] = ryt57olzQEqV
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.add_magic_table_from_data
def add_magic_table_from_data(self, dtype, data): """ Add a MagIC table to the contribution from a data list Parameters ---------- dtype : str MagIC table type, i.e. 'specimens' data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }] """ self.tables[dtype] = MagicDataFrame(dtype=dtype, data=data) if dtype == 'measurements': self.tables['measurements'].add_sequence() return dtype, self.tables[dtype]
python
def add_magic_table_from_data(self, dtype, data): """ Add a MagIC table to the contribution from a data list Parameters ---------- dtype : str MagIC table type, i.e. 'specimens' data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }] """ self.tables[dtype] = MagicDataFrame(dtype=dtype, data=data) if dtype == 'measurements': self.tables['measurements'].add_sequence() return dtype, self.tables[dtype]
[ "def", "add_magic_table_from_data", "(", "self", ",", "dtype", ",", "data", ")", ":", "self", ".", "tables", "[", "dtype", "]", "=", "MagicDataFrame", "(", "dtype", "=", "dtype", ",", "data", "=", "data", ")", "if", "dtype", "==", "'measurements'", ":", "self", ".", "tables", "[", "'measurements'", "]", ".", "add_sequence", "(", ")", "return", "dtype", ",", "self", ".", "tables", "[", "dtype", "]" ]
Add a MagIC table to the contribution from a data list Parameters ---------- dtype : str MagIC table type, i.e. 'specimens' data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }]
[ "Add", "a", "MagIC", "table", "to", "the", "contribution", "from", "a", "data", "list" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L101-L115
train
Add a MagIC table to the contribution from a data list
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1493 - 1442) + '\x36' + chr(0b110111), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11 + 0o60) + chr(48) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + chr(51) + chr(0b1000 + 0o57) + '\063', 0o10), nzTpIcepk0o8(chr(666 - 618) + chr(111) + '\065' + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(1987 - 1937), 5177 - 5169), nzTpIcepk0o8('\x30' + chr(111) + chr(53) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(2270 - 2222) + chr(0b1101111) + '\x31' + chr(1988 - 1935) + chr(0b1000 + 0o54), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\x31' + '\060' + '\x32', 0b1000), nzTpIcepk0o8(chr(1216 - 1168) + chr(8364 - 8253) + chr(1700 - 1650) + chr(0b110011) + chr(0b111 + 0o54), 0b1000), nzTpIcepk0o8(chr(1275 - 1227) + chr(0b110 + 0o151) + '\061' + chr(0b110010) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110100) + chr(130 - 82), 0o10), nzTpIcepk0o8('\060' + chr(0b111000 + 0o67) + '\x33' + '\061' + chr(0b100001 + 0o25), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110010) + chr(739 - 689) + chr(1097 - 1047), 0o10), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(50) + chr(336 - 282) + chr(1446 - 1394), 3094 - 3086), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(9717 - 9606) + '\062' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x30' + '\x32', 50841 - 50833), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + chr(0b110000) + chr(48), 42443 - 42435), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(0b110001 + 0o2) + chr(52), 42088 - 42080), nzTpIcepk0o8(chr(48) + chr(0b1101111 + 0o0) + '\x31' + chr(0b110001) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b110011 + 0o74) + chr(49) + chr(0b110101) + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100001 + 0o116) + '\x32' + '\064' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(217 - 169) + chr(0b1000011 + 0o54) + '\x31' + chr(2344 - 2295) + '\062', 64353 - 64345), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(10231 - 10120) + chr(0b110001) + chr(976 - 922) + chr(1251 - 1196), 16468 - 16460), nzTpIcepk0o8(chr(446 - 398) + chr(0b1101111) + chr(0b110001) + chr(1703 - 1654) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1531 - 1483) + chr(0b1101111) + chr(0b1111 + 0o43) + '\x33' + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1000111 + 0o50) + '\063' + chr(528 - 477), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(50) + '\x35' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + chr(0b110100) + '\066', 31961 - 31953), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + chr(0b1001 + 0o51) + '\x33' + chr(0b100101 + 0o15), 47419 - 47411), nzTpIcepk0o8(chr(48) + chr(0b11110 + 0o121) + '\064' + chr(55), 56178 - 56170), nzTpIcepk0o8('\060' + chr(0b1101111) + '\066' + chr(0b110100), 1264 - 1256), nzTpIcepk0o8(chr(0b101 + 0o53) + '\x6f' + chr(51) + chr(433 - 378), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(2542 - 2489) + chr(2307 - 2254), 13536 - 13528), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(0b1111 + 0o47) + chr(2265 - 2210), 54923 - 54915), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b100010 + 0o115) + '\x32' + chr(0b110110) + '\x32', 29186 - 29178), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(49) + chr(0b101011 + 0o12) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001010 + 0o45) + chr(1741 - 1691) + '\x36' + '\064', 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(1436 - 1383) + '\x30', 8), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(2354 - 2299) + '\x37', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\065' + '\060', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd9'), chr(0b1100100) + chr(0b1011011 + 0o12) + '\143' + chr(111) + chr(3015 - 2915) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(0b1010110 + 0o20) + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def c7amUwuLwX6i(hXMPsSrOQzbh, RcX9bbuOzh5L, FfKOThdpoDTb): hXMPsSrOQzbh.WgtSJX0sIYpL[RcX9bbuOzh5L] = j3QHvEcjwt5D(dtype=RcX9bbuOzh5L, data=FfKOThdpoDTb) if RcX9bbuOzh5L == roI3spqORKae(ES5oEprVxulp(b'\x9a\xa2\x9a[oY\t/\xfe;\x14\xbd'), chr(100) + chr(9894 - 9793) + chr(7007 - 6908) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000)): roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\x9a\xa2\x9a[oY\t/\xfe;\x14\xbd'), '\144' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1001010 + 0o53) + chr(0b111 + 0o155) + chr(102) + '\055' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\x96\xa3\x9fwiN\x1d7\xfe;\x03\xab'), chr(0b10000 + 0o124) + '\145' + chr(99) + chr(0b10101 + 0o132) + '\144' + chr(101))(chr(0b1110101 + 0o0) + chr(13442 - 13326) + chr(0b111100 + 0o52) + '\x2d' + chr(0b100000 + 0o30)))() return (RcX9bbuOzh5L, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa0\xa0\x8f{Ps\\1\xd2\x0c\x10\x82'), '\x64' + chr(0b1 + 0o144) + chr(0b1100011) + chr(0b1010110 + 0o31) + '\144' + '\x65')('\x75' + chr(0b1110100) + '\x66' + chr(285 - 240) + chr(0b111000)))[RcX9bbuOzh5L])
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.add_magic_table
def add_magic_table(self, dtype, fname=None, df=None): """ Read in a new file to add a table to self.tables. Requires dtype argument and EITHER filename or df. Parameters ---------- dtype : str MagIC table name (plural, i.e. 'specimens') fname : str filename of MagIC format file (short path, directory is self.directory) default: None df : pandas DataFrame data to create the new table with default: None """ if df is None: # if providing a filename but no data type if dtype == "unknown": filename = os.path.join(self.directory, fname) if not os.path.exists(filename): return False, False data_container = MagicDataFrame(filename, dmodel=self.data_model) dtype = data_container.dtype if dtype == 'empty': return False, False else: self.tables[dtype] = data_container return dtype, data_container # if providing a data type, use the canonical filename elif dtype not in self.filenames: print('-W- "{}" is not a valid MagIC table type'.format(dtype)) print("-I- Available table types are: {}".format(", ".join(self.table_names))) return False, False #filename = os.path.join(self.directory, self.filenames[dtype]) filename = pmag.resolve_file_name(self.filenames[dtype], self.directory) if os.path.exists(filename): data_container = MagicDataFrame(filename, dtype=dtype, dmodel=self.data_model) if data_container.dtype != "empty": self.tables[dtype] = data_container return dtype, data_container else: return False, False else: #print("-W- No such file: {}".format(filename)) return False, False # df is not None else: if not dtype: print("-W- Must provide dtype") return False, False data_container = MagicDataFrame(dtype=dtype, df=df) self.tables[dtype] = data_container self.tables[dtype].sort_dataframe_cols() return dtype, self.tables[dtype]
python
def add_magic_table(self, dtype, fname=None, df=None): """ Read in a new file to add a table to self.tables. Requires dtype argument and EITHER filename or df. Parameters ---------- dtype : str MagIC table name (plural, i.e. 'specimens') fname : str filename of MagIC format file (short path, directory is self.directory) default: None df : pandas DataFrame data to create the new table with default: None """ if df is None: # if providing a filename but no data type if dtype == "unknown": filename = os.path.join(self.directory, fname) if not os.path.exists(filename): return False, False data_container = MagicDataFrame(filename, dmodel=self.data_model) dtype = data_container.dtype if dtype == 'empty': return False, False else: self.tables[dtype] = data_container return dtype, data_container # if providing a data type, use the canonical filename elif dtype not in self.filenames: print('-W- "{}" is not a valid MagIC table type'.format(dtype)) print("-I- Available table types are: {}".format(", ".join(self.table_names))) return False, False #filename = os.path.join(self.directory, self.filenames[dtype]) filename = pmag.resolve_file_name(self.filenames[dtype], self.directory) if os.path.exists(filename): data_container = MagicDataFrame(filename, dtype=dtype, dmodel=self.data_model) if data_container.dtype != "empty": self.tables[dtype] = data_container return dtype, data_container else: return False, False else: #print("-W- No such file: {}".format(filename)) return False, False # df is not None else: if not dtype: print("-W- Must provide dtype") return False, False data_container = MagicDataFrame(dtype=dtype, df=df) self.tables[dtype] = data_container self.tables[dtype].sort_dataframe_cols() return dtype, self.tables[dtype]
[ "def", "add_magic_table", "(", "self", ",", "dtype", ",", "fname", "=", "None", ",", "df", "=", "None", ")", ":", "if", "df", "is", "None", ":", "# if providing a filename but no data type", "if", "dtype", "==", "\"unknown\"", ":", "filename", "=", "os", ".", "path", ".", "join", "(", "self", ".", "directory", ",", "fname", ")", "if", "not", "os", ".", "path", ".", "exists", "(", "filename", ")", ":", "return", "False", ",", "False", "data_container", "=", "MagicDataFrame", "(", "filename", ",", "dmodel", "=", "self", ".", "data_model", ")", "dtype", "=", "data_container", ".", "dtype", "if", "dtype", "==", "'empty'", ":", "return", "False", ",", "False", "else", ":", "self", ".", "tables", "[", "dtype", "]", "=", "data_container", "return", "dtype", ",", "data_container", "# if providing a data type, use the canonical filename", "elif", "dtype", "not", "in", "self", ".", "filenames", ":", "print", "(", "'-W- \"{}\" is not a valid MagIC table type'", ".", "format", "(", "dtype", ")", ")", "print", "(", "\"-I- Available table types are: {}\"", ".", "format", "(", "\", \"", ".", "join", "(", "self", ".", "table_names", ")", ")", ")", "return", "False", ",", "False", "#filename = os.path.join(self.directory, self.filenames[dtype])", "filename", "=", "pmag", ".", "resolve_file_name", "(", "self", ".", "filenames", "[", "dtype", "]", ",", "self", ".", "directory", ")", "if", "os", ".", "path", ".", "exists", "(", "filename", ")", ":", "data_container", "=", "MagicDataFrame", "(", "filename", ",", "dtype", "=", "dtype", ",", "dmodel", "=", "self", ".", "data_model", ")", "if", "data_container", ".", "dtype", "!=", "\"empty\"", ":", "self", ".", "tables", "[", "dtype", "]", "=", "data_container", "return", "dtype", ",", "data_container", "else", ":", "return", "False", ",", "False", "else", ":", "#print(\"-W- No such file: {}\".format(filename))", "return", "False", ",", "False", "# df is not None", "else", ":", "if", "not", "dtype", ":", "print", "(", "\"-W- Must provide dtype\"", ")", "return", "False", ",", "False", "data_container", "=", "MagicDataFrame", "(", "dtype", "=", "dtype", ",", "df", "=", "df", ")", "self", ".", "tables", "[", "dtype", "]", "=", "data_container", "self", ".", "tables", "[", "dtype", "]", ".", "sort_dataframe_cols", "(", ")", "return", "dtype", ",", "self", ".", "tables", "[", "dtype", "]" ]
Read in a new file to add a table to self.tables. Requires dtype argument and EITHER filename or df. Parameters ---------- dtype : str MagIC table name (plural, i.e. 'specimens') fname : str filename of MagIC format file (short path, directory is self.directory) default: None df : pandas DataFrame data to create the new table with default: None
[ "Read", "in", "a", "new", "file", "to", "add", "a", "table", "to", "self", ".", "tables", ".", "Requires", "dtype", "argument", "and", "EITHER", "filename", "or", "df", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L118-L174
train
Read in a new file to add a new table to self. tables.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1605 - 1557) + chr(10543 - 10432) + chr(0b10110 + 0o35) + '\x31' + chr(2159 - 2108), 21993 - 21985), nzTpIcepk0o8('\x30' + '\157' + '\x35' + chr(2366 - 2316), 4321 - 4313), nzTpIcepk0o8('\060' + chr(4818 - 4707) + chr(1653 - 1602) + chr(0b110101 + 0o1) + chr(0b11010 + 0o30), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(51) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(0b101 + 0o152) + '\061' + chr(0b1011 + 0o51) + '\066', 53562 - 53554), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b110110) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8('\060' + chr(10463 - 10352) + chr(0b101000 + 0o11) + chr(461 - 411) + chr(1799 - 1744), 0b1000), nzTpIcepk0o8(chr(2112 - 2064) + chr(0b1101111) + chr(0b110010) + '\065' + chr(0b1100 + 0o50), 63754 - 63746), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(4765 - 4654) + '\063' + '\x35' + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(0b110110 + 0o71) + '\067' + chr(0b10001 + 0o40), 29197 - 29189), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\061' + chr(0b111 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x36' + chr(0b1 + 0o65), 28052 - 28044), nzTpIcepk0o8('\060' + chr(10466 - 10355) + '\063' + '\x34' + chr(0b100101 + 0o20), 18695 - 18687), nzTpIcepk0o8(chr(1143 - 1095) + chr(0b1101111) + chr(51) + chr(0b11000 + 0o31) + chr(0b11100 + 0o27), 8), nzTpIcepk0o8(chr(48) + chr(0b101 + 0o152) + chr(0b110110) + chr(0b11001 + 0o30), 0b1000), nzTpIcepk0o8(chr(1158 - 1110) + '\157' + chr(0b110011) + chr(0b110011) + chr(49), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(2674 - 2622) + chr(0b101111 + 0o2), 35161 - 35153), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + '\061', 0o10), nzTpIcepk0o8(chr(48) + chr(10502 - 10391) + chr(0b100101 + 0o14) + chr(0b101101 + 0o7) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x34' + chr(0b100100 + 0o22), 44780 - 44772), nzTpIcepk0o8(chr(48) + chr(2683 - 2572) + chr(1432 - 1380) + chr(48), 29977 - 29969), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(53) + chr(53), 40192 - 40184), nzTpIcepk0o8(chr(48) + chr(2057 - 1946) + chr(51) + chr(52) + '\063', 40350 - 40342), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(0b10110 + 0o41) + chr(2309 - 2258), 13154 - 13146), nzTpIcepk0o8(chr(48) + '\157' + '\062' + '\x34' + chr(48), 16396 - 16388), nzTpIcepk0o8(chr(48) + chr(0b111100 + 0o63) + '\x32' + chr(0b110100) + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(11579 - 11468) + '\x31' + chr(0b110011 + 0o2), 25839 - 25831), nzTpIcepk0o8(chr(968 - 920) + chr(0b1100100 + 0o13) + chr(51) + chr(0b110110) + '\065', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100 + 0o57) + chr(0b10001 + 0o45), 41675 - 41667), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + '\x31' + chr(0b1110 + 0o45), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1881 - 1829) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + chr(49) + chr(2402 - 2350) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(50) + chr(0b110101) + chr(0b110 + 0o60), 0o10), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(0b1101111) + chr(0b101000 + 0o13) + chr(0b101011 + 0o11) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(0b11110 + 0o23) + '\062', 8), nzTpIcepk0o8(chr(2199 - 2151) + '\x6f' + chr(0b110110), 14904 - 14896), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(2132 - 2079) + chr(544 - 496), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1101111) + '\062' + chr(55) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b10111 + 0o32) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\065' + chr(675 - 622), 26231 - 26223)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1790 - 1742) + '\157' + '\065' + chr(349 - 301), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe5'), chr(7032 - 6932) + chr(0b111011 + 0o52) + chr(0b1100011) + '\x6f' + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(0b1100110) + '\055' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def OL5yDty8ZkW0(hXMPsSrOQzbh, RcX9bbuOzh5L, jXqxEQuu_5DD=None, jpOn8DNZxbbx=None): if jpOn8DNZxbbx is None: if RcX9bbuOzh5L == roI3spqORKae(ES5oEprVxulp(b'\xbeD\x99t\t\xc19'), chr(100) + chr(0b1011101 + 0o10) + chr(0b111001 + 0o52) + chr(0b1101110 + 0o1) + chr(100) + chr(7661 - 7560))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(2495 - 2439)): FxZHtXEolYsL = aHUqKstZLeS6.path.Y4yM9BcfTCNq(hXMPsSrOQzbh.InVoWQwNBeGF, jXqxEQuu_5DD) if not roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb1y\xbbc\x08\xe6"\xe9\x9eU\xdbB'), chr(0b1000111 + 0o35) + '\x65' + chr(99) + chr(0b1011 + 0o144) + '\144' + '\145')(chr(0b1110101) + chr(0b1100100 + 0o20) + '\x66' + '\x2d' + chr(2023 - 1967)))(FxZHtXEolYsL): return (nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2252 - 2204), 8)) ryt57olzQEqV = j3QHvEcjwt5D(FxZHtXEolYsL, dmodel=hXMPsSrOQzbh.data_model) RcX9bbuOzh5L = ryt57olzQEqV.RcX9bbuOzh5L if RcX9bbuOzh5L == roI3spqORKae(ES5oEprVxulp(b'\xaeG\x82n\x1f'), chr(4353 - 4253) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(0b100101 + 0o100))(chr(117) + chr(3483 - 3367) + chr(0b1100110) + chr(45) + '\x38'): return (nzTpIcepk0o8(chr(48) + chr(111) + chr(2244 - 2196), 8), nzTpIcepk0o8(chr(442 - 394) + chr(0b10 + 0o155) + chr(48), 8)) else: hXMPsSrOQzbh.WgtSJX0sIYpL[RcX9bbuOzh5L] = ryt57olzQEqV return (RcX9bbuOzh5L, ryt57olzQEqV) elif RcX9bbuOzh5L not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b"\x8er\xa4C?\x824\xcb\xb9P\xd2'"), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(0b11011 + 0o111) + chr(7723 - 7622))(chr(117) + '\x74' + chr(3995 - 3893) + chr(534 - 489) + chr(0b110110 + 0o2))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe6}\xdf:D\xcd*\x8e\xc8P\xf9V\x8b\xa4E\xf9@9\x16GL\x04\x87\xdb\xed\xc3j\xbc]kS\x02\xcc\x8b\xef&\xdc\xc0<H'), chr(0b1011010 + 0o12) + chr(0b1100101) + '\x63' + chr(2917 - 2806) + chr(0b1001 + 0o133) + chr(101))(chr(0b1110101) + chr(116) + chr(102) + chr(0b11100 + 0o21) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xba\x19\xc1Q!\x851\xc3\xb9f\xc9<'), '\144' + chr(0b101110 + 0o67) + '\x63' + chr(0b110100 + 0o73) + '\x64' + chr(0b1100101))(chr(117) + chr(0b110100 + 0o100) + '\146' + chr(0b101101) + chr(56)))(RcX9bbuOzh5L)) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xe6c\xdf:'\xc06\xc5\x84X\xe8\x1a\x80\xebE\xb8Cu\x05\x06T\x14\x93\x9e\xd3\x82l\x87{q\x07\x18\xd3"), '\x64' + chr(0b11001 + 0o114) + chr(0b1100011) + chr(0b101100 + 0o103) + chr(100) + '\145')('\x75' + '\x74' + chr(8856 - 8754) + chr(188 - 143) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xba\x19\xc1Q!\x851\xc3\xb9f\xc9<'), chr(9805 - 9705) + chr(2487 - 2386) + chr(99) + '\x6f' + '\144' + chr(0b10100 + 0o121))('\x75' + '\x74' + '\146' + chr(0b101101) + '\070'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xe7\n'), chr(0b11011 + 0o111) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b11111 + 0o105) + chr(2421 - 2320))(chr(0b1110101) + '\x74' + '\x66' + chr(1047 - 1002) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x92\x1e\x8bW_\xf44\xca\xbcz\xc4\x07'), chr(0b1011011 + 0o11) + '\145' + chr(3585 - 3486) + '\x6f' + chr(163 - 63) + chr(0b1100101))(chr(13168 - 13051) + chr(8199 - 8083) + '\x66' + '\055' + '\x38'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbfK\x90v\x03\xe99\xcd\x85\\\xf9'), chr(100) + chr(0b1100101) + '\x63' + '\157' + '\x64' + '\x65')(chr(7795 - 7678) + '\x74' + '\146' + '\x2d' + chr(0b111000)))))) return (nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x30', 8)) FxZHtXEolYsL = hUcsWwAd0nE_.resolve_file_name(hXMPsSrOQzbh.EXVYY4cgQiXQ[RcX9bbuOzh5L], hXMPsSrOQzbh.InVoWQwNBeGF) if roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xb1y\xbbc\x08\xe6"\xe9\x9eU\xdbB'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1101111) + chr(2045 - 1945) + chr(0b1000 + 0o135))('\165' + chr(0b1110100) + '\x66' + '\055' + chr(0b111000)))(FxZHtXEolYsL): ryt57olzQEqV = j3QHvEcjwt5D(FxZHtXEolYsL, dtype=RcX9bbuOzh5L, dmodel=hXMPsSrOQzbh.data_model) if roI3spqORKae(ryt57olzQEqV, roI3spqORKae(ES5oEprVxulp(b'\x99I\xaa#\x04\xd4"\xe3\x92Q\xbf:'), '\x64' + chr(4586 - 4485) + chr(8219 - 8120) + '\x6f' + chr(0b1100100) + '\x65')(chr(0b1000010 + 0o63) + chr(232 - 116) + '\x66' + '\x2d' + '\x38')) != roI3spqORKae(ES5oEprVxulp(b'\xaeG\x82n\x1f'), '\x64' + chr(7320 - 7219) + '\143' + chr(0b1101111) + '\144' + chr(2355 - 2254))(chr(117) + chr(0b1100000 + 0o24) + '\x66' + '\x2d' + '\070'): hXMPsSrOQzbh.WgtSJX0sIYpL[RcX9bbuOzh5L] = ryt57olzQEqV return (RcX9bbuOzh5L, ryt57olzQEqV) else: return (nzTpIcepk0o8(chr(1665 - 1617) + chr(5969 - 5858) + '\x30', 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b1101111) + chr(0b110000), 8)) else: return (nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b10011 + 0o35), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(48), 8)) else: if not RcX9bbuOzh5L: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xe6}\xdf:+\xc3$\xd8\xc8I\xf8\x19\x93\xa2U\xbc\x01}\x14_P\x08'), '\x64' + '\x65' + chr(1940 - 1841) + chr(4160 - 4049) + chr(0b1010000 + 0o24) + chr(0b1100101))(chr(117) + chr(116) + chr(0b110010 + 0o64) + chr(0b11001 + 0o24) + chr(0b10110 + 0o42))) return (nzTpIcepk0o8('\060' + chr(111) + '\x30', 8), nzTpIcepk0o8('\x30' + chr(6633 - 6522) + chr(48), 8)) ryt57olzQEqV = j3QHvEcjwt5D(dtype=RcX9bbuOzh5L, df=jpOn8DNZxbbx) hXMPsSrOQzbh.WgtSJX0sIYpL[RcX9bbuOzh5L] = ryt57olzQEqV roI3spqORKae(hXMPsSrOQzbh.tables[RcX9bbuOzh5L], roI3spqORKae(ES5oEprVxulp(b'\xb8E\x80n9\xd26\xd8\x89_\xf8\x17\x88\xaen\xbaNu\x13'), chr(223 - 123) + chr(101) + '\x63' + '\157' + chr(4896 - 4796) + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1001111 + 0o27) + '\x2d' + chr(56)))() return (RcX9bbuOzh5L, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9cM\x86I,\xeeg\xdf\xa1`\xfa:'), chr(0b1100100) + chr(0b1000 + 0o135) + '\143' + chr(7194 - 7083) + chr(0b1100100) + '\145')(chr(0b101 + 0o160) + chr(9764 - 9648) + chr(0b1100110) + '\x2d' + chr(0b111000)))[RcX9bbuOzh5L])
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_measurement_info
def propagate_measurement_info(self): """ Take a contribution with a measurement table. Create specimen, sample, site, and location tables using the unique names in the measurement table to fill in the index. """ meas_df = self.tables['measurements'].df names_list = ['specimen', 'sample', 'site', 'location'] # add in any tables that you can for num, name in enumerate(names_list): # don't replace tables that already exist if (name + "s") in self.tables: continue elif name in meas_df.columns: items = meas_df[name].unique() df = pd.DataFrame(columns=[name], index=items) df[name] = df.index # add in parent name if possible # (i.e., sample name to specimens table) if num < (len(names_list) - 1): parent = names_list[num+1] if parent in meas_df.columns: meas_df = meas_df.where(meas_df.notnull(), "") df[parent] = meas_df.drop_duplicates(subset=[name])[parent].values.astype(str) df = df.where(df != "", np.nan) df = df.dropna(how='all', axis='rows') if len(df): self.tables[name + "s"] = MagicDataFrame(dtype=name + "s", df=df) self.write_table_to_file(name + "s")
python
def propagate_measurement_info(self): """ Take a contribution with a measurement table. Create specimen, sample, site, and location tables using the unique names in the measurement table to fill in the index. """ meas_df = self.tables['measurements'].df names_list = ['specimen', 'sample', 'site', 'location'] # add in any tables that you can for num, name in enumerate(names_list): # don't replace tables that already exist if (name + "s") in self.tables: continue elif name in meas_df.columns: items = meas_df[name].unique() df = pd.DataFrame(columns=[name], index=items) df[name] = df.index # add in parent name if possible # (i.e., sample name to specimens table) if num < (len(names_list) - 1): parent = names_list[num+1] if parent in meas_df.columns: meas_df = meas_df.where(meas_df.notnull(), "") df[parent] = meas_df.drop_duplicates(subset=[name])[parent].values.astype(str) df = df.where(df != "", np.nan) df = df.dropna(how='all', axis='rows') if len(df): self.tables[name + "s"] = MagicDataFrame(dtype=name + "s", df=df) self.write_table_to_file(name + "s")
[ "def", "propagate_measurement_info", "(", "self", ")", ":", "meas_df", "=", "self", ".", "tables", "[", "'measurements'", "]", ".", "df", "names_list", "=", "[", "'specimen'", ",", "'sample'", ",", "'site'", ",", "'location'", "]", "# add in any tables that you can", "for", "num", ",", "name", "in", "enumerate", "(", "names_list", ")", ":", "# don't replace tables that already exist", "if", "(", "name", "+", "\"s\"", ")", "in", "self", ".", "tables", ":", "continue", "elif", "name", "in", "meas_df", ".", "columns", ":", "items", "=", "meas_df", "[", "name", "]", ".", "unique", "(", ")", "df", "=", "pd", ".", "DataFrame", "(", "columns", "=", "[", "name", "]", ",", "index", "=", "items", ")", "df", "[", "name", "]", "=", "df", ".", "index", "# add in parent name if possible", "# (i.e., sample name to specimens table)", "if", "num", "<", "(", "len", "(", "names_list", ")", "-", "1", ")", ":", "parent", "=", "names_list", "[", "num", "+", "1", "]", "if", "parent", "in", "meas_df", ".", "columns", ":", "meas_df", "=", "meas_df", ".", "where", "(", "meas_df", ".", "notnull", "(", ")", ",", "\"\"", ")", "df", "[", "parent", "]", "=", "meas_df", ".", "drop_duplicates", "(", "subset", "=", "[", "name", "]", ")", "[", "parent", "]", ".", "values", ".", "astype", "(", "str", ")", "df", "=", "df", ".", "where", "(", "df", "!=", "\"\"", ",", "np", ".", "nan", ")", "df", "=", "df", ".", "dropna", "(", "how", "=", "'all'", ",", "axis", "=", "'rows'", ")", "if", "len", "(", "df", ")", ":", "self", ".", "tables", "[", "name", "+", "\"s\"", "]", "=", "MagicDataFrame", "(", "dtype", "=", "name", "+", "\"s\"", ",", "df", "=", "df", ")", "self", ".", "write_table_to_file", "(", "name", "+", "\"s\"", ")" ]
Take a contribution with a measurement table. Create specimen, sample, site, and location tables using the unique names in the measurement table to fill in the index.
[ "Take", "a", "contribution", "with", "a", "measurement", "table", ".", "Create", "specimen", "sample", "site", "and", "location", "tables", "using", "the", "unique", "names", "in", "the", "measurement", "table", "to", "fill", "in", "the", "index", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L177-L206
train
Take a contribution with a measurement table and create the index for the unique names in the measurement table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101100 + 0o10) + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(2224 - 2174) + chr(49) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(51) + chr(0b1010 + 0o47) + chr(51), 46652 - 46644), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(763 - 715) + chr(0b1101111) + chr(0b110001) + chr(55) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(860 - 812) + chr(3357 - 3246) + chr(0b110010) + chr(2069 - 2018) + chr(0b11100 + 0o30), 0b1000), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(0b110011) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(1058 - 1008) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(339 - 286), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(6826 - 6715) + chr(50) + chr(55) + chr(0b110001), 3794 - 3786), nzTpIcepk0o8(chr(48) + chr(1088 - 977) + chr(244 - 195) + chr(0b110010) + chr(1948 - 1896), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(3993 - 3882) + chr(0b101100 + 0o10) + '\063', 8), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b110 + 0o151) + chr(1058 - 1007) + chr(2242 - 2190) + chr(0b111 + 0o51), 35374 - 35366), nzTpIcepk0o8('\x30' + chr(111) + chr(0b1110 + 0o47) + chr(0b100001 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(377 - 329) + '\157' + chr(1327 - 1278) + chr(791 - 740), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011101 + 0o22) + chr(49) + chr(1537 - 1483) + chr(48), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\x6f' + chr(0b10100 + 0o40) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b101101 + 0o102) + chr(1401 - 1351) + chr(1647 - 1597) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1562 - 1511) + chr(0b110101) + chr(52), 0b1000), nzTpIcepk0o8(chr(238 - 190) + '\x6f' + chr(0b100101 + 0o15) + '\x30' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1193 - 1145) + chr(0b1010111 + 0o30) + chr(1886 - 1837) + '\x32' + chr(0b11101 + 0o24), 8), nzTpIcepk0o8('\060' + chr(10472 - 10361) + chr(0b110101) + '\x30', 7436 - 7428), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(52) + chr(0b101111 + 0o6), 0o10), nzTpIcepk0o8(chr(1298 - 1250) + chr(5718 - 5607) + '\x31' + '\067' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(51) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(1001 - 953) + chr(10624 - 10513) + '\062' + chr(0b110101) + chr(51), 23034 - 23026), nzTpIcepk0o8(chr(1198 - 1150) + chr(111) + chr(287 - 236) + chr(479 - 425) + '\060', 0o10), nzTpIcepk0o8(chr(1475 - 1427) + chr(111) + '\063' + chr(53) + chr(52), 8), nzTpIcepk0o8('\x30' + chr(0b1010000 + 0o37) + '\x36' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b1101111) + chr(401 - 352) + chr(1933 - 1883) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(10881 - 10770) + '\x31' + chr(0b1 + 0o63), 11794 - 11786), nzTpIcepk0o8(chr(2299 - 2251) + chr(111) + chr(0b101101 + 0o4) + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + '\x32' + '\x34' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1250 - 1199) + '\x30' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + '\x33' + chr(0b1100 + 0o47), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(8355 - 8244) + chr(618 - 568) + '\061' + chr(0b1010 + 0o54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b101001 + 0o12) + '\061' + chr(51), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1100100 + 0o13) + '\x31' + chr(49) + chr(1228 - 1180), 0o10), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(852 - 797) + chr(0b100010 + 0o23), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5082 - 4971) + chr(1754 - 1703) + '\x35' + '\064', 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101001 + 0o14) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\r'), '\144' + chr(0b1 + 0o144) + chr(3637 - 3538) + chr(10158 - 10047) + '\x64' + chr(0b1100101 + 0o0))(chr(561 - 444) + '\164' + chr(102) + chr(0b101101) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def x3Ypbv5rVeAD(hXMPsSrOQzbh): _ilcabGFqtMa = hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'N\xee\xaad\x0f\xee}<`\xd7 P'), chr(0b11011 + 0o111) + '\x65' + chr(197 - 98) + '\x6f' + chr(0b1100100) + '\145')('\x75' + '\x74' + chr(0b1001010 + 0o34) + '\x2d' + '\x38')].jpOn8DNZxbbx lXRG9KvaGxmE = [roI3spqORKae(ES5oEprVxulp(b'P\xfb\xaet\x13\xf1}?'), chr(0b1100100) + chr(101) + '\143' + chr(0b110101 + 0o72) + chr(0b11010 + 0o112) + chr(747 - 646))(chr(0b1110 + 0o147) + chr(0b11110 + 0o126) + chr(102) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'P\xea\xa6g\x16\xf9'), '\x64' + chr(800 - 699) + chr(99) + chr(0b1101111) + '\144' + chr(7206 - 7105))('\165' + '\x74' + chr(0b1100110) + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'P\xe2\xbfr'), chr(7940 - 7840) + chr(8784 - 8683) + chr(99) + '\157' + '\144' + '\145')('\165' + chr(0b1000111 + 0o55) + chr(0b1001101 + 0o31) + chr(897 - 852) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'O\xe4\xa8v\x0e\xf5w?'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(9062 - 8962) + chr(101))(chr(117) + chr(0b1110100) + '\146' + chr(0b1000 + 0o45) + chr(0b110010 + 0o6))] for (o0eINMlvUImY, SLVB2BPA_mIe) in _kV_Bomx8PZ4(lXRG9KvaGxmE): if SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'P'), chr(100) + '\x65' + chr(99) + '\x6f' + chr(100) + chr(0b1010011 + 0o22))(chr(0b1110101) + '\164' + chr(683 - 581) + '\055' + '\x38') in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b't\xec\xbfD0\xc4("L\xe0$o'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + chr(6792 - 6691))(chr(0b11011 + 0o132) + chr(0b1011001 + 0o33) + '\146' + '\055' + chr(0b111000 + 0o0))): continue elif SLVB2BPA_mIe in roI3spqORKae(_ilcabGFqtMa, roI3spqORKae(ES5oEprVxulp(b'v\xb8\xf2})\xf5Qd1\xf48S'), '\144' + chr(152 - 51) + '\x63' + chr(111) + chr(0b1000010 + 0o42) + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(1952 - 1907) + chr(207 - 151))): Y_nNEzH43vXi = _ilcabGFqtMa[SLVB2BPA_mIe].G3de2eWQaS0D() jpOn8DNZxbbx = HLKt4sa1j9hm.DataFrame(columns=[SLVB2BPA_mIe], index=Y_nNEzH43vXi) jpOn8DNZxbbx[SLVB2BPA_mIe] = jpOn8DNZxbbx.ZpfN5tSLaZze if o0eINMlvUImY < ftfygxgFas5X(lXRG9KvaGxmE) - nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061', 0b1000): aY0lxtg5akD2 = lXRG9KvaGxmE[o0eINMlvUImY + nzTpIcepk0o8(chr(834 - 786) + '\x6f' + '\061', 8)] if aY0lxtg5akD2 in roI3spqORKae(_ilcabGFqtMa, roI3spqORKae(ES5oEprVxulp(b'v\xb8\xf2})\xf5Qd1\xf48S'), chr(2788 - 2688) + chr(0b111010 + 0o53) + '\x63' + chr(0b1101111) + chr(0b1100100) + '\145')('\165' + '\164' + '\x66' + chr(0b101101) + chr(2277 - 2221))): _ilcabGFqtMa = _ilcabGFqtMa.xWH4M7K6Qbd3(_ilcabGFqtMa.notnull(), roI3spqORKae(ES5oEprVxulp(b''), chr(2530 - 2430) + '\145' + chr(99) + '\157' + '\x64' + chr(0b1111 + 0o126))('\165' + '\164' + '\146' + chr(45) + '\x38')) jpOn8DNZxbbx[aY0lxtg5akD2] = _ilcabGFqtMa.drop_duplicates(subset=[SLVB2BPA_mIe])[aY0lxtg5akD2].values.xqAChpcBkssb(N9zlRy29S1SS) jpOn8DNZxbbx = jpOn8DNZxbbx.xWH4M7K6Qbd3(jpOn8DNZxbbx != roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + chr(99) + chr(0b1010001 + 0o36) + '\x64' + chr(5168 - 5067))('\x75' + '\x74' + chr(0b100111 + 0o77) + '\055' + chr(3135 - 3079)), nDF4gVNx0u9Q.nan) jpOn8DNZxbbx = jpOn8DNZxbbx.dropna(how=roI3spqORKae(ES5oEprVxulp(b'B\xe7\xa7'), '\144' + chr(101) + '\x63' + '\157' + chr(5168 - 5068) + '\145')('\x75' + chr(12868 - 12752) + chr(0b1100110) + chr(0b100111 + 0o6) + chr(0b11001 + 0o37)), axis=roI3spqORKae(ES5oEprVxulp(b'Q\xe4\xbcd'), chr(0b1100100) + chr(0b1100101) + chr(0b101100 + 0o67) + chr(111) + chr(100) + '\x65')(chr(117) + chr(9808 - 9692) + chr(0b10101 + 0o121) + chr(0b101101) + chr(0b10001 + 0o47))) if ftfygxgFas5X(jpOn8DNZxbbx): hXMPsSrOQzbh.WgtSJX0sIYpL[SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'P'), chr(100) + chr(3918 - 3817) + chr(810 - 711) + chr(0b1011100 + 0o23) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(0b101000 + 0o76) + chr(0b101101) + chr(0b111000))] = j3QHvEcjwt5D(dtype=SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'P'), '\x64' + chr(0b10011 + 0o122) + chr(0b1100011) + chr(7342 - 7231) + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(0b1010111 + 0o17) + chr(0b1111 + 0o36) + '\070'), df=jpOn8DNZxbbx) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'T\xf9\xa2c\x1f\xc3l0g\xd51|\x94AT\x16L\xfd\x89'), chr(6670 - 6570) + chr(0b1100101) + '\143' + chr(0b1000101 + 0o52) + chr(1597 - 1497) + chr(0b1100101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(882 - 826)))(SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'P'), '\x64' + chr(101) + '\143' + '\x6f' + '\144' + chr(101))('\165' + '\164' + chr(102) + chr(675 - 630) + '\x38'))
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_all_tables_info
def propagate_all_tables_info(self, write=True): """ Find any items (specimens, samples, sites, or locations) from tables other than measurements and make sure they each have a row in their own table. For example, if a site name is in the samples table but not in the sites table, create a row for it in the sites table. """ for table_name in ["specimens", "samples", "sites", "locations"]: if not table_name in self.tables: continue df = self.tables[table_name].df parent_name, child_name = self.get_parent_and_child(table_name) if parent_name: if parent_name[:-1] in df.columns: parents = sorted(set(df[parent_name[:-1]].dropna().values.astype(str))) if parent_name in self.tables: # if there is a parent table, update it parent_df = self.tables[parent_name].df missing_parents = set(parents) - set(parent_df.index) if missing_parents: # add any missing values print("-I- Updating {} table with values from {} table".format(parent_name, table_name)) for item in missing_parents: self.add_item(parent_name, {parent_name[:-1]: item}, label=item) # save any changes to file if write: self.write_table_to_file(parent_name) else: # if there is no parent table, create it if necessary if parents: # create a parent_df with the names you got from the child print("-I- Creating new {} table with data from {} table".format(parent_name, table_name)) # add in the grandparent if available grandparent_name = self.get_parent_and_child(parent_name)[0] if grandparent_name: grandparent = "" if grandparent_name in df.columns: grandparent = df[df[parent_name] == item][grandparent_name].values[0] columns = [parent_name[:-1]]#, grandparent_name[:-1]] else: columns = [parent_name[:-1]] parent_df = pd.DataFrame(columns=columns, index=parents) parent_df[parent_name[:-1]] = parent_df.index if grandparent_name: if grandparent_name[:-1] in df.columns: parent_df = pd.merge(df[[parent_name[:-1], grandparent_name[:-1]]], parent_df, on=parent_name[:-1]) self.tables[parent_name] = MagicDataFrame(dtype=parent_name, df=parent_df) if write: # save new table to file self.write_table_to_file(parent_name) if child_name: if child_name in df.columns: raw_children = df[child_name].dropna().str.split(':') # create dict of all children with parent info parent_of_child = {} for parent, children in raw_children.items(): for child in children: # remove whitespace child = child.strip() old_parent = parent_of_child.get(child) if old_parent and parent and (old_parent != parent): print('-I- for {} {}, replacing: {} with: {}'.format(child_name[:-1], child, old_parent, parent)) parent_of_child[child] = parent # old way: # flatten list, ignore duplicates #children = sorted(set([item.strip() for sublist in raw_children for item in sublist])) if child_name in self.tables: # if there is already a child table, update it child_df = self.tables[child_name].df missing_children = set(parent_of_child.keys()) - set(child_df.index) if missing_children: # add any missing values print("-I- Updating {} table with values from {} table".format(child_name, table_name)) for item in missing_children: data = {child_name[:-1]: item, table_name[:-1]: parent_of_child[item]} self.add_item(child_name, data, label=item) if write: # save any changes to file self.write_table_to_file(child_name) else: # if there is no child table, create it if necessary if children: # create a child_df with the names you got from the parent print("-I- Creating new {} table with data from {} table".format(child_name, table_name)) # old way to make new table: #child_df = pd.DataFrame(columns=[table_name[:-1]], index=children) # new way to make new table children_list = sorted(parent_of_child.keys()) children_data = [[child_name, parent_of_child[c_name]] for c_name in children_list] child_df = pd.DataFrame(index=children_list, columns=[child_name[:-1], table_name[:-1]], data=children_data) self.tables[child_name] = MagicDataFrame(dtype=child_name, df=child_df) if write: # save new table to file self.write_table_to_file(child_name)
python
def propagate_all_tables_info(self, write=True): """ Find any items (specimens, samples, sites, or locations) from tables other than measurements and make sure they each have a row in their own table. For example, if a site name is in the samples table but not in the sites table, create a row for it in the sites table. """ for table_name in ["specimens", "samples", "sites", "locations"]: if not table_name in self.tables: continue df = self.tables[table_name].df parent_name, child_name = self.get_parent_and_child(table_name) if parent_name: if parent_name[:-1] in df.columns: parents = sorted(set(df[parent_name[:-1]].dropna().values.astype(str))) if parent_name in self.tables: # if there is a parent table, update it parent_df = self.tables[parent_name].df missing_parents = set(parents) - set(parent_df.index) if missing_parents: # add any missing values print("-I- Updating {} table with values from {} table".format(parent_name, table_name)) for item in missing_parents: self.add_item(parent_name, {parent_name[:-1]: item}, label=item) # save any changes to file if write: self.write_table_to_file(parent_name) else: # if there is no parent table, create it if necessary if parents: # create a parent_df with the names you got from the child print("-I- Creating new {} table with data from {} table".format(parent_name, table_name)) # add in the grandparent if available grandparent_name = self.get_parent_and_child(parent_name)[0] if grandparent_name: grandparent = "" if grandparent_name in df.columns: grandparent = df[df[parent_name] == item][grandparent_name].values[0] columns = [parent_name[:-1]]#, grandparent_name[:-1]] else: columns = [parent_name[:-1]] parent_df = pd.DataFrame(columns=columns, index=parents) parent_df[parent_name[:-1]] = parent_df.index if grandparent_name: if grandparent_name[:-1] in df.columns: parent_df = pd.merge(df[[parent_name[:-1], grandparent_name[:-1]]], parent_df, on=parent_name[:-1]) self.tables[parent_name] = MagicDataFrame(dtype=parent_name, df=parent_df) if write: # save new table to file self.write_table_to_file(parent_name) if child_name: if child_name in df.columns: raw_children = df[child_name].dropna().str.split(':') # create dict of all children with parent info parent_of_child = {} for parent, children in raw_children.items(): for child in children: # remove whitespace child = child.strip() old_parent = parent_of_child.get(child) if old_parent and parent and (old_parent != parent): print('-I- for {} {}, replacing: {} with: {}'.format(child_name[:-1], child, old_parent, parent)) parent_of_child[child] = parent # old way: # flatten list, ignore duplicates #children = sorted(set([item.strip() for sublist in raw_children for item in sublist])) if child_name in self.tables: # if there is already a child table, update it child_df = self.tables[child_name].df missing_children = set(parent_of_child.keys()) - set(child_df.index) if missing_children: # add any missing values print("-I- Updating {} table with values from {} table".format(child_name, table_name)) for item in missing_children: data = {child_name[:-1]: item, table_name[:-1]: parent_of_child[item]} self.add_item(child_name, data, label=item) if write: # save any changes to file self.write_table_to_file(child_name) else: # if there is no child table, create it if necessary if children: # create a child_df with the names you got from the parent print("-I- Creating new {} table with data from {} table".format(child_name, table_name)) # old way to make new table: #child_df = pd.DataFrame(columns=[table_name[:-1]], index=children) # new way to make new table children_list = sorted(parent_of_child.keys()) children_data = [[child_name, parent_of_child[c_name]] for c_name in children_list] child_df = pd.DataFrame(index=children_list, columns=[child_name[:-1], table_name[:-1]], data=children_data) self.tables[child_name] = MagicDataFrame(dtype=child_name, df=child_df) if write: # save new table to file self.write_table_to_file(child_name)
[ "def", "propagate_all_tables_info", "(", "self", ",", "write", "=", "True", ")", ":", "for", "table_name", "in", "[", "\"specimens\"", ",", "\"samples\"", ",", "\"sites\"", ",", "\"locations\"", "]", ":", "if", "not", "table_name", "in", "self", ".", "tables", ":", "continue", "df", "=", "self", ".", "tables", "[", "table_name", "]", ".", "df", "parent_name", ",", "child_name", "=", "self", ".", "get_parent_and_child", "(", "table_name", ")", "if", "parent_name", ":", "if", "parent_name", "[", ":", "-", "1", "]", "in", "df", ".", "columns", ":", "parents", "=", "sorted", "(", "set", "(", "df", "[", "parent_name", "[", ":", "-", "1", "]", "]", ".", "dropna", "(", ")", ".", "values", ".", "astype", "(", "str", ")", ")", ")", "if", "parent_name", "in", "self", ".", "tables", ":", "# if there is a parent table, update it", "parent_df", "=", "self", ".", "tables", "[", "parent_name", "]", ".", "df", "missing_parents", "=", "set", "(", "parents", ")", "-", "set", "(", "parent_df", ".", "index", ")", "if", "missing_parents", ":", "# add any missing values", "print", "(", "\"-I- Updating {} table with values from {} table\"", ".", "format", "(", "parent_name", ",", "table_name", ")", ")", "for", "item", "in", "missing_parents", ":", "self", ".", "add_item", "(", "parent_name", ",", "{", "parent_name", "[", ":", "-", "1", "]", ":", "item", "}", ",", "label", "=", "item", ")", "# save any changes to file", "if", "write", ":", "self", ".", "write_table_to_file", "(", "parent_name", ")", "else", ":", "# if there is no parent table, create it if necessary", "if", "parents", ":", "# create a parent_df with the names you got from the child", "print", "(", "\"-I- Creating new {} table with data from {} table\"", ".", "format", "(", "parent_name", ",", "table_name", ")", ")", "# add in the grandparent if available", "grandparent_name", "=", "self", ".", "get_parent_and_child", "(", "parent_name", ")", "[", "0", "]", "if", "grandparent_name", ":", "grandparent", "=", "\"\"", "if", "grandparent_name", "in", "df", ".", "columns", ":", "grandparent", "=", "df", "[", "df", "[", "parent_name", "]", "==", "item", "]", "[", "grandparent_name", "]", ".", "values", "[", "0", "]", "columns", "=", "[", "parent_name", "[", ":", "-", "1", "]", "]", "#, grandparent_name[:-1]]", "else", ":", "columns", "=", "[", "parent_name", "[", ":", "-", "1", "]", "]", "parent_df", "=", "pd", ".", "DataFrame", "(", "columns", "=", "columns", ",", "index", "=", "parents", ")", "parent_df", "[", "parent_name", "[", ":", "-", "1", "]", "]", "=", "parent_df", ".", "index", "if", "grandparent_name", ":", "if", "grandparent_name", "[", ":", "-", "1", "]", "in", "df", ".", "columns", ":", "parent_df", "=", "pd", ".", "merge", "(", "df", "[", "[", "parent_name", "[", ":", "-", "1", "]", ",", "grandparent_name", "[", ":", "-", "1", "]", "]", "]", ",", "parent_df", ",", "on", "=", "parent_name", "[", ":", "-", "1", "]", ")", "self", ".", "tables", "[", "parent_name", "]", "=", "MagicDataFrame", "(", "dtype", "=", "parent_name", ",", "df", "=", "parent_df", ")", "if", "write", ":", "# save new table to file", "self", ".", "write_table_to_file", "(", "parent_name", ")", "if", "child_name", ":", "if", "child_name", "in", "df", ".", "columns", ":", "raw_children", "=", "df", "[", "child_name", "]", ".", "dropna", "(", ")", ".", "str", ".", "split", "(", "':'", ")", "# create dict of all children with parent info", "parent_of_child", "=", "{", "}", "for", "parent", ",", "children", "in", "raw_children", ".", "items", "(", ")", ":", "for", "child", "in", "children", ":", "# remove whitespace", "child", "=", "child", ".", "strip", "(", ")", "old_parent", "=", "parent_of_child", ".", "get", "(", "child", ")", "if", "old_parent", "and", "parent", "and", "(", "old_parent", "!=", "parent", ")", ":", "print", "(", "'-I- for {} {}, replacing: {} with: {}'", ".", "format", "(", "child_name", "[", ":", "-", "1", "]", ",", "child", ",", "old_parent", ",", "parent", ")", ")", "parent_of_child", "[", "child", "]", "=", "parent", "# old way:", "# flatten list, ignore duplicates", "#children = sorted(set([item.strip() for sublist in raw_children for item in sublist]))", "if", "child_name", "in", "self", ".", "tables", ":", "# if there is already a child table, update it", "child_df", "=", "self", ".", "tables", "[", "child_name", "]", ".", "df", "missing_children", "=", "set", "(", "parent_of_child", ".", "keys", "(", ")", ")", "-", "set", "(", "child_df", ".", "index", ")", "if", "missing_children", ":", "# add any missing values", "print", "(", "\"-I- Updating {} table with values from {} table\"", ".", "format", "(", "child_name", ",", "table_name", ")", ")", "for", "item", "in", "missing_children", ":", "data", "=", "{", "child_name", "[", ":", "-", "1", "]", ":", "item", ",", "table_name", "[", ":", "-", "1", "]", ":", "parent_of_child", "[", "item", "]", "}", "self", ".", "add_item", "(", "child_name", ",", "data", ",", "label", "=", "item", ")", "if", "write", ":", "# save any changes to file", "self", ".", "write_table_to_file", "(", "child_name", ")", "else", ":", "# if there is no child table, create it if necessary", "if", "children", ":", "# create a child_df with the names you got from the parent", "print", "(", "\"-I- Creating new {} table with data from {} table\"", ".", "format", "(", "child_name", ",", "table_name", ")", ")", "# old way to make new table:", "#child_df = pd.DataFrame(columns=[table_name[:-1]], index=children)", "# new way to make new table", "children_list", "=", "sorted", "(", "parent_of_child", ".", "keys", "(", ")", ")", "children_data", "=", "[", "[", "child_name", ",", "parent_of_child", "[", "c_name", "]", "]", "for", "c_name", "in", "children_list", "]", "child_df", "=", "pd", ".", "DataFrame", "(", "index", "=", "children_list", ",", "columns", "=", "[", "child_name", "[", ":", "-", "1", "]", ",", "table_name", "[", ":", "-", "1", "]", "]", ",", "data", "=", "children_data", ")", "self", ".", "tables", "[", "child_name", "]", "=", "MagicDataFrame", "(", "dtype", "=", "child_name", ",", "df", "=", "child_df", ")", "if", "write", ":", "# save new table to file", "self", ".", "write_table_to_file", "(", "child_name", ")" ]
Find any items (specimens, samples, sites, or locations) from tables other than measurements and make sure they each have a row in their own table. For example, if a site name is in the samples table but not in the sites table, create a row for it in the sites table.
[ "Find", "any", "items", "(", "specimens", "samples", "sites", "or", "locations", ")", "from", "tables", "other", "than", "measurements", "and", "make", "sure", "they", "each", "have", "a", "row", "in", "their", "own", "table", ".", "For", "example", "if", "a", "site", "name", "is", "in", "the", "samples", "table", "but", "not", "in", "the", "sites", "table", "create", "a", "row", "for", "it", "in", "the", "sites", "table", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L209-L302
train
Propagate all items from all tables to the file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + '\063' + '\060' + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(0b101110 + 0o11) + chr(1664 - 1611), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\064' + '\062', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6457 - 6346) + '\067', 14810 - 14802), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\x6f' + chr(1145 - 1095) + chr(68 - 15) + '\064', 55609 - 55601), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b1100111 + 0o10) + chr(0b110011) + chr(2147 - 2099) + chr(1142 - 1091), 8), nzTpIcepk0o8('\060' + '\157' + chr(54) + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(1679 - 1568) + chr(377 - 327) + chr(54) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\066' + chr(0b11010 + 0o26), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101110 + 0o5) + chr(415 - 361) + '\066', 8158 - 8150), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + '\066' + chr(1267 - 1213), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(10102 - 9991) + chr(585 - 534) + chr(209 - 155), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110100) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4412 - 4301) + chr(49) + '\064' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(0b110010) + chr(0b110100) + chr(0b101101 + 0o5), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(49) + chr(0b101000 + 0o15), 11125 - 11117), nzTpIcepk0o8('\x30' + chr(0b111111 + 0o60) + '\x31' + '\x33' + chr(0b1000 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(847 - 796) + '\065' + chr(0b110111), 14111 - 14103), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2003 - 1954) + '\x36' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(147 - 97) + chr(0b110101) + chr(752 - 698), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001 + 0o146) + chr(51) + chr(112 - 61) + chr(0b11111 + 0o23), 19461 - 19453), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(0b110010) + '\063', 31728 - 31720), nzTpIcepk0o8(chr(2287 - 2239) + chr(0b1101111) + '\x33' + '\063', 0b1000), nzTpIcepk0o8(chr(1788 - 1740) + chr(0b1101111) + chr(1957 - 1906) + '\x32' + '\063', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11010 + 0o31) + '\x30' + chr(267 - 218), 47247 - 47239), nzTpIcepk0o8(chr(48) + chr(3849 - 3738) + chr(0b110010) + chr(0b101 + 0o57) + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(5108 - 4997) + '\x33' + '\x37' + '\x31', 20183 - 20175), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x34' + chr(49), 43167 - 43159), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(798 - 748) + '\066' + '\x37', 64262 - 64254), nzTpIcepk0o8('\060' + chr(248 - 137) + '\062' + chr(0b110000) + chr(0b110110), 52525 - 52517), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b11110 + 0o24) + '\x33' + chr(139 - 89), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(51) + '\067', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(1139 - 1088) + '\x31' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(811 - 762) + chr(55) + '\064', 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(0b110010) + chr(145 - 91), 13352 - 13344), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(111) + '\x31' + chr(54) + chr(49), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101101 + 0o4) + '\x34' + '\065', 8), nzTpIcepk0o8(chr(0b11001 + 0o27) + chr(8369 - 8258) + '\063' + '\x33' + chr(50), 8), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + chr(2407 - 2356) + chr(1183 - 1135) + chr(2156 - 2108), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + '\x6f' + chr(0b110001) + '\x33' + chr(1865 - 1817), 21197 - 21189)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + '\157' + chr(0b110101) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xed'), '\144' + chr(101) + chr(99) + chr(7019 - 6908) + chr(0b1100100) + chr(101))('\165' + chr(0b111010 + 0o72) + chr(3837 - 3735) + chr(0b100110 + 0o7) + chr(0b101 + 0o63)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def pmYNHlVZjSOV(hXMPsSrOQzbh, ml0hhpv1Lpq2=nzTpIcepk0o8(chr(478 - 430) + '\x6f' + '\x31', 0b1000)): for kR9bIddrApHD in [roI3spqORKae(ES5oEprVxulp(b'\xb0\r\x07d\xc5\xaeS\xdb\x03'), chr(3086 - 2986) + '\145' + chr(1979 - 1880) + '\x6f' + chr(661 - 561) + chr(101))(chr(2896 - 2779) + '\164' + '\x66' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb0\x1c\x0fw\xc0\xa6E'), '\x64' + chr(7268 - 7167) + chr(99) + chr(10098 - 9987) + chr(1609 - 1509) + chr(0b1100101))('\x75' + chr(0b1110100) + '\x66' + chr(0b11100 + 0o21) + chr(2772 - 2716)), roI3spqORKae(ES5oEprVxulp(b'\xb0\x14\x16b\xdf'), chr(100) + chr(101) + chr(99) + chr(6730 - 6619) + chr(5313 - 5213) + '\x65')(chr(117) + chr(0b111010 + 0o72) + chr(0b1100101 + 0o1) + chr(1192 - 1147) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xaf\x12\x01f\xd8\xaaY\xdb\x03'), chr(100) + chr(9435 - 9334) + chr(2281 - 2182) + chr(10708 - 10597) + chr(0b1100100) + '\145')(chr(13300 - 13183) + chr(5622 - 5506) + chr(6932 - 6830) + chr(1820 - 1775) + '\070')]: if kR9bIddrApHD not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x94\x1a\x16T\xe6\x9b\x06\xc69\xaf\x06R'), '\x64' + chr(101) + chr(9051 - 8952) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\165' + chr(6336 - 6220) + '\x66' + chr(0b101101) + '\x38')): continue jpOn8DNZxbbx = hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx (DI9spA5BwfXP, RkIByrCkZJX5) = hXMPsSrOQzbh.get_parent_and_child(kR9bIddrApHD) if DI9spA5BwfXP: if DI9spA5BwfXP[:-nzTpIcepk0o8(chr(75 - 27) + chr(111) + '\061', 8)] in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\x96N[m\xff\xaa\x7f\x80D\xbb\x1an'), '\144' + '\x65' + chr(99) + chr(0b1010011 + 0o34) + '\144' + chr(0b1100101))(chr(117) + '\x74' + chr(0b110101 + 0o61) + chr(1090 - 1045) + chr(0b111000))): nP99tO3t3cvU = V3OlOVg98A85(Bvi71nNyvlqO(jpOn8DNZxbbx[DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b11 + 0o55) + chr(7233 - 7122) + chr(0b11111 + 0o22), 8)]].dropna().values.xqAChpcBkssb(N9zlRy29S1SS))) if DI9spA5BwfXP in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x94\x1a\x16T\xe6\x9b\x06\xc69\xaf\x06R'), chr(0b101001 + 0o73) + chr(3664 - 3563) + '\143' + chr(0b1100001 + 0o16) + chr(4749 - 4649) + chr(0b101 + 0o140))(chr(0b1110101) + chr(116) + chr(10245 - 10143) + chr(45) + '\x38')): d7023ICARf4o = hXMPsSrOQzbh.tables[DI9spA5BwfXP].jpOn8DNZxbbx ULoUPN_OhTo_ = Bvi71nNyvlqO(nP99tO3t3cvU) - Bvi71nNyvlqO(d7023ICARf4o.ZpfN5tSLaZze) if ULoUPN_OhTo_: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xee4O'\xf9\xb3R\xd4\x04\x9f\x18yE\x1b\xdfm)\x8e\x15\xc2\xbf\xb3l\xba\xb5\xca\xd9W\xd6\xea\xef\xfa\xbd\\p\x03\n\xb7\xe0#\xbe]\x16f\xce\xafS"), '\144' + chr(0b1100101) + '\x63' + chr(111) + chr(1725 - 1625) + chr(101))('\165' + '\x74' + chr(3125 - 3023) + chr(0b101101) + chr(703 - 647)), roI3spqORKae(ES5oEprVxulp(b'\xb2NQL\xeb\xf0P\xda!\xa95T'), '\x64' + chr(0b1000110 + 0o37) + chr(99) + chr(0b1011101 + 0o22) + '\144' + chr(797 - 696))('\x75' + chr(116) + chr(0b1000101 + 0o41) + chr(0b101101) + chr(0b10 + 0o66)))(DI9spA5BwfXP, kR9bIddrApHD)) for IZ1I2J8X1CQz in ULoUPN_OhTo_: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa2\x19\x06X\xc5\xb7S\xd8'), chr(0b1100100) + '\145' + '\143' + '\157' + '\x64' + chr(0b111101 + 0o50))('\165' + chr(0b1110100) + '\x66' + chr(978 - 933) + chr(2366 - 2310)))(DI9spA5BwfXP, {DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b110000) + chr(7379 - 7268) + chr(2201 - 2152), 8)]: IZ1I2J8X1CQz}, label=IZ1I2J8X1CQz) if ml0hhpv1Lpq2: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\x0f\x0bs\xc9\x9cB\xd4\x12\x9a\x13A\x11\x0f\xfd+4\x83\x12'), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b111000 + 0o55))(chr(8520 - 8403) + chr(0b1110100) + chr(0b1010111 + 0o17) + '\055' + chr(1359 - 1303)))(DI9spA5BwfXP) elif nP99tO3t3cvU: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xee4O'\xef\xb1S\xd4\x04\x9f\x18yE\x0e\xc7:}\x94\n\x8e\xae\xf2y\xbf\xa4\x82\x8eH\xc3\xee\xba\xfb\xaf\x08wQ\x03\xa8\xaf5\xe3\x06\x1f'\xd8\xa2T\xd9\x15"), '\x64' + '\145' + '\x63' + chr(2776 - 2665) + chr(2799 - 2699) + '\145')('\165' + chr(0b1001111 + 0o45) + chr(0b1100110) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xb2NQL\xeb\xf0P\xda!\xa95T'), '\144' + '\x65' + chr(0b11111 + 0o104) + chr(0b11 + 0o154) + '\x64' + chr(0b1100100 + 0o1))(chr(10055 - 9938) + '\164' + chr(0b1100110) + chr(1764 - 1719) + '\070'))(DI9spA5BwfXP, kR9bIddrApHD)) mSHng8CN6V6V = hXMPsSrOQzbh.get_parent_and_child(DI9spA5BwfXP)[nzTpIcepk0o8(chr(48) + chr(111) + chr(1376 - 1328), ord("\x08"))] if mSHng8CN6V6V: bNwSoO7mIY3i = roI3spqORKae(ES5oEprVxulp(b''), chr(8836 - 8736) + '\145' + chr(0b1100011) + chr(0b1001000 + 0o47) + chr(0b111 + 0o135) + chr(0b1100101))('\x75' + chr(116) + chr(0b1000000 + 0o46) + chr(0b101101) + chr(479 - 423)) if mSHng8CN6V6V in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\x96N[m\xff\xaa\x7f\x80D\xbb\x1an'), '\x64' + chr(0b1101 + 0o130) + '\x63' + '\157' + chr(0b10010 + 0o122) + '\145')(chr(12075 - 11958) + '\x74' + chr(0b1100110) + '\x2d' + chr(56))): bNwSoO7mIY3i = jpOn8DNZxbbx[jpOn8DNZxbbx[DI9spA5BwfXP] == IZ1I2J8X1CQz][mSHng8CN6V6V].CsodZJH6x9Tx[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(48), 8)] U39jSiI54Mlp = [DI9spA5BwfXP[:-nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + '\061', 8)]] else: U39jSiI54Mlp = [DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001), 8)]] d7023ICARf4o = HLKt4sa1j9hm.DataFrame(columns=U39jSiI54Mlp, index=nP99tO3t3cvU) d7023ICARf4o[DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b110000) + '\157' + '\061', 8)]] = d7023ICARf4o.ZpfN5tSLaZze if mSHng8CN6V6V: if mSHng8CN6V6V[:-nzTpIcepk0o8('\060' + chr(111) + '\x31', 8)] in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\x96N[m\xff\xaa\x7f\x80D\xbb\x1an'), '\144' + chr(101) + chr(0b1010 + 0o131) + chr(0b1101111) + chr(0b11001 + 0o113) + '\x65')(chr(117) + chr(0b1011100 + 0o30) + '\x66' + '\055' + '\070')): d7023ICARf4o = HLKt4sa1j9hm.merge(jpOn8DNZxbbx[[DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b110000) + chr(7724 - 7613) + '\061', 8)], mSHng8CN6V6V[:-nzTpIcepk0o8(chr(577 - 529) + chr(0b1101111) + chr(49), 8)]]], d7023ICARf4o, on=DI9spA5BwfXP[:-nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + chr(49), 8)]) hXMPsSrOQzbh.WgtSJX0sIYpL[DI9spA5BwfXP] = j3QHvEcjwt5D(dtype=DI9spA5BwfXP, df=d7023ICARf4o) if ml0hhpv1Lpq2: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\x0f\x0bs\xc9\x9cB\xd4\x12\x9a\x13A\x11\x0f\xfd+4\x83\x12'), chr(0b1110 + 0o126) + '\145' + chr(938 - 839) + '\x6f' + chr(0b1001001 + 0o33) + '\x65')(chr(0b1110101) + chr(0b1000111 + 0o55) + chr(102) + '\x2d' + chr(56)))(DI9spA5BwfXP) if RkIByrCkZJX5: if RkIByrCkZJX5 in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\x96N[m\xff\xaa\x7f\x80D\xbb\x1an'), '\x64' + chr(0b10001 + 0o124) + '\x63' + chr(6585 - 6474) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(1326 - 1224) + '\x2d' + '\070')): yg3MXC9ef4Rb = jpOn8DNZxbbx[RkIByrCkZJX5].dropna().str.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xf9'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(111) + '\144' + chr(1643 - 1542))(chr(117) + '\164' + chr(0b1100110) + chr(45) + '\070')) eIaseDg0IQWm = {} for (aY0lxtg5akD2, UAQzobuBMz8T) in roI3spqORKae(yg3MXC9ef4Rb, roI3spqORKae(ES5oEprVxulp(b'\x9a"\x0cI\xe9\xb9~\x81C\x80.w'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(8644 - 8544) + '\x65')(chr(117) + '\164' + '\x66' + chr(0b101101 + 0o0) + '\x38'))(): for wEGGaNWalKDs in UAQzobuBMz8T: wEGGaNWalKDs = wEGGaNWalKDs.kdIDrcwZTCs5() pklKMKofRdve = eIaseDg0IQWm.GUKetu4xaGsJ(wEGGaNWalKDs) if pklKMKofRdve and aY0lxtg5akD2 and (pklKMKofRdve != aY0lxtg5akD2): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xee4O'\xca\xacD\x95\x0b\x8bVe\x18L\x82?8\x9f\x1b\xcf\xb9\xfau\xb4\xfb\x82\x82\\\x97\xf1\xf3\xeb\xa6F6\n\x18"), '\x64' + chr(0b1100101) + '\x63' + chr(7303 - 7192) + chr(100) + chr(0b1001000 + 0o35))('\165' + '\x74' + '\x66' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xb2NQL\xeb\xf0P\xda!\xa95T'), chr(0b1011111 + 0o5) + chr(0b1100101) + '\x63' + chr(111) + '\x64' + '\x65')(chr(0b1110 + 0o147) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(2814 - 2758)))(RkIByrCkZJX5[:-nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8)], wEGGaNWalKDs, pklKMKofRdve, aY0lxtg5akD2)) eIaseDg0IQWm[wEGGaNWalKDs] = aY0lxtg5akD2 if RkIByrCkZJX5 in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x94\x1a\x16T\xe6\x9b\x06\xc69\xaf\x06R'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b101011 + 0o72))('\165' + chr(0b1100000 + 0o24) + chr(8021 - 7919) + chr(0b101101) + '\x38')): kG3jIVQy6t8A = hXMPsSrOQzbh.tables[RkIByrCkZJX5].jpOn8DNZxbbx To7GFejeh6We = Bvi71nNyvlqO(eIaseDg0IQWm.keys()) - Bvi71nNyvlqO(kG3jIVQy6t8A.ZpfN5tSLaZze) if To7GFejeh6We: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xee4O'\xf9\xb3R\xd4\x04\x9f\x18yE\x1b\xdfm)\x8e\x15\xc2\xbf\xb3l\xba\xb5\xca\xd9W\xd6\xea\xef\xfa\xbd\\p\x03\n\xb7\xe0#\xbe]\x16f\xce\xafS"), chr(5192 - 5092) + chr(0b1100101) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b101100 + 0o111) + '\164' + '\x66' + chr(0b101101) + chr(0b1010 + 0o56)), roI3spqORKae(ES5oEprVxulp(b'\xb2NQL\xeb\xf0P\xda!\xa95T'), '\x64' + '\x65' + chr(0b100100 + 0o77) + chr(111) + '\144' + '\x65')(chr(0b1110101) + '\x74' + chr(2219 - 2117) + chr(0b101101) + '\x38'))(RkIByrCkZJX5, kR9bIddrApHD)) for IZ1I2J8X1CQz in To7GFejeh6We: FfKOThdpoDTb = {RkIByrCkZJX5[:-nzTpIcepk0o8(chr(48) + chr(111) + '\x31', 8)]: IZ1I2J8X1CQz, kR9bIddrApHD[:-nzTpIcepk0o8(chr(0b100000 + 0o20) + '\157' + '\x31', 8)]: eIaseDg0IQWm[IZ1I2J8X1CQz]} roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xa2\x19\x06X\xc5\xb7S\xd8'), chr(5505 - 5405) + chr(0b1001001 + 0o34) + chr(99) + '\x6f' + chr(0b100111 + 0o75) + chr(2588 - 2487))(chr(0b101011 + 0o112) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070'))(RkIByrCkZJX5, FfKOThdpoDTb, label=IZ1I2J8X1CQz) if ml0hhpv1Lpq2: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\x0f\x0bs\xc9\x9cB\xd4\x12\x9a\x13A\x11\x0f\xfd+4\x83\x12'), '\144' + chr(101) + '\x63' + chr(0b1101111) + chr(0b110110 + 0o56) + chr(0b1100101))('\x75' + chr(3145 - 3029) + '\x66' + '\055' + chr(56)))(RkIByrCkZJX5) elif UAQzobuBMz8T: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xee4O'\xef\xb1S\xd4\x04\x9f\x18yE\x0e\xc7:}\x94\n\x8e\xae\xf2y\xbf\xa4\x82\x8eH\xc3\xee\xba\xfb\xaf\x08wQ\x03\xa8\xaf5\xe3\x06\x1f'\xd8\xa2T\xd9\x15"), chr(0b1001111 + 0o25) + chr(3569 - 3468) + chr(9151 - 9052) + '\x6f' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(1495 - 1439)), roI3spqORKae(ES5oEprVxulp(b'\xb2NQL\xeb\xf0P\xda!\xa95T'), chr(412 - 312) + '\x65' + chr(0b1011101 + 0o6) + chr(0b1000110 + 0o51) + chr(7203 - 7103) + '\145')('\165' + chr(0b10011 + 0o141) + chr(0b1100110) + chr(45) + chr(0b111000)))(RkIByrCkZJX5, kR9bIddrApHD)) hluhW57sQTwQ = V3OlOVg98A85(eIaseDg0IQWm.keys()) VTUlRqfuRX2I = [[RkIByrCkZJX5, eIaseDg0IQWm[Fo8U4aag6Ddy]] for Fo8U4aag6Ddy in hluhW57sQTwQ] kG3jIVQy6t8A = HLKt4sa1j9hm.DataFrame(index=hluhW57sQTwQ, columns=[RkIByrCkZJX5[:-nzTpIcepk0o8(chr(48) + chr(9111 - 9000) + chr(0b110001), 8)], kR9bIddrApHD[:-nzTpIcepk0o8('\060' + chr(5481 - 5370) + chr(0b101010 + 0o7), 8)]], data=VTUlRqfuRX2I) hXMPsSrOQzbh.WgtSJX0sIYpL[RkIByrCkZJX5] = j3QHvEcjwt5D(dtype=RkIByrCkZJX5, df=kG3jIVQy6t8A) if ml0hhpv1Lpq2: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\x0f\x0bs\xc9\x9cB\xd4\x12\x9a\x13A\x11\x0f\xfd+4\x83\x12'), chr(5975 - 5875) + '\145' + chr(3452 - 3353) + '\x6f' + chr(100) + chr(7861 - 7760))(chr(0b1110101) + chr(116) + chr(0b101000 + 0o76) + chr(0b101101) + chr(0b10 + 0o66)))(RkIByrCkZJX5)
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.get_parent_and_child
def get_parent_and_child(self, table_name): """ Get the name of the parent table and the child table for a given MagIC table name. Parameters ---------- table_name : string of MagIC table name ['specimens', 'samples', 'sites', 'locations'] Returns ------- parent_name : string of parent table name child_name : string of child table name """ if table_name not in self.ancestry: return None, None parent_ind = self.ancestry.index(table_name) + 1 if parent_ind + 1 > len(self.ancestry): parent_name = None else: parent_name = self.ancestry[parent_ind] child_ind = self.ancestry.index(table_name) - 1 if child_ind < 0: child_name = None else: child_name = self.ancestry[child_ind] return parent_name, child_name
python
def get_parent_and_child(self, table_name): """ Get the name of the parent table and the child table for a given MagIC table name. Parameters ---------- table_name : string of MagIC table name ['specimens', 'samples', 'sites', 'locations'] Returns ------- parent_name : string of parent table name child_name : string of child table name """ if table_name not in self.ancestry: return None, None parent_ind = self.ancestry.index(table_name) + 1 if parent_ind + 1 > len(self.ancestry): parent_name = None else: parent_name = self.ancestry[parent_ind] child_ind = self.ancestry.index(table_name) - 1 if child_ind < 0: child_name = None else: child_name = self.ancestry[child_ind] return parent_name, child_name
[ "def", "get_parent_and_child", "(", "self", ",", "table_name", ")", ":", "if", "table_name", "not", "in", "self", ".", "ancestry", ":", "return", "None", ",", "None", "parent_ind", "=", "self", ".", "ancestry", ".", "index", "(", "table_name", ")", "+", "1", "if", "parent_ind", "+", "1", ">", "len", "(", "self", ".", "ancestry", ")", ":", "parent_name", "=", "None", "else", ":", "parent_name", "=", "self", ".", "ancestry", "[", "parent_ind", "]", "child_ind", "=", "self", ".", "ancestry", ".", "index", "(", "table_name", ")", "-", "1", "if", "child_ind", "<", "0", ":", "child_name", "=", "None", "else", ":", "child_name", "=", "self", ".", "ancestry", "[", "child_ind", "]", "return", "parent_name", ",", "child_name" ]
Get the name of the parent table and the child table for a given MagIC table name. Parameters ---------- table_name : string of MagIC table name ['specimens', 'samples', 'sites', 'locations'] Returns ------- parent_name : string of parent table name child_name : string of child table name
[ "Get", "the", "name", "of", "the", "parent", "table", "and", "the", "child", "table", "for", "a", "given", "MagIC", "table", "name", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L305-L331
train
Get the name of the parent table and child table for a given MagIC table name.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\157' + chr(52), 35873 - 35865), nzTpIcepk0o8(chr(48) + chr(7911 - 7800) + chr(0b101100 + 0o6) + chr(53), 1649 - 1641), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\x31' + chr(1692 - 1639), 0o10), nzTpIcepk0o8('\060' + chr(10306 - 10195) + '\062' + chr(0b100000 + 0o24) + chr(1848 - 1800), 56936 - 56928), nzTpIcepk0o8(chr(1893 - 1845) + '\x6f' + '\063' + chr(52), 0o10), nzTpIcepk0o8(chr(673 - 625) + chr(11703 - 11592) + '\x34' + chr(0b10000 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6022 - 5911) + chr(0b110010) + '\x35' + chr(55), 49738 - 49730), nzTpIcepk0o8('\x30' + '\157' + chr(592 - 543) + '\x31' + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(0b11101 + 0o30) + chr(0b10101 + 0o40), 22602 - 22594), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1698 - 1647) + chr(48) + chr(448 - 395), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + '\061' + chr(52) + '\062', 45937 - 45929), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1389 - 1339) + chr(0b10011 + 0o41) + '\x34', 0b1000), nzTpIcepk0o8(chr(1663 - 1615) + '\157' + chr(55) + '\x35', 9428 - 9420), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\063' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(0b10000 + 0o43) + '\067' + chr(0b110100), 49751 - 49743), nzTpIcepk0o8(chr(48) + chr(11068 - 10957) + chr(50) + chr(1197 - 1144) + '\x37', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b1110 + 0o43) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(0b110100) + chr(565 - 517), ord("\x08")), nzTpIcepk0o8(chr(629 - 581) + chr(111) + '\x31' + chr(55) + chr(0b11110 + 0o23), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(8113 - 8002) + chr(1334 - 1279) + '\x32', 37226 - 37218), nzTpIcepk0o8(chr(0b110000) + chr(11816 - 11705) + chr(49) + chr(51) + chr(50), 0b1000), nzTpIcepk0o8('\060' + chr(8631 - 8520) + '\065' + '\x32', 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\062' + chr(2093 - 2044) + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(0b110010 + 0o4) + '\063', ord("\x08")), nzTpIcepk0o8(chr(960 - 912) + chr(0b1001 + 0o146) + chr(1281 - 1230) + '\063', 678 - 670), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + chr(51) + chr(0b10 + 0o65) + chr(0b100010 + 0o23), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + '\x33' + chr(1832 - 1781) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(227 - 178) + chr(0b100000 + 0o24) + chr(0b100001 + 0o17), 8), nzTpIcepk0o8(chr(608 - 560) + chr(111) + '\x31' + chr(50) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(1680 - 1632) + '\x6f' + '\x31' + chr(52) + chr(0b101 + 0o60), 0o10), nzTpIcepk0o8(chr(1937 - 1889) + '\157' + chr(0b110011) + '\067' + chr(0b110101), 8), nzTpIcepk0o8(chr(364 - 316) + chr(0b111110 + 0o61) + chr(0b10100 + 0o35) + chr(245 - 194) + chr(0b110101), 0b1000), nzTpIcepk0o8('\x30' + chr(6253 - 6142) + chr(0b110001) + '\x35' + chr(48), 33036 - 33028), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110110) + chr(0b1100 + 0o44), 34420 - 34412), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1000 + 0o52) + '\061' + chr(2509 - 2454), 0o10), nzTpIcepk0o8(chr(2071 - 2023) + '\157' + '\067' + '\x35', 8), nzTpIcepk0o8(chr(1769 - 1721) + '\x6f' + chr(0b1101 + 0o44) + '\066' + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b1100 + 0o44) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(879 - 831) + chr(111) + chr(1551 - 1502) + chr(1892 - 1842) + chr(0b110010), 3526 - 3518), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b110011) + '\x37' + chr(233 - 183), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\065' + chr(48), 60471 - 60463)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'*'), chr(0b110011 + 0o61) + chr(101) + chr(0b101010 + 0o71) + chr(0b1000101 + 0o52) + chr(4917 - 4817) + chr(101))(chr(117) + chr(0b1110100) + chr(3133 - 3031) + chr(0b101101) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Y4UsadGZZVZZ(hXMPsSrOQzbh, kR9bIddrApHD): if kR9bIddrApHD not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'V!\xe8\xd0EV\xe2,\x98\xa15\xc2'), '\x64' + chr(0b1100101) + chr(0b111011 + 0o50) + chr(111) + '\144' + '\x65')(chr(0b1000001 + 0o64) + chr(0b1001011 + 0o51) + chr(7071 - 6969) + chr(45) + '\070')): return (None, None) R0d1diKG8Os8 = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(kR9bIddrApHD) + nzTpIcepk0o8(chr(643 - 595) + chr(145 - 34) + chr(0b110001), 0b1000) if R0d1diKG8Os8 + nzTpIcepk0o8('\x30' + chr(111) + chr(49), 8) > ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'V!\xe8\xd0EV\xe2,\x98\xa15\xc2'), '\144' + chr(0b1100101) + chr(99) + chr(0b11110 + 0o121) + chr(100) + chr(7040 - 6939))(chr(0b1110101) + chr(6612 - 6496) + '\x66' + '\055' + '\x38'))): DI9spA5BwfXP = None else: DI9spA5BwfXP = hXMPsSrOQzbh.R4epYwMd5dWf[R0d1diKG8Os8] QxB9VzB1pOUY = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(kR9bIddrApHD) - nzTpIcepk0o8(chr(2301 - 2253) + chr(0b1101111) + chr(0b11010 + 0o27), 8) if QxB9VzB1pOUY < nzTpIcepk0o8('\x30' + chr(0b1101111) + '\060', 39989 - 39981): RkIByrCkZJX5 = None else: RkIByrCkZJX5 = hXMPsSrOQzbh.R4epYwMd5dWf[QxB9VzB1pOUY] return (DI9spA5BwfXP, RkIByrCkZJX5)
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.get_min_max_lat_lon
def get_min_max_lat_lon(self): """ Find latitude/longitude information from sites table and group it by location. Returns --------- """ if 'sites' not in self.tables: return # get min/max lat/lon from sites table site_container = self.tables['sites'] if not ('lat' in site_container.df.columns and 'lon' in site_container.df.columns): return # convert lat/lon columns to string type # (this is necessary for consistency because they MAY be string type already) site_container.df['lat'] = site_container.df['lat'].fillna('').astype(str) site_container.df['lon'] = site_container.df['lon'].fillna('').astype(str) # replace empty strings with np.nan site_container.df['lat'] = np.where(site_container.df['lat'].str.len(), site_container.df['lat'], np.nan) site_container.df['lon'] = np.where(site_container.df['lon'].str.len(), site_container.df['lon'], np.nan) # convert lat/lon values to float (they make be string from grid) try: site_container.df['lat'] = site_container.df['lat'].astype(float) except ValueError as ex: print('-W- Improperly formatted numbers in sites.lat') return try: site_container.df['lon'] = site_container.df['lon'].astype(float) except ValueError as ex: print('-W- Improperly formatted numbers in sites.lon') return # group lat/lon by location grouped_lon = site_container.df[['lon', 'location']].groupby('location') grouped_lat = site_container.df[['lat', 'location']].groupby('location') # get min/max longitude by location lon_w = grouped_lon.min() lon_e = grouped_lon.max() # get min/max latitude by location lat_s = grouped_lat.min() lat_n = grouped_lat.max() # assign lat/lon to location table locs = {} if 'locations' not in self.tables: return loc_container = self.tables['locations'] for loc in lat_s.index: coords = {} coords['lat_s'] = lat_s.loc[loc]['lat'] coords['lat_n'] = lat_n.loc[loc]['lat'] coords['lon_e'] = lon_e.loc[loc]['lon'] coords['lon_w'] = lon_w.loc[loc]['lon'] locs[loc] = coords loc_container = self.tables['locations'] for loc_name in locs: if loc_name in loc_container.df.index: coords = locs[loc_name] for coord in locs[loc_name]: # warn user if an old value will be overwritten new_value = coords[coord] # if the new value is null, ignore it if is_null(new_value, zero_as_null=False): continue # set old value to None if it wasn't in table if coord not in loc_container.df.columns: loc_container.df[coord] = None old_value = loc_container.df.loc[loc_name, coord] # use first value if multiple values returned, but don't shorten a string if not (isinstance(old_value, str)): try: old_value = old_value.values.astype(str)[0] except (TypeError,IndexError,AttributeError) as e: # if only one value, or np.nan, or NoneType pass if is_null(old_value, zero_as_null=False): pass elif isinstance(old_value, str): try: old_value = float(old_value) except ValueError: print('-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'.format(loc_name, coord, new_value, old_value)) old_value = None elif not math.isclose(new_value, old_value): print('-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'.format(loc_name, coord, new_value, old_value)) # set new value new_value = round(float(new_value), 5) loc_container.df.loc[loc_name, coord] = new_value self.write_table_to_file('locations') return locs
python
def get_min_max_lat_lon(self): """ Find latitude/longitude information from sites table and group it by location. Returns --------- """ if 'sites' not in self.tables: return # get min/max lat/lon from sites table site_container = self.tables['sites'] if not ('lat' in site_container.df.columns and 'lon' in site_container.df.columns): return # convert lat/lon columns to string type # (this is necessary for consistency because they MAY be string type already) site_container.df['lat'] = site_container.df['lat'].fillna('').astype(str) site_container.df['lon'] = site_container.df['lon'].fillna('').astype(str) # replace empty strings with np.nan site_container.df['lat'] = np.where(site_container.df['lat'].str.len(), site_container.df['lat'], np.nan) site_container.df['lon'] = np.where(site_container.df['lon'].str.len(), site_container.df['lon'], np.nan) # convert lat/lon values to float (they make be string from grid) try: site_container.df['lat'] = site_container.df['lat'].astype(float) except ValueError as ex: print('-W- Improperly formatted numbers in sites.lat') return try: site_container.df['lon'] = site_container.df['lon'].astype(float) except ValueError as ex: print('-W- Improperly formatted numbers in sites.lon') return # group lat/lon by location grouped_lon = site_container.df[['lon', 'location']].groupby('location') grouped_lat = site_container.df[['lat', 'location']].groupby('location') # get min/max longitude by location lon_w = grouped_lon.min() lon_e = grouped_lon.max() # get min/max latitude by location lat_s = grouped_lat.min() lat_n = grouped_lat.max() # assign lat/lon to location table locs = {} if 'locations' not in self.tables: return loc_container = self.tables['locations'] for loc in lat_s.index: coords = {} coords['lat_s'] = lat_s.loc[loc]['lat'] coords['lat_n'] = lat_n.loc[loc]['lat'] coords['lon_e'] = lon_e.loc[loc]['lon'] coords['lon_w'] = lon_w.loc[loc]['lon'] locs[loc] = coords loc_container = self.tables['locations'] for loc_name in locs: if loc_name in loc_container.df.index: coords = locs[loc_name] for coord in locs[loc_name]: # warn user if an old value will be overwritten new_value = coords[coord] # if the new value is null, ignore it if is_null(new_value, zero_as_null=False): continue # set old value to None if it wasn't in table if coord not in loc_container.df.columns: loc_container.df[coord] = None old_value = loc_container.df.loc[loc_name, coord] # use first value if multiple values returned, but don't shorten a string if not (isinstance(old_value, str)): try: old_value = old_value.values.astype(str)[0] except (TypeError,IndexError,AttributeError) as e: # if only one value, or np.nan, or NoneType pass if is_null(old_value, zero_as_null=False): pass elif isinstance(old_value, str): try: old_value = float(old_value) except ValueError: print('-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'.format(loc_name, coord, new_value, old_value)) old_value = None elif not math.isclose(new_value, old_value): print('-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'.format(loc_name, coord, new_value, old_value)) # set new value new_value = round(float(new_value), 5) loc_container.df.loc[loc_name, coord] = new_value self.write_table_to_file('locations') return locs
[ "def", "get_min_max_lat_lon", "(", "self", ")", ":", "if", "'sites'", "not", "in", "self", ".", "tables", ":", "return", "# get min/max lat/lon from sites table", "site_container", "=", "self", ".", "tables", "[", "'sites'", "]", "if", "not", "(", "'lat'", "in", "site_container", ".", "df", ".", "columns", "and", "'lon'", "in", "site_container", ".", "df", ".", "columns", ")", ":", "return", "# convert lat/lon columns to string type", "# (this is necessary for consistency because they MAY be string type already)", "site_container", ".", "df", "[", "'lat'", "]", "=", "site_container", ".", "df", "[", "'lat'", "]", ".", "fillna", "(", "''", ")", ".", "astype", "(", "str", ")", "site_container", ".", "df", "[", "'lon'", "]", "=", "site_container", ".", "df", "[", "'lon'", "]", ".", "fillna", "(", "''", ")", ".", "astype", "(", "str", ")", "# replace empty strings with np.nan", "site_container", ".", "df", "[", "'lat'", "]", "=", "np", ".", "where", "(", "site_container", ".", "df", "[", "'lat'", "]", ".", "str", ".", "len", "(", ")", ",", "site_container", ".", "df", "[", "'lat'", "]", ",", "np", ".", "nan", ")", "site_container", ".", "df", "[", "'lon'", "]", "=", "np", ".", "where", "(", "site_container", ".", "df", "[", "'lon'", "]", ".", "str", ".", "len", "(", ")", ",", "site_container", ".", "df", "[", "'lon'", "]", ",", "np", ".", "nan", ")", "# convert lat/lon values to float (they make be string from grid)", "try", ":", "site_container", ".", "df", "[", "'lat'", "]", "=", "site_container", ".", "df", "[", "'lat'", "]", ".", "astype", "(", "float", ")", "except", "ValueError", "as", "ex", ":", "print", "(", "'-W- Improperly formatted numbers in sites.lat'", ")", "return", "try", ":", "site_container", ".", "df", "[", "'lon'", "]", "=", "site_container", ".", "df", "[", "'lon'", "]", ".", "astype", "(", "float", ")", "except", "ValueError", "as", "ex", ":", "print", "(", "'-W- Improperly formatted numbers in sites.lon'", ")", "return", "# group lat/lon by location", "grouped_lon", "=", "site_container", ".", "df", "[", "[", "'lon'", ",", "'location'", "]", "]", ".", "groupby", "(", "'location'", ")", "grouped_lat", "=", "site_container", ".", "df", "[", "[", "'lat'", ",", "'location'", "]", "]", ".", "groupby", "(", "'location'", ")", "# get min/max longitude by location", "lon_w", "=", "grouped_lon", ".", "min", "(", ")", "lon_e", "=", "grouped_lon", ".", "max", "(", ")", "# get min/max latitude by location", "lat_s", "=", "grouped_lat", ".", "min", "(", ")", "lat_n", "=", "grouped_lat", ".", "max", "(", ")", "# assign lat/lon to location table", "locs", "=", "{", "}", "if", "'locations'", "not", "in", "self", ".", "tables", ":", "return", "loc_container", "=", "self", ".", "tables", "[", "'locations'", "]", "for", "loc", "in", "lat_s", ".", "index", ":", "coords", "=", "{", "}", "coords", "[", "'lat_s'", "]", "=", "lat_s", ".", "loc", "[", "loc", "]", "[", "'lat'", "]", "coords", "[", "'lat_n'", "]", "=", "lat_n", ".", "loc", "[", "loc", "]", "[", "'lat'", "]", "coords", "[", "'lon_e'", "]", "=", "lon_e", ".", "loc", "[", "loc", "]", "[", "'lon'", "]", "coords", "[", "'lon_w'", "]", "=", "lon_w", ".", "loc", "[", "loc", "]", "[", "'lon'", "]", "locs", "[", "loc", "]", "=", "coords", "loc_container", "=", "self", ".", "tables", "[", "'locations'", "]", "for", "loc_name", "in", "locs", ":", "if", "loc_name", "in", "loc_container", ".", "df", ".", "index", ":", "coords", "=", "locs", "[", "loc_name", "]", "for", "coord", "in", "locs", "[", "loc_name", "]", ":", "# warn user if an old value will be overwritten", "new_value", "=", "coords", "[", "coord", "]", "# if the new value is null, ignore it", "if", "is_null", "(", "new_value", ",", "zero_as_null", "=", "False", ")", ":", "continue", "# set old value to None if it wasn't in table", "if", "coord", "not", "in", "loc_container", ".", "df", ".", "columns", ":", "loc_container", ".", "df", "[", "coord", "]", "=", "None", "old_value", "=", "loc_container", ".", "df", ".", "loc", "[", "loc_name", ",", "coord", "]", "# use first value if multiple values returned, but don't shorten a string", "if", "not", "(", "isinstance", "(", "old_value", ",", "str", ")", ")", ":", "try", ":", "old_value", "=", "old_value", ".", "values", ".", "astype", "(", "str", ")", "[", "0", "]", "except", "(", "TypeError", ",", "IndexError", ",", "AttributeError", ")", "as", "e", ":", "# if only one value, or np.nan, or NoneType", "pass", "if", "is_null", "(", "old_value", ",", "zero_as_null", "=", "False", ")", ":", "pass", "elif", "isinstance", "(", "old_value", ",", "str", ")", ":", "try", ":", "old_value", "=", "float", "(", "old_value", ")", "except", "ValueError", ":", "print", "(", "'-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'", ".", "format", "(", "loc_name", ",", "coord", ",", "new_value", ",", "old_value", ")", ")", "old_value", "=", "None", "elif", "not", "math", ".", "isclose", "(", "new_value", ",", "old_value", ")", ":", "print", "(", "'-W- In {}, automatically generated {} value ({}) will overwrite previous value ({})'", ".", "format", "(", "loc_name", ",", "coord", ",", "new_value", ",", "old_value", ")", ")", "# set new value", "new_value", "=", "round", "(", "float", "(", "new_value", ")", ",", "5", ")", "loc_container", ".", "df", ".", "loc", "[", "loc_name", ",", "coord", "]", "=", "new_value", "self", ".", "write_table_to_file", "(", "'locations'", ")", "return", "locs" ]
Find latitude/longitude information from sites table and group it by location. Returns ---------
[ "Find", "latitude", "/", "longitude", "information", "from", "sites", "table", "and", "group", "it", "by", "location", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L333-L420
train
Find latitude and longitude information from sites table and return the minimum and maximum latitude.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + chr(53) + chr(2596 - 2544), 37316 - 37308), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(51) + chr(1267 - 1218), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b11110 + 0o25) + '\x31' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1 + 0o156) + chr(1314 - 1265) + chr(0b110100) + chr(2460 - 2409), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b101111 + 0o100) + chr(0b1000 + 0o53) + chr(0b110010) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(2021 - 1973) + '\x6f' + chr(0b10100 + 0o36) + chr(0b110000) + '\067', 0b1000), nzTpIcepk0o8(chr(1495 - 1447) + '\157' + chr(0b100111 + 0o14) + '\x34' + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(1801 - 1748) + chr(1097 - 1046), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\067' + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + chr(0b11 + 0o57) + chr(771 - 720) + '\067', 0b1000), nzTpIcepk0o8(chr(918 - 870) + chr(0b1101111) + '\062' + chr(1206 - 1153) + chr(55), 0o10), nzTpIcepk0o8(chr(2207 - 2159) + chr(0b1101111) + chr(0b11001 + 0o30) + '\064' + chr(0b101 + 0o60), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + chr(0b1111 + 0o44), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x35' + chr(54), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b1010 + 0o47) + chr(0b110101) + chr(0b100 + 0o61), 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b111 + 0o54) + chr(0b111 + 0o53) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1154 - 1106) + chr(0b1011100 + 0o23) + chr(52) + chr(0b1101 + 0o52), 0o10), nzTpIcepk0o8('\060' + chr(0b1111 + 0o140) + chr(0b110110) + chr(0b10111 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(1237 - 1189) + chr(2859 - 2748) + chr(820 - 769) + '\063' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100000 + 0o117) + chr(0b101101 + 0o4) + chr(0b110011) + chr(170 - 117), 25688 - 25680), nzTpIcepk0o8('\060' + chr(111) + chr(1892 - 1842) + '\x34' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(1491 - 1443) + chr(0b1010000 + 0o37) + '\x31' + chr(1733 - 1679) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(48) + chr(6602 - 6491) + chr(49) + chr(0b110000) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b110100) + '\065', 35581 - 35573), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(1682 - 1632) + chr(363 - 313), 62306 - 62298), nzTpIcepk0o8('\060' + '\x6f' + chr(52) + '\x34', 51679 - 51671), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(51) + chr(0b110000) + chr(0b10100 + 0o41), 11366 - 11358), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(2119 - 2008) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1010 + 0o47) + chr(0b101100 + 0o6) + '\063', 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(3949 - 3838) + '\x33' + '\061', 54064 - 54056), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(53) + chr(49), 0o10), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + '\063' + chr(0b1100 + 0o46) + '\067', ord("\x08")), nzTpIcepk0o8(chr(411 - 363) + chr(111) + chr(0b10111 + 0o34) + '\066' + '\064', 10078 - 10070), nzTpIcepk0o8('\060' + chr(111) + chr(0b110101) + chr(55), 54737 - 54729), nzTpIcepk0o8(chr(48) + chr(3103 - 2992) + chr(51) + chr(0b0 + 0o60) + chr(0b11100 + 0o33), 29678 - 29670), nzTpIcepk0o8(chr(0b110000) + '\157' + '\061' + '\x33' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(124 - 73) + '\x36' + chr(0b100011 + 0o16), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(49) + chr(1506 - 1454) + chr(735 - 683), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(673 - 624) + chr(0b110000 + 0o4) + '\060', 63505 - 63497), nzTpIcepk0o8('\x30' + chr(0b110110 + 0o71) + chr(0b100001 + 0o23) + chr(1582 - 1529), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1559 - 1511) + '\x6f' + '\x35' + chr(0b110000), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc2'), chr(0b0 + 0o144) + chr(101) + '\143' + '\x6f' + '\144' + '\x65')('\x75' + chr(10916 - 10800) + chr(5010 - 4908) + chr(0b100111 + 0o6) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def lJDIxOQdJZR_(hXMPsSrOQzbh): if roI3spqORKae(ES5oEprVxulp(b'\x9f\xf0\xbf\x06\xa0'), chr(0b101011 + 0o71) + '\145' + chr(99) + chr(0b1101111) + chr(9583 - 9483) + '\x65')('\x75' + chr(7039 - 6923) + chr(0b1100110) + chr(0b101101) + chr(56)) not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbb\xfe\xbf0\x99\xdf\xd0\x18\xb5\xc6\xdf)'), chr(0b111000 + 0o54) + chr(0b1100101) + chr(99) + '\x6f' + '\x64' + chr(3849 - 3748))(chr(0b1011001 + 0o34) + chr(0b1011100 + 0o30) + chr(0b100111 + 0o77) + chr(45) + chr(1063 - 1007))): return frfLpdEFyPp3 = hXMPsSrOQzbh.WgtSJX0sIYpL[roI3spqORKae(ES5oEprVxulp(b'\x9f\xf0\xbf\x06\xa0'), chr(0b110110 + 0o56) + '\145' + chr(0b101011 + 0o70) + chr(0b1101111) + '\x64' + chr(7936 - 7835))(chr(0b1100110 + 0o17) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b100011 + 0o25))] if not (roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(4726 - 4626) + '\x65' + chr(0b1100011) + '\157' + chr(3927 - 3827) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b100110 + 0o22)) in roI3spqORKae(frfLpdEFyPp3.df, roI3spqORKae(ES5oEprVxulp(b'\xb9\xaa\xf2\t\x80\xee\xa9^\xc8\xd2\xc3\x15'), '\x64' + chr(101) + chr(0b1100011) + '\157' + chr(0b1100011 + 0o1) + chr(101))('\165' + chr(0b100100 + 0o120) + chr(4017 - 3915) + '\x2d' + chr(0b1010 + 0o56))) and roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(0b1011011 + 0o11) + chr(0b1100101) + chr(99) + '\157' + chr(4650 - 4550) + '\x65')('\165' + '\x74' + '\x66' + chr(45) + chr(56)) in roI3spqORKae(frfLpdEFyPp3.df, roI3spqORKae(ES5oEprVxulp(b'\xb9\xaa\xf2\t\x80\xee\xa9^\xc8\xd2\xc3\x15'), chr(843 - 743) + chr(0b1100101) + chr(99) + '\x6f' + chr(0b101000 + 0o74) + chr(0b1011111 + 0o6))(chr(0b1110101) + chr(4440 - 4324) + chr(102) + '\055' + chr(0b1001 + 0o57)))): return frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), '\144' + chr(101) + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(710 - 609))('\x75' + chr(9222 - 9106) + chr(0b1011010 + 0o14) + chr(1757 - 1712) + chr(56))] = frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(601 - 501) + chr(0b10001 + 0o124) + chr(0b1100011) + chr(0b1101111) + chr(0b10100 + 0o120) + '\145')(chr(0b1110101) + chr(116) + chr(0b111100 + 0o52) + chr(0b101101) + chr(832 - 776))].fillna(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + '\x63' + '\x6f' + chr(100) + '\x65')(chr(0b1110101) + chr(0b1011101 + 0o27) + chr(102) + '\055' + chr(0b101000 + 0o20))).xqAChpcBkssb(N9zlRy29S1SS) frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1000010 + 0o55) + '\x64' + chr(9037 - 8936))(chr(621 - 504) + '\164' + '\146' + '\x2d' + chr(56))] = frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(0b1100100) + chr(0b111111 + 0o46) + chr(0b1100011) + chr(0b100100 + 0o113) + chr(1416 - 1316) + chr(0b1011111 + 0o6))(chr(0b11000 + 0o135) + chr(1049 - 933) + chr(0b1100110) + '\x2d' + chr(845 - 789))].fillna(roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\145' + chr(0b1000110 + 0o35) + chr(12306 - 12195) + chr(9264 - 9164) + chr(5998 - 5897))('\165' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b1000 + 0o60))).xqAChpcBkssb(N9zlRy29S1SS) frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), '\144' + chr(4884 - 4783) + '\x63' + chr(0b1001101 + 0o42) + chr(0b11111 + 0o105) + chr(0b1100101))(chr(117) + '\x74' + chr(102) + chr(0b1000 + 0o45) + '\x38')] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(9466 - 9366) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1001110 + 0o27))('\x75' + chr(0b110001 + 0o103) + chr(102) + chr(45) + chr(0b11010 + 0o36))].str.ftfygxgFas5X(), frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(100) + chr(0b1100101) + '\x63' + '\157' + chr(7415 - 7315) + '\x65')('\x75' + chr(3445 - 3329) + chr(379 - 277) + '\x2d' + chr(1473 - 1417))], nDF4gVNx0u9Q.nan) frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(7508 - 7408) + chr(101) + '\x63' + '\157' + chr(0b101100 + 0o70) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1000 + 0o136) + chr(0b100001 + 0o14) + chr(0b111000))] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), '\144' + chr(0b1100101) + chr(0b111111 + 0o44) + '\157' + chr(0b1000010 + 0o42) + chr(0b1100101))(chr(2997 - 2880) + chr(0b1101001 + 0o13) + chr(102) + chr(45) + '\070')].str.ftfygxgFas5X(), frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(0b10010 + 0o122) + chr(7904 - 7803) + chr(99) + chr(0b110001 + 0o76) + '\144' + '\x65')(chr(0b1110101) + '\164' + '\x66' + chr(306 - 261) + chr(0b101000 + 0o20))], nDF4gVNx0u9Q.nan) try: frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(0b1011101 + 0o7) + chr(101) + '\143' + chr(0b1001110 + 0o41) + chr(100) + chr(0b10100 + 0o121))(chr(0b101110 + 0o107) + '\164' + '\x66' + chr(0b1100 + 0o41) + chr(716 - 660))] = frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(0b1100100) + chr(7490 - 7389) + chr(0b1100011) + '\157' + chr(6984 - 6884) + chr(0b1100101))(chr(0b101010 + 0o113) + chr(0b1011011 + 0o31) + '\146' + chr(1065 - 1020) + '\070')].xqAChpcBkssb(jLW6pRf2DSRk) except WbNHlDKpyPtQ as dclkBu6Bdnnh: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc1\xce\xe6C\x9a\xea\x90\x19\x93\xef\xca\x17wWM\xb4HG\xb0<\xd7\x02%\xc1rJ\xb0i1|[\xa4\xd4F\xa9x\x82\r\x14@\x9f\xb7\xa7\x02\xa7'), chr(0b1100100) + chr(3178 - 3077) + chr(99) + chr(111) + chr(5431 - 5331) + '\145')(chr(10578 - 10461) + '\164' + chr(6818 - 6716) + chr(1062 - 1017) + '\x38')) return try: frfLpdEFyPp3.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(8534 - 8434) + chr(369 - 268) + chr(99) + chr(0b1011100 + 0o23) + chr(100) + '\x65')('\x75' + '\x74' + chr(8028 - 7926) + '\055' + chr(1211 - 1155))] = frfLpdEFyPp3.df[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), chr(0b1100100) + chr(4219 - 4118) + '\x63' + '\157' + '\x64' + chr(5174 - 5073))(chr(0b1110101) + chr(0b101011 + 0o111) + chr(102) + '\x2d' + chr(0b100111 + 0o21))].xqAChpcBkssb(jLW6pRf2DSRk) except WbNHlDKpyPtQ as dclkBu6Bdnnh: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xc1\xce\xe6C\x9a\xea\x90\x19\x93\xef\xca\x17wWM\xb4HG\xb0<\xd7\x02%\xc1rJ\xb0i1|[\xa4\xd4F\xa9x\x82\r\x14@\x9f\xb7\xa7\x0c\xbd'), chr(100) + '\x65' + chr(3907 - 3808) + chr(0b1101111) + chr(0b1001011 + 0o31) + chr(0b1100101))(chr(0b111101 + 0o70) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(402 - 346))) return aXlCATXDwMqu = frfLpdEFyPp3.df[[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(2197 - 2086) + '\144' + chr(1136 - 1035))(chr(117) + '\164' + chr(0b1100110) + chr(311 - 266) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05'), chr(0b1100100) + '\145' + chr(0b1100011) + '\157' + chr(0b101101 + 0o67) + '\145')(chr(0b1100000 + 0o25) + '\x74' + chr(2326 - 2224) + '\x2d' + chr(226 - 170))]].groupby(roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05'), chr(8762 - 8662) + '\x65' + chr(0b1100011) + '\x6f' + chr(0b1001 + 0o133) + chr(0b1010101 + 0o20))('\165' + chr(0b1101110 + 0o6) + '\x66' + chr(45) + chr(56))) _TXL35m5KQDE = frfLpdEFyPp3.df[[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(4782 - 4671) + '\144' + chr(0b110111 + 0o56))('\165' + chr(0b1110100) + chr(0b1000111 + 0o37) + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05'), chr(0b1100010 + 0o2) + '\145' + chr(325 - 226) + '\157' + '\144' + chr(101))(chr(4340 - 4223) + chr(0b1010101 + 0o37) + chr(0b1100110) + '\x2d' + chr(56))]].groupby(roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05'), chr(3310 - 3210) + chr(0b100000 + 0o105) + chr(6973 - 6874) + '\157' + '\144' + chr(0b1100101))(chr(0b1000101 + 0o60) + '\x74' + '\146' + chr(0b101101) + chr(0b110000 + 0o10))) iPJwKjNgKUEb = aXlCATXDwMqu.XURpmPuEWCNF() uDL6eVbJhSp4 = aXlCATXDwMqu.KV9ckIhroIia() WaillrPY7F1m = _TXL35m5KQDE.XURpmPuEWCNF() vLukxP0NQKLv = _TXL35m5KQDE.KV9ckIhroIia() c7RydVE5Qw9u = {} if roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05\x8f'), chr(0b10110 + 0o116) + '\145' + '\x63' + chr(7774 - 7663) + '\144' + chr(0b110010 + 0o63))(chr(117) + chr(0b110101 + 0o77) + chr(1130 - 1028) + chr(1119 - 1074) + '\070') not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xbb\xfe\xbf0\x99\xdf\xd0\x18\xb5\xc6\xdf)'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(6794 - 6683) + chr(100) + chr(0b110101 + 0o60))('\x75' + chr(0b1110100) + chr(102) + chr(45) + chr(0b11 + 0o65))): return Bba6XMebt20w = hXMPsSrOQzbh.WgtSJX0sIYpL[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05\x8f'), chr(0b110111 + 0o55) + chr(0b1100101) + '\143' + chr(0b1011100 + 0o23) + chr(0b100111 + 0o75) + chr(101))(chr(0b1110010 + 0o3) + chr(0b1110100) + '\x66' + chr(0b1 + 0o54) + chr(0b111000))] for UQ8hRiBoHcn5 in roI3spqORKae(WaillrPY7F1m, roI3spqORKae(ES5oEprVxulp(b"\xb6\xe9\xad-\xe6\xf3\xb3'\x9d\xc5\xd5\x00"), chr(0b1100100) + '\x65' + '\x63' + chr(4075 - 3964) + chr(100) + chr(0b1011111 + 0o6))(chr(117) + '\x74' + '\x66' + chr(45) + chr(1795 - 1739))): mpRHCKgMnohP = {} mpRHCKgMnohP[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf<\xa0'), chr(0b1100100) + '\145' + chr(0b11 + 0o140) + '\x6f' + chr(7899 - 7799) + '\145')(chr(0b1000100 + 0o61) + chr(0b11101 + 0o127) + '\x66' + chr(0b101101) + chr(0b111000))] = WaillrPY7F1m.UQ8hRiBoHcn5[UQ8hRiBoHcn5][roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(0b1100100) + '\145' + '\143' + '\x6f' + '\x64' + chr(101))(chr(6054 - 5937) + chr(116) + '\146' + '\x2d' + '\070')] mpRHCKgMnohP[roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf<\xbd'), chr(100) + '\145' + '\x63' + chr(3076 - 2965) + chr(100) + chr(101))('\165' + chr(0b1100010 + 0o22) + chr(0b1010001 + 0o25) + chr(0b101101) + '\x38')] = vLukxP0NQKLv.UQ8hRiBoHcn5[UQ8hRiBoHcn5][roI3spqORKae(ES5oEprVxulp(b'\x80\xf8\xbf'), chr(2260 - 2160) + chr(101) + chr(0b1101 + 0o126) + '\157' + '\144' + '\x65')(chr(0b1001000 + 0o55) + chr(0b1110100) + chr(102) + chr(0b11 + 0o52) + chr(0b111000))] mpRHCKgMnohP[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5<\xb6'), '\x64' + chr(0b1010100 + 0o21) + '\143' + chr(6282 - 6171) + chr(0b1011010 + 0o12) + chr(0b1100101))(chr(0b1110101) + chr(3445 - 3329) + chr(0b1000000 + 0o46) + chr(1211 - 1166) + chr(56))] = uDL6eVbJhSp4.UQ8hRiBoHcn5[UQ8hRiBoHcn5][roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), '\x64' + '\145' + '\x63' + chr(0b1010110 + 0o31) + chr(0b1011010 + 0o12) + '\145')(chr(0b1110101) + chr(2921 - 2805) + chr(10022 - 9920) + '\x2d' + chr(0b111000))] mpRHCKgMnohP[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5<\xa4'), '\x64' + chr(0b11001 + 0o114) + chr(99) + '\x6f' + chr(4991 - 4891) + chr(0b1001011 + 0o32))(chr(117) + '\164' + chr(102) + '\x2d' + '\x38')] = iPJwKjNgKUEb.UQ8hRiBoHcn5[UQ8hRiBoHcn5][roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa5'), '\144' + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(101))('\165' + '\164' + chr(102) + '\x2d' + chr(0b111000))] c7RydVE5Qw9u[UQ8hRiBoHcn5] = mpRHCKgMnohP Bba6XMebt20w = hXMPsSrOQzbh.WgtSJX0sIYpL[roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05\x8f'), chr(100) + chr(5982 - 5881) + chr(0b1100011) + '\x6f' + chr(2205 - 2105) + chr(0b1100101))('\x75' + chr(9809 - 9693) + chr(0b100110 + 0o100) + '\055' + chr(0b111000))] for HnTwM7a6IpYj in c7RydVE5Qw9u: if HnTwM7a6IpYj in roI3spqORKae(Bba6XMebt20w.df, roI3spqORKae(ES5oEprVxulp(b"\xb6\xe9\xad-\xe6\xf3\xb3'\x9d\xc5\xd5\x00"), chr(1532 - 1432) + chr(8440 - 8339) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(101))(chr(8044 - 7927) + chr(2642 - 2526) + '\x66' + chr(0b10111 + 0o26) + chr(56))): mpRHCKgMnohP = c7RydVE5Qw9u[HnTwM7a6IpYj] for nKUAs3HG0RP8 in c7RydVE5Qw9u[HnTwM7a6IpYj]: FudyUkwEHEyU = mpRHCKgMnohP[nKUAs3HG0RP8] if LSZVShFMqy75(FudyUkwEHEyU, zero_as_null=nzTpIcepk0o8('\060' + chr(2927 - 2816) + '\060', ord("\x08"))): continue if nKUAs3HG0RP8 not in roI3spqORKae(Bba6XMebt20w.df, roI3spqORKae(ES5oEprVxulp(b'\xb9\xaa\xf2\t\x80\xee\xa9^\xc8\xd2\xc3\x15'), chr(0b1100100) + chr(0b111100 + 0o51) + chr(0b110010 + 0o61) + '\157' + '\x64' + '\145')(chr(117) + chr(0b1110100) + chr(102) + chr(0b10011 + 0o32) + chr(0b111000))): Bba6XMebt20w.jpOn8DNZxbbx[nKUAs3HG0RP8] = None TgQFyfdWYDcs = Bba6XMebt20w.df.UQ8hRiBoHcn5[HnTwM7a6IpYj, nKUAs3HG0RP8] if not suIjIS24Zkqw(TgQFyfdWYDcs, N9zlRy29S1SS): try: TgQFyfdWYDcs = TgQFyfdWYDcs.values.xqAChpcBkssb(N9zlRy29S1SS)[nzTpIcepk0o8('\060' + chr(1617 - 1506) + chr(0b110000), 8)] except (jZIjKu8IFANs, ah0DLMBSEU5j, bIsJhlpYrrU2) as wgf0sgcu_xPL: pass if LSZVShFMqy75(TgQFyfdWYDcs, zero_as_null=nzTpIcepk0o8(chr(936 - 888) + chr(0b111001 + 0o66) + '\060', 8)): pass elif suIjIS24Zkqw(TgQFyfdWYDcs, N9zlRy29S1SS): try: TgQFyfdWYDcs = jLW6pRf2DSRk(TgQFyfdWYDcs) except WbNHlDKpyPtQ: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc1\xce\xe6C\x9a\xe9\xc0\x10\x81\xb3\x8f\x04nZ\x02\xbfFA\xb4>\xc2\x1a,\xdcrC\xa0j6kH\xa3\x91K\xe7#\x8cD\x16D\x80\xec\xaeC\xfb\xfc\x9dB\xdc\xe8\xc6\tw\x0e\x02\xa4BG\xaa/\xca\x02%\x85"V\xa0r:v\\\xa4\xd4Y\xa64\x84\x01@\r\x97\xe4\xe2'), chr(0b111100 + 0o50) + chr(3080 - 2979) + '\143' + '\x6f' + chr(100) + '\145')(chr(0b1110101) + chr(116) + chr(0b1100000 + 0o6) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9d\xaa\xf8(\x94\xb4\x86\x04\xad\xc0\xec/'), '\144' + chr(101) + '\x63' + '\157' + chr(839 - 739) + '\145')(chr(117) + '\164' + chr(0b101000 + 0o76) + '\055' + chr(0b101100 + 0o14)))(HnTwM7a6IpYj, nKUAs3HG0RP8, FudyUkwEHEyU, TgQFyfdWYDcs)) TgQFyfdWYDcs = None elif not roI3spqORKae(aQg01EfWg1cd, roI3spqORKae(ES5oEprVxulp(b'\xbf\xcb\x9c \x8c\xc8\x86>\xcd\xf2\xe3-'), '\x64' + '\145' + chr(99) + chr(3065 - 2954) + chr(0b1100100) + chr(0b1100100 + 0o1))(chr(0b1100100 + 0o21) + chr(4037 - 3921) + '\x66' + '\055' + chr(0b111000)))(FudyUkwEHEyU, TgQFyfdWYDcs): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc1\xce\xe6C\x9a\xe9\xc0\x10\x81\xb3\x8f\x04nZ\x02\xbfFA\xb4>\xc2\x1a,\xdcrC\xa0j6kH\xa3\x91K\xe7#\x8cD\x16D\x80\xec\xaeC\xfb\xfc\x9dB\xdc\xe8\xc6\tw\x0e\x02\xa4BG\xaa/\xca\x02%\x85"V\xa0r:v\\\xa4\xd4Y\xa64\x84\x01@\r\x97\xe4\xe2'), chr(0b1100100) + chr(0b100000 + 0o105) + chr(6501 - 6402) + chr(111) + chr(100) + '\x65')(chr(8119 - 8002) + chr(116) + chr(0b111100 + 0o52) + '\055' + chr(3043 - 2987)), roI3spqORKae(ES5oEprVxulp(b'\x9d\xaa\xf8(\x94\xb4\x86\x04\xad\xc0\xec/'), chr(2861 - 2761) + chr(6830 - 6729) + '\143' + chr(111) + chr(7554 - 7454) + chr(0b1100101))('\x75' + chr(0b1100001 + 0o23) + '\x66' + '\055' + '\x38'))(HnTwM7a6IpYj, nKUAs3HG0RP8, FudyUkwEHEyU, TgQFyfdWYDcs)) FudyUkwEHEyU = sOS7b2Ofrbne(jLW6pRf2DSRk(FudyUkwEHEyU), nzTpIcepk0o8(chr(1622 - 1574) + '\157' + '\x35', 61309 - 61301)) Bba6XMebt20w.df.UQ8hRiBoHcn5[HnTwM7a6IpYj, nKUAs3HG0RP8] = FudyUkwEHEyU roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x9b\xeb\xa2\x17\xb6\xd8\x94\n\x9e\xf3\xca:oA2\xb4NY\xb8'), chr(0b1000110 + 0o36) + '\x65' + chr(0b1100011) + chr(0b1000 + 0o147) + chr(0b1100100) + chr(2939 - 2838))('\x75' + '\x74' + chr(0b1100110) + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\x80\xf6\xa8\x02\xa7\xee\x8f\x05\x8f'), '\144' + chr(0b1100011 + 0o2) + chr(0b1100011) + chr(0b1010 + 0o145) + chr(3334 - 3234) + chr(0b1100101))(chr(0b1110101) + '\164' + '\x66' + chr(0b101101) + chr(0b111000))) return c7RydVE5Qw9u
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_lithology_cols
def propagate_lithology_cols(self): """ Propagate any data from lithologies, geologic_types, or geologic_classes from the sites table to the samples and specimens table. In the samples/specimens tables, null or "Not Specified" values will be overwritten based on the data from their parent site. """ cols = ['lithologies', 'geologic_types', 'geologic_classes'] #for table in ['specimens', 'samples']: # convert "Not Specified" to blank #self.tables[table].df.replace("^[Nn]ot [Ss]pecified", '', # regex=True, inplace=True) self.propagate_cols(cols, 'samples', 'sites') cols = ['lithologies', 'geologic_types', 'geologic_classes'] self.propagate_cols(cols, 'specimens', 'samples') # if sites table is missing any values, # go ahead and propagate values UP as well if 'sites' not in self.tables: return for col in cols: if col not in self.tables['sites'].df.columns: self.tables['sites'].df[col] = None if not all(self.tables['sites'].df[cols].values.ravel()): print('-I- Propagating values up from samples to sites...') self.propagate_cols_up(cols, 'sites', 'samples')
python
def propagate_lithology_cols(self): """ Propagate any data from lithologies, geologic_types, or geologic_classes from the sites table to the samples and specimens table. In the samples/specimens tables, null or "Not Specified" values will be overwritten based on the data from their parent site. """ cols = ['lithologies', 'geologic_types', 'geologic_classes'] #for table in ['specimens', 'samples']: # convert "Not Specified" to blank #self.tables[table].df.replace("^[Nn]ot [Ss]pecified", '', # regex=True, inplace=True) self.propagate_cols(cols, 'samples', 'sites') cols = ['lithologies', 'geologic_types', 'geologic_classes'] self.propagate_cols(cols, 'specimens', 'samples') # if sites table is missing any values, # go ahead and propagate values UP as well if 'sites' not in self.tables: return for col in cols: if col not in self.tables['sites'].df.columns: self.tables['sites'].df[col] = None if not all(self.tables['sites'].df[cols].values.ravel()): print('-I- Propagating values up from samples to sites...') self.propagate_cols_up(cols, 'sites', 'samples')
[ "def", "propagate_lithology_cols", "(", "self", ")", ":", "cols", "=", "[", "'lithologies'", ",", "'geologic_types'", ",", "'geologic_classes'", "]", "#for table in ['specimens', 'samples']:", "# convert \"Not Specified\" to blank", "#self.tables[table].df.replace(\"^[Nn]ot [Ss]pecified\", '',", "# regex=True, inplace=True)", "self", ".", "propagate_cols", "(", "cols", ",", "'samples'", ",", "'sites'", ")", "cols", "=", "[", "'lithologies'", ",", "'geologic_types'", ",", "'geologic_classes'", "]", "self", ".", "propagate_cols", "(", "cols", ",", "'specimens'", ",", "'samples'", ")", "# if sites table is missing any values,", "# go ahead and propagate values UP as well", "if", "'sites'", "not", "in", "self", ".", "tables", ":", "return", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "self", ".", "tables", "[", "'sites'", "]", ".", "df", ".", "columns", ":", "self", ".", "tables", "[", "'sites'", "]", ".", "df", "[", "col", "]", "=", "None", "if", "not", "all", "(", "self", ".", "tables", "[", "'sites'", "]", ".", "df", "[", "cols", "]", ".", "values", ".", "ravel", "(", ")", ")", ":", "print", "(", "'-I- Propagating values up from samples to sites...'", ")", "self", ".", "propagate_cols_up", "(", "cols", ",", "'sites'", ",", "'samples'", ")" ]
Propagate any data from lithologies, geologic_types, or geologic_classes from the sites table to the samples and specimens table. In the samples/specimens tables, null or "Not Specified" values will be overwritten based on the data from their parent site.
[ "Propagate", "any", "data", "from", "lithologies", "geologic_types", "or", "geologic_classes", "from", "the", "sites", "table", "to", "the", "samples", "and", "specimens", "table", ".", "In", "the", "samples", "/", "specimens", "tables", "null", "or", "Not", "Specified", "values", "will", "be", "overwritten", "based", "on", "the", "data", "from", "their", "parent", "site", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L422-L446
train
Propagate any data from lithologies geologic_types or geologic_classes to the samples and specimens tables.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + '\x33' + chr(0b1101 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(4534 - 4423) + chr(0b110011) + chr(0b1111 + 0o45) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(0b11101 + 0o122) + '\x32' + chr(0b1111 + 0o43), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1 + 0o60) + chr(1772 - 1719) + chr(49), 0o10), nzTpIcepk0o8(chr(2017 - 1969) + chr(7139 - 7028) + chr(2565 - 2514) + '\064' + '\066', ord("\x08")), nzTpIcepk0o8(chr(1658 - 1610) + chr(0b1101101 + 0o2) + chr(0b110010) + chr(0b110000) + chr(0b100111 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b110100 + 0o73) + chr(0b110001 + 0o2) + '\063' + '\063', 0b1000), nzTpIcepk0o8(chr(1549 - 1501) + '\x6f' + chr(0b110011) + chr(1864 - 1809) + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b1110 + 0o42) + chr(0b1000010 + 0o55) + '\x33' + chr(927 - 872) + chr(1624 - 1570), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10202 - 10091) + chr(0b111 + 0o54) + '\x34' + '\x32', 0o10), nzTpIcepk0o8(chr(1996 - 1948) + chr(0b11110 + 0o121) + chr(0b101010 + 0o10) + chr(0b110100) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000011 + 0o54) + chr(1435 - 1386) + chr(0b10000 + 0o40) + chr(1702 - 1650), ord("\x08")), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(0b11001 + 0o31) + '\x31' + chr(2203 - 2153), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(549 - 494) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(50) + '\067' + chr(0b11001 + 0o32), 37478 - 37470), nzTpIcepk0o8('\060' + chr(9090 - 8979) + chr(0b101010 + 0o6), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110010), 28411 - 28403), nzTpIcepk0o8(chr(1459 - 1411) + '\x6f' + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(51) + '\x37' + chr(48), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110001) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(5045 - 4934) + '\x32' + chr(0b10101 + 0o36) + chr(0b110000), 27880 - 27872), nzTpIcepk0o8(chr(48) + chr(111) + chr(1101 - 1049) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(50) + chr(2046 - 1992), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1417 - 1306) + '\x32' + '\x36' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + chr(53) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110000) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x35' + '\065', 62097 - 62089), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(359 - 309) + chr(2087 - 2033) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b1111 + 0o41) + chr(0b100011 + 0o15), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101001 + 0o14), 8), nzTpIcepk0o8(chr(1347 - 1299) + chr(0b1100 + 0o143) + chr(50) + chr(0b101111 + 0o4) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1101 + 0o43) + '\x6f' + '\x32' + chr(2693 - 2640) + '\062', 0o10), nzTpIcepk0o8(chr(100 - 52) + '\157' + chr(2474 - 2423) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011 + 0o144) + '\061' + chr(55) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(54) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(53) + chr(0b110100), 11921 - 11913), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(220 - 170) + chr(2748 - 2694) + chr(0b101001 + 0o10), 38242 - 38234), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\x31' + '\064', 8), nzTpIcepk0o8(chr(48) + chr(5996 - 5885) + chr(0b101011 + 0o7) + '\x33' + chr(0b11110 + 0o30), 60490 - 60482)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1713 - 1665) + chr(0b1101111) + chr(1025 - 972) + chr(0b10 + 0o56), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf3'), '\x64' + chr(1153 - 1052) + '\x63' + '\x6f' + chr(2480 - 2380) + '\145')('\x75' + '\x74' + chr(0b1000000 + 0o46) + chr(0b110 + 0o47) + chr(694 - 638)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def gbPU663v91Ks(hXMPsSrOQzbh): Y2QfnnvVOo8E = [roI3spqORKae(ES5oEprVxulp(b'\xb1\x89f\x01\x89\xea\xb4\x9d\x97\x87\xd4'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + '\x74' + chr(0b1100110) + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xba\x85}\x05\x89\xe1\xb2\x99\xa1\x96\xde4\xef\x08'), chr(100) + chr(0b1101 + 0o130) + chr(0b1000 + 0o133) + chr(111) + chr(0b1100100) + chr(7459 - 7358))(chr(13645 - 13528) + chr(0b1110100) + '\x66' + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xba\x85}\x05\x89\xe1\xb2\x99\xa1\x81\xcb%\xf9\x08\xdes'), '\x64' + chr(101) + chr(8727 - 8628) + chr(0b1101111) + chr(0b111010 + 0o52) + chr(101))('\x75' + '\x74' + chr(0b110100 + 0o62) + chr(0b100100 + 0o11) + '\x38')] roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xad\x92}\x19\x87\xe1\xba\x8e\x9b\xbd\xc4+\xe6\x08'), chr(4660 - 4560) + '\145' + chr(99) + chr(11634 - 11523) + chr(100) + chr(101))(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(Y2QfnnvVOo8E, roI3spqORKae(ES5oEprVxulp(b'\xae\x81\x7f\x19\x8a\xe3\xa8'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1000101 + 0o52) + chr(0b101101 + 0o67) + chr(0b1011101 + 0o10))(chr(0b1110101) + chr(116) + '\146' + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), chr(9522 - 9422) + chr(0b1100101) + chr(0b11100 + 0o107) + '\157' + chr(4280 - 4180) + '\x65')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(45) + chr(0b100 + 0o64))) Y2QfnnvVOo8E = [roI3spqORKae(ES5oEprVxulp(b'\xb1\x89f\x01\x89\xea\xb4\x9d\x97\x87\xd4'), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(0b1010011 + 0o22))('\165' + chr(8818 - 8702) + chr(0b10000 + 0o126) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xba\x85}\x05\x89\xe1\xb2\x99\xa1\x96\xde4\xef\x08'), chr(0b1010001 + 0o23) + '\x65' + chr(0b110010 + 0o61) + '\x6f' + chr(0b1100100) + '\x65')('\165' + chr(0b1011110 + 0o26) + chr(102) + chr(0b10110 + 0o27) + chr(0b100 + 0o64)), roI3spqORKae(ES5oEprVxulp(b'\xba\x85}\x05\x89\xe1\xb2\x99\xa1\x81\xcb%\xf9\x08\xdes'), chr(0b1100100) + '\145' + chr(0b101011 + 0o70) + '\x6f' + '\x64' + chr(0b10 + 0o143))('\x75' + chr(0b1101111 + 0o5) + '\x66' + chr(0b100001 + 0o14) + chr(56))] roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xad\x92}\x19\x87\xe1\xba\x8e\x9b\xbd\xc4+\xe6\x08'), chr(0b1010010 + 0o22) + chr(101) + chr(99) + chr(10089 - 9978) + '\x64' + chr(101))('\165' + chr(0b100111 + 0o115) + chr(0b100 + 0o142) + chr(0b1101 + 0o40) + '\x38'))(Y2QfnnvVOo8E, roI3spqORKae(ES5oEprVxulp(b'\xae\x90w\n\x8f\xeb\xbe\x94\x8d'), chr(100) + chr(7111 - 7010) + chr(0b100101 + 0o76) + chr(0b1101111) + chr(1990 - 1890) + chr(0b1100101))('\165' + '\164' + chr(6013 - 5911) + '\x2d' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xae\x81\x7f\x19\x8a\xe3\xa8'), chr(0b1100100) + chr(2706 - 2605) + chr(0b111000 + 0o53) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(0b101001 + 0o114) + chr(116) + chr(0b11111 + 0o107) + '\x2d' + chr(56))) if roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), chr(100) + chr(0b1100101) + chr(99) + chr(0b1101111) + '\144' + chr(0b110001 + 0o64))(chr(3520 - 3403) + chr(116) + chr(0b1100110) + '\055' + chr(1815 - 1759)) not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8a\x87f:\xac\xde\xeb\x89\xb7\xbb\xd7\x08'), '\x64' + '\145' + '\143' + chr(0b1101111) + chr(0b1010010 + 0o22) + '\x65')(chr(0b1110101) + '\164' + chr(5708 - 5606) + chr(45) + chr(0b111000))): return for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), chr(0b1100100) + chr(6296 - 6195) + chr(0b1010111 + 0o14) + chr(10147 - 10036) + chr(100) + chr(0b111110 + 0o47))('\165' + '\x74' + chr(102) + chr(847 - 802) + '\x38')].df, roI3spqORKae(ES5oEprVxulp(b'\x88\xd3+\x03\xb5\xef\x92\xcf\xca\xaf\xcb4'), chr(100) + chr(9425 - 9324) + chr(0b1100011) + chr(8512 - 8401) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + '\x66' + '\x2d' + '\070')): hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), chr(0b1010100 + 0o20) + chr(0b1100101) + chr(0b1001110 + 0o25) + '\157' + '\144' + chr(0b1100101))(chr(1569 - 1452) + chr(0b1110100) + chr(0b1100110) + chr(0b101011 + 0o2) + '\070')].jpOn8DNZxbbx[hRTUxJgvuslu] = None if not qX60lO1lgHA5(roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), '\144' + '\145' + '\143' + chr(0b1010110 + 0o31) + chr(0b10111 + 0o115) + chr(0b1100101))('\x75' + chr(11643 - 11527) + chr(102) + chr(1602 - 1557) + chr(0b100110 + 0o22))].df[Y2QfnnvVOo8E].values, roI3spqORKae(ES5oEprVxulp(b'\x8d\x87`[\xd0\xf0\x88\xac\x9a\xb6\x95}'), chr(0b1100100) + chr(0b11010 + 0o113) + '\143' + chr(0b1101111) + chr(0b1010111 + 0o15) + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000)))()): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xf0\xa9?I\xb6\xf4\xb4\x8a\x9f\x85\xc60\xe3\x15\xdc |c\x949\xfdVv\xc5X\xe4\xcb\xc1j-%\xe8\xcbw\x0f\x1e\t\xc2l\xea\xb2\xc0a\x00\x92\xe3\xa8\xd4\xd0\xcc'), chr(0b110111 + 0o55) + chr(101) + '\143' + chr(111) + chr(4247 - 4147) + '\145')('\x75' + '\164' + '\146' + chr(45) + chr(56))) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xad\x92}\x19\x87\xe1\xba\x8e\x9b\xbd\xc4+\xe6\x08\xe4uz'), chr(0b100011 + 0o101) + chr(101) + chr(0b10011 + 0o120) + '\157' + chr(0b1100100) + chr(843 - 742))('\x75' + chr(0b1110100) + chr(2518 - 2416) + chr(45) + chr(858 - 802)))(Y2QfnnvVOo8E, roI3spqORKae(ES5oEprVxulp(b'\xae\x89f\x0c\x95'), '\x64' + chr(0b1100101) + '\143' + chr(10418 - 10307) + chr(1460 - 1360) + chr(9094 - 8993))(chr(0b1110101) + chr(116) + chr(0b101101 + 0o71) + chr(45) + chr(0b11010 + 0o36)), roI3spqORKae(ES5oEprVxulp(b'\xae\x81\x7f\x19\x8a\xe3\xa8'), chr(100) + '\x65' + chr(0b101001 + 0o72) + chr(1816 - 1705) + '\x64' + '\145')(chr(0b10100 + 0o141) + '\164' + chr(0b1100110) + '\x2d' + '\x38'))
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.rename_item
def rename_item(self, table_name, item_old_name, item_new_name): """ Rename item (such as a site) everywhere that it occurs. This change often spans multiple tables. For example, a site name will occur in the sites table, the samples table, and possibly in the locations/ages tables. """ # define some helper methods: def put_together_if_list(item): """ String joining function that doesn't break with None/np.nan """ try: res = ":".join(item) return ":".join(item) except TypeError as ex: #print ex return item def replace_colon_delimited_value(df, col_name, old_value, new_value): """ Col must contain list """ count = 1 for index, row in df[df[col_name].notnull()].iterrows(): names_list = row[col_name] names_list = [name.strip() for name in names_list] try: ind = names_list.index(old_value) except ValueError as ex: count += 1 continue names_list[ind] = new_value df.loc[count, col_name] = names_list count += 1 # initialize some things item_type = table_name ###col_name = item_type[:-1] + "_name" col_name = item_type[:-1] col_name_plural = col_name + "s" table_df = self.tables[item_type].df if item_old_name == '': # just add a new item self.add_item(table_name, {col_name: item_new_name}, item_new_name) return # rename item in its own table table_df.rename(index={item_old_name: item_new_name}, inplace=True) # rename in any parent/child tables for table_name in self.tables: df = self.tables[table_name].df col_names = df.columns # change anywhere col_name (singular, i.e. site) is found if col_name in col_names: df[col_name].where(df[col_name] != item_old_name, item_new_name, inplace=True) # change anywhere col_name (plural, i.e. sites) is found if col_name_plural in col_names: df[col_name_plural + "_list"] = df[col_name_plural].str.split(":") replace_colon_delimited_value(df, col_name_plural + "_list", item_old_name, item_new_name) df[col_name_plural] = df[col_name_plural + "_list"].apply(put_together_if_list) df.drop(col_name_plural + "_list", axis=1, inplace=True) self.tables[table_name].df = df
python
def rename_item(self, table_name, item_old_name, item_new_name): """ Rename item (such as a site) everywhere that it occurs. This change often spans multiple tables. For example, a site name will occur in the sites table, the samples table, and possibly in the locations/ages tables. """ # define some helper methods: def put_together_if_list(item): """ String joining function that doesn't break with None/np.nan """ try: res = ":".join(item) return ":".join(item) except TypeError as ex: #print ex return item def replace_colon_delimited_value(df, col_name, old_value, new_value): """ Col must contain list """ count = 1 for index, row in df[df[col_name].notnull()].iterrows(): names_list = row[col_name] names_list = [name.strip() for name in names_list] try: ind = names_list.index(old_value) except ValueError as ex: count += 1 continue names_list[ind] = new_value df.loc[count, col_name] = names_list count += 1 # initialize some things item_type = table_name ###col_name = item_type[:-1] + "_name" col_name = item_type[:-1] col_name_plural = col_name + "s" table_df = self.tables[item_type].df if item_old_name == '': # just add a new item self.add_item(table_name, {col_name: item_new_name}, item_new_name) return # rename item in its own table table_df.rename(index={item_old_name: item_new_name}, inplace=True) # rename in any parent/child tables for table_name in self.tables: df = self.tables[table_name].df col_names = df.columns # change anywhere col_name (singular, i.e. site) is found if col_name in col_names: df[col_name].where(df[col_name] != item_old_name, item_new_name, inplace=True) # change anywhere col_name (plural, i.e. sites) is found if col_name_plural in col_names: df[col_name_plural + "_list"] = df[col_name_plural].str.split(":") replace_colon_delimited_value(df, col_name_plural + "_list", item_old_name, item_new_name) df[col_name_plural] = df[col_name_plural + "_list"].apply(put_together_if_list) df.drop(col_name_plural + "_list", axis=1, inplace=True) self.tables[table_name].df = df
[ "def", "rename_item", "(", "self", ",", "table_name", ",", "item_old_name", ",", "item_new_name", ")", ":", "# define some helper methods:", "def", "put_together_if_list", "(", "item", ")", ":", "\"\"\"\n String joining function\n that doesn't break with None/np.nan\n \"\"\"", "try", ":", "res", "=", "\":\"", ".", "join", "(", "item", ")", "return", "\":\"", ".", "join", "(", "item", ")", "except", "TypeError", "as", "ex", ":", "#print ex", "return", "item", "def", "replace_colon_delimited_value", "(", "df", ",", "col_name", ",", "old_value", ",", "new_value", ")", ":", "\"\"\"\n Col must contain list\n \"\"\"", "count", "=", "1", "for", "index", ",", "row", "in", "df", "[", "df", "[", "col_name", "]", ".", "notnull", "(", ")", "]", ".", "iterrows", "(", ")", ":", "names_list", "=", "row", "[", "col_name", "]", "names_list", "=", "[", "name", ".", "strip", "(", ")", "for", "name", "in", "names_list", "]", "try", ":", "ind", "=", "names_list", ".", "index", "(", "old_value", ")", "except", "ValueError", "as", "ex", ":", "count", "+=", "1", "continue", "names_list", "[", "ind", "]", "=", "new_value", "df", ".", "loc", "[", "count", ",", "col_name", "]", "=", "names_list", "count", "+=", "1", "# initialize some things", "item_type", "=", "table_name", "###col_name = item_type[:-1] + \"_name\"", "col_name", "=", "item_type", "[", ":", "-", "1", "]", "col_name_plural", "=", "col_name", "+", "\"s\"", "table_df", "=", "self", ".", "tables", "[", "item_type", "]", ".", "df", "if", "item_old_name", "==", "''", ":", "# just add a new item", "self", ".", "add_item", "(", "table_name", ",", "{", "col_name", ":", "item_new_name", "}", ",", "item_new_name", ")", "return", "# rename item in its own table", "table_df", ".", "rename", "(", "index", "=", "{", "item_old_name", ":", "item_new_name", "}", ",", "inplace", "=", "True", ")", "# rename in any parent/child tables", "for", "table_name", "in", "self", ".", "tables", ":", "df", "=", "self", ".", "tables", "[", "table_name", "]", ".", "df", "col_names", "=", "df", ".", "columns", "# change anywhere col_name (singular, i.e. site) is found", "if", "col_name", "in", "col_names", ":", "df", "[", "col_name", "]", ".", "where", "(", "df", "[", "col_name", "]", "!=", "item_old_name", ",", "item_new_name", ",", "inplace", "=", "True", ")", "# change anywhere col_name (plural, i.e. sites) is found", "if", "col_name_plural", "in", "col_names", ":", "df", "[", "col_name_plural", "+", "\"_list\"", "]", "=", "df", "[", "col_name_plural", "]", ".", "str", ".", "split", "(", "\":\"", ")", "replace_colon_delimited_value", "(", "df", ",", "col_name_plural", "+", "\"_list\"", ",", "item_old_name", ",", "item_new_name", ")", "df", "[", "col_name_plural", "]", "=", "df", "[", "col_name_plural", "+", "\"_list\"", "]", ".", "apply", "(", "put_together_if_list", ")", "df", ".", "drop", "(", "col_name_plural", "+", "\"_list\"", ",", "axis", "=", "1", ",", "inplace", "=", "True", ")", "self", ".", "tables", "[", "table_name", "]", ".", "df", "=", "df" ]
Rename item (such as a site) everywhere that it occurs. This change often spans multiple tables. For example, a site name will occur in the sites table, the samples table, and possibly in the locations/ages tables.
[ "Rename", "item", "(", "such", "as", "a", "site", ")", "everywhere", "that", "it", "occurs", ".", "This", "change", "often", "spans", "multiple", "tables", ".", "For", "example", "a", "site", "name", "will", "occur", "in", "the", "sites", "table", "the", "samples", "table", "and", "possibly", "in", "the", "locations", "/", "ages", "tables", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L454-L519
train
Rename an item in a table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(218 - 170) + '\x6f' + chr(0b101111 + 0o2) + chr(51) + '\x31', 28524 - 28516), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b1100 + 0o45) + '\x36' + '\065', 31832 - 31824), nzTpIcepk0o8(chr(1683 - 1635) + chr(2243 - 2132) + chr(1227 - 1178) + chr(52) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\066' + chr(0b100100 + 0o23), 0b1000), nzTpIcepk0o8(chr(48) + chr(10711 - 10600) + chr(0b10001 + 0o42) + chr(0b110100) + '\062', ord("\x08")), nzTpIcepk0o8(chr(2028 - 1980) + '\157' + chr(2700 - 2645) + chr(0b101001 + 0o15), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11010 + 0o31) + chr(49) + chr(2117 - 2064), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + '\062' + chr(0b1111 + 0o42), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100110 + 0o111) + '\x33' + chr(52) + chr(2236 - 2181), 0b1000), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + chr(50) + chr(0b100010 + 0o16) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\x32' + chr(1293 - 1244) + chr(0b101001 + 0o16), 56745 - 56737), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(0b110010) + '\x37' + chr(1061 - 1013), 0o10), nzTpIcepk0o8('\060' + chr(7017 - 6906) + chr(0b110001) + chr(0b110101) + chr(0b10111 + 0o36), 20917 - 20909), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1011 + 0o46) + chr(0b1010 + 0o55) + chr(0b1111 + 0o45), 0o10), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(75 - 24) + chr(49) + chr(2201 - 2147), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110010) + chr(2206 - 2151) + chr(1082 - 1034), 8), nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(51) + chr(0b111 + 0o53) + '\x36', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(1521 - 1468) + chr(981 - 927), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110110) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1111 + 0o50) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + '\x32' + chr(0b10001 + 0o46), 26268 - 26260), nzTpIcepk0o8(chr(882 - 834) + '\x6f' + '\x31', 0b1000), nzTpIcepk0o8('\x30' + chr(8166 - 8055) + '\066' + '\061', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1011000 + 0o27) + '\x31' + chr(399 - 346) + '\060', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(1313 - 1264) + chr(0b110100) + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(0b111 + 0o150) + chr(1267 - 1218) + chr(54) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(48) + chr(9158 - 9047) + chr(0b10011 + 0o36) + chr(0b110111) + '\x33', 5887 - 5879), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(50) + '\x34', ord("\x08")), nzTpIcepk0o8(chr(379 - 331) + chr(111) + chr(0b110010) + chr(51) + chr(53), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(54) + chr(2355 - 2306), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\063' + '\x34', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(5003 - 4892) + chr(0b110001) + chr(2055 - 2005) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1145 - 1095) + chr(1195 - 1147) + '\x31', 0b1000), nzTpIcepk0o8('\060' + chr(12135 - 12024) + chr(0b110100) + chr(1388 - 1338), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10075 - 9964) + chr(1534 - 1485) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + chr(0b100010 + 0o17) + chr(1573 - 1518) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(55) + chr(1690 - 1642), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(1334 - 1285) + chr(0b110110) + '\x31', 8), nzTpIcepk0o8(chr(48) + chr(0b10110 + 0o131) + '\x32' + chr(0b11010 + 0o30) + chr(50), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(0b10110 + 0o37) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'w'), '\x64' + '\145' + chr(0b1000100 + 0o37) + chr(111) + '\x64' + '\x65')('\165' + chr(0b1110100) + chr(102) + chr(45) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Frw_xyRII_fQ(hXMPsSrOQzbh, kR9bIddrApHD, C7atUNkkN4jt, aWPTjfxsZ74K): def H90CeHxnXapq(IZ1I2J8X1CQz): try: _XdQFJpnzJor = roI3spqORKae(ES5oEprVxulp(b'c'), chr(0b1001010 + 0o32) + chr(3795 - 3694) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(8594 - 8493))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(3040 - 2984)).Y4yM9BcfTCNq(IZ1I2J8X1CQz) return roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'c'), chr(0b110101 + 0o57) + '\145' + chr(0b1100011) + chr(0b1101001 + 0o6) + chr(3745 - 3645) + chr(0b1001100 + 0o31))(chr(0b1110101) + chr(13313 - 13197) + chr(0b1100110) + chr(45) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x00A\x1a\xfa\xdb|\xae\xf7\xb3\xc5\xc1\xc9'), chr(100) + chr(8751 - 8650) + chr(8894 - 8795) + chr(0b1101111) + chr(0b1100100) + chr(0b1000010 + 0o43))(chr(117) + chr(116) + chr(0b1110 + 0o130) + '\055' + '\070'))(IZ1I2J8X1CQz) except jZIjKu8IFANs as dclkBu6Bdnnh: return IZ1I2J8X1CQz def ddxasMiEzWld(jpOn8DNZxbbx, VuRTNmVdcYm1, TgQFyfdWYDcs, FudyUkwEHEyU): sQSWKlURp7QK = nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1101111) + '\x31', 8) for (ZpfN5tSLaZze, o6UWUO21mH25) in roI3spqORKae(jpOn8DNZxbbx[jpOn8DNZxbbx[VuRTNmVdcYm1].notnull()], roI3spqORKae(ES5oEprVxulp(b'0\x01\x06\xc5\x90Q\xba\xe2'), chr(0b1100100) + chr(0b1001100 + 0o31) + chr(99) + '\157' + chr(3883 - 3783) + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + chr(1422 - 1377) + chr(0b111000)))(): lXRG9KvaGxmE = o6UWUO21mH25[VuRTNmVdcYm1] lXRG9KvaGxmE = [SLVB2BPA_mIe.kdIDrcwZTCs5() for SLVB2BPA_mIe in lXRG9KvaGxmE] try: w5vcgUzFN3bF = lXRG9KvaGxmE.ZpfN5tSLaZze(TgQFyfdWYDcs) except WbNHlDKpyPtQ as dclkBu6Bdnnh: sQSWKlURp7QK += nzTpIcepk0o8(chr(1578 - 1530) + chr(0b1001010 + 0o45) + chr(1504 - 1455), 8) continue lXRG9KvaGxmE[w5vcgUzFN3bF] = FudyUkwEHEyU jpOn8DNZxbbx.UQ8hRiBoHcn5[sQSWKlURp7QK, VuRTNmVdcYm1] = lXRG9KvaGxmE sQSWKlURp7QK += nzTpIcepk0o8('\060' + '\157' + chr(1136 - 1087), 8) ygSgEBItCk_X = kR9bIddrApHD VuRTNmVdcYm1 = ygSgEBItCk_X[:-nzTpIcepk0o8(chr(0b0 + 0o60) + chr(2231 - 2120) + chr(49), 8)] MLiuvj4FfZ4W = VuRTNmVdcYm1 + roI3spqORKae(ES5oEprVxulp(b'*'), '\144' + chr(0b110111 + 0o56) + chr(99) + '\x6f' + '\144' + chr(0b11100 + 0o111))(chr(0b1110101) + chr(0b101101 + 0o107) + chr(809 - 707) + chr(45) + chr(0b111000)) GgW4fF2w1H3R = hXMPsSrOQzbh.tables[ygSgEBItCk_X].jpOn8DNZxbbx if C7atUNkkN4jt == roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b110011 + 0o62) + chr(0b100000 + 0o103) + chr(0b1101111) + chr(0b10010 + 0o122) + '\145')(chr(0b1110101) + chr(0b110101 + 0o77) + chr(0b1100110) + chr(45) + chr(0b110001 + 0o7)): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'8\x11\x07\xe8\x8bJ\xa8\xfc'), chr(100) + chr(0b111101 + 0o50) + chr(99) + chr(0b1001100 + 0o43) + '\144' + chr(0b1100101))('\x75' + '\164' + chr(8977 - 8875) + chr(1110 - 1065) + chr(0b111000)))(kR9bIddrApHD, {VuRTNmVdcYm1: aWPTjfxsZ74K}, aWPTjfxsZ74K) return roI3spqORKae(GgW4fF2w1H3R, roI3spqORKae(ES5oEprVxulp(b'+\x10\r\xd6\x8f['), '\x64' + chr(101) + '\x63' + chr(4451 - 4340) + chr(0b1100100) + chr(8537 - 8436))('\x75' + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)))(index={C7atUNkkN4jt: aWPTjfxsZ74K}, inplace=nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(4508 - 4397) + chr(49), 8)) for kR9bIddrApHD in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0e\x12\x17\xe4\xa8f\xfd\xe2\xae\xdf\xff\xf4'), chr(0b1010011 + 0o21) + '\x65' + chr(0b11101 + 0o106) + chr(111) + '\144' + chr(3158 - 3057))('\x75' + '\164' + chr(0b11101 + 0o111) + '\055' + chr(1126 - 1070))): jpOn8DNZxbbx = hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx rlxfQfdSHlRp = jpOn8DNZxbbx.U39jSiI54Mlp if VuRTNmVdcYm1 in rlxfQfdSHlRp: roI3spqORKae(jpOn8DNZxbbx[VuRTNmVdcYm1], roI3spqORKae(ES5oEprVxulp(b'!"+\x83\xaf\t\x86\xa7\xb6\xe4\xeb\x8b'), chr(0b1100100) + chr(101) + '\x63' + chr(0b110011 + 0o74) + chr(0b101110 + 0o66) + '\145')(chr(117) + chr(0b1110100) + '\x66' + '\055' + '\x38'))(jpOn8DNZxbbx[VuRTNmVdcYm1] != C7atUNkkN4jt, aWPTjfxsZ74K, inplace=nzTpIcepk0o8('\x30' + '\157' + '\061', 8)) if MLiuvj4FfZ4W in rlxfQfdSHlRp: jpOn8DNZxbbx[MLiuvj4FfZ4W + roI3spqORKae(ES5oEprVxulp(b'\x06\x19\n\xc4\x96'), chr(9470 - 9370) + chr(0b1011100 + 0o11) + '\143' + chr(5059 - 4948) + chr(7318 - 7218) + chr(101))('\165' + '\164' + chr(0b1000010 + 0o44) + chr(0b101101) + chr(1823 - 1767))] = jpOn8DNZxbbx[MLiuvj4FfZ4W].str.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'c'), chr(4359 - 4259) + chr(101) + chr(99) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(936 - 891) + chr(56))) ddxasMiEzWld(jpOn8DNZxbbx, MLiuvj4FfZ4W + roI3spqORKae(ES5oEprVxulp(b'\x06\x19\n\xc4\x96'), chr(0b1001100 + 0o30) + chr(0b1100101) + '\x63' + '\157' + chr(0b1011110 + 0o6) + '\145')(chr(0b1011001 + 0o34) + chr(0b1110100) + chr(9620 - 9518) + '\055' + chr(0b100010 + 0o26)), C7atUNkkN4jt, aWPTjfxsZ74K) jpOn8DNZxbbx[MLiuvj4FfZ4W] = jpOn8DNZxbbx[MLiuvj4FfZ4W + roI3spqORKae(ES5oEprVxulp(b'\x06\x19\n\xc4\x96'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(0b110 + 0o157) + chr(0b111 + 0o155) + chr(0b101001 + 0o75) + chr(45) + chr(0b111000 + 0o0))].apply(H90CeHxnXapq) roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'=\x07\x0c\xc7'), '\x64' + chr(6426 - 6325) + chr(0b10010 + 0o121) + chr(0b1101111) + chr(0b1100100) + chr(2093 - 1992))('\x75' + '\164' + '\x66' + chr(0b101000 + 0o5) + chr(0b111000)))(MLiuvj4FfZ4W + roI3spqORKae(ES5oEprVxulp(b'\x06\x19\n\xc4\x96'), chr(100) + '\145' + chr(0b101 + 0o136) + chr(328 - 217) + '\144' + chr(0b100 + 0o141))('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b111000)), axis=nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101100 + 0o3) + chr(49), 8), inplace=nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o32), 8)) hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx = jpOn8DNZxbbx
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.get_table_name
def get_table_name(self, ind): """ Return both the table_name (i.e., 'specimens') and the col_name (i.e., 'specimen') for a given index in self.ancestry. """ if ind >= len(self.ancestry): return "", "" if ind > -1: table_name = self.ancestry[ind] ###name = table_name[:-1] + "_name" name = table_name[:-1] return table_name, name return "", ""
python
def get_table_name(self, ind): """ Return both the table_name (i.e., 'specimens') and the col_name (i.e., 'specimen') for a given index in self.ancestry. """ if ind >= len(self.ancestry): return "", "" if ind > -1: table_name = self.ancestry[ind] ###name = table_name[:-1] + "_name" name = table_name[:-1] return table_name, name return "", ""
[ "def", "get_table_name", "(", "self", ",", "ind", ")", ":", "if", "ind", ">=", "len", "(", "self", ".", "ancestry", ")", ":", "return", "\"\"", ",", "\"\"", "if", "ind", ">", "-", "1", ":", "table_name", "=", "self", ".", "ancestry", "[", "ind", "]", "###name = table_name[:-1] + \"_name\"", "name", "=", "table_name", "[", ":", "-", "1", "]", "return", "table_name", ",", "name", "return", "\"\"", ",", "\"\"" ]
Return both the table_name (i.e., 'specimens') and the col_name (i.e., 'specimen') for a given index in self.ancestry.
[ "Return", "both", "the", "table_name", "(", "i", ".", "e", ".", "specimens", ")", "and", "the", "col_name", "(", "i", ".", "e", ".", "specimen", ")", "for", "a", "given", "index", "in", "self", ".", "ancestry", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L522-L535
train
Return both the table_name and col_name for a given index in the ancestry.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b1010 + 0o46) + '\157' + '\x36' + chr(0b111 + 0o56), 10389 - 10381), nzTpIcepk0o8(chr(1016 - 968) + '\x6f' + '\x32' + chr(1948 - 1893) + chr(0b101100 + 0o4), 52724 - 52716), nzTpIcepk0o8(chr(0b110000) + chr(0b1001101 + 0o42) + chr(1172 - 1122) + chr(1650 - 1595) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\062' + '\x32', 27979 - 27971), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + chr(0b10000 + 0o45) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b1101111) + chr(0b110011) + chr(139 - 86) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\x33' + chr(49), 23255 - 23247), nzTpIcepk0o8(chr(1509 - 1461) + chr(0b1101111) + '\x33' + chr(0b110110) + chr(1321 - 1268), ord("\x08")), nzTpIcepk0o8(chr(1489 - 1441) + '\x6f' + chr(2206 - 2155) + chr(2704 - 2652) + chr(0b10 + 0o57), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(8440 - 8329) + chr(1855 - 1804) + chr(372 - 319) + chr(0b110000), 9065 - 9057), nzTpIcepk0o8(chr(1616 - 1568) + chr(111) + chr(2369 - 2318) + chr(55) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(51) + chr(933 - 884), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\065' + chr(769 - 719), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110000) + chr(53), 0b1000), nzTpIcepk0o8(chr(1935 - 1887) + '\x6f' + chr(462 - 413) + '\064', 1540 - 1532), nzTpIcepk0o8(chr(48) + chr(1732 - 1621) + chr(0b110001) + chr(0b11000 + 0o37) + '\060', 0o10), nzTpIcepk0o8(chr(774 - 726) + chr(0b1101111) + '\x33' + chr(0b100101 + 0o13) + chr(0b100011 + 0o15), ord("\x08")), nzTpIcepk0o8(chr(2074 - 2026) + chr(0b1101111) + chr(0b110010) + '\060' + '\x36', 0o10), nzTpIcepk0o8(chr(1173 - 1125) + chr(8368 - 8257) + '\067' + chr(0b110010), 46696 - 46688), nzTpIcepk0o8(chr(2162 - 2114) + chr(7715 - 7604) + chr(0b110010) + chr(49) + '\062', 0b1000), nzTpIcepk0o8(chr(2042 - 1994) + chr(111) + '\x33' + '\x34' + chr(0b110001), 8), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + '\064' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(292 - 244) + '\x30', 17743 - 17735), nzTpIcepk0o8(chr(1901 - 1853) + chr(5136 - 5025) + '\x32' + chr(49) + chr(0b1110 + 0o43), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101111 + 0o3) + '\064' + chr(1172 - 1120), 2233 - 2225), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10 + 0o64), ord("\x08")), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(0b110010) + chr(52) + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\x36' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(2029 - 1975) + chr(2568 - 2514), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(878 - 825) + chr(55), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(54) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b1001 + 0o51) + '\x36' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(1547 - 1499) + '\x6f' + chr(322 - 272) + '\x30' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49 - 0) + chr(1129 - 1079) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101001 + 0o6) + chr(49) + chr(48) + chr(0b110000 + 0o2), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1001111 + 0o40) + '\x33' + chr(0b110011) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(11721 - 11610) + '\061' + chr(0b110110) + chr(0b11 + 0o57), 8), nzTpIcepk0o8(chr(1055 - 1007) + '\x6f' + '\x31' + '\065' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + chr(192 - 141), 8), nzTpIcepk0o8('\060' + chr(0b1000011 + 0o54) + '\061' + '\062' + '\x37', 50613 - 50605)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(11381 - 11270) + chr(0b110101) + chr(0b100000 + 0o20), 32078 - 32070)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x1b'), '\144' + '\x65' + chr(0b110101 + 0o56) + chr(0b1101111) + chr(0b1011111 + 0o5) + chr(0b110101 + 0o60))('\165' + chr(116) + chr(0b1010010 + 0o24) + chr(0b101010 + 0o3) + chr(0b10011 + 0o45)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def XgCcmyHo2QGN(hXMPsSrOQzbh, w5vcgUzFN3bF): if w5vcgUzFN3bF >= ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'g\x8c\xdc\xe20\x9c\x14\x91\xd4\x8c\xad\xbf'), chr(0b100110 + 0o76) + chr(0b1100101) + '\143' + '\x6f' + '\144' + '\145')(chr(9331 - 9214) + '\x74' + '\x66' + chr(0b101101) + chr(56)))): return (roI3spqORKae(ES5oEprVxulp(b''), chr(0b110111 + 0o55) + chr(0b1011010 + 0o13) + chr(8242 - 8143) + chr(111) + chr(0b1100100) + chr(4934 - 4833))(chr(10637 - 10520) + '\x74' + '\146' + chr(1742 - 1697) + '\x38'), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + '\x65' + '\143' + '\157' + chr(100) + chr(0b1011101 + 0o10))(chr(0b1110101) + chr(116) + chr(102) + chr(1242 - 1197) + chr(0b111000))) if w5vcgUzFN3bF > -nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10001 + 0o40), ord("\x08")): kR9bIddrApHD = hXMPsSrOQzbh.R4epYwMd5dWf[w5vcgUzFN3bF] SLVB2BPA_mIe = kR9bIddrApHD[:-nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101011 + 0o6), 8)] return (kR9bIddrApHD, SLVB2BPA_mIe) return (roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1100101) + '\x63' + '\x6f' + chr(3625 - 3525) + chr(1185 - 1084))('\165' + chr(116) + chr(102) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(3441 - 3340) + chr(0b1000111 + 0o34) + chr(0b11011 + 0o124) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + chr(0b11011 + 0o113) + chr(45) + chr(0b10 + 0o66)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_name_down
def propagate_name_down(self, col_name, df_name, verbose=False): """ Put the data for "col_name" into dataframe with df_name Used to add 'site_name' to specimen table, for example. """ if df_name not in self.tables: table = self.add_magic_table(df_name)[1] if is_null(table): return df = self.tables[df_name].df if col_name in df.columns: if all(df[col_name].apply(not_null)): #print('{} already in {}'.format(col_name, df_name)) return df # otherwise, do necessary merges to get col_name into df # get names for each level grandparent_table_name = col_name.split('_')[0] + "s" grandparent_name = grandparent_table_name[:-1] ind = self.ancestry.index(grandparent_table_name) - 1 # parent_table_name, parent_name = self.get_table_name(ind) child_table_name, child_name = self.get_table_name(ind - 1) bottom_table_name, bottom_name = self.get_table_name(ind - 2) # merge in bottom level if child_name not in df.columns: # add child table if missing if bottom_table_name not in self.tables: result = self.add_magic_table(bottom_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data for data propagation".format(bottom_table_name)) return df # add child_name to df add_df = self.tables[bottom_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=bottom_name) if child_name not in df.columns: if verbose: print("-W- Cannot complete propagation, {} table is missing {} column".format(df_name, child_name)) else: add_df = stringify_col(add_df, child_name) df = stringify_col(df, bottom_name) df = df.merge(add_df[[child_name]], left_on=[bottom_name], right_index=True, how="left") self.tables[df_name].df = df # merge in one level above if parent_name not in df.columns: # add parent_table if missing if child_table_name not in self.tables: result = self.add_magic_table(child_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data".format(child_table_name)) print("-I- Make sure you've provided the correct file name") return df # add parent_name to df add_df = self.tables[child_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=child_name) if parent_name not in add_df: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(child_table_name, parent_name)) elif parent_name not in df: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(df_name, parent_name)) else: add_df = stringify_col(add_df, parent_name) df = stringify_col(df, child_name) df = df.merge(add_df[[parent_name]], left_on=[child_name], right_index=True, how="left") self.tables[df_name].df = df # merge in two levels above if grandparent_name not in df.columns: # add grandparent table if it is missing if parent_table_name not in self.tables: result = self.add_magic_table(parent_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data".format(parent_table_name)) print("-I- Make sure you've provided the correct file name") return df # add grandparent name to df add_df = self.tables[parent_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=parent_name) if grandparent_name not in add_df.columns: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(parent_table_name, grandparent_name)) elif parent_name not in df.columns: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(df_name, parent_name)) else: add_df = stringify_col(add_df, grandparent_name) df = stringify_col(df, parent_name) df = df.merge(add_df[[grandparent_name]], left_on=[parent_name], right_index=True, how="left") df = stringify_col(df, grandparent_name) # update the Contribution self.tables[df_name].df = df return df
python
def propagate_name_down(self, col_name, df_name, verbose=False): """ Put the data for "col_name" into dataframe with df_name Used to add 'site_name' to specimen table, for example. """ if df_name not in self.tables: table = self.add_magic_table(df_name)[1] if is_null(table): return df = self.tables[df_name].df if col_name in df.columns: if all(df[col_name].apply(not_null)): #print('{} already in {}'.format(col_name, df_name)) return df # otherwise, do necessary merges to get col_name into df # get names for each level grandparent_table_name = col_name.split('_')[0] + "s" grandparent_name = grandparent_table_name[:-1] ind = self.ancestry.index(grandparent_table_name) - 1 # parent_table_name, parent_name = self.get_table_name(ind) child_table_name, child_name = self.get_table_name(ind - 1) bottom_table_name, bottom_name = self.get_table_name(ind - 2) # merge in bottom level if child_name not in df.columns: # add child table if missing if bottom_table_name not in self.tables: result = self.add_magic_table(bottom_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data for data propagation".format(bottom_table_name)) return df # add child_name to df add_df = self.tables[bottom_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=bottom_name) if child_name not in df.columns: if verbose: print("-W- Cannot complete propagation, {} table is missing {} column".format(df_name, child_name)) else: add_df = stringify_col(add_df, child_name) df = stringify_col(df, bottom_name) df = df.merge(add_df[[child_name]], left_on=[bottom_name], right_index=True, how="left") self.tables[df_name].df = df # merge in one level above if parent_name not in df.columns: # add parent_table if missing if child_table_name not in self.tables: result = self.add_magic_table(child_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data".format(child_table_name)) print("-I- Make sure you've provided the correct file name") return df # add parent_name to df add_df = self.tables[child_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=child_name) if parent_name not in add_df: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(child_table_name, parent_name)) elif parent_name not in df: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(df_name, parent_name)) else: add_df = stringify_col(add_df, parent_name) df = stringify_col(df, child_name) df = df.merge(add_df[[parent_name]], left_on=[child_name], right_index=True, how="left") self.tables[df_name].df = df # merge in two levels above if grandparent_name not in df.columns: # add grandparent table if it is missing if parent_table_name not in self.tables: result = self.add_magic_table(parent_table_name)[1] if not isinstance(result, MagicDataFrame): if verbose: print("-W- Couldn't read in {} data".format(parent_table_name)) print("-I- Make sure you've provided the correct file name") return df # add grandparent name to df add_df = self.tables[parent_table_name].df # drop duplicate names add_df = add_df.drop_duplicates(subset=parent_name) if grandparent_name not in add_df.columns: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(parent_table_name, grandparent_name)) elif parent_name not in df.columns: if verbose: print('-W- could not finish propagating names: {} table is missing {} column'.format(df_name, parent_name)) else: add_df = stringify_col(add_df, grandparent_name) df = stringify_col(df, parent_name) df = df.merge(add_df[[grandparent_name]], left_on=[parent_name], right_index=True, how="left") df = stringify_col(df, grandparent_name) # update the Contribution self.tables[df_name].df = df return df
[ "def", "propagate_name_down", "(", "self", ",", "col_name", ",", "df_name", ",", "verbose", "=", "False", ")", ":", "if", "df_name", "not", "in", "self", ".", "tables", ":", "table", "=", "self", ".", "add_magic_table", "(", "df_name", ")", "[", "1", "]", "if", "is_null", "(", "table", ")", ":", "return", "df", "=", "self", ".", "tables", "[", "df_name", "]", ".", "df", "if", "col_name", "in", "df", ".", "columns", ":", "if", "all", "(", "df", "[", "col_name", "]", ".", "apply", "(", "not_null", ")", ")", ":", "#print('{} already in {}'.format(col_name, df_name))", "return", "df", "# otherwise, do necessary merges to get col_name into df", "# get names for each level", "grandparent_table_name", "=", "col_name", ".", "split", "(", "'_'", ")", "[", "0", "]", "+", "\"s\"", "grandparent_name", "=", "grandparent_table_name", "[", ":", "-", "1", "]", "ind", "=", "self", ".", "ancestry", ".", "index", "(", "grandparent_table_name", ")", "-", "1", "#", "parent_table_name", ",", "parent_name", "=", "self", ".", "get_table_name", "(", "ind", ")", "child_table_name", ",", "child_name", "=", "self", ".", "get_table_name", "(", "ind", "-", "1", ")", "bottom_table_name", ",", "bottom_name", "=", "self", ".", "get_table_name", "(", "ind", "-", "2", ")", "# merge in bottom level", "if", "child_name", "not", "in", "df", ".", "columns", ":", "# add child table if missing", "if", "bottom_table_name", "not", "in", "self", ".", "tables", ":", "result", "=", "self", ".", "add_magic_table", "(", "bottom_table_name", ")", "[", "1", "]", "if", "not", "isinstance", "(", "result", ",", "MagicDataFrame", ")", ":", "if", "verbose", ":", "print", "(", "\"-W- Couldn't read in {} data for data propagation\"", ".", "format", "(", "bottom_table_name", ")", ")", "return", "df", "# add child_name to df", "add_df", "=", "self", ".", "tables", "[", "bottom_table_name", "]", ".", "df", "# drop duplicate names", "add_df", "=", "add_df", ".", "drop_duplicates", "(", "subset", "=", "bottom_name", ")", "if", "child_name", "not", "in", "df", ".", "columns", ":", "if", "verbose", ":", "print", "(", "\"-W- Cannot complete propagation, {} table is missing {} column\"", ".", "format", "(", "df_name", ",", "child_name", ")", ")", "else", ":", "add_df", "=", "stringify_col", "(", "add_df", ",", "child_name", ")", "df", "=", "stringify_col", "(", "df", ",", "bottom_name", ")", "df", "=", "df", ".", "merge", "(", "add_df", "[", "[", "child_name", "]", "]", ",", "left_on", "=", "[", "bottom_name", "]", ",", "right_index", "=", "True", ",", "how", "=", "\"left\"", ")", "self", ".", "tables", "[", "df_name", "]", ".", "df", "=", "df", "# merge in one level above", "if", "parent_name", "not", "in", "df", ".", "columns", ":", "# add parent_table if missing", "if", "child_table_name", "not", "in", "self", ".", "tables", ":", "result", "=", "self", ".", "add_magic_table", "(", "child_table_name", ")", "[", "1", "]", "if", "not", "isinstance", "(", "result", ",", "MagicDataFrame", ")", ":", "if", "verbose", ":", "print", "(", "\"-W- Couldn't read in {} data\"", ".", "format", "(", "child_table_name", ")", ")", "print", "(", "\"-I- Make sure you've provided the correct file name\"", ")", "return", "df", "# add parent_name to df", "add_df", "=", "self", ".", "tables", "[", "child_table_name", "]", ".", "df", "# drop duplicate names", "add_df", "=", "add_df", ".", "drop_duplicates", "(", "subset", "=", "child_name", ")", "if", "parent_name", "not", "in", "add_df", ":", "if", "verbose", ":", "print", "(", "'-W- could not finish propagating names: {} table is missing {} column'", ".", "format", "(", "child_table_name", ",", "parent_name", ")", ")", "elif", "parent_name", "not", "in", "df", ":", "if", "verbose", ":", "print", "(", "'-W- could not finish propagating names: {} table is missing {} column'", ".", "format", "(", "df_name", ",", "parent_name", ")", ")", "else", ":", "add_df", "=", "stringify_col", "(", "add_df", ",", "parent_name", ")", "df", "=", "stringify_col", "(", "df", ",", "child_name", ")", "df", "=", "df", ".", "merge", "(", "add_df", "[", "[", "parent_name", "]", "]", ",", "left_on", "=", "[", "child_name", "]", ",", "right_index", "=", "True", ",", "how", "=", "\"left\"", ")", "self", ".", "tables", "[", "df_name", "]", ".", "df", "=", "df", "# merge in two levels above", "if", "grandparent_name", "not", "in", "df", ".", "columns", ":", "# add grandparent table if it is missing", "if", "parent_table_name", "not", "in", "self", ".", "tables", ":", "result", "=", "self", ".", "add_magic_table", "(", "parent_table_name", ")", "[", "1", "]", "if", "not", "isinstance", "(", "result", ",", "MagicDataFrame", ")", ":", "if", "verbose", ":", "print", "(", "\"-W- Couldn't read in {} data\"", ".", "format", "(", "parent_table_name", ")", ")", "print", "(", "\"-I- Make sure you've provided the correct file name\"", ")", "return", "df", "# add grandparent name to df", "add_df", "=", "self", ".", "tables", "[", "parent_table_name", "]", ".", "df", "# drop duplicate names", "add_df", "=", "add_df", ".", "drop_duplicates", "(", "subset", "=", "parent_name", ")", "if", "grandparent_name", "not", "in", "add_df", ".", "columns", ":", "if", "verbose", ":", "print", "(", "'-W- could not finish propagating names: {} table is missing {} column'", ".", "format", "(", "parent_table_name", ",", "grandparent_name", ")", ")", "elif", "parent_name", "not", "in", "df", ".", "columns", ":", "if", "verbose", ":", "print", "(", "'-W- could not finish propagating names: {} table is missing {} column'", ".", "format", "(", "df_name", ",", "parent_name", ")", ")", "else", ":", "add_df", "=", "stringify_col", "(", "add_df", ",", "grandparent_name", ")", "df", "=", "stringify_col", "(", "df", ",", "parent_name", ")", "df", "=", "df", ".", "merge", "(", "add_df", "[", "[", "grandparent_name", "]", "]", ",", "left_on", "=", "[", "parent_name", "]", ",", "right_index", "=", "True", ",", "how", "=", "\"left\"", ")", "df", "=", "stringify_col", "(", "df", ",", "grandparent_name", ")", "# update the Contribution", "self", ".", "tables", "[", "df_name", "]", ".", "df", "=", "df", "return", "df" ]
Put the data for "col_name" into dataframe with df_name Used to add 'site_name' to specimen table, for example.
[ "Put", "the", "data", "for", "col_name", "into", "dataframe", "with", "df_name", "Used", "to", "add", "site_name", "to", "specimen", "table", "for", "example", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L560-L666
train
Given a column name and a dataframe of names return the data for col_name.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(0b100011 + 0o20) + chr(0b110101) + chr(2082 - 2027), 0b1000), nzTpIcepk0o8(chr(1561 - 1513) + chr(4947 - 4836) + chr(0b100010 + 0o21) + '\064' + chr(0b11010 + 0o27), 0o10), nzTpIcepk0o8(chr(1747 - 1699) + chr(3206 - 3095) + chr(131 - 80) + '\x33' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(2102 - 2054) + chr(205 - 94) + chr(0b11011 + 0o32) + '\067', 6389 - 6381), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + '\x33' + '\062', 0o10), nzTpIcepk0o8(chr(1685 - 1637) + '\157' + chr(50) + '\066' + chr(49), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(8239 - 8128) + chr(1679 - 1628) + chr(0b101110 + 0o6) + chr(0b110110), 52449 - 52441), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\x32' + chr(0b10100 + 0o37), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + chr(49) + '\x32', 0o10), nzTpIcepk0o8(chr(1003 - 955) + chr(0b1101111) + chr(0b110100 + 0o1) + chr(1173 - 1119), 0o10), nzTpIcepk0o8('\x30' + chr(5398 - 5287) + chr(51) + chr(0b110101) + chr(48), 0o10), nzTpIcepk0o8('\060' + chr(4480 - 4369) + '\063' + chr(0b110110) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1071 - 1023) + '\x6f' + chr(374 - 324) + '\066' + chr(0b100111 + 0o20), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + '\x33' + chr(49), 0o10), nzTpIcepk0o8(chr(1240 - 1192) + chr(111) + chr(49) + chr(2861 - 2807) + chr(0b100010 + 0o20), 7979 - 7971), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(1301 - 1252) + chr(0b101011 + 0o5) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2140 - 2089) + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(48) + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7019 - 6908) + '\061' + chr(0b110010) + chr(2306 - 2257), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b101100 + 0o6) + '\x30' + '\064', 36984 - 36976), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\063' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(1339 - 1284), 49191 - 49183), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(624 - 573) + '\066' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(1042 - 994) + '\157' + '\061' + '\060' + '\x34', 61811 - 61803), nzTpIcepk0o8('\060' + '\157' + chr(53) + chr(2534 - 2481), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(11321 - 11210) + chr(1634 - 1583) + '\060' + chr(736 - 684), 0b1000), nzTpIcepk0o8('\x30' + chr(11991 - 11880) + chr(2214 - 2165) + '\061' + '\063', 0b1000), nzTpIcepk0o8(chr(1558 - 1510) + chr(111) + '\061' + '\x30' + chr(55), 0b1000), nzTpIcepk0o8(chr(665 - 617) + chr(0b1011111 + 0o20) + chr(50) + '\067' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b111101 + 0o62) + chr(1181 - 1132) + chr(0b11111 + 0o21) + chr(0b110010), 0b1000), nzTpIcepk0o8('\060' + chr(10658 - 10547) + chr(2181 - 2131) + chr(0b110001) + '\x32', 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31' + '\064' + '\066', ord("\x08")), nzTpIcepk0o8(chr(2128 - 2080) + chr(0b1101001 + 0o6) + chr(0b110001) + '\065' + '\063', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1667 - 1616) + '\063', 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(89 - 39) + chr(0b100001 + 0o20) + chr(0b10110 + 0o34), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(1478 - 1423) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(575 - 527) + '\157' + '\062' + chr(0b110100) + chr(0b10011 + 0o42), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + '\x36' + chr(611 - 558), 20189 - 20181)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(425 - 377) + chr(111) + chr(0b10110 + 0o37) + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xc1'), chr(100) + chr(6095 - 5994) + chr(99) + chr(0b1101111) + chr(0b111101 + 0o47) + '\145')(chr(0b1110101) + '\164' + '\146' + chr(352 - 307) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def A1ofWbJRV6gc(hXMPsSrOQzbh, VuRTNmVdcYm1, jQhuFWUBjXqq, TseISVdPlfdM=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000), ord("\x08"))): if jQhuFWUBjXqq not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8\x86\xab|\xd0\xe9\xd6 \xc3w\x98\xbb'), chr(9508 - 9408) + '\x65' + chr(3396 - 3297) + chr(111) + chr(100) + chr(0b1000001 + 0o44))(chr(0b11 + 0o162) + '\164' + chr(0b1001100 + 0o32) + chr(1554 - 1509) + chr(56))): JlcDRbBtmPwV = hXMPsSrOQzbh.add_magic_table(jQhuFWUBjXqq)[nzTpIcepk0o8('\060' + chr(111) + '\x31', 0o10)] if LSZVShFMqy75(JlcDRbBtmPwV): return jpOn8DNZxbbx = hXMPsSrOQzbh.tables[jQhuFWUBjXqq].jpOn8DNZxbbx if VuRTNmVdcYm1 in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(0b100010 + 0o102) + '\145' + chr(99) + '\157' + '\144' + chr(101))('\x75' + chr(0b1100110 + 0o16) + chr(0b1100110) + chr(0b10 + 0o53) + chr(0b111000))): if qX60lO1lgHA5(roI3spqORKae(jpOn8DNZxbbx[VuRTNmVdcYm1], roI3spqORKae(ES5oEprVxulp(b'\x8e\x91\xafC\xe3'), '\x64' + chr(0b101111 + 0o66) + chr(3667 - 3568) + '\x6f' + chr(7419 - 7319) + chr(0b1011100 + 0o11))('\x75' + chr(0b1110100) + chr(9140 - 9038) + chr(45) + '\070'))(OPdnCSWnXMKM)): return jpOn8DNZxbbx B0zSg988lcMr = VuRTNmVdcYm1.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'\xb0'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1000010 + 0o55) + chr(0b1011010 + 0o12) + '\145')(chr(10014 - 9897) + chr(116) + chr(8340 - 8238) + chr(1162 - 1117) + chr(0b111000)))[nzTpIcepk0o8(chr(236 - 188) + chr(10288 - 10177) + '\x30', 8)] + roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(100) + chr(0b1100101) + chr(0b1001001 + 0o32) + '\157' + '\144' + chr(0b1100101))('\x75' + '\x74' + '\146' + chr(0b10000 + 0o35) + chr(56)) mSHng8CN6V6V = B0zSg988lcMr[:-nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061', 8)] w5vcgUzFN3bF = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(B0zSg988lcMr) - nzTpIcepk0o8('\x30' + chr(0b1000011 + 0o54) + chr(0b110001), 8) (vx4kvo0WHgYM, DI9spA5BwfXP) = hXMPsSrOQzbh.get_table_name(w5vcgUzFN3bF) (ifa93isK_4jf, RkIByrCkZJX5) = hXMPsSrOQzbh.get_table_name(w5vcgUzFN3bF - nzTpIcepk0o8('\060' + chr(0b1101111) + '\x31', 8)) (nUI4XuYAyQLL, qTJb7qddKkDd) = hXMPsSrOQzbh.get_table_name(w5vcgUzFN3bF - nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010), 34851 - 34843)) if RkIByrCkZJX5 not in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(9097 - 8997) + '\145' + '\x63' + '\x6f' + '\144' + chr(101))('\165' + chr(5919 - 5803) + chr(0b10101 + 0o121) + chr(0b101100 + 0o1) + chr(56))): if nUI4XuYAyQLL not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8\x86\xab|\xd0\xe9\xd6 \xc3w\x98\xbb'), chr(8920 - 8820) + '\x65' + chr(2609 - 2510) + chr(0b1101111) + chr(0b101011 + 0o71) + chr(0b1011110 + 0o7))('\x75' + chr(0b1110100) + chr(0b1010101 + 0o21) + chr(0b1101 + 0o40) + chr(56))): POx95m7SPOVy = hXMPsSrOQzbh.add_magic_table(nUI4XuYAyQLL)[nzTpIcepk0o8(chr(48) + chr(0b110000 + 0o77) + chr(0b110001), 8)] if not suIjIS24Zkqw(POx95m7SPOVy, j3QHvEcjwt5D): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xd9\xde\x93?\xee@\xcf\x83\x97k\x17$\x7f\xa38\xea\xfatT\xd4 Lq\xa5k!\xd20\xaa\x02\no\xebY\xd5\x07\x80\x91\xbeH\xfb\xc5\x8f<\xe4'), chr(100) + '\x65' + '\x63' + '\157' + chr(5634 - 5534) + chr(6273 - 6172))(chr(3399 - 3282) + chr(0b1110100) + '\146' + chr(0b100001 + 0o14) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), '\x64' + chr(8254 - 8153) + '\143' + '\157' + '\144' + '\x65')(chr(6953 - 6836) + '\x74' + '\x66' + chr(0b101101) + chr(56)))(nUI4XuYAyQLL)) return jpOn8DNZxbbx BPIWuiHMrRxR = hXMPsSrOQzbh.tables[nUI4XuYAyQLL].jpOn8DNZxbbx BPIWuiHMrRxR = BPIWuiHMrRxR.drop_duplicates(subset=qTJb7qddKkDd) if RkIByrCkZJX5 not in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(8377 - 8277) + chr(6107 - 6006) + '\143' + '\157' + '\x64' + chr(0b110111 + 0o56))(chr(0b1110101) + '\164' + chr(0b1100110) + '\x2d' + chr(0b10110 + 0o42))): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xd9\xd0\x88=\xe5Z\xc8\x94\xd8t\x02)~\xf74\xa4\xaa}F\x84%Jd\xb0"(\xd3n\xaa\x1d\x16;\xfe\x18\xc7\x19\x8a\xc1\xb6\\\xba\xdc\x8f \xf9G\x86\x90\x97b\x0fex\xec=\xf1\xb7a'), chr(0b111 + 0o135) + '\x65' + chr(8324 - 8225) + chr(111) + '\x64' + '\x65')(chr(0b1110101) + '\164' + '\x66' + chr(45) + chr(1789 - 1733)), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), chr(516 - 416) + chr(0b1100101) + chr(0b1100011) + '\x6f' + chr(0b1000111 + 0o35) + '\x65')(chr(3037 - 2920) + '\x74' + '\146' + chr(0b101101) + chr(56)))(jQhuFWUBjXqq, RkIByrCkZJX5)) else: BPIWuiHMrRxR = kaTEKt2cnBQr(BPIWuiHMrRxR, RkIByrCkZJX5) jpOn8DNZxbbx = kaTEKt2cnBQr(jpOn8DNZxbbx, qTJb7qddKkDd) jpOn8DNZxbbx = jpOn8DNZxbbx.merge(BPIWuiHMrRxR[[RkIByrCkZJX5]], left_on=[qTJb7qddKkDd], right_index=nzTpIcepk0o8(chr(48) + '\157' + chr(49), 8), how=roI3spqORKae(ES5oEprVxulp(b'\x83\x84\xb9['), '\x64' + '\x65' + chr(0b1100011) + chr(0b111111 + 0o60) + chr(100) + '\145')('\165' + chr(0b1110100) + chr(0b11000 + 0o116) + '\x2d' + chr(0b111000))) hXMPsSrOQzbh.tables[jQhuFWUBjXqq].jpOn8DNZxbbx = jpOn8DNZxbbx if DI9spA5BwfXP not in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(3839 - 3739) + chr(0b1100101) + '\x63' + '\157' + chr(100) + chr(101))(chr(992 - 875) + chr(0b1110100) + '\146' + chr(1338 - 1293) + chr(0b111000))): if ifa93isK_4jf not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8\x86\xab|\xd0\xe9\xd6 \xc3w\x98\xbb'), chr(0b1100100) + '\145' + '\x63' + chr(0b1 + 0o156) + '\144' + '\145')(chr(117) + chr(0b1001101 + 0o47) + chr(9320 - 9218) + '\055' + chr(56))): POx95m7SPOVy = hXMPsSrOQzbh.add_magic_table(ifa93isK_4jf)[nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061', 8)] if not suIjIS24Zkqw(POx95m7SPOVy, j3QHvEcjwt5D): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xd9\xde\x93?\xee@\xcf\x83\x97k\x17$\x7f\xa38\xea\xfatT\xd4 Lq\xa5'), chr(2130 - 2030) + chr(0b1100101) + chr(99) + chr(111) + chr(100) + '\145')(chr(0b1110101) + '\x74' + chr(102) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), chr(100) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(117) + chr(122 - 6) + chr(0b1000001 + 0o45) + '\x2d' + chr(0b1000 + 0o60)))(ifa93isK_4jf)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xc2\xa8\xf2\x0f\xd7\xd0\x8d6\xaa]\x9d\x85\xd29\x0b*n\xa4'\xe1\xfa\x7f[\x9b2Da\xa1/g\xc9*\xefF\x08t\xf8\x0b\xc0\x16\x9b\xc1\xb9F\xf6\xd4\xc6=\xebC\x8d"), '\144' + chr(0b1100101) + '\143' + chr(0b101111 + 0o100) + '\144' + '\x65')(chr(0b1110101) + chr(0b100000 + 0o124) + chr(0b1100110) + '\x2d' + chr(2706 - 2650))) return jpOn8DNZxbbx BPIWuiHMrRxR = hXMPsSrOQzbh.tables[ifa93isK_4jf].jpOn8DNZxbbx BPIWuiHMrRxR = BPIWuiHMrRxR.drop_duplicates(subset=RkIByrCkZJX5) if DI9spA5BwfXP not in BPIWuiHMrRxR: if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xf9\xde\x93?\xee\x0e\x86\x98\xc39\x14,u\xea"\xec\xfa\x7f[\x9b4Lb\xa5?.\xd3%\xaa\x08\nv\xef\n\x9fU\x94\x9c\xff[\xfb\xd3\x8a6\xaaG\x9b\xd7\xdap\x016r\xed6\xa4\xa1r\t\x97+Ap\xa9%'), chr(100) + chr(101) + '\143' + '\157' + chr(0b1000000 + 0o44) + chr(0b10010 + 0o123))(chr(0b1001011 + 0o52) + chr(0b1000010 + 0o62) + chr(102) + '\055' + chr(1669 - 1613)), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), chr(1533 - 1433) + '\145' + '\x63' + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(3704 - 3602) + '\x2d' + chr(0b100010 + 0o26)))(ifa93isK_4jf, DI9spA5BwfXP)) elif DI9spA5BwfXP not in jpOn8DNZxbbx: if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xf9\xde\x93?\xee\x0e\x86\x98\xc39\x14,u\xea"\xec\xfa\x7f[\x9b4Lb\xa5?.\xd3%\xaa\x08\nv\xef\n\x9fU\x94\x9c\xff[\xfb\xd3\x8a6\xaaG\x9b\xd7\xdap\x016r\xed6\xa4\xa1r\t\x97+Ap\xa9%'), chr(100) + chr(101) + chr(99) + '\157' + '\x64' + chr(0b1011010 + 0o13))(chr(117) + chr(116) + '\x66' + '\x2d' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(0b10010 + 0o143) + chr(12787 - 12671) + '\x66' + chr(45) + chr(0b101100 + 0o14)))(jQhuFWUBjXqq, DI9spA5BwfXP)) else: BPIWuiHMrRxR = kaTEKt2cnBQr(BPIWuiHMrRxR, DI9spA5BwfXP) jpOn8DNZxbbx = kaTEKt2cnBQr(jpOn8DNZxbbx, RkIByrCkZJX5) jpOn8DNZxbbx = jpOn8DNZxbbx.merge(BPIWuiHMrRxR[[DI9spA5BwfXP]], left_on=[RkIByrCkZJX5], right_index=nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001), 8), how=roI3spqORKae(ES5oEprVxulp(b'\x83\x84\xb9['), chr(100) + chr(101) + chr(99) + '\x6f' + '\144' + '\x65')(chr(117) + chr(3433 - 3317) + chr(102) + chr(1281 - 1236) + chr(56))) hXMPsSrOQzbh.tables[jQhuFWUBjXqq].jpOn8DNZxbbx = jpOn8DNZxbbx if mSHng8CN6V6V not in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(100) + chr(0b100 + 0o141) + chr(0b101101 + 0o66) + chr(0b100011 + 0o114) + chr(100) + chr(0b1100101))('\165' + '\164' + '\x66' + chr(45) + '\070')): if vx4kvo0WHgYM not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb8\x86\xab|\xd0\xe9\xd6 \xc3w\x98\xbb'), chr(0b111100 + 0o50) + chr(0b1001000 + 0o35) + '\143' + chr(111) + '\144' + '\145')(chr(0b1110101) + '\x74' + chr(102) + '\055' + '\x38')): POx95m7SPOVy = hXMPsSrOQzbh.add_magic_table(vx4kvo0WHgYM)[nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49), 8)] if not suIjIS24Zkqw(POx95m7SPOVy, j3QHvEcjwt5D): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xd9\xde\x93?\xee@\xcf\x83\x97k\x17$\x7f\xa38\xea\xfatT\xd4 Lq\xa5'), chr(0b110010 + 0o62) + chr(0b1010101 + 0o20) + '\x63' + chr(111) + chr(6380 - 6280) + '\x65')(chr(12805 - 12688) + '\x74' + chr(102) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), '\x64' + chr(0b1100101) + '\143' + '\x6f' + chr(3558 - 3458) + '\x65')(chr(117) + chr(0b1110100) + chr(8116 - 8014) + '\x2d' + chr(0b111000)))(vx4kvo0WHgYM)) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\xc2\xa8\xf2\x0f\xd7\xd0\x8d6\xaa]\x9d\x85\xd29\x0b*n\xa4'\xe1\xfa\x7f[\x9b2Da\xa1/g\xc9*\xefF\x08t\xf8\x0b\xc0\x16\x9b\xc1\xb9F\xf6\xd4\xc6=\xebC\x8d"), chr(1280 - 1180) + '\145' + '\x63' + chr(0b111100 + 0o63) + '\x64' + chr(0b1100101))(chr(0b100001 + 0o124) + chr(0b1110 + 0o146) + '\146' + '\055' + '\x38')) return jpOn8DNZxbbx BPIWuiHMrRxR = hXMPsSrOQzbh.tables[vx4kvo0WHgYM].jpOn8DNZxbbx BPIWuiHMrRxR = BPIWuiHMrRxR.drop_duplicates(subset=DI9spA5BwfXP) if mSHng8CN6V6V not in roI3spqORKae(BPIWuiHMrRxR, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(3513 - 3413) + '\145' + chr(0b1110 + 0o125) + '\x6f' + chr(0b1011101 + 0o7) + chr(0b1100101))(chr(0b1011001 + 0o34) + '\x74' + chr(0b101 + 0o141) + chr(0b100100 + 0o11) + chr(2846 - 2790))): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xf9\xde\x93?\xee\x0e\x86\x98\xc39\x14,u\xea"\xec\xfa\x7f[\x9b4Lb\xa5?.\xd3%\xaa\x08\nv\xef\n\x9fU\x94\x9c\xff[\xfb\xd3\x8a6\xaaG\x9b\xd7\xdap\x016r\xed6\xa4\xa1r\t\x97+Ap\xa9%'), chr(7937 - 7837) + '\145' + chr(0b1100011) + chr(6890 - 6779) + '\144' + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(355 - 310) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), chr(0b1010011 + 0o21) + chr(0b1011010 + 0o13) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(0b1110101) + chr(116) + '\146' + '\x2d' + '\x38'))(vx4kvo0WHgYM, mSHng8CN6V6V)) elif DI9spA5BwfXP not in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xba\xd2\xe6E\xc9\xd8\xaff\xbec\x84\x87'), chr(0b1100100) + chr(0b1001100 + 0o31) + chr(0b1100011) + '\157' + chr(0b101000 + 0o74) + chr(0b110010 + 0o63))(chr(117) + '\164' + '\x66' + '\x2d' + chr(0b10110 + 0o42))): if TseISVdPlfdM: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xc2\xb6\xf2\x0f\xf9\xde\x93?\xee\x0e\x86\x98\xc39\x14,u\xea"\xec\xfa\x7f[\x9b4Lb\xa5?.\xd3%\xaa\x08\nv\xef\n\x9fU\x94\x9c\xff[\xfb\xd3\x8a6\xaaG\x9b\xd7\xdap\x016r\xed6\xa4\xa1r\t\x97+Ap\xa9%'), chr(0b1000010 + 0o42) + chr(101) + chr(0b1100011) + '\157' + chr(0b11010 + 0o112) + '\x65')('\165' + '\164' + chr(0b11101 + 0o111) + chr(0b1 + 0o54) + chr(0b101101 + 0o13)), roI3spqORKae(ES5oEprVxulp(b'\x9e\xd2\xecd\xdd\x82\x80<\xdbq\xab\xbd'), '\x64' + '\145' + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1001010 + 0o53) + '\x74' + chr(0b1100110) + '\055' + chr(0b111000)))(jQhuFWUBjXqq, DI9spA5BwfXP)) else: BPIWuiHMrRxR = kaTEKt2cnBQr(BPIWuiHMrRxR, mSHng8CN6V6V) jpOn8DNZxbbx = kaTEKt2cnBQr(jpOn8DNZxbbx, DI9spA5BwfXP) jpOn8DNZxbbx = jpOn8DNZxbbx.merge(BPIWuiHMrRxR[[mSHng8CN6V6V]], left_on=[DI9spA5BwfXP], right_index=nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061', 8), how=roI3spqORKae(ES5oEprVxulp(b'\x83\x84\xb9['), chr(100) + chr(0b1100101) + chr(3577 - 3478) + '\157' + chr(0b111000 + 0o54) + '\x65')('\x75' + chr(116) + chr(102) + chr(45) + chr(0b1101 + 0o53))) jpOn8DNZxbbx = kaTEKt2cnBQr(jpOn8DNZxbbx, mSHng8CN6V6V) hXMPsSrOQzbh.tables[jQhuFWUBjXqq].jpOn8DNZxbbx = jpOn8DNZxbbx return jpOn8DNZxbbx
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_cols
def propagate_cols(self, col_names, target_df_name, source_df_name, down=True): """ Put the data for "col_name" from source_df into target_df Used to get "azimuth" from sample table into measurements table (for example). Note: if getting data from the sample table, don't include "sample" in the col_names list. It is included automatically. """ # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) print("-W- Couldn't read in {} table".format(source_df_name)) return # make sure col_names are all available in source table source_df = self.tables[source_df_name].df if not set(col_names).issubset(source_df.columns): for col in col_names[:]: if col not in source_df.columns: print("-W- Column '{}' isn't in {} table, skipping it".format(col, source_df_name)) col_names.remove(col) if not col_names: print("-W- Invalid or missing column names, could not propagate columns") return # if down: add_name = source_df_name[:-1] if 'measurements' in self.tables.keys(): self.propagate_location_to_measurements() elif 'specimens' in self.tables.keys(): self.propagate_location_to_specimens() else: self.propagate_name_down('location', 'sites') else: add_name = target_df_name[:-1] # get dataframes for merge target_df = self.tables[target_df_name].df source_df = self.tables[source_df_name].df backup_source_df = source_df.copy() # finesse source_df to make sure it has all the right columns # and no unnecessary duplicates if source_df_name[:-1] not in source_df.columns: source_df[source_df_name[:-1]] = source_df.index source_df = source_df.drop_duplicates(inplace=False, subset=col_names + [source_df_name[:-1]]) source_df = source_df.groupby(source_df.index, sort=False).fillna(method='ffill') source_df = source_df.groupby(source_df.index, sort=False).fillna(method='bfill') # if the groupby/fillna operation fails due to pandas bug, do the same by hand: if not len(source_df): new = [] grouped = backup_source_df.groupby(backup_source_df.index) for label, group in grouped: new_group = group.fillna(method="ffill") new_group = new_group.fillna(method="bfill") new.append(new_group) source_df = pd.concat(new, sort=True) # if the groupby/fillna still doesn't work, we are out of luck if not len(source_df): return target_df # propagate down if down: # do merge target_df[add_name] = target_df[add_name].astype(str) target_df = target_df.merge(source_df[col_names], how='left', left_on=add_name, right_index=True, suffixes=["_target", "_source"]) # propagate up else: # do merge col_names.append(add_name) source_df[add_name] = source_df[add_name].astype(str) target_df = target_df.merge(source_df[col_names], how='left', left_index=True, right_on=add_name, suffixes=['_target', '_source']) target_df.index = target_df[add_name] target_df.drop([add_name + "_source", add_name + "_target"], axis=1, inplace=True) # ignore any duplicate rows target_df.drop_duplicates(inplace=True) # mess with target_df to remove un-needed merge columns for col in col_names: # if there has been a previous merge, consolidate and delete data if col + "_target" in target_df.columns: # prioritize values from target df new_arr = np.where(target_df[col + "_target"], target_df[col + "_target"], target_df[col + "_source"]) target_df.rename(columns={col + "_target": col}, inplace=True) target_df[col] = new_arr if col + "_source" in target_df.columns: # delete extra merge column del target_df[col + "_source"] # # drop any duplicate rows target_df.drop_duplicates(inplace=True) self.tables[target_df_name].df = target_df return target_df
python
def propagate_cols(self, col_names, target_df_name, source_df_name, down=True): """ Put the data for "col_name" from source_df into target_df Used to get "azimuth" from sample table into measurements table (for example). Note: if getting data from the sample table, don't include "sample" in the col_names list. It is included automatically. """ # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) print("-W- Couldn't read in {} table".format(source_df_name)) return # make sure col_names are all available in source table source_df = self.tables[source_df_name].df if not set(col_names).issubset(source_df.columns): for col in col_names[:]: if col not in source_df.columns: print("-W- Column '{}' isn't in {} table, skipping it".format(col, source_df_name)) col_names.remove(col) if not col_names: print("-W- Invalid or missing column names, could not propagate columns") return # if down: add_name = source_df_name[:-1] if 'measurements' in self.tables.keys(): self.propagate_location_to_measurements() elif 'specimens' in self.tables.keys(): self.propagate_location_to_specimens() else: self.propagate_name_down('location', 'sites') else: add_name = target_df_name[:-1] # get dataframes for merge target_df = self.tables[target_df_name].df source_df = self.tables[source_df_name].df backup_source_df = source_df.copy() # finesse source_df to make sure it has all the right columns # and no unnecessary duplicates if source_df_name[:-1] not in source_df.columns: source_df[source_df_name[:-1]] = source_df.index source_df = source_df.drop_duplicates(inplace=False, subset=col_names + [source_df_name[:-1]]) source_df = source_df.groupby(source_df.index, sort=False).fillna(method='ffill') source_df = source_df.groupby(source_df.index, sort=False).fillna(method='bfill') # if the groupby/fillna operation fails due to pandas bug, do the same by hand: if not len(source_df): new = [] grouped = backup_source_df.groupby(backup_source_df.index) for label, group in grouped: new_group = group.fillna(method="ffill") new_group = new_group.fillna(method="bfill") new.append(new_group) source_df = pd.concat(new, sort=True) # if the groupby/fillna still doesn't work, we are out of luck if not len(source_df): return target_df # propagate down if down: # do merge target_df[add_name] = target_df[add_name].astype(str) target_df = target_df.merge(source_df[col_names], how='left', left_on=add_name, right_index=True, suffixes=["_target", "_source"]) # propagate up else: # do merge col_names.append(add_name) source_df[add_name] = source_df[add_name].astype(str) target_df = target_df.merge(source_df[col_names], how='left', left_index=True, right_on=add_name, suffixes=['_target', '_source']) target_df.index = target_df[add_name] target_df.drop([add_name + "_source", add_name + "_target"], axis=1, inplace=True) # ignore any duplicate rows target_df.drop_duplicates(inplace=True) # mess with target_df to remove un-needed merge columns for col in col_names: # if there has been a previous merge, consolidate and delete data if col + "_target" in target_df.columns: # prioritize values from target df new_arr = np.where(target_df[col + "_target"], target_df[col + "_target"], target_df[col + "_source"]) target_df.rename(columns={col + "_target": col}, inplace=True) target_df[col] = new_arr if col + "_source" in target_df.columns: # delete extra merge column del target_df[col + "_source"] # # drop any duplicate rows target_df.drop_duplicates(inplace=True) self.tables[target_df_name].df = target_df return target_df
[ "def", "propagate_cols", "(", "self", ",", "col_names", ",", "target_df_name", ",", "source_df_name", ",", "down", "=", "True", ")", ":", "# make sure target table is read in", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "target_df_name", ")", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "target_df_name", ")", ")", "return", "# make sure source table is read in", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "source_df_name", ")", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "source_df_name", ")", ")", "return", "# make sure col_names are all available in source table", "source_df", "=", "self", ".", "tables", "[", "source_df_name", "]", ".", "df", "if", "not", "set", "(", "col_names", ")", ".", "issubset", "(", "source_df", ".", "columns", ")", ":", "for", "col", "in", "col_names", "[", ":", "]", ":", "if", "col", "not", "in", "source_df", ".", "columns", ":", "print", "(", "\"-W- Column '{}' isn't in {} table, skipping it\"", ".", "format", "(", "col", ",", "source_df_name", ")", ")", "col_names", ".", "remove", "(", "col", ")", "if", "not", "col_names", ":", "print", "(", "\"-W- Invalid or missing column names, could not propagate columns\"", ")", "return", "#", "if", "down", ":", "add_name", "=", "source_df_name", "[", ":", "-", "1", "]", "if", "'measurements'", "in", "self", ".", "tables", ".", "keys", "(", ")", ":", "self", ".", "propagate_location_to_measurements", "(", ")", "elif", "'specimens'", "in", "self", ".", "tables", ".", "keys", "(", ")", ":", "self", ".", "propagate_location_to_specimens", "(", ")", "else", ":", "self", ".", "propagate_name_down", "(", "'location'", ",", "'sites'", ")", "else", ":", "add_name", "=", "target_df_name", "[", ":", "-", "1", "]", "# get dataframes for merge", "target_df", "=", "self", ".", "tables", "[", "target_df_name", "]", ".", "df", "source_df", "=", "self", ".", "tables", "[", "source_df_name", "]", ".", "df", "backup_source_df", "=", "source_df", ".", "copy", "(", ")", "# finesse source_df to make sure it has all the right columns", "# and no unnecessary duplicates", "if", "source_df_name", "[", ":", "-", "1", "]", "not", "in", "source_df", ".", "columns", ":", "source_df", "[", "source_df_name", "[", ":", "-", "1", "]", "]", "=", "source_df", ".", "index", "source_df", "=", "source_df", ".", "drop_duplicates", "(", "inplace", "=", "False", ",", "subset", "=", "col_names", "+", "[", "source_df_name", "[", ":", "-", "1", "]", "]", ")", "source_df", "=", "source_df", ".", "groupby", "(", "source_df", ".", "index", ",", "sort", "=", "False", ")", ".", "fillna", "(", "method", "=", "'ffill'", ")", "source_df", "=", "source_df", ".", "groupby", "(", "source_df", ".", "index", ",", "sort", "=", "False", ")", ".", "fillna", "(", "method", "=", "'bfill'", ")", "# if the groupby/fillna operation fails due to pandas bug, do the same by hand:", "if", "not", "len", "(", "source_df", ")", ":", "new", "=", "[", "]", "grouped", "=", "backup_source_df", ".", "groupby", "(", "backup_source_df", ".", "index", ")", "for", "label", ",", "group", "in", "grouped", ":", "new_group", "=", "group", ".", "fillna", "(", "method", "=", "\"ffill\"", ")", "new_group", "=", "new_group", ".", "fillna", "(", "method", "=", "\"bfill\"", ")", "new", ".", "append", "(", "new_group", ")", "source_df", "=", "pd", ".", "concat", "(", "new", ",", "sort", "=", "True", ")", "# if the groupby/fillna still doesn't work, we are out of luck", "if", "not", "len", "(", "source_df", ")", ":", "return", "target_df", "# propagate down", "if", "down", ":", "# do merge", "target_df", "[", "add_name", "]", "=", "target_df", "[", "add_name", "]", ".", "astype", "(", "str", ")", "target_df", "=", "target_df", ".", "merge", "(", "source_df", "[", "col_names", "]", ",", "how", "=", "'left'", ",", "left_on", "=", "add_name", ",", "right_index", "=", "True", ",", "suffixes", "=", "[", "\"_target\"", ",", "\"_source\"", "]", ")", "# propagate up", "else", ":", "# do merge", "col_names", ".", "append", "(", "add_name", ")", "source_df", "[", "add_name", "]", "=", "source_df", "[", "add_name", "]", ".", "astype", "(", "str", ")", "target_df", "=", "target_df", ".", "merge", "(", "source_df", "[", "col_names", "]", ",", "how", "=", "'left'", ",", "left_index", "=", "True", ",", "right_on", "=", "add_name", ",", "suffixes", "=", "[", "'_target'", ",", "'_source'", "]", ")", "target_df", ".", "index", "=", "target_df", "[", "add_name", "]", "target_df", ".", "drop", "(", "[", "add_name", "+", "\"_source\"", ",", "add_name", "+", "\"_target\"", "]", ",", "axis", "=", "1", ",", "inplace", "=", "True", ")", "# ignore any duplicate rows", "target_df", ".", "drop_duplicates", "(", "inplace", "=", "True", ")", "# mess with target_df to remove un-needed merge columns", "for", "col", "in", "col_names", ":", "# if there has been a previous merge, consolidate and delete data", "if", "col", "+", "\"_target\"", "in", "target_df", ".", "columns", ":", "# prioritize values from target df", "new_arr", "=", "np", ".", "where", "(", "target_df", "[", "col", "+", "\"_target\"", "]", ",", "target_df", "[", "col", "+", "\"_target\"", "]", ",", "target_df", "[", "col", "+", "\"_source\"", "]", ")", "target_df", ".", "rename", "(", "columns", "=", "{", "col", "+", "\"_target\"", ":", "col", "}", ",", "inplace", "=", "True", ")", "target_df", "[", "col", "]", "=", "new_arr", "if", "col", "+", "\"_source\"", "in", "target_df", ".", "columns", ":", "# delete extra merge column", "del", "target_df", "[", "col", "+", "\"_source\"", "]", "#", "# drop any duplicate rows", "target_df", ".", "drop_duplicates", "(", "inplace", "=", "True", ")", "self", ".", "tables", "[", "target_df_name", "]", ".", "df", "=", "target_df", "return", "target_df" ]
Put the data for "col_name" from source_df into target_df Used to get "azimuth" from sample table into measurements table (for example). Note: if getting data from the sample table, don't include "sample" in the col_names list. It is included automatically.
[ "Put", "the", "data", "for", "col_name", "from", "source_df", "into", "target_df", "Used", "to", "get", "azimuth", "from", "sample", "table", "into", "measurements", "table", "(", "for", "example", ")", ".", "Note", ":", "if", "getting", "data", "from", "the", "sample", "table", "don", "t", "include", "sample", "in", "the", "col_names", "list", ".", "It", "is", "included", "automatically", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L668-L773
train
Given a list of column names in the source dataframe and a list of columns in the target dataframe propagate them to the target dataframe.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1555 - 1507) + chr(111) + chr(0b100010 + 0o23) + chr(0b110000), 59201 - 59193), nzTpIcepk0o8(chr(1685 - 1637) + '\157' + chr(0b10110 + 0o35) + '\x33' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b100110 + 0o12) + chr(0b1101111) + '\063', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x33' + chr(0b11001 + 0o36), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(0b100 + 0o56) + chr(0b101111 + 0o2) + chr(0b10 + 0o61), 54338 - 54330), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(474 - 425) + '\x33' + chr(0b11000 + 0o34), 0b1000), nzTpIcepk0o8(chr(809 - 761) + chr(11555 - 11444) + chr(1204 - 1153) + chr(254 - 204) + chr(48), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(130 - 82) + '\x6f' + chr(49) + chr(0b10100 + 0o41) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\067' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10110 + 0o131) + '\x31' + chr(0b110110) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + chr(0b1110 + 0o42) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(2360 - 2311) + '\x37' + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1825 - 1776) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + '\061' + '\x33' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1055 - 1005) + chr(1324 - 1275) + chr(375 - 326), 1940 - 1932), nzTpIcepk0o8('\060' + chr(0b1100010 + 0o15) + '\x32' + chr(0b101011 + 0o10) + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1010010 + 0o35) + chr(1454 - 1404) + chr(0b110001) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3841 - 3730) + '\x34' + chr(0b11011 + 0o25), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101000 + 0o7) + chr(1958 - 1908) + '\064' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100110 + 0o111) + '\061' + chr(50), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b1000 + 0o55) + '\x30', 8), nzTpIcepk0o8('\060' + chr(0b1001011 + 0o44) + '\x36' + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(682 - 628) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(86 - 38) + '\157' + chr(1412 - 1363) + chr(0b100000 + 0o20) + chr(609 - 557), 0b1000), nzTpIcepk0o8(chr(1388 - 1340) + chr(6439 - 6328) + chr(0b110001) + '\061' + '\067', 59233 - 59225), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110011) + chr(53) + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(5543 - 5432) + chr(2144 - 2094) + '\x34' + chr(755 - 705), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\067' + chr(53), ord("\x08")), nzTpIcepk0o8(chr(544 - 496) + chr(111) + '\063' + '\062' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b110010) + chr(53) + '\x30', 0b1000), nzTpIcepk0o8(chr(196 - 148) + '\x6f' + chr(0b110111) + '\062', 37468 - 37460), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11011 + 0o27) + chr(0b1000 + 0o50) + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(55) + '\x37', 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x36', 44314 - 44306), nzTpIcepk0o8(chr(1440 - 1392) + chr(0b1101111) + chr(0b110011) + chr(0b110101) + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101001 + 0o106) + chr(412 - 361) + '\x30' + chr(0b110101), 6664 - 6656), nzTpIcepk0o8('\060' + chr(0b1010110 + 0o31) + chr(1406 - 1357) + '\x34' + chr(0b1000 + 0o51), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(1068 - 1019) + '\x37', 63133 - 63125)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1001001 + 0o46) + '\x35' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x06'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(8580 - 8480) + chr(0b101010 + 0o73))(chr(117) + '\164' + chr(0b1100110) + chr(2012 - 1967) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def RH4BAfYUrHqX(hXMPsSrOQzbh, rlxfQfdSHlRp, iWMMrgbIGdWs, DrEeQNZC3DWw, B2jLBDUbt1u2=nzTpIcepk0o8('\x30' + chr(0b1100100 + 0o13) + chr(0b10010 + 0o37), ord("\x08"))): if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x7f\xbewL\xc1\x04\xe0\xaf$e\x04\x8a'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(100) + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(858 - 813) + chr(56))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'I\xbdg@\xe6=\xb7\xb5\x0ec\x00\xa7\x1a`?'), chr(100) + '\145' + chr(99) + chr(0b1101111) + chr(838 - 738) + chr(0b11110 + 0o107))(chr(0b1110101) + '\164' + chr(102) + chr(0b100001 + 0o14) + chr(1077 - 1021)))(iWMMrgbIGdWs) if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x7f\xbewL\xc1\x04\xe0\xaf$e\x04\x8a'), '\x64' + chr(0b11110 + 0o107) + '\143' + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(0b110110 + 0o76) + '\146' + chr(0b101101) + chr(0b100001 + 0o27))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x05\x8e.?\xc83\xa5\xb0\tRS\xb2X~?\xe8\xf8\xadI\xc8*SN\x950.\x8b\xceX'), chr(9036 - 8936) + '\x65' + chr(0b1010000 + 0o23) + chr(0b100100 + 0o113) + chr(3471 - 3371) + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(0b11110 + 0o32)), roI3spqORKae(ES5oEprVxulp(b'Y\xea0T\xcco\xb6\xb3<c7\x8c'), chr(100) + chr(4203 - 4102) + chr(3400 - 3301) + chr(111) + chr(8169 - 8069) + chr(101))(chr(117) + '\x74' + chr(0b1011110 + 0o10) + '\055' + chr(0b11111 + 0o31)))(iWMMrgbIGdWs)) return if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x7f\xbewL\xc1\x04\xe0\xaf$e\x04\x8a'), chr(0b1100100) + chr(0b100010 + 0o103) + chr(0b110 + 0o135) + chr(111) + '\x64' + chr(2853 - 2752))(chr(0b1110101) + chr(0b1110100) + chr(1930 - 1828) + chr(45) + chr(95 - 39))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'I\xbdg@\xe6=\xb7\xb5\x0ec\x00\xa7\x1a`?'), chr(0b111000 + 0o54) + chr(4309 - 4208) + chr(5279 - 5180) + chr(3801 - 3690) + chr(0b1100100) + chr(0b1100101))(chr(7933 - 7816) + chr(116) + chr(102) + chr(45) + chr(657 - 601)))(DrEeQNZC3DWw) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x05\x8e.?\xc83\xa5\xb0\tRS\xb2X~?\xe8\xf8\xadI\xc8*SN\x950.\x8b\xceX'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(665 - 554) + '\x64' + chr(0b10111 + 0o116))(chr(0b1110101) + chr(0b1100 + 0o150) + chr(0b1000110 + 0o40) + chr(0b1100 + 0o41) + chr(0b1110 + 0o52)), roI3spqORKae(ES5oEprVxulp(b'Y\xea0T\xcco\xb6\xb3<c7\x8c'), '\x64' + chr(2246 - 2145) + chr(0b1100011) + '\157' + '\144' + chr(7924 - 7823))('\165' + '\x74' + chr(0b1010001 + 0o25) + chr(45) + chr(2242 - 2186)))(DrEeQNZC3DWw)) return Yq4hgSkVJXI8 = hXMPsSrOQzbh.tables[DrEeQNZC3DWw].jpOn8DNZxbbx if not roI3spqORKae(Bvi71nNyvlqO(rlxfQfdSHlRp), roI3spqORKae(ES5oEprVxulp(b'A\xaapj\xe9/\xb5\xa8'), '\x64' + chr(0b1000 + 0o135) + chr(0b101111 + 0o64) + '\x6f' + '\144' + '\x65')('\x75' + '\164' + chr(2667 - 2565) + '\055' + chr(0b10 + 0o66)))(roI3spqORKae(Yq4hgSkVJXI8, roI3spqORKae(ES5oEprVxulp(b'}\xea:u\xd85\x99\xe9Yq\x18\xb6'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(6472 - 6372) + chr(3191 - 3090))(chr(117) + chr(0b1110100) + chr(8987 - 8885) + '\x2d' + chr(0b111000)))): for hRTUxJgvuslu in rlxfQfdSHlRp[:]: if hRTUxJgvuslu not in roI3spqORKae(Yq4hgSkVJXI8, roI3spqORKae(ES5oEprVxulp(b'}\xea:u\xd85\x99\xe9Yq\x18\xb6'), chr(0b1100100) + '\145' + '\143' + '\x6f' + chr(0b1 + 0o143) + chr(3058 - 2957))(chr(117) + '\164' + chr(0b11010 + 0o114) + chr(0b101101) + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x05\x8e.?\xc83\xbc\xa9\x00RT\xe1\x03q}\xa9\xf5\xfeN\x81~\x08Z\xdbd4\x94\x82I\xb7e\xc4_\xae\xdfu\x80\xac\x11\x7fA\xb7d?\xe2('), chr(0b1100100) + chr(101) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1001 + 0o134))(chr(1487 - 1370) + '\x74' + chr(102) + chr(0b101100 + 0o1) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'Y\xea0T\xcco\xb6\xb3<c7\x8c'), '\144' + chr(4039 - 3938) + chr(0b11001 + 0o112) + chr(111) + chr(0b1100100) + chr(9039 - 8938))(chr(117) + '\x74' + chr(0b1100110) + '\055' + chr(0b101100 + 0o14)))(hRTUxJgvuslu, DrEeQNZC3DWw)) roI3spqORKae(rlxfQfdSHlRp, roI3spqORKae(ES5oEprVxulp(b'X\x94oJ\xe38\xe2\x96\x00w5\x83'), '\x64' + '\x65' + chr(6459 - 6360) + chr(6520 - 6409) + chr(0b10001 + 0o123) + '\x65')(chr(117) + '\164' + '\146' + chr(210 - 165) + chr(1190 - 1134)))(hRTUxJgvuslu) if not rlxfQfdSHlRp: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x05\x8e.?\xc22\xa6\xbd\x01U\x10\xe6\x17~z\xe4\xf5\xfeS\xcfdO\x13\xd6+#\x9c\xcfS\xf6i\xc9W\xe7\x8c*\xcb\xa6\x0ezD\xbd#q\xe4(\xf0\xac\x1fS\x04\xa7\x1fm.\xec\xbc\xeeO\xca\x7fE]\xc6'), '\144' + chr(0b1010000 + 0o25) + chr(5839 - 5740) + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(1784 - 1739) + '\070')) return if B2jLBDUbt1u2: VadBawOyraew = DrEeQNZC3DWw[:-nzTpIcepk0o8(chr(48) + '\x6f' + '\x31', 8)] if roI3spqORKae(ES5oEprVxulp(b'E\xbcbl\xfe.\xb5\xb1\x08R\x00\xb5'), chr(7420 - 7320) + chr(0b101111 + 0o66) + '\143' + chr(0b1101000 + 0o7) + '\x64' + chr(0b1011100 + 0o11))(chr(117) + chr(0b10111 + 0o135) + chr(102) + chr(0b101101) + chr(0b101 + 0o63)) in roI3spqORKae(hXMPsSrOQzbh.tables, roI3spqORKae(ES5oEprVxulp(b'C\xbczl'), chr(0b1100100) + chr(101) + '\x63' + '\157' + chr(0b1100100) + chr(101))(chr(0b1101110 + 0o7) + chr(116) + '\146' + chr(569 - 524) + chr(0b10110 + 0o42)))(): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'X\xablo\xea;\xb1\xa8\x08c\x18\xa9\x1bm.\xe0\xf3\xe3\x7f\xd2ew^\xd0%<\x9c\xd0X\xbbb\xc6N\xf1'), chr(0b1000110 + 0o36) + chr(0b1100101) + '\x63' + '\x6f' + '\x64' + chr(0b1000 + 0o135))('\165' + chr(5111 - 4995) + '\146' + chr(45) + chr(504 - 448)))() elif roI3spqORKae(ES5oEprVxulp(b'[\xa9f|\xe21\xb5\xb2\x1e'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(8119 - 8019) + chr(8853 - 8752))('\165' + '\x74' + chr(0b1100110) + chr(0b1011 + 0o42) + chr(56)) in roI3spqORKae(hXMPsSrOQzbh.tables, roI3spqORKae(ES5oEprVxulp(b'C\xbczl'), '\144' + chr(101) + chr(0b1001 + 0o132) + '\x6f' + chr(0b1100100) + '\145')('\x75' + '\164' + '\146' + chr(0b10111 + 0o26) + '\x38'))(): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'X\xablo\xea;\xb1\xa8\x08c\x18\xa9\x1bm.\xe0\xf3\xe3\x7f\xd2ew@\xc5!,\x80\xcfX\xb8t'), chr(5429 - 5329) + '\x65' + chr(99) + chr(0b1101111) + chr(100) + '\x65')(chr(0b1110101) + chr(116) + chr(102) + chr(0b101101) + '\x38'))() else: roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'X\xablo\xea;\xb1\xa8\x08c\x1a\xa7\x15i\x05\xed\xf3\xfaN'), chr(7123 - 7023) + '\x65' + chr(0b1100011 + 0o0) + '\x6f' + chr(2676 - 2576) + '\145')(chr(2156 - 2039) + chr(116) + chr(102) + chr(0b100 + 0o51) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'D\xb6`~\xff5\xbf\xb2'), chr(100) + '\x65' + '\143' + chr(645 - 534) + chr(8881 - 8781) + '\x65')(chr(0b110000 + 0o105) + '\164' + chr(10043 - 9941) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'[\xb0wz\xf8'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b11001 + 0o126) + chr(7329 - 7229) + chr(101))(chr(5410 - 5293) + chr(0b1110100) + chr(0b10110 + 0o120) + '\055' + '\x38')) else: VadBawOyraew = iWMMrgbIGdWs[:-nzTpIcepk0o8('\060' + chr(111) + '\061', 8)] YxoLvfvnWKCJ = hXMPsSrOQzbh.tables[iWMMrgbIGdWs].jpOn8DNZxbbx Yq4hgSkVJXI8 = hXMPsSrOQzbh.tables[DrEeQNZC3DWw].jpOn8DNZxbbx hkcgTVNyBUu9 = Yq4hgSkVJXI8.copy() if DrEeQNZC3DWw[:-nzTpIcepk0o8('\x30' + '\x6f' + '\061', 8)] not in roI3spqORKae(Yq4hgSkVJXI8, roI3spqORKae(ES5oEprVxulp(b'}\xea:u\xd85\x99\xe9Yq\x18\xb6'), '\144' + chr(0b101101 + 0o70) + chr(0b1101 + 0o126) + chr(0b1100110 + 0o11) + '\144' + '\145')(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b1 + 0o54) + chr(56))): Yq4hgSkVJXI8[DrEeQNZC3DWw[:-nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(3330 - 3219) + chr(49), 8)]] = Yq4hgSkVJXI8.ZpfN5tSLaZze Yq4hgSkVJXI8 = Yq4hgSkVJXI8.drop_duplicates(inplace=nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(48), 18572 - 18564), subset=rlxfQfdSHlRp + [DrEeQNZC3DWw[:-nzTpIcepk0o8('\x30' + '\157' + '\061', 8)]]) Yq4hgSkVJXI8 = Yq4hgSkVJXI8.groupby(Yq4hgSkVJXI8.index, sort=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 8)).fillna(method=roI3spqORKae(ES5oEprVxulp(b'N\xbfjs\xe7'), chr(100) + chr(0b11 + 0o142) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(0b1011010 + 0o13))(chr(0b101001 + 0o114) + chr(0b1001011 + 0o51) + chr(102) + chr(45) + '\070')) Yq4hgSkVJXI8 = Yq4hgSkVJXI8.groupby(Yq4hgSkVJXI8.index, sort=nzTpIcepk0o8(chr(48) + '\x6f' + chr(1364 - 1316), 8)).fillna(method=roI3spqORKae(ES5oEprVxulp(b'J\xbfjs\xe7'), chr(4221 - 4121) + chr(101) + chr(3953 - 3854) + '\157' + '\144' + chr(101))(chr(6512 - 6395) + chr(0b10010 + 0o142) + chr(0b1001000 + 0o36) + chr(0b101101) + '\x38')) if not ftfygxgFas5X(Yq4hgSkVJXI8): bZWmgf4GjgvH = [] uceW_MaU05Sk = hkcgTVNyBUu9.groupby(hkcgTVNyBUu9.ZpfN5tSLaZze) for (OkDIn6t2Cke6, F9lJ8RbIonqb) in uceW_MaU05Sk: G0MmSYxXUZ6D = F9lJ8RbIonqb.fillna(method=roI3spqORKae(ES5oEprVxulp(b'N\xbfjs\xe7'), chr(3129 - 3029) + '\x65' + chr(0b100 + 0o137) + chr(1936 - 1825) + chr(2617 - 2517) + chr(0b100 + 0o141))(chr(117) + '\164' + '\146' + chr(0b101101) + chr(56))) G0MmSYxXUZ6D = G0MmSYxXUZ6D.fillna(method=roI3spqORKae(ES5oEprVxulp(b'J\xbfjs\xe7'), '\x64' + '\x65' + chr(0b1100011) + chr(0b101001 + 0o106) + chr(0b1100100) + '\145')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(45) + '\x38')) roI3spqORKae(bZWmgf4GjgvH, roI3spqORKae(ES5oEprVxulp(b'`\x8dP+\xf3;\x97\xb3\x07S!\xf3'), '\x64' + chr(101) + chr(99) + chr(10571 - 10460) + chr(2305 - 2205) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + '\x38'))(G0MmSYxXUZ6D) Yq4hgSkVJXI8 = HLKt4sa1j9hm.concat(bZWmgf4GjgvH, sort=nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b101011 + 0o6), 8)) if not ftfygxgFas5X(Yq4hgSkVJXI8): return YxoLvfvnWKCJ if B2jLBDUbt1u2: YxoLvfvnWKCJ[VadBawOyraew] = YxoLvfvnWKCJ[VadBawOyraew].xqAChpcBkssb(N9zlRy29S1SS) YxoLvfvnWKCJ = YxoLvfvnWKCJ.merge(Yq4hgSkVJXI8[rlxfQfdSHlRp], how=roI3spqORKae(ES5oEprVxulp(b'D\xbcek'), chr(0b1100100) + chr(2459 - 2358) + chr(2746 - 2647) + chr(111) + chr(8600 - 8500) + '\145')(chr(0b110100 + 0o101) + '\x74' + '\146' + chr(0b101101) + chr(0b111000)), left_on=VadBawOyraew, right_index=nzTpIcepk0o8(chr(657 - 609) + chr(853 - 742) + '\061', 8), suffixes=[roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), chr(8680 - 8580) + '\145' + chr(99) + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(3879 - 3763) + chr(0b1100110) + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), chr(0b101011 + 0o71) + '\x65' + chr(447 - 348) + '\x6f' + chr(6090 - 5990) + chr(0b100011 + 0o102))(chr(0b1110101) + chr(0b1110100) + chr(0b100001 + 0o105) + chr(0b10101 + 0o30) + chr(0b111000))]) else: roI3spqORKae(rlxfQfdSHlRp, roI3spqORKae(ES5oEprVxulp(b'`\x8dP+\xf3;\x97\xb3\x07S!\xf3'), chr(0b1100100) + chr(5305 - 5204) + chr(5391 - 5292) + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + chr(10759 - 10643) + '\146' + chr(0b1 + 0o54) + '\x38'))(VadBawOyraew) Yq4hgSkVJXI8[VadBawOyraew] = Yq4hgSkVJXI8[VadBawOyraew].xqAChpcBkssb(N9zlRy29S1SS) YxoLvfvnWKCJ = YxoLvfvnWKCJ.merge(Yq4hgSkVJXI8[rlxfQfdSHlRp], how=roI3spqORKae(ES5oEprVxulp(b'D\xbcek'), chr(0b111010 + 0o52) + chr(0b1000000 + 0o45) + chr(99) + '\x6f' + '\144' + '\x65')(chr(0b1110101) + chr(0b10 + 0o162) + chr(0b1000010 + 0o44) + chr(45) + chr(0b10101 + 0o43)), left_index=nzTpIcepk0o8(chr(0b0 + 0o60) + chr(1598 - 1487) + '\x31', 8), right_on=VadBawOyraew, suffixes=[roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), '\144' + '\x65' + '\143' + chr(0b1010100 + 0o33) + '\144' + '\x65')('\x75' + chr(11284 - 11168) + chr(2776 - 2674) + chr(45) + chr(1079 - 1023)), roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), chr(1837 - 1737) + chr(2708 - 2607) + '\x63' + chr(3688 - 3577) + chr(0b1100100) + chr(0b10100 + 0o121))(chr(0b1110101) + '\x74' + chr(6772 - 6670) + chr(45) + chr(0b100010 + 0o26))]) YxoLvfvnWKCJ.ZpfN5tSLaZze = YxoLvfvnWKCJ[VadBawOyraew] roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'L\xablo'), chr(0b101011 + 0o71) + chr(0b1100101) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b10 + 0o163) + '\164' + chr(9687 - 9585) + chr(675 - 630) + '\070'))([VadBawOyraew + roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), '\x64' + '\x65' + chr(0b111111 + 0o44) + chr(0b1101111) + chr(2664 - 2564) + '\x65')(chr(13676 - 13559) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000)), VadBawOyraew + roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), chr(0b1001000 + 0o34) + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')(chr(0b1110101) + '\x74' + '\x66' + '\055' + chr(0b100100 + 0o24))], axis=nzTpIcepk0o8(chr(48) + chr(4104 - 3993) + chr(0b11111 + 0o22), 8), inplace=nzTpIcepk0o8('\x30' + '\x6f' + '\061', 8)) roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'L\xablo\xd48\xa5\xac\x01U\x17\xa7\x0ci)'), '\x64' + chr(6455 - 6354) + chr(0b1100011) + chr(4666 - 4555) + chr(0b100110 + 0o76) + chr(9790 - 9689))('\165' + chr(116) + chr(8858 - 8756) + chr(45) + chr(2735 - 2679)))(inplace=nzTpIcepk0o8(chr(1548 - 1500) + chr(111) + '\x31', 8)) for hRTUxJgvuslu in rlxfQfdSHlRp: if hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), chr(0b111 + 0o135) + '\145' + '\143' + chr(111) + chr(0b1100100) + chr(0b110110 + 0o57))('\165' + chr(0b1110100) + chr(0b1100110 + 0o0) + chr(0b101101) + chr(0b111000)) in roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'}\xea:u\xd85\x99\xe9Yq\x18\xb6'), chr(9621 - 9521) + chr(10124 - 10023) + '\143' + chr(0b100111 + 0o110) + chr(7824 - 7724) + '\145')(chr(117) + chr(0b1101000 + 0o14) + chr(102) + chr(45) + '\070')): isdiJEVaJaPT = nDF4gVNx0u9Q.xWH4M7K6Qbd3(YxoLvfvnWKCJ[hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), '\144' + chr(0b1100101) + '\x63' + '\157' + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110011 + 0o1) + chr(0b1100110) + chr(274 - 229) + '\x38')], YxoLvfvnWKCJ[hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), '\144' + chr(2668 - 2567) + chr(712 - 613) + '\x6f' + chr(0b1100100) + chr(0b1100101))('\x75' + chr(0b100000 + 0o124) + chr(7415 - 7313) + '\055' + chr(2355 - 2299))], YxoLvfvnWKCJ[hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), chr(0b1100100) + '\x65' + chr(0b1100010 + 0o1) + '\x6f' + chr(1012 - 912) + chr(4385 - 4284))('\165' + '\164' + '\146' + chr(45) + chr(0b1001 + 0o57))]) roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'Z\xbcm~\xe69'), chr(100) + '\x65' + '\x63' + chr(111) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + chr(0b1100110) + chr(45) + chr(0b10011 + 0o45)))(columns={hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xadbm\xec9\xa4'), chr(0b111011 + 0o51) + '\x65' + '\143' + '\157' + chr(0b100101 + 0o77) + chr(6789 - 6688))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(56)): hRTUxJgvuslu}, inplace=nzTpIcepk0o8('\060' + chr(8988 - 8877) + chr(0b110001), 8)) YxoLvfvnWKCJ[hRTUxJgvuslu] = isdiJEVaJaPT if hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), '\x64' + chr(9449 - 9348) + chr(894 - 795) + chr(0b1101111) + '\x64' + chr(0b100101 + 0o100))('\165' + chr(0b1110100) + chr(102) + chr(45) + chr(1462 - 1406)) in roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'}\xea:u\xd85\x99\xe9Yq\x18\xb6'), chr(0b1100100) + chr(101) + chr(0b10000 + 0o123) + chr(111) + chr(100) + chr(101))(chr(117) + '\164' + chr(7595 - 7493) + chr(0b1110 + 0o37) + chr(1996 - 1940))): del YxoLvfvnWKCJ[hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'w\xaalj\xf9?\xb5'), chr(0b1001000 + 0o34) + '\145' + chr(7787 - 7688) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(5896 - 5780) + chr(0b1100110) + chr(0b11000 + 0o25) + '\070')] roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'L\xablo\xd48\xa5\xac\x01U\x17\xa7\x0ci)'), chr(0b1100100) + chr(0b1010111 + 0o16) + chr(99) + chr(0b1101111) + chr(100) + '\145')(chr(0b1011110 + 0o27) + chr(0b1 + 0o163) + chr(0b1100110) + chr(0b101101) + '\070'))(inplace=nzTpIcepk0o8('\x30' + '\157' + chr(0b110001), 8)) hXMPsSrOQzbh.tables[iWMMrgbIGdWs].jpOn8DNZxbbx = YxoLvfvnWKCJ return YxoLvfvnWKCJ
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_cols_up
def propagate_cols_up(self, cols, target_df_name, source_df_name): """ Take values from source table, compile them into a colon-delimited list, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values """ print("-I- Trying to propagate {} columns from {} table into {} table".format(cols, source_df_name, target_df_name)) # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) print("-W- Couldn't read in {} table".format(source_df_name)) return target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # make sure source_df has relevant columns for col in cols: if col not in source_df.df.columns: source_df.df[col] = None # if target_df has info, propagate that into all rows target_df.front_and_backfill(cols) # make sure target_name is in source_df for merging if target_name not in source_df.df.columns: print("-W- You can't merge data from {} table into {} table".format(source_df_name, target_df_name)) print(" Your {} table is missing {} column".format(source_df_name, target_name)) self.tables[target_df_name] = target_df return target_df source_df.front_and_backfill([target_name]) # group source df by target_name grouped = source_df.df.groupby(source_df.df[target_name]) if not len(grouped): print("-W- Couldn't propagate from {} to {}".format(source_df_name, target_df_name)) return target_df # function to generate capitalized, sorted, colon-delimited list # of unique, non-null values from a column def func(group, col_name): lst = group[col_name][group[col_name].notnull()].unique() split_lst = [col.split(':') for col in lst if col] sorted_lst = sorted(np.unique([item.capitalize() for sublist in split_lst for item in sublist])) group_col = ":".join(sorted_lst) return group_col # apply func to each column for col in cols: res = grouped.apply(func, col) target_df.df['new_' + col] = res target_df.df[col] = np.where(target_df.df[col], target_df.df[col], target_df.df['new_' + col]) target_df.df.drop(['new_' + col], axis='columns', inplace=True) # set table self.tables[target_df_name] = target_df return target_df
python
def propagate_cols_up(self, cols, target_df_name, source_df_name): """ Take values from source table, compile them into a colon-delimited list, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values """ print("-I- Trying to propagate {} columns from {} table into {} table".format(cols, source_df_name, target_df_name)) # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) print("-W- Couldn't read in {} table".format(source_df_name)) return target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # make sure source_df has relevant columns for col in cols: if col not in source_df.df.columns: source_df.df[col] = None # if target_df has info, propagate that into all rows target_df.front_and_backfill(cols) # make sure target_name is in source_df for merging if target_name not in source_df.df.columns: print("-W- You can't merge data from {} table into {} table".format(source_df_name, target_df_name)) print(" Your {} table is missing {} column".format(source_df_name, target_name)) self.tables[target_df_name] = target_df return target_df source_df.front_and_backfill([target_name]) # group source df by target_name grouped = source_df.df.groupby(source_df.df[target_name]) if not len(grouped): print("-W- Couldn't propagate from {} to {}".format(source_df_name, target_df_name)) return target_df # function to generate capitalized, sorted, colon-delimited list # of unique, non-null values from a column def func(group, col_name): lst = group[col_name][group[col_name].notnull()].unique() split_lst = [col.split(':') for col in lst if col] sorted_lst = sorted(np.unique([item.capitalize() for sublist in split_lst for item in sublist])) group_col = ":".join(sorted_lst) return group_col # apply func to each column for col in cols: res = grouped.apply(func, col) target_df.df['new_' + col] = res target_df.df[col] = np.where(target_df.df[col], target_df.df[col], target_df.df['new_' + col]) target_df.df.drop(['new_' + col], axis='columns', inplace=True) # set table self.tables[target_df_name] = target_df return target_df
[ "def", "propagate_cols_up", "(", "self", ",", "cols", ",", "target_df_name", ",", "source_df_name", ")", ":", "print", "(", "\"-I- Trying to propagate {} columns from {} table into {} table\"", ".", "format", "(", "cols", ",", "source_df_name", ",", "target_df_name", ")", ")", "# make sure target table is read in", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "target_df_name", ")", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "target_df_name", ")", ")", "return", "# make sure source table is read in", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "source_df_name", ")", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "source_df_name", ")", ")", "return", "target_df", "=", "self", ".", "tables", "[", "target_df_name", "]", "source_df", "=", "self", ".", "tables", "[", "source_df_name", "]", "target_name", "=", "target_df_name", "[", ":", "-", "1", "]", "# make sure source_df has relevant columns", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "source_df", ".", "df", ".", "columns", ":", "source_df", ".", "df", "[", "col", "]", "=", "None", "# if target_df has info, propagate that into all rows", "target_df", ".", "front_and_backfill", "(", "cols", ")", "# make sure target_name is in source_df for merging", "if", "target_name", "not", "in", "source_df", ".", "df", ".", "columns", ":", "print", "(", "\"-W- You can't merge data from {} table into {} table\"", ".", "format", "(", "source_df_name", ",", "target_df_name", ")", ")", "print", "(", "\" Your {} table is missing {} column\"", ".", "format", "(", "source_df_name", ",", "target_name", ")", ")", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df", "source_df", ".", "front_and_backfill", "(", "[", "target_name", "]", ")", "# group source df by target_name", "grouped", "=", "source_df", ".", "df", ".", "groupby", "(", "source_df", ".", "df", "[", "target_name", "]", ")", "if", "not", "len", "(", "grouped", ")", ":", "print", "(", "\"-W- Couldn't propagate from {} to {}\"", ".", "format", "(", "source_df_name", ",", "target_df_name", ")", ")", "return", "target_df", "# function to generate capitalized, sorted, colon-delimited list", "# of unique, non-null values from a column", "def", "func", "(", "group", ",", "col_name", ")", ":", "lst", "=", "group", "[", "col_name", "]", "[", "group", "[", "col_name", "]", ".", "notnull", "(", ")", "]", ".", "unique", "(", ")", "split_lst", "=", "[", "col", ".", "split", "(", "':'", ")", "for", "col", "in", "lst", "if", "col", "]", "sorted_lst", "=", "sorted", "(", "np", ".", "unique", "(", "[", "item", ".", "capitalize", "(", ")", "for", "sublist", "in", "split_lst", "for", "item", "in", "sublist", "]", ")", ")", "group_col", "=", "\":\"", ".", "join", "(", "sorted_lst", ")", "return", "group_col", "# apply func to each column", "for", "col", "in", "cols", ":", "res", "=", "grouped", ".", "apply", "(", "func", ",", "col", ")", "target_df", ".", "df", "[", "'new_'", "+", "col", "]", "=", "res", "target_df", ".", "df", "[", "col", "]", "=", "np", ".", "where", "(", "target_df", ".", "df", "[", "col", "]", ",", "target_df", ".", "df", "[", "col", "]", ",", "target_df", ".", "df", "[", "'new_'", "+", "col", "]", ")", "target_df", ".", "df", ".", "drop", "(", "[", "'new_'", "+", "col", "]", ",", "axis", "=", "'columns'", ",", "inplace", "=", "True", ")", "# set table", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df" ]
Take values from source table, compile them into a colon-delimited list, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values
[ "Take", "values", "from", "source", "table", "compile", "them", "into", "a", "colon", "-", "delimited", "list", "and", "apply", "them", "to", "the", "target", "table", ".", "This", "method", "won", "t", "overwrite", "values", "in", "the", "target", "table", "it", "will", "only", "supply", "values", "where", "they", "are", "missing", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L775-L847
train
Given a list of columns from source table and target table and a list of columns apply them to the target table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\065', ord("\x08")), nzTpIcepk0o8(chr(1123 - 1075) + chr(4632 - 4521) + chr(0b100 + 0o61) + '\x31', 0o10), nzTpIcepk0o8(chr(2210 - 2162) + chr(0b1101111) + '\x32' + chr(0b110101) + '\066', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\064' + chr(1543 - 1493), 53303 - 53295), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1 + 0o63) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110010) + chr(49) + '\065', 0o10), nzTpIcepk0o8(chr(119 - 71) + chr(0b1011111 + 0o20) + chr(494 - 444) + chr(49) + chr(52), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b101011 + 0o11) + chr(0b11100 + 0o33), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\062' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(8245 - 8134) + chr(0b100111 + 0o12) + chr(0b1000 + 0o55) + chr(1289 - 1240), 0o10), nzTpIcepk0o8('\060' + chr(11132 - 11021) + chr(0b101001 + 0o10) + chr(0b1111 + 0o44) + chr(0b110011), 13052 - 13044), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(895 - 842) + chr(0b101111 + 0o7), 54053 - 54045), nzTpIcepk0o8(chr(0b110000) + chr(2778 - 2667) + chr(49) + chr(0b101 + 0o62) + chr(0b11101 + 0o27), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + '\062' + chr(0b110110), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10101 + 0o36) + chr(2159 - 2107) + '\064', 8372 - 8364), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(54) + '\063', 0o10), nzTpIcepk0o8('\060' + chr(7082 - 6971) + '\062' + chr(0b110101) + '\061', 13069 - 13061), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110001) + chr(0b11111 + 0o25) + chr(53), 0b1000), nzTpIcepk0o8(chr(539 - 491) + '\x6f' + chr(0b110111) + chr(0b101110 + 0o6), 45020 - 45012), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\157' + chr(0b110011 + 0o2) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + chr(0b11111 + 0o30) + chr(2077 - 2023), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1237 - 1187) + chr(0b11010 + 0o35) + '\x33', 40367 - 40359), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(54) + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(0b110100) + '\x36', 0o10), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1101111) + chr(0b100111 + 0o14) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(671 - 623) + chr(0b1101111) + chr(0b110001) + chr(0b110010 + 0o2) + chr(0b1100 + 0o45), 0o10), nzTpIcepk0o8('\060' + chr(10147 - 10036) + chr(51) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + chr(50) + chr(0b101001 + 0o15) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110100) + chr(0b110111), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(1173 - 1122) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(1086 - 1036) + chr(0b10101 + 0o36) + chr(55), 57188 - 57180), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(547 - 497) + chr(53) + chr(0b110 + 0o52), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + '\065' + chr(0b110110), 41696 - 41688), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b1001 + 0o56) + chr(233 - 182), 8), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(0b110001) + chr(0b110111) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + chr(0b110100) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(54) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(52) + chr(51), 8), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\x6f' + chr(1166 - 1115) + chr(0b110001) + chr(0b11110 + 0o22), 41349 - 41341), nzTpIcepk0o8(chr(1247 - 1199) + '\157' + chr(953 - 904) + '\063' + chr(2325 - 2276), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(12226 - 12115) + '\x35' + '\060', 9277 - 9269)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'+'), chr(100) + '\x65' + chr(99) + '\157' + '\x64' + chr(0b1100101))('\x75' + chr(13181 - 13065) + chr(0b1010101 + 0o21) + '\x2d' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def ZZHWqS05uV0L(hXMPsSrOQzbh, Y2QfnnvVOo8E, iWMMrgbIGdWs, DrEeQNZC3DWw): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'(`\x83\x02w\xff\xf5N8\x0e{\x1a\x13\xf6\x94\x01\xc6\x15]K\x9f\xcf\xd0\xc6`\x1c<\xd0H2\xea\xc5\x80\xc8^\x85CL\xa5y~T\x8eVB\xef\xe0Bv\x005\x1a\x13\xf6\x9f\x0e\x89\x11]N\x92\xde'), chr(0b1100100) + chr(0b1100101) + '\143' + '\157' + chr(0b1100100) + '\x65')(chr(134 - 17) + '\164' + '\x66' + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(100) + '\145' + '\143' + '\x6f' + chr(0b101011 + 0o71) + '\145')(chr(0b1110101) + chr(116) + chr(102) + chr(1942 - 1897) + chr(0b100011 + 0o25)))(Y2QfnnvVOo8E, DrEeQNZC3DWw, iWMMrgbIGdWs)) if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'RN\xdaqi\xd5\xbcT\x1f0+"'), '\x64' + chr(0b1100101) + '\143' + chr(0b1100101 + 0o12) + chr(100) + chr(0b1100101))('\165' + '\x74' + chr(0b100011 + 0o103) + chr(45) + chr(0b101001 + 0o17))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'dM\xca}N\xec\xebN56/\x0f\x1e\xba\x81'), chr(0b1100100) + chr(0b110000 + 0o65) + '\x63' + chr(0b11011 + 0o124) + chr(0b110111 + 0o55) + '\x65')('\x75' + '\164' + '\x66' + chr(45) + chr(1021 - 965)))(iWMMrgbIGdWs) if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'RN\xdaqi\xd5\xbcT\x1f0+"'), chr(0b1001100 + 0o30) + chr(0b100101 + 0o100) + chr(5773 - 5674) + chr(111) + chr(100) + chr(101))(chr(1828 - 1711) + '\164' + chr(102) + '\055' + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'(~\x83\x02`\xe2\xf9K2\x07|\x1a\\\xa4\x81\x12\xcdEUB\xde\xc0\xc8\xc6o\x00~\xdfB'), chr(0b1011001 + 0o13) + chr(6786 - 6685) + chr(2676 - 2577) + '\157' + chr(100) + '\x65')(chr(11905 - 11788) + '\164' + '\x66' + chr(0b10111 + 0o26) + '\x38'), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(3300 - 3200) + '\145' + '\143' + chr(4980 - 4869) + chr(0b1100100) + chr(0b1100101))(chr(0b100111 + 0o116) + chr(0b1110100) + chr(0b1011001 + 0o15) + '\x2d' + '\070'))(iWMMrgbIGdWs)) return if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'RN\xdaqi\xd5\xbcT\x1f0+"'), chr(100) + '\x65' + chr(99) + '\157' + '\x64' + '\145')(chr(0b101111 + 0o106) + chr(0b1110100) + chr(10298 - 10196) + chr(0b101101) + '\070')): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'dM\xca}N\xec\xebN56/\x0f\x1e\xba\x81'), chr(100) + chr(0b11100 + 0o111) + chr(0b1100011) + chr(111) + '\x64' + chr(0b10011 + 0o122))(chr(0b1110101) + chr(116) + chr(102) + chr(786 - 741) + chr(0b110 + 0o62)))(DrEeQNZC3DWw) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'(~\x83\x02`\xe2\xf9K2\x07|\x1a\\\xa4\x81\x12\xcdEUB\xde\xc0\xc8\xc6o\x00~\xdfB'), chr(0b1100100) + chr(101) + chr(99) + chr(11453 - 11342) + '\x64' + '\145')('\x75' + '\x74' + chr(0b1011 + 0o133) + chr(1469 - 1424) + chr(0b10010 + 0o46)), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(111) + '\144' + '\x65')(chr(117) + chr(116) + chr(10204 - 10102) + chr(0b10111 + 0o26) + chr(56)))(DrEeQNZC3DWw)) return YxoLvfvnWKCJ = hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] Yq4hgSkVJXI8 = hXMPsSrOQzbh.WgtSJX0sIYpL[DrEeQNZC3DWw] yEONTdv1DFgv = iWMMrgbIGdWs[:-nzTpIcepk0o8(chr(48) + chr(111) + '\x31', 0o10)] for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'P\x1a\x97Hp\xe4\xc5\x12b$7\x1e'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(111) + chr(8532 - 8432) + '\x65')(chr(3178 - 3061) + chr(116) + chr(0b1100110) + '\x2d' + chr(56))): Yq4hgSkVJXI8.jpOn8DNZxbbx[hRTUxJgvuslu] = None roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'c[\xc1LW\xd2\xedI269\x0f\x1f\xbd\x82\x1a\xc5\t'), chr(0b1100100) + chr(101) + '\x63' + chr(0b1000101 + 0o52) + chr(3648 - 3548) + chr(0b110 + 0o137))(chr(4126 - 4009) + chr(116) + chr(102) + chr(45) + '\x38'))(Y2QfnnvVOo8E) if yEONTdv1DFgv not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'P\x1a\x97Hp\xe4\xc5\x12b$7\x1e'), chr(0b11 + 0o141) + '\x65' + '\x63' + '\157' + '\x64' + chr(0b111100 + 0o51))('\x75' + chr(12275 - 12159) + '\x66' + chr(45) + chr(281 - 225))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'(~\x83\x02z\xe2\xf9\x075\x085I\x08\xf6\x89\x16\xdb\x02Y\x0c\x9a\xda\xc1\x87;\x07n\xdcJ~\xe4\xd5\xce\xcf\x1f\x81]F\xe80k]\xc1\x02X\xf0\xacS7\x0b7\x0b'), '\144' + chr(4083 - 3982) + chr(99) + '\x6f' + '\144' + chr(0b1100101))('\x75' + '\164' + chr(473 - 371) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(5927 - 5827) + '\x65' + chr(0b1100011) + chr(111) + chr(4478 - 4378) + chr(7975 - 7874))(chr(117) + chr(0b1000010 + 0o62) + chr(0b111011 + 0o53) + chr(45) + chr(0b101 + 0o63)))(DrEeQNZC3DWw, iWMMrgbIGdWs)) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'%\t\x8e\x02z\xe2\xf9Uv\x12&N\x08\xb7\x86\x1f\xccEU_\xde\xd6\xdc\x95h\x08r\xd4\x07%\xe2\x88\x8d\xd4\x12\x96\\M'), '\x64' + chr(0b1011101 + 0o10) + chr(99) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(10188 - 10071) + chr(0b1110100) + chr(0b1010110 + 0o20) + chr(0b1 + 0o54) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(0b110110 + 0o56) + chr(101) + '\143' + '\157' + '\x64' + chr(0b11000 + 0o115))(chr(0b1110101) + chr(0b10101 + 0o137) + chr(2715 - 2613) + '\x2d' + '\070'))(DrEeQNZC3DWw, yEONTdv1DFgv)) hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ roI3spqORKae(Yq4hgSkVJXI8, roI3spqORKae(ES5oEprVxulp(b'c[\xc1LW\xd2\xedI269\x0f\x1f\xbd\x82\x1a\xc5\t'), chr(0b1100100) + '\x65' + chr(4334 - 4235) + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b110010 + 0o64) + '\055' + chr(56)))([yEONTdv1DFgv]) uceW_MaU05Sk = Yq4hgSkVJXI8.df.groupby(Yq4hgSkVJXI8.jpOn8DNZxbbx[yEONTdv1DFgv]) if not ftfygxgFas5X(uceW_MaU05Sk): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'(~\x83\x02`\xe2\xf9K2\x07|\x1a\\\xa6\x96\x1c\xd9\x04[M\x8a\xde\x95\x80i\x0eq\x93\\#\xbf\xdc\x81\x9b\x05\x9e'), chr(0b1100100) + chr(0b1100101) + '\143' + '\x6f' + chr(3891 - 3791) + chr(101))(chr(0b10011 + 0o142) + '\164' + '\146' + '\055' + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b't\x1a\x9did\xbe\xeaH\x076\x18$'), chr(100) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\x65')(chr(117) + '\164' + '\x66' + '\055' + chr(0b100110 + 0o22)))(DrEeQNZC3DWw, iWMMrgbIGdWs)) return YxoLvfvnWKCJ def h0klhChk4Vv6(F9lJ8RbIonqb, VuRTNmVdcYm1): qqHCejBNy7jf = F9lJ8RbIonqb[VuRTNmVdcYm1][F9lJ8RbIonqb[VuRTNmVdcYm1].notnull()].G3de2eWQaS0D() pGzhFqSmGo4I = [hRTUxJgvuslu.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'?'), '\144' + chr(0b101001 + 0o74) + chr(99) + chr(0b1101111) + chr(1148 - 1048) + '\x65')(chr(0b10000 + 0o145) + chr(116) + chr(0b1100110) + chr(45) + '\x38')) for hRTUxJgvuslu in qqHCejBNy7jf if hRTUxJgvuslu] kUn5H6vMhL5I = V3OlOVg98A85(nDF4gVNx0u9Q.G3de2eWQaS0D([IZ1I2J8X1CQz.capitalize() for PkJVWpA7b9v3 in pGzhFqSmGo4I for IZ1I2J8X1CQz in PkJVWpA7b9v3])) udVOCdsRPYtn = roI3spqORKae(ES5oEprVxulp(b'?'), chr(0b1011 + 0o131) + chr(2418 - 2317) + '\143' + '\x6f' + chr(100) + '\145')(chr(0b1001011 + 0o52) + chr(116) + chr(0b1100110) + '\x2d' + chr(0b111000)).Y4yM9BcfTCNq(kUn5H6vMhL5I) return udVOCdsRPYtn for hRTUxJgvuslu in Y2QfnnvVOo8E: _XdQFJpnzJor = uceW_MaU05Sk.apply(h0klhChk4Vv6, hRTUxJgvuslu) YxoLvfvnWKCJ.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'kL\xd9}'), chr(5248 - 5148) + chr(0b1100101) + chr(848 - 749) + chr(3745 - 3634) + chr(100) + '\x65')('\x75' + '\164' + chr(0b101 + 0o141) + '\x2d' + chr(0b111000)) + hRTUxJgvuslu] = _XdQFJpnzJor YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu], YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu], YxoLvfvnWKCJ.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'kL\xd9}'), '\x64' + '\145' + chr(99) + chr(111) + chr(0b11 + 0o141) + '\x65')(chr(6800 - 6683) + chr(0b1101111 + 0o5) + chr(102) + chr(45) + '\x38') + hRTUxJgvuslu]) roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'a[\xc1R'), '\144' + chr(0b1011110 + 0o7) + chr(0b1100011 + 0o0) + '\x6f' + chr(6997 - 6897) + chr(0b1100101))(chr(0b100 + 0o161) + chr(0b1110100) + '\146' + '\x2d' + chr(56)))([roI3spqORKae(ES5oEprVxulp(b'kL\xd9}'), chr(0b110000 + 0o64) + '\145' + '\x63' + chr(6894 - 6783) + '\x64' + chr(101))('\165' + '\x74' + chr(0b1100110) + chr(995 - 950) + '\x38') + hRTUxJgvuslu], axis=roI3spqORKae(ES5oEprVxulp(b'fF\xc2WN\xe3\xff'), chr(0b1011 + 0o131) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(4036 - 3936) + chr(101))(chr(117) + chr(116) + chr(0b110001 + 0o65) + chr(0b101101) + chr(1208 - 1152)), inplace=nzTpIcepk0o8('\x30' + '\x6f' + chr(49), 8)) hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_average_up
def propagate_average_up(self, cols=['lat', 'lon'], target_df_name='sites', source_df_name='samples'): """ Propagate average values from a lower table to a higher one. For example, propagate average lats/lons from samples to sites. Pre-existing values will not be overwritten. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame or None returns table with propagated data, or None if no propagation could be done """ # make sure target/source table are appropriate target_ind = self.ancestry.index(target_df_name) source_ind = self.ancestry.index(source_df_name) if target_ind - source_ind != 1: print('-W- propagate_average_up only works with tables that are spaced one apart, i.e. sites and samples.') print(' Source table must be lower in the hierarchy than the target table.') print(' You have provided "{}" as the target table and "{}" as the source table.'.format(target_df_name, source_df_name)) return None # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) if source_df_name not in self.tables: print("-W- Couldn't read in {} table".format(source_df_name)) return # get tables target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # step 1: make sure columns exist in target_df for col in cols: if col not in target_df.df.columns: target_df.df[col] = None # step 2: propagate target_df columns forward & back target_df.front_and_backfill(cols) # step 3: see if any column values are missing values = [not_null(val) for val in target_df.df[cols].values.ravel()] if all(values): print('-I- {} table already has {} filled column(s)'.format(target_df_name, cols)) self.tables[target_df_name] = target_df return target_df # step 4: make sure columns are in source table, also target name if target_name not in source_df.df.columns: print("-W- can't propagate from {} to {} table".format(source_df_name, target_df_name)) print(" Missing {} column in {} table".format(target_name, source_df_name)) self.tables[target_df_name] = target_df return target_df for col in cols: if col not in target_df.df.columns: target_df.df[col] = None # step 5: if needed, average from source table and apply to target table for col in cols: if col not in source_df.df.columns: source_df.df[col] = np.nan else: # make sure is numeric source_df.df[col] = pd.to_numeric(source_df.df[col], errors='coerce') grouped = source_df.df[cols + [target_name]].groupby(target_name) grouped = grouped[cols].apply(np.mean) for col in cols: target_df.df['new_' + col] = grouped[col] # use custom not_null mask = [not_null(val) for val in target_df.df[col]] target_df.df[col] = np.where(mask, #target_df.df[col].notnull(), target_df.df[col], target_df.df['new_' + col]) target_df.df.drop(['new_' + col], inplace=True, axis=1) # round column to 5 decimal points try: target_df.df[col] = target_df.df[col].astype(float) target_df.df = target_df.df.round({col: 5}) except ValueError: # if there are sneaky strings... pass self.tables[target_df_name] = target_df return target_df
python
def propagate_average_up(self, cols=['lat', 'lon'], target_df_name='sites', source_df_name='samples'): """ Propagate average values from a lower table to a higher one. For example, propagate average lats/lons from samples to sites. Pre-existing values will not be overwritten. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame or None returns table with propagated data, or None if no propagation could be done """ # make sure target/source table are appropriate target_ind = self.ancestry.index(target_df_name) source_ind = self.ancestry.index(source_df_name) if target_ind - source_ind != 1: print('-W- propagate_average_up only works with tables that are spaced one apart, i.e. sites and samples.') print(' Source table must be lower in the hierarchy than the target table.') print(' You have provided "{}" as the target table and "{}" as the source table.'.format(target_df_name, source_df_name)) return None # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) if source_df_name not in self.tables: print("-W- Couldn't read in {} table".format(source_df_name)) return # get tables target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # step 1: make sure columns exist in target_df for col in cols: if col not in target_df.df.columns: target_df.df[col] = None # step 2: propagate target_df columns forward & back target_df.front_and_backfill(cols) # step 3: see if any column values are missing values = [not_null(val) for val in target_df.df[cols].values.ravel()] if all(values): print('-I- {} table already has {} filled column(s)'.format(target_df_name, cols)) self.tables[target_df_name] = target_df return target_df # step 4: make sure columns are in source table, also target name if target_name not in source_df.df.columns: print("-W- can't propagate from {} to {} table".format(source_df_name, target_df_name)) print(" Missing {} column in {} table".format(target_name, source_df_name)) self.tables[target_df_name] = target_df return target_df for col in cols: if col not in target_df.df.columns: target_df.df[col] = None # step 5: if needed, average from source table and apply to target table for col in cols: if col not in source_df.df.columns: source_df.df[col] = np.nan else: # make sure is numeric source_df.df[col] = pd.to_numeric(source_df.df[col], errors='coerce') grouped = source_df.df[cols + [target_name]].groupby(target_name) grouped = grouped[cols].apply(np.mean) for col in cols: target_df.df['new_' + col] = grouped[col] # use custom not_null mask = [not_null(val) for val in target_df.df[col]] target_df.df[col] = np.where(mask, #target_df.df[col].notnull(), target_df.df[col], target_df.df['new_' + col]) target_df.df.drop(['new_' + col], inplace=True, axis=1) # round column to 5 decimal points try: target_df.df[col] = target_df.df[col].astype(float) target_df.df = target_df.df.round({col: 5}) except ValueError: # if there are sneaky strings... pass self.tables[target_df_name] = target_df return target_df
[ "def", "propagate_average_up", "(", "self", ",", "cols", "=", "[", "'lat'", ",", "'lon'", "]", ",", "target_df_name", "=", "'sites'", ",", "source_df_name", "=", "'samples'", ")", ":", "# make sure target/source table are appropriate", "target_ind", "=", "self", ".", "ancestry", ".", "index", "(", "target_df_name", ")", "source_ind", "=", "self", ".", "ancestry", ".", "index", "(", "source_df_name", ")", "if", "target_ind", "-", "source_ind", "!=", "1", ":", "print", "(", "'-W- propagate_average_up only works with tables that are spaced one apart, i.e. sites and samples.'", ")", "print", "(", "' Source table must be lower in the hierarchy than the target table.'", ")", "print", "(", "' You have provided \"{}\" as the target table and \"{}\" as the source table.'", ".", "format", "(", "target_df_name", ",", "source_df_name", ")", ")", "return", "None", "# make sure target table is read in", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "target_df_name", ")", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "target_df_name", ")", ")", "return", "# make sure source table is read in", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "source_df_name", ")", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "source_df_name", ")", ")", "return", "# get tables", "target_df", "=", "self", ".", "tables", "[", "target_df_name", "]", "source_df", "=", "self", ".", "tables", "[", "source_df_name", "]", "target_name", "=", "target_df_name", "[", ":", "-", "1", "]", "# step 1: make sure columns exist in target_df", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "target_df", ".", "df", ".", "columns", ":", "target_df", ".", "df", "[", "col", "]", "=", "None", "# step 2: propagate target_df columns forward & back", "target_df", ".", "front_and_backfill", "(", "cols", ")", "# step 3: see if any column values are missing", "values", "=", "[", "not_null", "(", "val", ")", "for", "val", "in", "target_df", ".", "df", "[", "cols", "]", ".", "values", ".", "ravel", "(", ")", "]", "if", "all", "(", "values", ")", ":", "print", "(", "'-I- {} table already has {} filled column(s)'", ".", "format", "(", "target_df_name", ",", "cols", ")", ")", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df", "# step 4: make sure columns are in source table, also target name", "if", "target_name", "not", "in", "source_df", ".", "df", ".", "columns", ":", "print", "(", "\"-W- can't propagate from {} to {} table\"", ".", "format", "(", "source_df_name", ",", "target_df_name", ")", ")", "print", "(", "\" Missing {} column in {} table\"", ".", "format", "(", "target_name", ",", "source_df_name", ")", ")", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "target_df", ".", "df", ".", "columns", ":", "target_df", ".", "df", "[", "col", "]", "=", "None", "# step 5: if needed, average from source table and apply to target table", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "source_df", ".", "df", ".", "columns", ":", "source_df", ".", "df", "[", "col", "]", "=", "np", ".", "nan", "else", ":", "# make sure is numeric", "source_df", ".", "df", "[", "col", "]", "=", "pd", ".", "to_numeric", "(", "source_df", ".", "df", "[", "col", "]", ",", "errors", "=", "'coerce'", ")", "grouped", "=", "source_df", ".", "df", "[", "cols", "+", "[", "target_name", "]", "]", ".", "groupby", "(", "target_name", ")", "grouped", "=", "grouped", "[", "cols", "]", ".", "apply", "(", "np", ".", "mean", ")", "for", "col", "in", "cols", ":", "target_df", ".", "df", "[", "'new_'", "+", "col", "]", "=", "grouped", "[", "col", "]", "# use custom not_null", "mask", "=", "[", "not_null", "(", "val", ")", "for", "val", "in", "target_df", ".", "df", "[", "col", "]", "]", "target_df", ".", "df", "[", "col", "]", "=", "np", ".", "where", "(", "mask", ",", "#target_df.df[col].notnull(),", "target_df", ".", "df", "[", "col", "]", ",", "target_df", ".", "df", "[", "'new_'", "+", "col", "]", ")", "target_df", ".", "df", ".", "drop", "(", "[", "'new_'", "+", "col", "]", ",", "inplace", "=", "True", ",", "axis", "=", "1", ")", "# round column to 5 decimal points", "try", ":", "target_df", ".", "df", "[", "col", "]", "=", "target_df", ".", "df", "[", "col", "]", ".", "astype", "(", "float", ")", "target_df", ".", "df", "=", "target_df", ".", "df", ".", "round", "(", "{", "col", ":", "5", "}", ")", "except", "ValueError", ":", "# if there are sneaky strings...", "pass", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df" ]
Propagate average values from a lower table to a higher one. For example, propagate average lats/lons from samples to sites. Pre-existing values will not be overwritten. Parameters ---------- cols : list-like list of columns to propagate target_df_name : str name of table to propagate values into source_df_name: name of table to propagate values from Returns --------- target_df : MagicDataFrame or None returns table with propagated data, or None if no propagation could be done
[ "Propagate", "average", "values", "from", "a", "lower", "table", "to", "a", "higher", "one", ".", "For", "example", "propagate", "average", "lats", "/", "lons", "from", "samples", "to", "sites", ".", "Pre", "-", "existing", "values", "will", "not", "be", "overwritten", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L849-L940
train
Propagate average values from a lower table to a higher one.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + '\x6f' + chr(0b1111 + 0o42) + chr(2877 - 2823), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + '\062' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\x31' + '\061' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1101 + 0o46) + chr(0b110011) + chr(0b1011 + 0o51), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b0 + 0o63) + '\x35' + '\x37', 37895 - 37887), nzTpIcepk0o8('\060' + '\x6f' + chr(1386 - 1335) + chr(0b110010), 33102 - 33094), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b110110) + chr(1509 - 1457), 20713 - 20705), nzTpIcepk0o8(chr(0b110000) + chr(10827 - 10716) + '\062' + chr(956 - 905) + chr(2123 - 2072), 0b1000), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(1910 - 1860), 0o10), nzTpIcepk0o8('\060' + chr(0b1010 + 0o145) + chr(2290 - 2241) + chr(0b110100) + chr(53), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(1829 - 1780) + chr(159 - 110) + chr(0b100111 + 0o13), 0b1000), nzTpIcepk0o8('\x30' + chr(541 - 430) + chr(991 - 941) + '\x31' + chr(1100 - 1052), ord("\x08")), nzTpIcepk0o8(chr(1534 - 1486) + chr(0b101010 + 0o105) + chr(1620 - 1571) + chr(657 - 602) + chr(0b101011 + 0o6), 0o10), nzTpIcepk0o8(chr(236 - 188) + '\157' + '\062' + chr(53) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110101) + chr(2104 - 2055), 0o10), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b11 + 0o154) + chr(1292 - 1243) + chr(1183 - 1129), 8), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2140 - 2090) + chr(0b110111) + '\066', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(50) + chr(0b1 + 0o60) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100110 + 0o11) + chr(0b110011) + chr(1871 - 1819), 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\x6f' + chr(0b100011 + 0o16) + '\060' + '\060', 0o10), nzTpIcepk0o8(chr(1866 - 1818) + '\x6f' + chr(0b100101 + 0o14) + chr(1168 - 1117) + chr(1878 - 1826), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + chr(205 - 151) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10101 + 0o132) + chr(0b110 + 0o55) + chr(49) + chr(1689 - 1635), 30826 - 30818), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(821 - 773) + '\157' + '\x33' + chr(1188 - 1140), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2190 - 2140) + '\x36' + chr(0b110011), 0o10), nzTpIcepk0o8('\060' + chr(8570 - 8459) + chr(50) + chr(54) + '\065', 58654 - 58646), nzTpIcepk0o8(chr(48) + chr(868 - 757) + '\062' + chr(0b11100 + 0o27) + chr(52), 0o10), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b100 + 0o57) + '\x32' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(1482 - 1429) + '\x34', 0o10), nzTpIcepk0o8(chr(1166 - 1118) + '\157' + chr(55) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b110100 + 0o3) + chr(0b100111 + 0o12), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(5077 - 4966) + chr(0b1111 + 0o42) + '\x37' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b101111 + 0o3) + chr(667 - 616), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\061' + chr(48) + chr(1709 - 1660), 57949 - 57941), nzTpIcepk0o8(chr(933 - 885) + chr(0b1101111) + chr(51) + chr(1107 - 1056) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(11593 - 11482) + chr(0b101010 + 0o12) + chr(0b11010 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(111) + chr(2075 - 2026) + '\061' + chr(531 - 478), 8), nzTpIcepk0o8('\x30' + '\157' + chr(1782 - 1732) + chr(0b11101 + 0o23), 0b1000), nzTpIcepk0o8('\x30' + chr(7718 - 7607) + chr(0b101001 + 0o11) + '\061' + '\065', ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b' '), chr(0b1100100) + chr(0b10000 + 0o125) + chr(0b1100011) + chr(4095 - 3984) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b101110 + 0o70) + chr(0b100001 + 0o14) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def QEpQHfa7koy1(hXMPsSrOQzbh, Y2QfnnvVOo8E=[roI3spqORKae(ES5oEprVxulp(b'bw9'), chr(0b1100100) + '\x65' + '\143' + '\157' + '\x64' + chr(7731 - 7630))(chr(117) + chr(7829 - 7713) + chr(102) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'by#'), chr(100) + chr(9564 - 9463) + chr(5829 - 5730) + '\157' + chr(4032 - 3932) + chr(1669 - 1568))('\165' + '\164' + chr(0b1100110) + chr(45) + chr(1317 - 1261))], iWMMrgbIGdWs=roI3spqORKae(ES5oEprVxulp(b'}\x7f9\xb9\x9c'), '\x64' + chr(101) + chr(99) + chr(111) + chr(100) + chr(0b11100 + 0o111))(chr(11423 - 11306) + '\164' + '\146' + chr(332 - 287) + chr(2644 - 2588)), DrEeQNZC3DWw=roI3spqORKae(ES5oEprVxulp(b'}w \xac\x83\x7f\x07'), '\144' + chr(0b1001001 + 0o34) + chr(99) + '\x6f' + chr(0b1000010 + 0o42) + '\x65')(chr(0b100011 + 0o122) + '\164' + chr(102) + chr(0b101101) + chr(56))): O9QQFw9nzjBr = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(iWMMrgbIGdWs) sJtdcTCQYHK6 = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(DrEeQNZC3DWw) if O9QQFw9nzjBr - sJtdcTCQYHK6 != nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1997 - 1948), ord("\x08")): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"#A`\xfc\x9fh\x1b\xebc\x02+\xfc\x1c\xf3Hx\xdb\xfb}'9\xad\xbbp8\xdc\xdb\xf0\xaa\x0cH\x96\x0ex2\xfaU$d\xe5.b,\xbe\x83\x7f\x07\xbbv\r+\xfcY\xcd[k\x9e\xfal!?\x97\xaa w\xdd\xd0\xbc\xb2\\^\x8b\x08?a\xb3\x0c(>\xad}\x7f9\xb9\x9c:\x15\xf5fE9\xe9\x14\xdcEk\xcd\xa7"), chr(0b1100100) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1011101 + 0o7) + chr(0b1100101))(chr(0b1110 + 0o147) + chr(116) + chr(0b1100110) + '\055' + chr(1504 - 1448))) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'.6m\xfc\xbcu\x01\xe9a\x00j\xfc\x18\xceEk\x9e\xe4i3(\xd2\xace8\xdf\xda\xeb\xb6^\x1f\x90\x1235\xb2Gmx\xe4kd,\xae\x8cr\r\xbbv\r+\xe6Y\xd8Ak\x9e\xfd}2;\x97\xba l\xd2\xd7\xf0\xb6\x02'), chr(100) + chr(5086 - 4985) + chr(99) + '\157' + chr(0b101000 + 0o74) + chr(0b1010110 + 0o17))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(1101 - 1056) + chr(0b111000 + 0o0))) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'.6m\xfc\xb6u\x01\xbbj\x04<\xedY\xdc[a\xc8\xe0x%8\xd2\xec{e\x91\x95\xfd\xa0\x0cK\x91\x1935\xbbP*u\xf9.b,\xbe\x83\x7fT\xfal\x01j\xaa\x02\xd1\x0b.\xdf\xfa<44\x97\xeesw\xc6\xc7\xff\xb6\x0cK\x98\x1e\x7f$\xf4'), chr(100) + chr(7629 - 7528) + chr(0b1100011) + chr(111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(0b110010 + 0o62) + chr(0b110100 + 0o61) + chr(8630 - 8531) + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(5244 - 5127) + '\x74' + chr(0b1100110) + chr(0b11101 + 0o20) + chr(0b100 + 0o64)))(iWMMrgbIGdWs, DrEeQNZC3DWw)) return None if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Yq9\x8f\xa5BD\xe8K<:\xc4'), '\144' + '\x65' + chr(5600 - 5501) + chr(0b1000100 + 0o53) + chr(0b1100100) + '\x65')(chr(117) + chr(0b1110100) + chr(9342 - 9240) + chr(1565 - 1520) + '\x38')): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'or)\x83\x82{\x13\xf2a:>\xe9\x1b\xc0L'), chr(9390 - 9290) + chr(0b1100101) + '\x63' + '\157' + '\144' + chr(0b111110 + 0o47))('\x75' + '\x74' + chr(0b11011 + 0o113) + chr(0b101101) + '\070'))(iWMMrgbIGdWs) if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Yq9\x8f\xa5BD\xe8K<:\xc4'), chr(0b111100 + 0o50) + '\x65' + chr(0b101100 + 0o67) + '\x6f' + chr(0b110110 + 0o56) + '\x65')(chr(5490 - 5373) + '\164' + '\146' + chr(986 - 941) + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'#A`\xfc\xacu\x01\xf7f\x0bm\xfcY\xdeLo\xda\xa9u.|\x89\xb3 l\xd2\xd7\xf0\xb6'), chr(100) + chr(0b11001 + 0o114) + chr(0b1100011) + chr(10739 - 10628) + chr(2754 - 2654) + '\145')(chr(117) + chr(0b1010 + 0o152) + chr(6362 - 6260) + chr(0b11000 + 0o25) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(0b1100100) + '\x65' + '\x63' + '\x6f' + '\x64' + chr(101))(chr(0b1110101) + '\164' + chr(0b111000 + 0o56) + '\055' + chr(0b10110 + 0o42)))(iWMMrgbIGdWs)) return if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Yq9\x8f\xa5BD\xe8K<:\xc4'), chr(655 - 555) + chr(101) + '\143' + chr(0b11110 + 0o121) + chr(100) + '\x65')(chr(6640 - 6523) + chr(7211 - 7095) + chr(0b1100110) + chr(462 - 417) + chr(235 - 179))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'or)\x83\x82{\x13\xf2a:>\xe9\x1b\xc0L'), '\144' + chr(0b1100101) + chr(0b1100011) + '\157' + chr(100) + '\x65')('\165' + chr(0b10000 + 0o144) + chr(2814 - 2712) + '\055' + chr(56)))(DrEeQNZC3DWw) if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Yq9\x8f\xa5BD\xe8K<:\xc4'), '\144' + '\145' + '\143' + '\157' + '\x64' + chr(799 - 698))('\x75' + chr(0b1110100) + chr(0b1100110) + chr(45) + '\x38')): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'#A`\xfc\xacu\x01\xf7f\x0bm\xfcY\xdeLo\xda\xa9u.|\x89\xb3 l\xd2\xd7\xf0\xb6'), chr(0b111010 + 0o52) + chr(0b1100101) + chr(0b1100011) + chr(0b101101 + 0o102) + chr(0b1100100) + chr(0b1100101))(chr(0b1101010 + 0o13) + chr(0b1001 + 0o153) + '\x66' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(0b11000 + 0o114) + chr(264 - 163) + '\143' + chr(0b1101111) + chr(9166 - 9066) + '\x65')('\x75' + chr(12174 - 12058) + '\x66' + '\055' + '\070'))(DrEeQNZC3DWw)) return YxoLvfvnWKCJ = hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] Yq4hgSkVJXI8 = hXMPsSrOQzbh.WgtSJX0sIYpL[DrEeQNZC3DWw] yEONTdv1DFgv = iWMMrgbIGdWs[:-nzTpIcepk0o8(chr(48) + '\x6f' + '\061', 8)] for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'[%t\xb6\xbcs=\xae6(&\xf8'), chr(100) + chr(101) + chr(3535 - 3436) + '\157' + chr(495 - 395) + '\145')(chr(117) + '\x74' + chr(0b1100110) + '\055' + '\x38')): YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu] = None roI3spqORKae(YxoLvfvnWKCJ, roI3spqORKae(ES5oEprVxulp(b'hd"\xb2\x9bE\x15\xf5f:(\xe9\x1a\xc7Og\xd2\xe5'), chr(0b1111 + 0o125) + chr(10127 - 10026) + '\143' + chr(111) + chr(0b1100100) + '\145')(chr(0b1001000 + 0o55) + chr(4901 - 4785) + chr(2820 - 2718) + '\055' + chr(56)))(Y2QfnnvVOo8E) CsodZJH6x9Tx = [OPdnCSWnXMKM(pXwvT17vr09s) for pXwvT17vr09s in YxoLvfvnWKCJ.df[Y2QfnnvVOo8E].values.Pgr26vSVdT29()] if qX60lO1lgHA5(CsodZJH6x9Tx): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'#_`\xfc\x94gT\xefc\x07&\xedY\xcdE|\xdb\xe8x9|\x9a\xafs8\xc8\xc8\xbc\xb5ES\x95\x19wa\xb9M!e\xe0`>>\xf5'), '\x64' + '\x65' + chr(8433 - 8334) + '\157' + chr(100) + '\145')('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(100) + chr(0b111101 + 0o50) + chr(99) + chr(0b1101110 + 0o1) + '\x64' + chr(101))('\x75' + chr(0b1 + 0o163) + chr(8450 - 8348) + '\055' + '\070'))(iWMMrgbIGdWs, Y2QfnnvVOo8E)) hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ if yEONTdv1DFgv not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'[%t\xb6\xbcs=\xae6(&\xf8'), '\144' + '\x65' + chr(6870 - 6771) + chr(111) + chr(0b10011 + 0o121) + chr(101))(chr(0b1110001 + 0o4) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38')): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'#A`\xfc\x8c{\x1a\xbcvE:\xfa\x16\xdcHi\xdf\xfdy`:\x80\xa1m8\xc8\xc8\xbc\xa7C\x1f\x82\x0135\xbb@!u'), '\144' + chr(0b100010 + 0o103) + chr(0b100101 + 0o76) + '\x6f' + chr(100) + chr(101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(100) + chr(7095 - 6994) + '\143' + chr(111) + '\144' + chr(101))(chr(0b1001000 + 0o55) + '\164' + chr(0b1100110) + chr(0b101101) + chr(56)))(DrEeQNZC3DWw, iWMMrgbIGdWs)) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'.6m\xfc\xa2s\x07\xe8k\x0b-\xa8\x02\xd1\tm\xd1\xe5i-2\xd2\xa7n8\xc8\xc8\xbc\xa7M]\x95\x19'), chr(7921 - 7821) + '\145' + chr(0b1100011) + '\157' + chr(8767 - 8667) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(0b1100 + 0o41) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\x7f%~\x97\xa8)\x12\xf4S:\t\xc2'), chr(9115 - 9015) + chr(0b1100101) + chr(0b100010 + 0o101) + '\157' + '\144' + chr(101))('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + chr(56)))(yEONTdv1DFgv, DrEeQNZC3DWw)) hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'[%t\xb6\xbcs=\xae6(&\xf8'), chr(100) + '\145' + chr(99) + chr(4076 - 3965) + chr(100) + '\145')(chr(117) + '\164' + chr(0b100111 + 0o77) + chr(770 - 725) + '\x38')): YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu] = None for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'[%t\xb6\xbcs=\xae6(&\xf8'), '\144' + chr(9848 - 9747) + '\x63' + chr(1888 - 1777) + chr(0b1100100) + chr(0b10011 + 0o122))(chr(117) + chr(116) + chr(1378 - 1276) + chr(45) + chr(0b101011 + 0o15))): Yq4hgSkVJXI8.jpOn8DNZxbbx[hRTUxJgvuslu] = nDF4gVNx0u9Q.nan else: Yq4hgSkVJXI8.jpOn8DNZxbbx[hRTUxJgvuslu] = HLKt4sa1j9hm.to_numeric(Yq4hgSkVJXI8.jpOn8DNZxbbx[hRTUxJgvuslu], errors=roI3spqORKae(ES5oEprVxulp(b'my(\xae\x8c\x7f'), chr(0b11011 + 0o111) + chr(101) + '\143' + chr(0b1101111) + '\x64' + chr(0b1100101))(chr(117) + '\x74' + '\146' + chr(0b11111 + 0o16) + chr(0b101011 + 0o15))) uceW_MaU05Sk = Yq4hgSkVJXI8.df[Y2QfnnvVOo8E + [yEONTdv1DFgv]].groupby(yEONTdv1DFgv) uceW_MaU05Sk = uceW_MaU05Sk[Y2QfnnvVOo8E].apply(nDF4gVNx0u9Q.JE1frtxECu3x) for hRTUxJgvuslu in Y2QfnnvVOo8E: YxoLvfvnWKCJ.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'`s:\x83'), chr(0b110101 + 0o57) + chr(8161 - 8060) + '\x63' + chr(111) + chr(100) + chr(0b11111 + 0o106))(chr(3116 - 2999) + chr(1783 - 1667) + chr(0b1100110) + '\055' + chr(56)) + hRTUxJgvuslu] = uceW_MaU05Sk[hRTUxJgvuslu] BBM8dxm7YWge = [OPdnCSWnXMKM(pXwvT17vr09s) for pXwvT17vr09s in YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu]] YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(BBM8dxm7YWge, YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu], YxoLvfvnWKCJ.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'`s:\x83'), '\144' + chr(0b0 + 0o145) + chr(0b1100011) + chr(0b1011011 + 0o24) + chr(100) + chr(101))('\x75' + '\164' + chr(0b10101 + 0o121) + chr(45) + '\070') + hRTUxJgvuslu]) roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'jd"\xac'), chr(100) + '\145' + '\x63' + chr(0b1001110 + 0o41) + '\x64' + '\x65')('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(0b10000 + 0o50)))([roI3spqORKae(ES5oEprVxulp(b'`s:\x83'), '\x64' + chr(0b1100101) + chr(0b1100011) + chr(0b0 + 0o157) + chr(0b101011 + 0o71) + chr(8975 - 8874))(chr(117) + chr(3311 - 3195) + '\x66' + '\055' + chr(0b111000)) + hRTUxJgvuslu], inplace=nzTpIcepk0o8(chr(0b11110 + 0o22) + '\157' + chr(2169 - 2120), 8), axis=nzTpIcepk0o8(chr(48) + chr(11375 - 11264) + chr(49), 8)) try: YxoLvfvnWKCJ.jpOn8DNZxbbx[hRTUxJgvuslu] = YxoLvfvnWKCJ.df[hRTUxJgvuslu].xqAChpcBkssb(jLW6pRf2DSRk) YxoLvfvnWKCJ.jpOn8DNZxbbx = YxoLvfvnWKCJ.df.round({hRTUxJgvuslu: nzTpIcepk0o8(chr(1359 - 1311) + chr(0b10001 + 0o136) + '\x35', 29961 - 29953)}) except WbNHlDKpyPtQ: pass hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_min_max_up
def propagate_min_max_up(self, cols=['age'], target_df_name='locations', source_df_name='sites', min_suffix='low', max_suffix='high'): """ Take minimum/maximum values for a set of columns in source_df, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate, default ['age'] target_df_name : str name of table to propagate values into, default 'locations' source_df_name: name of table to propagate values from, default 'sites' min_suffix : str suffix for minimum value, default 'low' max_suffix : str suffix for maximum value, default 'high' Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values """ # make sure target/source table are appropriate target_ind = self.ancestry.index(target_df_name) source_ind = self.ancestry.index(source_df_name) if target_ind - source_ind != 1: print('-W- propagate_min_max_up only works with tables that are spaced one apart, i.e. sites and samples.') print(' Source table must be lower in the hierarchy than the target table.') print(' You have provided "{}" as the target table and "{}" as the source table.'.format(target_df_name, source_df_name)) return None # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) if source_df_name not in self.tables: print("-W- Couldn't read in {} table".format(source_df_name)) return # get tables target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # find and propagate min/max for each col in cols for col in cols: if col not in source_df.df.columns: print('-W- {} table is missing "{}" column, skipping'.format(source_df_name, col)) continue min_col = col + "_" + min_suffix max_col = col + "_" + max_suffix # add min/max cols to target_df if missing if min_col not in target_df.df.columns: target_df.df[min_col] = None if max_col not in target_df.df.columns: target_df.df[max_col] = None # get min/max from source if target_name not in source_df.df.columns: print('-W- {} table missing {} column, cannot propagate age info'.format(target_name, source_df_name)) return # make sure source is appropriately filled source = source_df.front_and_backfill([col], inplace=False) # add target_name back into front/backfilled source source[target_name] = source_df.df[target_name] grouped = source[[col, target_name]].groupby(target_name) if len(grouped): minimum, maximum = grouped.min(), grouped.max() minimum = minimum.reindex(target_df.df.index) maximum = maximum.reindex(target_df.df.index) # update target_df without overwriting existing values cond_min = target_df.df[min_col].apply(not_null) cond_max = target_df.df[max_col].apply(not_null) # target_df.df[min_col] = np.where(cond_min, target_df.df[min_col], minimum[col]) target_df.df[max_col] = np.where(cond_max, target_df.df[max_col], maximum[col]) # update contribution self.tables[target_df_name] = target_df return target_df
python
def propagate_min_max_up(self, cols=['age'], target_df_name='locations', source_df_name='sites', min_suffix='low', max_suffix='high'): """ Take minimum/maximum values for a set of columns in source_df, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate, default ['age'] target_df_name : str name of table to propagate values into, default 'locations' source_df_name: name of table to propagate values from, default 'sites' min_suffix : str suffix for minimum value, default 'low' max_suffix : str suffix for maximum value, default 'high' Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values """ # make sure target/source table are appropriate target_ind = self.ancestry.index(target_df_name) source_ind = self.ancestry.index(source_df_name) if target_ind - source_ind != 1: print('-W- propagate_min_max_up only works with tables that are spaced one apart, i.e. sites and samples.') print(' Source table must be lower in the hierarchy than the target table.') print(' You have provided "{}" as the target table and "{}" as the source table.'.format(target_df_name, source_df_name)) return None # make sure target table is read in if target_df_name not in self.tables: self.add_magic_table(target_df_name) if target_df_name not in self.tables: print("-W- Couldn't read in {} table".format(target_df_name)) return # make sure source table is read in if source_df_name not in self.tables: self.add_magic_table(source_df_name) if source_df_name not in self.tables: print("-W- Couldn't read in {} table".format(source_df_name)) return # get tables target_df = self.tables[target_df_name] source_df = self.tables[source_df_name] target_name = target_df_name[:-1] # find and propagate min/max for each col in cols for col in cols: if col not in source_df.df.columns: print('-W- {} table is missing "{}" column, skipping'.format(source_df_name, col)) continue min_col = col + "_" + min_suffix max_col = col + "_" + max_suffix # add min/max cols to target_df if missing if min_col not in target_df.df.columns: target_df.df[min_col] = None if max_col not in target_df.df.columns: target_df.df[max_col] = None # get min/max from source if target_name not in source_df.df.columns: print('-W- {} table missing {} column, cannot propagate age info'.format(target_name, source_df_name)) return # make sure source is appropriately filled source = source_df.front_and_backfill([col], inplace=False) # add target_name back into front/backfilled source source[target_name] = source_df.df[target_name] grouped = source[[col, target_name]].groupby(target_name) if len(grouped): minimum, maximum = grouped.min(), grouped.max() minimum = minimum.reindex(target_df.df.index) maximum = maximum.reindex(target_df.df.index) # update target_df without overwriting existing values cond_min = target_df.df[min_col].apply(not_null) cond_max = target_df.df[max_col].apply(not_null) # target_df.df[min_col] = np.where(cond_min, target_df.df[min_col], minimum[col]) target_df.df[max_col] = np.where(cond_max, target_df.df[max_col], maximum[col]) # update contribution self.tables[target_df_name] = target_df return target_df
[ "def", "propagate_min_max_up", "(", "self", ",", "cols", "=", "[", "'age'", "]", ",", "target_df_name", "=", "'locations'", ",", "source_df_name", "=", "'sites'", ",", "min_suffix", "=", "'low'", ",", "max_suffix", "=", "'high'", ")", ":", "# make sure target/source table are appropriate", "target_ind", "=", "self", ".", "ancestry", ".", "index", "(", "target_df_name", ")", "source_ind", "=", "self", ".", "ancestry", ".", "index", "(", "source_df_name", ")", "if", "target_ind", "-", "source_ind", "!=", "1", ":", "print", "(", "'-W- propagate_min_max_up only works with tables that are spaced one apart, i.e. sites and samples.'", ")", "print", "(", "' Source table must be lower in the hierarchy than the target table.'", ")", "print", "(", "' You have provided \"{}\" as the target table and \"{}\" as the source table.'", ".", "format", "(", "target_df_name", ",", "source_df_name", ")", ")", "return", "None", "# make sure target table is read in", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "target_df_name", ")", "if", "target_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "target_df_name", ")", ")", "return", "# make sure source table is read in", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "self", ".", "add_magic_table", "(", "source_df_name", ")", "if", "source_df_name", "not", "in", "self", ".", "tables", ":", "print", "(", "\"-W- Couldn't read in {} table\"", ".", "format", "(", "source_df_name", ")", ")", "return", "# get tables", "target_df", "=", "self", ".", "tables", "[", "target_df_name", "]", "source_df", "=", "self", ".", "tables", "[", "source_df_name", "]", "target_name", "=", "target_df_name", "[", ":", "-", "1", "]", "# find and propagate min/max for each col in cols", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "source_df", ".", "df", ".", "columns", ":", "print", "(", "'-W- {} table is missing \"{}\" column, skipping'", ".", "format", "(", "source_df_name", ",", "col", ")", ")", "continue", "min_col", "=", "col", "+", "\"_\"", "+", "min_suffix", "max_col", "=", "col", "+", "\"_\"", "+", "max_suffix", "# add min/max cols to target_df if missing", "if", "min_col", "not", "in", "target_df", ".", "df", ".", "columns", ":", "target_df", ".", "df", "[", "min_col", "]", "=", "None", "if", "max_col", "not", "in", "target_df", ".", "df", ".", "columns", ":", "target_df", ".", "df", "[", "max_col", "]", "=", "None", "# get min/max from source", "if", "target_name", "not", "in", "source_df", ".", "df", ".", "columns", ":", "print", "(", "'-W- {} table missing {} column, cannot propagate age info'", ".", "format", "(", "target_name", ",", "source_df_name", ")", ")", "return", "# make sure source is appropriately filled", "source", "=", "source_df", ".", "front_and_backfill", "(", "[", "col", "]", ",", "inplace", "=", "False", ")", "# add target_name back into front/backfilled source", "source", "[", "target_name", "]", "=", "source_df", ".", "df", "[", "target_name", "]", "grouped", "=", "source", "[", "[", "col", ",", "target_name", "]", "]", ".", "groupby", "(", "target_name", ")", "if", "len", "(", "grouped", ")", ":", "minimum", ",", "maximum", "=", "grouped", ".", "min", "(", ")", ",", "grouped", ".", "max", "(", ")", "minimum", "=", "minimum", ".", "reindex", "(", "target_df", ".", "df", ".", "index", ")", "maximum", "=", "maximum", ".", "reindex", "(", "target_df", ".", "df", ".", "index", ")", "# update target_df without overwriting existing values", "cond_min", "=", "target_df", ".", "df", "[", "min_col", "]", ".", "apply", "(", "not_null", ")", "cond_max", "=", "target_df", ".", "df", "[", "max_col", "]", ".", "apply", "(", "not_null", ")", "#", "target_df", ".", "df", "[", "min_col", "]", "=", "np", ".", "where", "(", "cond_min", ",", "target_df", ".", "df", "[", "min_col", "]", ",", "minimum", "[", "col", "]", ")", "target_df", ".", "df", "[", "max_col", "]", "=", "np", ".", "where", "(", "cond_max", ",", "target_df", ".", "df", "[", "max_col", "]", ",", "maximum", "[", "col", "]", ")", "# update contribution", "self", ".", "tables", "[", "target_df_name", "]", "=", "target_df", "return", "target_df" ]
Take minimum/maximum values for a set of columns in source_df, and apply them to the target table. This method won't overwrite values in the target table, it will only supply values where they are missing. Parameters ---------- cols : list-like list of columns to propagate, default ['age'] target_df_name : str name of table to propagate values into, default 'locations' source_df_name: name of table to propagate values from, default 'sites' min_suffix : str suffix for minimum value, default 'low' max_suffix : str suffix for maximum value, default 'high' Returns --------- target_df : MagicDataFrame updated MagicDataFrame with propagated values
[ "Take", "minimum", "/", "maximum", "values", "for", "a", "set", "of", "columns", "in", "source_df", "and", "apply", "them", "to", "the", "target", "table", ".", "This", "method", "won", "t", "overwrite", "values", "in", "the", "target", "table", "it", "will", "only", "supply", "values", "where", "they", "are", "missing", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L942-L1032
train
Propagate minimum and maximum values into a target table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2030 - 1982) + '\x6f' + '\062' + '\067' + '\x33', 0o10), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + chr(0b110011) + '\062' + chr(0b10111 + 0o35), 0o10), nzTpIcepk0o8(chr(464 - 416) + chr(111) + chr(50) + chr(0b100110 + 0o20) + '\060', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1000100 + 0o53) + chr(1106 - 1056) + chr(2439 - 2389) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1057 - 1009) + '\x6f' + chr(0b11000 + 0o34) + '\x37', 16528 - 16520), nzTpIcepk0o8(chr(793 - 745) + chr(0b1001110 + 0o41) + '\061' + chr(0b110000 + 0o1) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101101 + 0o2) + chr(49) + '\061' + '\065', 8812 - 8804), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1019 - 970) + chr(0b10111 + 0o37) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(55) + chr(0b110010 + 0o1), 18991 - 18983), nzTpIcepk0o8('\x30' + chr(111) + '\064' + '\066', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b11110 + 0o24) + chr(0b110101) + chr(2071 - 2018), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(9227 - 9116) + chr(0b110010) + chr(0b110000) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(54) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10010 + 0o40) + chr(0b110001 + 0o1) + chr(2202 - 2154), 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b1001 + 0o51) + chr(52) + chr(0b1001 + 0o54), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\x36' + chr(0b101010 + 0o13), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10100 + 0o37) + chr(0b10011 + 0o44) + chr(0b10001 + 0o40), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(472 - 423) + chr(2237 - 2188), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(49) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b110001 + 0o0) + chr(1593 - 1540) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10001 + 0o136) + chr(0b110011) + chr(1139 - 1091) + chr(1729 - 1678), 36232 - 36224), nzTpIcepk0o8(chr(2198 - 2150) + chr(111) + '\061' + chr(50) + chr(0b101101 + 0o12), 11385 - 11377), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(9924 - 9813) + chr(0b101111 + 0o3) + chr(0b110110) + chr(1856 - 1803), 0o10), nzTpIcepk0o8(chr(1737 - 1689) + chr(0b1010000 + 0o37) + chr(184 - 133) + '\x36' + chr(1096 - 1048), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1001000 + 0o47) + chr(0b110001) + chr(1862 - 1813) + chr(55), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110001) + chr(0b10 + 0o61), 18538 - 18530), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + chr(49) + '\x32', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(149 - 98) + chr(1864 - 1810) + chr(0b110101), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b101110 + 0o5) + '\x30' + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1691 - 1642) + chr(0b110110) + chr(49), 41859 - 41851), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(51) + '\064', 0o10), nzTpIcepk0o8(chr(2239 - 2191) + chr(111) + chr(441 - 390) + chr(52) + chr(0b100001 + 0o25), 0b1000), nzTpIcepk0o8(chr(48) + chr(308 - 197) + chr(49) + chr(0b110110) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11177 - 11066) + chr(50) + '\060' + chr(50), 8), nzTpIcepk0o8(chr(913 - 865) + '\x6f' + chr(213 - 164) + chr(0b1000 + 0o53) + chr(0b110000 + 0o6), ord("\x08")), nzTpIcepk0o8(chr(1280 - 1232) + chr(111) + chr(0b100 + 0o57) + chr(2772 - 2717) + chr(54), 32327 - 32319), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(1064 - 1015) + chr(54), 31576 - 31568), nzTpIcepk0o8(chr(1595 - 1547) + '\x6f' + '\x31' + '\064' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(184 - 136) + chr(0b1101111) + chr(2082 - 2032) + chr(0b101101 + 0o7) + chr(579 - 528), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2127 - 2078) + chr(0b110111) + chr(52), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(425 - 377) + chr(0b1101011 + 0o4) + chr(2267 - 2214) + chr(48), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x95'), '\144' + chr(0b1100101) + chr(99) + chr(10988 - 10877) + '\x64' + chr(0b1000001 + 0o44))('\165' + chr(116) + '\x66' + chr(0b101101) + chr(0b11110 + 0o32)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def q_OpiFEtgGxJ(hXMPsSrOQzbh, Y2QfnnvVOo8E=[roI3spqORKae(ES5oEprVxulp(b'\xda\xb3\xd5'), '\x64' + chr(0b1100101) + chr(99) + '\x6f' + chr(100) + chr(0b10001 + 0o124))(chr(117) + chr(0b11011 + 0o131) + chr(1019 - 917) + chr(0b101000 + 0o5) + chr(0b111000))], iWMMrgbIGdWs=roI3spqORKae(ES5oEprVxulp(b'\xd7\xbb\xd3\xf1S&"\x1b\x08'), chr(7721 - 7621) + chr(0b1100101) + '\x63' + chr(0b1101 + 0o142) + chr(0b1100100) + chr(101))(chr(7913 - 7796) + '\164' + '\x66' + '\x2d' + chr(0b111000)), DrEeQNZC3DWw=roI3spqORKae(ES5oEprVxulp(b'\xc8\xbd\xc4\xf5T'), chr(100) + chr(0b1100101) + chr(0b1011011 + 0o10) + chr(111) + chr(5980 - 5880) + chr(9782 - 9681))(chr(7293 - 7176) + chr(0b1000000 + 0o64) + chr(102) + chr(730 - 685) + chr(1014 - 958)), fsfLuMFpklzS=roI3spqORKae(ES5oEprVxulp(b'\xd7\xbb\xc7'), '\144' + chr(0b11101 + 0o110) + '\x63' + chr(909 - 798) + chr(0b1100100) + '\145')('\x75' + chr(116) + chr(0b1100110) + '\055' + chr(56)), isimuV82JTXo=roI3spqORKae(ES5oEprVxulp(b'\xd3\xbd\xd7\xf8'), '\x64' + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(0b1100100 + 0o1))('\x75' + '\164' + chr(6668 - 6566) + chr(0b101101) + '\070')): O9QQFw9nzjBr = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(iWMMrgbIGdWs) sJtdcTCQYHK6 = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(DrEeQNZC3DWw) if O9QQFw9nzjBr - sJtdcTCQYHK6 != nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061', 0b1000): v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x96\x83\x9d\xb0W="\x05\x1aA\xcc\xf6\x92\xcf\xc8\x9c\x97\x16\xe7\x0c\xbb\x08\xc0\x80od$\x99\xb8Q\xab\x89\x04\xe9-\xde\xb9\x0e\xd7\x14\x9b\xa0\xd1\xf2K*>U\x0fN\xcc\xf6\xd7\xf1\xd7\x90\xd9:\xfa\x0c\xa02\xd1\xd0 e/\xd5\xa0\x01\xbd\x94\x02\xae~\x97\xe0\x02\x8d\\\xc8\xbd\xc4\xf5To,\x1b\x1f\x06\xde\xe3\x9a\xe0\xc9\x90\x8ag'), chr(0b1000010 + 0o42) + '\145' + chr(4525 - 4426) + chr(0b11000 + 0o127) + '\144' + chr(0b1001111 + 0o26))(chr(8350 - 8233) + chr(0b1110100) + '\x66' + chr(0b101101) + '\070')) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"\x9b\xf4\x90\xb0t 8\x07\x18C\x8d\xf6\x96\xf2\xc9\x90\xd9$\xff\x1e\xb7w\xd7\x95og%\x82\xa4\x03\xfc\x8f\x18\xa2*\x96\xabG\xcb\x15\xde\xa6\xd1\xe2D'4U\x0fN\xcc\xec\xd7\xe4\xcd\x90\xd9=\xeb\x1f\xa42\xc1\xd0;j(\x99\xa4_"), '\144' + '\x65' + chr(0b1100010 + 0o1) + '\157' + chr(100) + chr(0b110 + 0o137))(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b1101 + 0o40) + chr(56))) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x9b\xf4\x90\xb0~ 8U\x13G\xdb\xe7\xd7\xe0\xd7\x9a\x8f \xee\x08\xa7w\x97\x8b2)j\x94\xb2Q\xa8\x8e\x13\xa2*\x9f\xbc\x00\xc6\x08\x9b\xa0\xd1\xf2K*m\x14\x15B\x8d\xa0\x8c\xed\x87\xd5\x98:\xaa\x19\xab2\x95\x83 ~8\x96\xa4Q\xa8\x87\x14\xee;\xd0'), '\144' + chr(0b111100 + 0o51) + chr(0b1100011) + '\x6f' + chr(100) + '\145')(chr(0b110110 + 0o77) + '\164' + chr(2583 - 2481) + chr(45) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xca\xe7\x83\xdb`|+\x1a*y\xee\xc8'), '\144' + '\x65' + '\x63' + chr(0b1011011 + 0o24) + chr(0b110101 + 0o57) + chr(0b1100101))(chr(0b1001110 + 0o47) + chr(0b1110100) + '\146' + chr(1032 - 987) + '\x38'))(iWMMrgbIGdWs, DrEeQNZC3DWw)) return None if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xec\xb3\xc4\xc3m\x17}\x062\x7f\xdd\xce'), chr(0b1000011 + 0o41) + chr(101) + chr(5362 - 5263) + chr(3891 - 3780) + '\144' + '\x65')(chr(117) + chr(0b1000000 + 0o64) + chr(0b11000 + 0o116) + chr(1262 - 1217) + '\x38')): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda\xb0\xd4\xcfJ.*\x1c\x18y\xd9\xe3\x95\xfc\xc0'), chr(0b111010 + 0o52) + chr(0b1000011 + 0o42) + chr(0b1100011) + chr(0b101001 + 0o106) + chr(100) + '\x65')('\165' + chr(0b1110100) + chr(102) + chr(0b101101) + '\070'))(iWMMrgbIGdWs) if iWMMrgbIGdWs not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xec\xb3\xc4\xc3m\x17}\x062\x7f\xdd\xce'), '\x64' + chr(101) + chr(0b10010 + 0o121) + chr(0b1101111) + chr(6915 - 6815) + chr(6341 - 6240))('\165' + chr(116) + chr(0b1011001 + 0o15) + chr(326 - 281) + '\070')): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x96\x83\x9d\xb0d 8\x19\x1fH\x8a\xf6\xd7\xe2\xc0\x94\x9di\xe3\x03\xe3,\xc8\xd0;j(\x99\xa4'), chr(0b11 + 0o141) + '\x65' + chr(4664 - 4565) + chr(111) + chr(0b100111 + 0o75) + '\145')(chr(0b1110101) + chr(0b1101111 + 0o5) + chr(0b1100110) + chr(1417 - 1372) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xca\xe7\x83\xdb`|+\x1a*y\xee\xc8'), chr(0b1100100) + chr(0b1100101) + chr(0b1111 + 0o124) + chr(111) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(0b1001000 + 0o36) + chr(45) + chr(56)))(iWMMrgbIGdWs)) return if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xec\xb3\xc4\xc3m\x17}\x062\x7f\xdd\xce'), chr(0b1100100) + chr(101) + chr(0b1001000 + 0o33) + chr(2448 - 2337) + chr(6755 - 6655) + chr(492 - 391))(chr(117) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000))): roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xda\xb0\xd4\xcfJ.*\x1c\x18y\xd9\xe3\x95\xfc\xc0'), chr(100) + '\145' + chr(5678 - 5579) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b100100 + 0o121) + '\x74' + chr(102) + chr(0b101101) + chr(1777 - 1721)))(DrEeQNZC3DWw) if DrEeQNZC3DWw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xec\xb3\xc4\xc3m\x17}\x062\x7f\xdd\xce'), chr(100) + '\145' + chr(4601 - 4502) + '\157' + chr(100) + '\145')('\x75' + chr(116) + chr(0b100010 + 0o104) + chr(0b101101) + chr(0b1010 + 0o56))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x96\x83\x9d\xb0d 8\x19\x1fH\x8a\xf6\xd7\xe2\xc0\x94\x9di\xe3\x03\xe3,\xc8\xd0;j(\x99\xa4'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\157' + chr(4127 - 4027) + '\145')(chr(11639 - 11522) + chr(116) + '\146' + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xca\xe7\x83\xdb`|+\x1a*y\xee\xc8'), chr(6651 - 6551) + chr(6896 - 6795) + chr(99) + '\x6f' + '\x64' + chr(0b1100101))(chr(0b1001101 + 0o50) + '\164' + chr(0b100010 + 0o104) + chr(0b101101) + chr(0b111000)))(DrEeQNZC3DWw)) return YxoLvfvnWKCJ = hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] Yq4hgSkVJXI8 = hXMPsSrOQzbh.WgtSJX0sIYpL[DrEeQNZC3DWw] yEONTdv1DFgv = iWMMrgbIGdWs[:-nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x31', 8)] for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'\xee\xe7\x89\xfat&\x04@Ok\xc1\xf2'), chr(0b1011000 + 0o14) + '\145' + chr(0b1100011) + '\x6f' + '\x64' + chr(0b11101 + 0o110))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x96\x83\x9d\xb0\\2m\x01\x1aD\xc1\xe7\xd7\xf9\xd6\xd5\x94 \xf9\x1e\xaa9\xd2\xd0mp7\xd7\xe1\x12\xb3\x8a\x03\xef0\xd2\xee\x14\xc8\x15\xcb\xa4\xd9\xfe@'), '\144' + chr(7852 - 7751) + chr(99) + '\157' + chr(2838 - 2738) + '\x65')('\165' + '\x74' + '\146' + '\055' + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xca\xe7\x83\xdb`|+\x1a*y\xee\xc8'), '\x64' + '\145' + chr(0b1100011) + chr(0b11000 + 0o127) + chr(0b1100100) + chr(101))('\165' + '\164' + chr(5516 - 5414) + chr(0b101101) + chr(56)))(DrEeQNZC3DWw, hRTUxJgvuslu)) continue CSF1TtOMxynZ = hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'\xe4'), '\x64' + '\x65' + chr(99) + chr(0b1101111 + 0o0) + chr(2556 - 2456) + chr(101))(chr(6264 - 6147) + chr(11384 - 11268) + chr(102) + chr(0b10001 + 0o34) + '\x38') + fsfLuMFpklzS c0y6hGoGDDJh = hRTUxJgvuslu + roI3spqORKae(ES5oEprVxulp(b'\xe4'), '\x64' + chr(8232 - 8131) + chr(99) + chr(4319 - 4208) + chr(0b1100100) + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(45) + '\x38') + isimuV82JTXo if CSF1TtOMxynZ not in roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'\xee\xe7\x89\xfat&\x04@Ok\xc1\xf2'), chr(100) + chr(0b1100101) + '\143' + chr(0b1101001 + 0o6) + chr(0b1100100) + chr(0b1100101))(chr(2387 - 2270) + '\x74' + chr(0b111000 + 0o56) + chr(0b100000 + 0o15) + chr(0b111000))): YxoLvfvnWKCJ.jpOn8DNZxbbx[CSF1TtOMxynZ] = None if c0y6hGoGDDJh not in roI3spqORKae(YxoLvfvnWKCJ.df, roI3spqORKae(ES5oEprVxulp(b'\xee\xe7\x89\xfat&\x04@Ok\xc1\xf2'), '\x64' + '\145' + chr(949 - 850) + chr(111) + chr(0b1000010 + 0o42) + '\145')(chr(9735 - 9618) + chr(0b1110100) + chr(0b1100110) + chr(45) + chr(0b1101 + 0o53))): YxoLvfvnWKCJ.jpOn8DNZxbbx[c0y6hGoGDDJh] = None if yEONTdv1DFgv not in roI3spqORKae(Yq4hgSkVJXI8.df, roI3spqORKae(ES5oEprVxulp(b'\xee\xe7\x89\xfat&\x04@Ok\xc1\xf2'), chr(100) + chr(0b111001 + 0o54) + chr(99) + chr(9668 - 9557) + chr(0b10010 + 0o122) + '\145')(chr(5284 - 5167) + chr(0b1110000 + 0o4) + chr(10214 - 10112) + '\055' + chr(0b111000))): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x96\x83\x9d\xb0\\2m\x01\x1aD\xc1\xe7\xd7\xfd\xcc\x86\x8a \xe4\n\xe3,\xc8\xd0,d&\x80\xac\x1f\xf0\xc6\x15\xe30\x90\xa1\x13\x83\x0c\xc9\xbb\xc0\xf1@.9\x10[G\xca\xe7\xd7\xf9\xcb\x93\x96'), chr(0b1011000 + 0o14) + chr(101) + chr(8257 - 8158) + chr(566 - 455) + chr(0b1100100) + '\145')(chr(117) + '\x74' + chr(0b1011110 + 0o10) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xca\xe7\x83\xdb`|+\x1a*y\xee\xc8'), chr(100) + '\x65' + chr(99) + '\157' + chr(100) + '\x65')(chr(8400 - 8283) + chr(0b1110100) + chr(7199 - 7097) + chr(0b10010 + 0o33) + chr(0b101111 + 0o11)))(yEONTdv1DFgv, DrEeQNZC3DWw)) return TRsEnjL8YDa6 = Yq4hgSkVJXI8.front_and_backfill([hRTUxJgvuslu], inplace=nzTpIcepk0o8(chr(48) + '\157' + '\x30', ord("\x08"))) TRsEnjL8YDa6[yEONTdv1DFgv] = Yq4hgSkVJXI8.jpOn8DNZxbbx[yEONTdv1DFgv] uceW_MaU05Sk = TRsEnjL8YDa6[[hRTUxJgvuslu, yEONTdv1DFgv]].groupby(yEONTdv1DFgv) if ftfygxgFas5X(uceW_MaU05Sk): (vTja1j23Hu5d, F_VTQ8CELoQd) = (uceW_MaU05Sk.XURpmPuEWCNF(), uceW_MaU05Sk.KV9ckIhroIia()) vTja1j23Hu5d = vTja1j23Hu5d.reindex(YxoLvfvnWKCJ.df.ZpfN5tSLaZze) F_VTQ8CELoQd = F_VTQ8CELoQd.reindex(YxoLvfvnWKCJ.df.ZpfN5tSLaZze) xr0skgKDU5s7 = YxoLvfvnWKCJ.df[CSF1TtOMxynZ].apply(OPdnCSWnXMKM) AmCDpYwTwbuq = YxoLvfvnWKCJ.df[c0y6hGoGDDJh].apply(OPdnCSWnXMKM) YxoLvfvnWKCJ.jpOn8DNZxbbx[CSF1TtOMxynZ] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(xr0skgKDU5s7, YxoLvfvnWKCJ.jpOn8DNZxbbx[CSF1TtOMxynZ], vTja1j23Hu5d[hRTUxJgvuslu]) YxoLvfvnWKCJ.jpOn8DNZxbbx[c0y6hGoGDDJh] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(AmCDpYwTwbuq, YxoLvfvnWKCJ.jpOn8DNZxbbx[c0y6hGoGDDJh], F_VTQ8CELoQd[hRTUxJgvuslu]) hXMPsSrOQzbh.WgtSJX0sIYpL[iWMMrgbIGdWs] = YxoLvfvnWKCJ return YxoLvfvnWKCJ
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.get_age_levels
def get_age_levels(self): """ Method to add a "level" column to the ages table. Finds the lowest filled in level (i.e., specimen, sample, etc.) for that particular row. I.e., a row with both site and sample name filled in is considered a sample-level age. Returns --------- self.tables['ages'] : MagicDataFrame updated ages table """ def get_level(ser, levels=('specimen', 'sample', 'site', 'location')): for level in levels: if pd.notnull(ser[level]): if len(ser[level]): # guard against empty strings return level return # get available levels in age table possible_levels = ['specimen', 'sample', 'site', 'location'] levels = [level for level in possible_levels if level in self.tables['ages'].df.columns] # find level for each age row age_levels = self.tables['ages'].df.apply(get_level, axis=1, args=[levels]) if any(age_levels): self.tables['ages'].df.loc[:, 'level'] = age_levels return self.tables['ages']
python
def get_age_levels(self): """ Method to add a "level" column to the ages table. Finds the lowest filled in level (i.e., specimen, sample, etc.) for that particular row. I.e., a row with both site and sample name filled in is considered a sample-level age. Returns --------- self.tables['ages'] : MagicDataFrame updated ages table """ def get_level(ser, levels=('specimen', 'sample', 'site', 'location')): for level in levels: if pd.notnull(ser[level]): if len(ser[level]): # guard against empty strings return level return # get available levels in age table possible_levels = ['specimen', 'sample', 'site', 'location'] levels = [level for level in possible_levels if level in self.tables['ages'].df.columns] # find level for each age row age_levels = self.tables['ages'].df.apply(get_level, axis=1, args=[levels]) if any(age_levels): self.tables['ages'].df.loc[:, 'level'] = age_levels return self.tables['ages']
[ "def", "get_age_levels", "(", "self", ")", ":", "def", "get_level", "(", "ser", ",", "levels", "=", "(", "'specimen'", ",", "'sample'", ",", "'site'", ",", "'location'", ")", ")", ":", "for", "level", "in", "levels", ":", "if", "pd", ".", "notnull", "(", "ser", "[", "level", "]", ")", ":", "if", "len", "(", "ser", "[", "level", "]", ")", ":", "# guard against empty strings", "return", "level", "return", "# get available levels in age table", "possible_levels", "=", "[", "'specimen'", ",", "'sample'", ",", "'site'", ",", "'location'", "]", "levels", "=", "[", "level", "for", "level", "in", "possible_levels", "if", "level", "in", "self", ".", "tables", "[", "'ages'", "]", ".", "df", ".", "columns", "]", "# find level for each age row", "age_levels", "=", "self", ".", "tables", "[", "'ages'", "]", ".", "df", ".", "apply", "(", "get_level", ",", "axis", "=", "1", ",", "args", "=", "[", "levels", "]", ")", "if", "any", "(", "age_levels", ")", ":", "self", ".", "tables", "[", "'ages'", "]", ".", "df", ".", "loc", "[", ":", ",", "'level'", "]", "=", "age_levels", "return", "self", ".", "tables", "[", "'ages'", "]" ]
Method to add a "level" column to the ages table. Finds the lowest filled in level (i.e., specimen, sample, etc.) for that particular row. I.e., a row with both site and sample name filled in is considered a sample-level age. Returns --------- self.tables['ages'] : MagicDataFrame updated ages table
[ "Method", "to", "add", "a", "level", "column", "to", "the", "ages", "table", ".", "Finds", "the", "lowest", "filled", "in", "level", "(", "i", ".", "e", ".", "specimen", "sample", "etc", ".", ")", "for", "that", "particular", "row", ".", "I", ".", "e", ".", "a", "row", "with", "both", "site", "and", "sample", "name", "filled", "in", "is", "considered", "a", "sample", "-", "level", "age", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1034-L1060
train
Method to add a level column to the ages table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(103 - 54) + chr(0b101011 + 0o13), 51948 - 51940), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(54), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + '\x32', 0o10), nzTpIcepk0o8(chr(1914 - 1866) + chr(0b10100 + 0o133) + chr(1119 - 1068) + '\x32' + chr(365 - 311), 54794 - 54786), nzTpIcepk0o8(chr(53 - 5) + chr(0b1101111) + '\x33' + '\x35' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(50) + chr(1273 - 1219), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1679 - 1628) + chr(51) + chr(0b100001 + 0o20), 0o10), nzTpIcepk0o8('\060' + chr(0b10 + 0o155) + '\x31' + chr(48) + chr(53), 64138 - 64130), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2650 - 2597) + chr(0b10010 + 0o43), ord("\x08")), nzTpIcepk0o8(chr(329 - 281) + '\x6f' + chr(0b1111 + 0o42) + chr(50) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(52) + chr(0b101111 + 0o1), 12277 - 12269), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1636 - 1587) + chr(0b10001 + 0o40) + chr(0b11001 + 0o35), 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x35' + chr(0b110111), 1984 - 1976), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(49) + chr(1521 - 1467), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101001 + 0o6) + chr(1425 - 1374) + '\x34' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110010) + chr(0b110 + 0o57), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(54) + chr(48), 52335 - 52327), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(3177 - 3066) + chr(2012 - 1963) + chr(0b1 + 0o65) + chr(54), 20990 - 20982), nzTpIcepk0o8('\x30' + '\157' + chr(740 - 689) + '\066' + chr(48), 54792 - 54784), nzTpIcepk0o8(chr(57 - 9) + chr(8175 - 8064) + '\x31' + chr(50) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(7958 - 7847) + chr(2486 - 2435) + chr(51) + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10100 + 0o133) + '\061' + chr(0b110110) + chr(49), 0o10), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\157' + '\x32' + '\x30' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\157' + '\x33' + '\x31' + chr(0b1011 + 0o53), 8), nzTpIcepk0o8('\060' + chr(8025 - 7914) + '\062' + chr(49) + chr(0b100100 + 0o17), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111110 + 0o61) + chr(0b110001) + '\061' + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x36' + chr(55), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(1169 - 1119) + chr(0b110010) + chr(142 - 93), ord("\x08")), nzTpIcepk0o8(chr(104 - 56) + chr(0b1100000 + 0o17) + chr(0b110011) + chr(0b1 + 0o66) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(802 - 754) + '\x6f' + chr(0b11100 + 0o27) + chr(0b101 + 0o55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\x36' + chr(52), 24906 - 24898), nzTpIcepk0o8('\060' + chr(0b1000100 + 0o53) + '\x31' + '\066' + '\x37', 28975 - 28967), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101101 + 0o6) + chr(1904 - 1855), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11843 - 11732) + chr(505 - 455) + '\x34' + '\x34', 21089 - 21081), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(7180 - 7069) + chr(2112 - 2061) + chr(0b110110) + chr(1563 - 1508), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\x34' + chr(0b1101 + 0o44), 0b1000), nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + chr(0b1110 + 0o44) + chr(54) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + chr(11128 - 11017) + '\063' + '\x34', 14455 - 14447)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'`'), chr(100) + '\145' + chr(0b100000 + 0o103) + chr(0b1101111) + '\144' + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b110 + 0o47) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def nu5WYF30Ts28(hXMPsSrOQzbh): def mc6Ig1Y6bQMj(D9V1gzpAbjGu, NcsybIE2o3mI=(roI3spqORKae(ES5oEprVxulp(b'=n\x7f\xb5\x87{\xbc+'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(100) + '\145')('\165' + chr(10988 - 10872) + chr(102) + '\x2d' + chr(2775 - 2719)), roI3spqORKae(ES5oEprVxulp(b'=\x7fw\xa6\x82s'), chr(0b1011011 + 0o11) + chr(0b110101 + 0o60) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b10010 + 0o143) + '\164' + chr(0b1100110) + chr(45) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'=wn\xb3'), chr(0b1100100) + '\x65' + chr(99) + chr(0b100110 + 0o111) + '\144' + chr(101))(chr(0b1110101) + chr(116) + chr(102) + '\055' + chr(605 - 549)), roI3spqORKae(ES5oEprVxulp(b'"qy\xb7\x9a\x7f\xb6+'), chr(100) + '\x65' + chr(99) + '\x6f' + chr(0b1100100) + chr(0b1100000 + 0o5))(chr(117) + chr(0b1110100) + chr(0b1100110) + '\055' + '\x38'))): for OHMe9lml54lU in NcsybIE2o3mI: if roI3spqORKae(HLKt4sa1j9hm, roI3spqORKae(ES5oEprVxulp(b' qn\xb8\x9bz\xb5'), '\x64' + chr(101) + chr(6441 - 6342) + chr(9212 - 9101) + chr(0b1100100) + chr(6232 - 6131))(chr(117) + '\164' + '\x66' + chr(366 - 321) + '\x38'))(D9V1gzpAbjGu[OHMe9lml54lU]): if ftfygxgFas5X(D9V1gzpAbjGu[OHMe9lml54lU]): return OHMe9lml54lU return LxcMh_c10sby = [roI3spqORKae(ES5oEprVxulp(b'=n\x7f\xb5\x87{\xbc+'), '\x64' + chr(267 - 166) + '\x63' + '\x6f' + chr(100) + chr(101))('\x75' + chr(116) + '\x66' + chr(0b101101) + chr(2733 - 2677)), roI3spqORKae(ES5oEprVxulp(b'=\x7fw\xa6\x82s'), '\x64' + chr(0b1100101) + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(0b1010010 + 0o43) + '\164' + chr(0b1100110) + chr(0b101101) + chr(2907 - 2851)), roI3spqORKae(ES5oEprVxulp(b'=wn\xb3'), chr(0b1100100) + chr(0b1011110 + 0o7) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')(chr(0b111001 + 0o74) + chr(0b1000010 + 0o62) + chr(102) + chr(0b11011 + 0o22) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'"qy\xb7\x9a\x7f\xb6+'), chr(0b1010110 + 0o16) + chr(0b1100101) + '\143' + chr(0b1010111 + 0o30) + chr(0b10 + 0o142) + chr(101))(chr(3545 - 3428) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000))] NcsybIE2o3mI = [OHMe9lml54lU for OHMe9lml54lU in LxcMh_c10sby if OHMe9lml54lU in hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'/y\x7f\xa5'), '\144' + chr(101) + '\143' + chr(111) + chr(0b1000000 + 0o44) + chr(101))(chr(0b1110101) + chr(0b110011 + 0o101) + chr(0b1010101 + 0o21) + chr(0b100011 + 0o12) + '\070')].df.U39jSiI54Mlp] xrMPXJAxMXuU = hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'/y\x7f\xa5'), '\144' + '\x65' + '\143' + chr(0b1101111) + '\x64' + chr(7292 - 7191))(chr(117) + chr(0b11110 + 0o126) + chr(0b10010 + 0o124) + chr(0b101101) + chr(737 - 681))].df.apply(mc6Ig1Y6bQMj, axis=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31', 60694 - 60686), args=[NcsybIE2o3mI]) if VF4pKOObtlPc(xrMPXJAxMXuU): hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'/y\x7f\xa5'), chr(0b1010101 + 0o17) + '\x65' + '\143' + chr(111) + chr(100) + chr(480 - 379))('\165' + chr(0b1011 + 0o151) + '\146' + chr(870 - 825) + chr(0b101010 + 0o16))].df.UQ8hRiBoHcn5[:, roI3spqORKae(ES5oEprVxulp(b'"{l\xb3\x82'), '\144' + chr(5170 - 5069) + chr(99) + '\157' + '\x64' + '\145')('\165' + chr(0b1001101 + 0o47) + chr(2955 - 2853) + chr(0b101101) + '\070')] = xrMPXJAxMXuU return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x19yn\x85\xa4N\xe96d\rPa'), '\144' + '\145' + chr(0b1100011) + chr(111) + '\144' + chr(0b110100 + 0o61))(chr(117) + '\164' + chr(102) + chr(1430 - 1385) + chr(56)))[roI3spqORKae(ES5oEprVxulp(b'/y\x7f\xa5'), '\144' + chr(582 - 481) + chr(4597 - 4498) + '\157' + '\144' + chr(5891 - 5790))(chr(0b1011000 + 0o35) + chr(3782 - 3666) + '\x66' + '\055' + chr(1846 - 1790))]
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.propagate_ages
def propagate_ages(self): """ Mine ages table for any age data, and write it into specimens, samples, sites, locations tables. Do not overwrite existing age data. """ # if there is no age table, skip if 'ages' not in self.tables: return # if age table has no data, skip if not len(self.tables['ages'].df): return # get levels in age table self.get_age_levels() # if age levels could not be determined, skip if not "level" in self.tables["ages"].df.columns: return if not any(self.tables["ages"].df["level"]): return # go through each level of age data for level in self.tables['ages'].df['level'].unique(): table_name = level + 's' age_headers = self.data_model.get_group_headers(table_name, 'Age') # find age headers that are actually in table actual_age_headers = list(set(self.tables[table_name].df.columns).intersection(age_headers)) # find site age headers that are available in ages table available_age_headers = list(set(self.tables['ages'].df.columns).intersection(age_headers)) # fill in all available age info to all rows self.tables[table_name].front_and_backfill(actual_age_headers) # add any available headers to table add_headers = set(available_age_headers).difference(actual_age_headers) for header in add_headers: self.tables[table_name].df[header] = None # propagate values from ages into table def move_values(ser, level, available_headers): name = ser.name cond1 = self.tables['ages'].df[level] == name cond2 = self.tables['ages'].df['level'] == level mask = cond1 & cond2 sli = self.tables['ages'].df[mask] if len(sli): return list(sli[available_headers].values[0]) return [None] * len(available_headers) res = self.tables[table_name].df.apply(move_values, axis=1, args=[level, available_age_headers]) # fill in table with values gleaned from ages new_df = pd.DataFrame(data=list(res.values), index=res.index, columns=available_age_headers) age_values = np.where(self.tables[table_name].df[available_age_headers], self.tables[table_name].df[available_age_headers], new_df) self.tables[table_name].df[available_age_headers] = age_values # # put age_high, age_low into locations table print("-I- Adding age_high and age_low to locations table based on minimum/maximum ages found in sites table") self.propagate_min_max_up(cols=['age'], target_df_name='locations', source_df_name='sites')
python
def propagate_ages(self): """ Mine ages table for any age data, and write it into specimens, samples, sites, locations tables. Do not overwrite existing age data. """ # if there is no age table, skip if 'ages' not in self.tables: return # if age table has no data, skip if not len(self.tables['ages'].df): return # get levels in age table self.get_age_levels() # if age levels could not be determined, skip if not "level" in self.tables["ages"].df.columns: return if not any(self.tables["ages"].df["level"]): return # go through each level of age data for level in self.tables['ages'].df['level'].unique(): table_name = level + 's' age_headers = self.data_model.get_group_headers(table_name, 'Age') # find age headers that are actually in table actual_age_headers = list(set(self.tables[table_name].df.columns).intersection(age_headers)) # find site age headers that are available in ages table available_age_headers = list(set(self.tables['ages'].df.columns).intersection(age_headers)) # fill in all available age info to all rows self.tables[table_name].front_and_backfill(actual_age_headers) # add any available headers to table add_headers = set(available_age_headers).difference(actual_age_headers) for header in add_headers: self.tables[table_name].df[header] = None # propagate values from ages into table def move_values(ser, level, available_headers): name = ser.name cond1 = self.tables['ages'].df[level] == name cond2 = self.tables['ages'].df['level'] == level mask = cond1 & cond2 sli = self.tables['ages'].df[mask] if len(sli): return list(sli[available_headers].values[0]) return [None] * len(available_headers) res = self.tables[table_name].df.apply(move_values, axis=1, args=[level, available_age_headers]) # fill in table with values gleaned from ages new_df = pd.DataFrame(data=list(res.values), index=res.index, columns=available_age_headers) age_values = np.where(self.tables[table_name].df[available_age_headers], self.tables[table_name].df[available_age_headers], new_df) self.tables[table_name].df[available_age_headers] = age_values # # put age_high, age_low into locations table print("-I- Adding age_high and age_low to locations table based on minimum/maximum ages found in sites table") self.propagate_min_max_up(cols=['age'], target_df_name='locations', source_df_name='sites')
[ "def", "propagate_ages", "(", "self", ")", ":", "# if there is no age table, skip", "if", "'ages'", "not", "in", "self", ".", "tables", ":", "return", "# if age table has no data, skip", "if", "not", "len", "(", "self", ".", "tables", "[", "'ages'", "]", ".", "df", ")", ":", "return", "# get levels in age table", "self", ".", "get_age_levels", "(", ")", "# if age levels could not be determined, skip", "if", "not", "\"level\"", "in", "self", ".", "tables", "[", "\"ages\"", "]", ".", "df", ".", "columns", ":", "return", "if", "not", "any", "(", "self", ".", "tables", "[", "\"ages\"", "]", ".", "df", "[", "\"level\"", "]", ")", ":", "return", "# go through each level of age data", "for", "level", "in", "self", ".", "tables", "[", "'ages'", "]", ".", "df", "[", "'level'", "]", ".", "unique", "(", ")", ":", "table_name", "=", "level", "+", "'s'", "age_headers", "=", "self", ".", "data_model", ".", "get_group_headers", "(", "table_name", ",", "'Age'", ")", "# find age headers that are actually in table", "actual_age_headers", "=", "list", "(", "set", "(", "self", ".", "tables", "[", "table_name", "]", ".", "df", ".", "columns", ")", ".", "intersection", "(", "age_headers", ")", ")", "# find site age headers that are available in ages table", "available_age_headers", "=", "list", "(", "set", "(", "self", ".", "tables", "[", "'ages'", "]", ".", "df", ".", "columns", ")", ".", "intersection", "(", "age_headers", ")", ")", "# fill in all available age info to all rows", "self", ".", "tables", "[", "table_name", "]", ".", "front_and_backfill", "(", "actual_age_headers", ")", "# add any available headers to table", "add_headers", "=", "set", "(", "available_age_headers", ")", ".", "difference", "(", "actual_age_headers", ")", "for", "header", "in", "add_headers", ":", "self", ".", "tables", "[", "table_name", "]", ".", "df", "[", "header", "]", "=", "None", "# propagate values from ages into table", "def", "move_values", "(", "ser", ",", "level", ",", "available_headers", ")", ":", "name", "=", "ser", ".", "name", "cond1", "=", "self", ".", "tables", "[", "'ages'", "]", ".", "df", "[", "level", "]", "==", "name", "cond2", "=", "self", ".", "tables", "[", "'ages'", "]", ".", "df", "[", "'level'", "]", "==", "level", "mask", "=", "cond1", "&", "cond2", "sli", "=", "self", ".", "tables", "[", "'ages'", "]", ".", "df", "[", "mask", "]", "if", "len", "(", "sli", ")", ":", "return", "list", "(", "sli", "[", "available_headers", "]", ".", "values", "[", "0", "]", ")", "return", "[", "None", "]", "*", "len", "(", "available_headers", ")", "res", "=", "self", ".", "tables", "[", "table_name", "]", ".", "df", ".", "apply", "(", "move_values", ",", "axis", "=", "1", ",", "args", "=", "[", "level", ",", "available_age_headers", "]", ")", "# fill in table with values gleaned from ages", "new_df", "=", "pd", ".", "DataFrame", "(", "data", "=", "list", "(", "res", ".", "values", ")", ",", "index", "=", "res", ".", "index", ",", "columns", "=", "available_age_headers", ")", "age_values", "=", "np", ".", "where", "(", "self", ".", "tables", "[", "table_name", "]", ".", "df", "[", "available_age_headers", "]", ",", "self", ".", "tables", "[", "table_name", "]", ".", "df", "[", "available_age_headers", "]", ",", "new_df", ")", "self", ".", "tables", "[", "table_name", "]", ".", "df", "[", "available_age_headers", "]", "=", "age_values", "#", "# put age_high, age_low into locations table", "print", "(", "\"-I- Adding age_high and age_low to locations table based on minimum/maximum ages found in sites table\"", ")", "self", ".", "propagate_min_max_up", "(", "cols", "=", "[", "'age'", "]", ",", "target_df_name", "=", "'locations'", ",", "source_df_name", "=", "'sites'", ")" ]
Mine ages table for any age data, and write it into specimens, samples, sites, locations tables. Do not overwrite existing age data.
[ "Mine", "ages", "table", "for", "any", "age", "data", "and", "write", "it", "into", "specimens", "samples", "sites", "locations", "tables", ".", "Do", "not", "overwrite", "existing", "age", "data", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1062-L1119
train
Propagate values from any age data into a specific age table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(11778 - 11667) + chr(52) + chr(0b100111 + 0o17), ord("\x08")), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(5137 - 5026) + chr(50) + chr(0b110101) + '\x30', 11254 - 11246), nzTpIcepk0o8(chr(101 - 53) + '\157' + chr(788 - 738) + '\x32' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b11000 + 0o127) + chr(0b110010) + chr(55) + chr(2690 - 2637), 2328 - 2320), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + chr(0b110001) + '\x31' + '\x36', 30534 - 30526), nzTpIcepk0o8('\x30' + '\157' + chr(0b11110 + 0o23) + chr(50) + chr(0b110001), 6943 - 6935), nzTpIcepk0o8(chr(0b11100 + 0o24) + '\157' + '\061' + '\061' + chr(0b110000 + 0o0), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(963 - 914) + '\064' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101101 + 0o6) + '\063' + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b1001 + 0o47) + chr(0b10010 + 0o36), 0o10), nzTpIcepk0o8('\x30' + chr(565 - 454) + '\x32' + chr(51) + '\062', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(51) + '\063' + '\x31', 0o10), nzTpIcepk0o8('\060' + chr(3979 - 3868) + '\x33' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7173 - 7062) + chr(49) + chr(1869 - 1816) + chr(50), 19820 - 19812), nzTpIcepk0o8('\060' + '\157' + chr(51) + chr(0b110001) + '\x35', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100000 + 0o21) + chr(0b110101) + chr(0b1111 + 0o44), 64465 - 64457), nzTpIcepk0o8('\x30' + chr(6543 - 6432) + chr(0b100110 + 0o14) + '\062' + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + chr(0b110100) + chr(0b110010 + 0o2), 5373 - 5365), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(1931 - 1880) + chr(0b101101 + 0o5), ord("\x08")), nzTpIcepk0o8('\060' + chr(12076 - 11965) + chr(50) + chr(561 - 507) + chr(0b10101 + 0o37), 25081 - 25073), nzTpIcepk0o8('\x30' + '\157' + chr(48), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + chr(48) + '\x32', 55332 - 55324), nzTpIcepk0o8(chr(0b110000) + chr(0b1000 + 0o147) + chr(53) + chr(0b100000 + 0o26), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5363 - 5252) + chr(1269 - 1219) + chr(49) + chr(0b110111), 4890 - 4882), nzTpIcepk0o8('\x30' + chr(5991 - 5880) + chr(51) + chr(869 - 821) + '\060', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(908 - 857) + chr(0b110001 + 0o0) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + '\061', 8647 - 8639), nzTpIcepk0o8('\x30' + '\157' + '\065' + '\066', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(51) + chr(0b110101), 8), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(0b110000) + chr(48), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11011 + 0o27) + chr(0b101100 + 0o6) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111 + 0o0) + chr(0b100011 + 0o20) + '\061', 8), nzTpIcepk0o8('\x30' + chr(11088 - 10977) + chr(0b1111 + 0o42) + chr(0b110010 + 0o0), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101010 + 0o5) + chr(0b10011 + 0o36) + chr(271 - 218) + chr(2288 - 2240), ord("\x08")), nzTpIcepk0o8(chr(1860 - 1812) + chr(5923 - 5812) + chr(0b11010 + 0o30) + chr(54) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(0b101101 + 0o102) + chr(0b10101 + 0o34) + '\067' + chr(0b10100 + 0o37), 21784 - 21776), nzTpIcepk0o8(chr(0b110000) + chr(11657 - 11546) + chr(0b110001) + chr(2139 - 2087) + '\x30', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x34' + chr(2298 - 2249), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110010) + '\062' + chr(0b110111), 49730 - 49722), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + '\x35', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110101) + chr(1921 - 1873), 263 - 255)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x08'), chr(0b1100100) + chr(6491 - 6390) + chr(99) + chr(111) + chr(100) + chr(5259 - 5158))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def GVvD_AXKur9l(hXMPsSrOQzbh): if roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(7960 - 7860) + chr(0b1100101) + chr(0b101111 + 0o64) + chr(0b101100 + 0o103) + '\144' + '\x65')(chr(0b100100 + 0o121) + '\164' + chr(0b1010 + 0o134) + '\x2d' + '\x38') not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'q\xcf\xe2\xee\x04\tx\x13\x94\xd9\xea\x95'), chr(0b1000010 + 0o42) + chr(783 - 682) + chr(99) + '\x6f' + chr(0b110000 + 0o64) + chr(0b111001 + 0o54))(chr(0b1110101) + chr(171 - 55) + '\x66' + chr(0b101010 + 0o3) + '\070')): return if not ftfygxgFas5X(roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(2567 - 2467) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100100) + '\x65')('\x75' + '\x74' + chr(0b1100110) + chr(45) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'L\xd8\xd9\xd3v\x15\x06:\xa5\xe2\xf8\xa1'), chr(100) + chr(0b1010011 + 0o22) + '\143' + chr(111) + '\x64' + chr(0b10100 + 0o121))(chr(7448 - 7331) + '\164' + chr(4234 - 4132) + '\055' + chr(0b111000)))): return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'A\xcd\xe2\xe2/6-?\xb1\xe5\xec\xbcr\x19'), '\x64' + '\145' + chr(0b1100011) + '\157' + chr(0b1100100) + chr(992 - 891))(chr(0b1110101) + '\x74' + chr(6575 - 6473) + '\x2d' + chr(0b111000)))() if roI3spqORKae(ES5oEprVxulp(b'J\xcd\xe0\xd8"'), '\144' + chr(0b1100101) + chr(99) + '\157' + '\x64' + chr(101))(chr(0b100111 + 0o116) + chr(0b1110100) + chr(0b11100 + 0o112) + chr(0b11011 + 0o22) + chr(0b1 + 0o67)) not in roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), '\144' + '\x65' + chr(0b1100011) + '\157' + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(10398 - 10296) + chr(0b101000 + 0o5) + '\x38')].df, roI3spqORKae(ES5oEprVxulp(b's\x9b\xaf\xd7\x1d8\x01U\xe9\xcd\xf6\xa9'), '\144' + chr(101) + '\143' + chr(0b1100010 + 0o15) + chr(0b11111 + 0o105) + chr(0b1100101))(chr(1822 - 1705) + '\164' + '\x66' + '\x2d' + chr(56))): return if not VF4pKOObtlPc(roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), '\144' + chr(3106 - 3005) + chr(0b1100011) + chr(111) + chr(0b100000 + 0o104) + '\x65')(chr(117) + chr(0b1100001 + 0o23) + chr(102) + chr(0b10010 + 0o33) + chr(0b100110 + 0o22))], roI3spqORKae(ES5oEprVxulp(b'L\xd8\xd9\xd3v\x15\x06:\xa5\xe2\xf8\xa1'), chr(0b1100100) + chr(0b11001 + 0o114) + '\x63' + '\157' + chr(100) + chr(0b101110 + 0o67))(chr(0b100100 + 0o121) + chr(0b1110100) + chr(0b1100000 + 0o6) + chr(498 - 453) + chr(0b11110 + 0o32)))[roI3spqORKae(ES5oEprVxulp(b'J\xcd\xe0\xd8"'), '\x64' + '\x65' + chr(0b1011110 + 0o5) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(9182 - 9065) + chr(0b111101 + 0o67) + chr(102) + '\055' + '\x38')]): return for OHMe9lml54lU in roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(100) + '\x65' + '\143' + chr(977 - 866) + chr(0b111011 + 0o51) + chr(0b110111 + 0o56))(chr(5005 - 4888) + chr(7190 - 7074) + chr(0b1001011 + 0o33) + chr(45) + chr(0b111000))].df[roI3spqORKae(ES5oEprVxulp(b'J\xcd\xe0\xd8"'), chr(5346 - 5246) + '\x65' + chr(4505 - 4406) + '\157' + chr(0b1100100) + '\x65')(chr(0b11100 + 0o131) + chr(0b1110100) + '\146' + chr(1715 - 1670) + chr(0b111000))], roI3spqORKae(ES5oEprVxulp(b'a\x9b\xf2\xd8|4\x1f1\xbc\xd3\xaa\x9d'), '\144' + chr(101) + chr(3160 - 3061) + '\157' + '\x64' + '\145')(chr(0b11000 + 0o135) + chr(0b1110 + 0o146) + chr(1913 - 1811) + '\x2d' + chr(56)))(): kR9bIddrApHD = OHMe9lml54lU + roI3spqORKae(ES5oEprVxulp(b'U'), chr(100) + '\x65' + chr(99) + chr(111) + chr(3713 - 3613) + '\x65')('\x75' + chr(0b1110100) + chr(5951 - 5849) + '\x2d' + chr(0b100011 + 0o25)) p_z3VPhOuWhK = hXMPsSrOQzbh.data_model.get_group_headers(kR9bIddrApHD, roI3spqORKae(ES5oEprVxulp(b'g\xcf\xf3'), '\x64' + '\x65' + '\143' + chr(0b1101111) + chr(100) + chr(5147 - 5046))(chr(0b1110101) + chr(0b101001 + 0o113) + chr(0b1100110) + chr(1807 - 1762) + chr(0b111000))) KRPVTh53J4uq = H4NoA26ON7iG(Bvi71nNyvlqO(hXMPsSrOQzbh.tables[kR9bIddrApHD].df.columns).intersection(p_z3VPhOuWhK)) rPULHjiXZ0Xj = H4NoA26ON7iG(Bvi71nNyvlqO(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(0b1100100) + chr(8455 - 8354) + chr(0b1010011 + 0o20) + chr(5960 - 5849) + chr(4103 - 4003) + '\x65')('\x75' + '\164' + '\146' + '\055' + '\x38')].df.columns).intersection(p_z3VPhOuWhK)) roI3spqORKae(hXMPsSrOQzbh.tables[kR9bIddrApHD], roI3spqORKae(ES5oEprVxulp(b'@\xda\xf9\xd3:\x0e)\x0e\xb9\xdf\xf8\xb8}\x01\xab\x02\xf8\x88'), chr(0b1100100) + chr(2540 - 2439) + chr(5450 - 5351) + '\x6f' + '\144' + chr(0b1100101))('\165' + chr(116) + '\146' + chr(0b101101) + chr(943 - 887)))(KRPVTh53J4uq) yu1Xd9BC1r76 = Bvi71nNyvlqO(rPULHjiXZ0Xj)._61auecdOib2(KRPVTh53J4uq) for jkp_M8Pp8CIt in yu1Xd9BC1r76: hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx[jkp_M8Pp8CIt] = None def cY5PHzHJkW97(D9V1gzpAbjGu, OHMe9lml54lU, SPMRs6TUXhpX): SLVB2BPA_mIe = D9V1gzpAbjGu.SLVB2BPA_mIe rm1uRQGSygF4 = hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(0b1010111 + 0o15) + chr(9806 - 9705) + '\x63' + chr(111) + '\144' + '\x65')('\x75' + chr(13224 - 13108) + chr(102) + chr(45) + chr(682 - 626))].jpOn8DNZxbbx[OHMe9lml54lU] == SLVB2BPA_mIe maMDvHzsQ6IR = hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), chr(0b111100 + 0o50) + '\x65' + '\x63' + chr(111) + chr(8792 - 8692) + '\145')('\165' + chr(0b1110011 + 0o1) + chr(0b1001100 + 0o32) + '\x2d' + chr(0b110011 + 0o5))].jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'J\xcd\xe0\xd8"'), chr(0b100010 + 0o102) + chr(0b1100101) + '\143' + chr(12282 - 12171) + chr(100) + chr(0b1001001 + 0o34))(chr(4528 - 4411) + '\164' + chr(2081 - 1979) + chr(0b101101) + chr(0b111000))] == OHMe9lml54lU BBM8dxm7YWge = rm1uRQGSygF4 & maMDvHzsQ6IR cVEcJFr6o6vR = hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3\xce'), '\x64' + '\x65' + '\143' + '\157' + chr(0b1100100) + chr(264 - 163))(chr(117) + '\x74' + chr(0b1100011 + 0o3) + '\055' + '\070')].jpOn8DNZxbbx[BBM8dxm7YWge] if ftfygxgFas5X(cVEcJFr6o6vR): return H4NoA26ON7iG(roI3spqORKae(cVEcJFr6o6vR[SPMRs6TUXhpX], roI3spqORKae(ES5oEprVxulp(b'e\xdb\xf9\xd9\x14\x1b\x00V\xa5\xb9\xce\xa1'), '\x64' + chr(0b101100 + 0o71) + chr(0b1100011) + chr(0b1101111) + '\144' + chr(0b1001100 + 0o31))(chr(0b1010011 + 0o42) + chr(0b110 + 0o156) + chr(6881 - 6779) + chr(0b101101) + chr(0b111000)))[nzTpIcepk0o8(chr(0b110000) + chr(111) + '\060', 8)]) return [None] * ftfygxgFas5X(SPMRs6TUXhpX) _XdQFJpnzJor = hXMPsSrOQzbh.tables[kR9bIddrApHD].df.apply(cY5PHzHJkW97, axis=nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(49), 0o10), args=[OHMe9lml54lU, rPULHjiXZ0Xj]) nb1PCJiiJkkG = HLKt4sa1j9hm.DataFrame(data=H4NoA26ON7iG(_XdQFJpnzJor.CsodZJH6x9Tx), index=_XdQFJpnzJor.ZpfN5tSLaZze, columns=rPULHjiXZ0Xj) M8YbYkH6Pk0L = nDF4gVNx0u9Q.xWH4M7K6Qbd3(hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx[rPULHjiXZ0Xj], hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx[rPULHjiXZ0Xj], nb1PCJiiJkkG) hXMPsSrOQzbh.tables[kR9bIddrApHD].jpOn8DNZxbbx[rPULHjiXZ0Xj] = M8YbYkH6Pk0L v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x0b\xe1\xbb\x9d\x0f5,\t\xb3\xe7\xba\xb8y\x0f\x92\x03\xfd\x83\xb2\x94a,J\xaf\xa1\xad|q\xb1\xaf\xe29~\x07\x92\x17\x0fB\xf6iO\xc7\xf8\xcen%)\x02\xb1\xe5\xba\xbb\x7f\x19\xa8\x0f\xb4\x8b\xb4\x94m+@\xe6\xad\xbft\x01\xb0\xa1\xedpg\x1d\xdf[\x01F\xf2n\x06\xce\xf9\xc8 5h\t\xb3\xa0\xe9\xb0j\x0f\xbeK\xe0\x85\xb8\xd8e'), '\144' + chr(0b1100101) + chr(0b101010 + 0o71) + chr(0b1101111) + '\x64' + chr(0b11001 + 0o114))(chr(11550 - 11433) + chr(116) + '\146' + chr(45) + '\x38')) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'V\xda\xf9\xcd/6)\x14\xb8\xdf\xf7\xb0p5\xa0\n\xec\xbb\xaf\xc4'), chr(0b1001101 + 0o27) + '\x65' + chr(0b1100011) + chr(111) + '\x64' + chr(527 - 426))('\165' + chr(0b110010 + 0o102) + chr(102) + '\x2d' + chr(0b110111 + 0o1)))(cols=[roI3spqORKae(ES5oEprVxulp(b'G\xcf\xf3'), '\x64' + chr(101) + '\143' + chr(111) + chr(100) + '\145')(chr(0b1101100 + 0o11) + '\x74' + '\146' + '\x2d' + chr(56))], target_df_name=roI3spqORKae(ES5oEprVxulp(b"J\xc7\xf5\xdc:8'\x0e\xae"), chr(0b110101 + 0o57) + chr(3138 - 3037) + chr(99) + chr(4378 - 4267) + chr(100) + chr(101))('\165' + '\164' + chr(102) + chr(45) + chr(0b101001 + 0o17)), source_df_name=roI3spqORKae(ES5oEprVxulp(b'U\xc1\xe2\xd8='), chr(3459 - 3359) + '\145' + '\143' + '\x6f' + '\144' + chr(0b1010 + 0o133))('\165' + '\x74' + chr(8084 - 7982) + chr(45) + '\070'))
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.remove_non_magic_cols
def remove_non_magic_cols(self): """ Remove all non-MagIC columns from all tables. """ for table_name in self.tables: table = self.tables[table_name] table.remove_non_magic_cols_from_table()
python
def remove_non_magic_cols(self): """ Remove all non-MagIC columns from all tables. """ for table_name in self.tables: table = self.tables[table_name] table.remove_non_magic_cols_from_table()
[ "def", "remove_non_magic_cols", "(", "self", ")", ":", "for", "table_name", "in", "self", ".", "tables", ":", "table", "=", "self", ".", "tables", "[", "table_name", "]", "table", ".", "remove_non_magic_cols_from_table", "(", ")" ]
Remove all non-MagIC columns from all tables.
[ "Remove", "all", "non", "-", "MagIC", "columns", "from", "all", "tables", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1123-L1129
train
Remove all non - MagIC columns from all tables.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b110111 + 0o70) + chr(0b110010) + '\x31' + chr(1356 - 1305), ord("\x08")), nzTpIcepk0o8(chr(120 - 72) + chr(6756 - 6645) + chr(0b110001) + chr(52) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(1213 - 1102) + '\x32' + chr(52) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b0 + 0o66) + chr(174 - 126), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b110001) + chr(0b110101) + chr(1130 - 1081), 1066 - 1058), nzTpIcepk0o8('\x30' + chr(571 - 460) + chr(1210 - 1161) + '\066' + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + '\063' + '\x34' + '\x36', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(887 - 838) + '\066' + '\061', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b110010), 58907 - 58899), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(54), 0b1000), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(8564 - 8453) + chr(0b110001 + 0o0) + chr(0b110101) + chr(1175 - 1123), 0o10), nzTpIcepk0o8(chr(1327 - 1279) + '\x6f' + '\062' + chr(2681 - 2626) + chr(0b110100), 25052 - 25044), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(50) + chr(0b101111 + 0o1) + chr(0b11110 + 0o23), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(2455 - 2404) + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2413 - 2363) + '\x35' + '\060', 0o10), nzTpIcepk0o8(chr(108 - 60) + chr(0b1100 + 0o143) + chr(50) + chr(0b110010 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\x36' + chr(1774 - 1726), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b101100 + 0o7) + chr(2294 - 2244) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(2348 - 2297) + chr(2504 - 2449) + chr(0b10110 + 0o41), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x32' + chr(48) + '\x32', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(320 - 271) + chr(0b110111) + chr(1340 - 1290), 0o10), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(0b110010) + chr(0b110 + 0o52) + chr(0b10010 + 0o45), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110101) + chr(2785 - 2731), 20793 - 20785), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b11011 + 0o30) + chr(54) + '\060', 8), nzTpIcepk0o8(chr(48) + chr(0b110011 + 0o74) + '\063' + chr(54) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + '\x36' + '\066', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(50) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32', 32046 - 32038), nzTpIcepk0o8(chr(0b101 + 0o53) + chr(1779 - 1668) + chr(51) + chr(0b110111) + chr(52), 0b1000), nzTpIcepk0o8('\060' + chr(6262 - 6151) + chr(0b110011) + '\062' + '\x36', 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b111 + 0o54) + '\065' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(11355 - 11244) + '\x32' + chr(0b110111) + chr(54), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\157' + chr(0b101011 + 0o6) + '\062' + chr(50), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b11010 + 0o125) + chr(0b110011 + 0o0) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(55) + chr(0b101 + 0o55), 35555 - 35547), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\061' + chr(49), 3034 - 3026), nzTpIcepk0o8('\060' + '\x6f' + chr(1380 - 1330) + '\060' + '\x36', 0b1000), nzTpIcepk0o8('\060' + chr(7720 - 7609) + chr(50) + '\062' + '\x34', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(51) + '\x33' + chr(0b110000), 48387 - 48379)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(266 - 155) + chr(1549 - 1496) + '\x30', 36115 - 36107)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa5'), chr(100) + chr(0b1000110 + 0o37) + chr(0b1100011) + '\x6f' + chr(9573 - 9473) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def V208vSPeKfFG(hXMPsSrOQzbh): for kR9bIddrApHD in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xdc\x04\xd5##+\xd6\x02SO\x1c\xf0'), chr(100) + chr(0b1011011 + 0o12) + chr(0b1001100 + 0o27) + chr(822 - 711) + '\144' + '\145')(chr(0b1110101) + chr(0b1110100) + '\x66' + '\x2d' + '\x38')): JlcDRbBtmPwV = hXMPsSrOQzbh.WgtSJX0sIYpL[kR9bIddrApHD] roI3spqORKae(JlcDRbBtmPwV, roI3spqORKae(ES5oEprVxulp(b'\xf9\x06\xcc\x1f\x1f\x16\xb9\x1fux3\xd1\xe0\xbd\xc1p\xaf\xb5K\x93\xf1%\xe1\x9c\x9f\x9f\xe9\xe4c\x9e\xba\x8a'), chr(194 - 94) + '\x65' + chr(99) + chr(11087 - 10976) + '\144' + chr(0b1011001 + 0o14))(chr(0b100111 + 0o116) + chr(0b1001010 + 0o52) + chr(0b111101 + 0o51) + chr(0b101101) + chr(56)))()
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.write_table_to_file
def write_table_to_file(self, dtype, custom_name=None, append=False, dir_path=None): """ Write out a MagIC table to file, using custom filename as specified in self.filenames. Parameters ---------- dtype : str magic table name """ if custom_name: fname = custom_name else: fname = self.filenames[dtype] if not dir_path: dir_path=self.directory if dtype in self.tables: write_df = self.remove_names(dtype) outfile = self.tables[dtype].write_magic_file(custom_name=fname, dir_path=dir_path, append=append, df=write_df) return outfile
python
def write_table_to_file(self, dtype, custom_name=None, append=False, dir_path=None): """ Write out a MagIC table to file, using custom filename as specified in self.filenames. Parameters ---------- dtype : str magic table name """ if custom_name: fname = custom_name else: fname = self.filenames[dtype] if not dir_path: dir_path=self.directory if dtype in self.tables: write_df = self.remove_names(dtype) outfile = self.tables[dtype].write_magic_file(custom_name=fname, dir_path=dir_path, append=append, df=write_df) return outfile
[ "def", "write_table_to_file", "(", "self", ",", "dtype", ",", "custom_name", "=", "None", ",", "append", "=", "False", ",", "dir_path", "=", "None", ")", ":", "if", "custom_name", ":", "fname", "=", "custom_name", "else", ":", "fname", "=", "self", ".", "filenames", "[", "dtype", "]", "if", "not", "dir_path", ":", "dir_path", "=", "self", ".", "directory", "if", "dtype", "in", "self", ".", "tables", ":", "write_df", "=", "self", ".", "remove_names", "(", "dtype", ")", "outfile", "=", "self", ".", "tables", "[", "dtype", "]", ".", "write_magic_file", "(", "custom_name", "=", "fname", ",", "dir_path", "=", "dir_path", ",", "append", "=", "append", ",", "df", "=", "write_df", ")", "return", "outfile" ]
Write out a MagIC table to file, using custom filename as specified in self.filenames. Parameters ---------- dtype : str magic table name
[ "Write", "out", "a", "MagIC", "table", "to", "file", "using", "custom", "filename", "as", "specified", "in", "self", ".", "filenames", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1131-L1152
train
Writes out a MagIC table to file using custom filename as specified in self. filenames.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1001011 + 0o44) + chr(0b110010) + chr(54) + chr(0b101 + 0o55), ord("\x08")), nzTpIcepk0o8(chr(796 - 748) + chr(111) + chr(51) + chr(0b100111 + 0o12) + chr(50), 15898 - 15890), nzTpIcepk0o8('\x30' + chr(5891 - 5780) + '\x35' + '\062', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\061' + chr(0b11101 + 0o26), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b110001) + '\060', ord("\x08")), nzTpIcepk0o8(chr(442 - 394) + chr(0b0 + 0o157) + chr(1974 - 1923) + chr(0b11100 + 0o25) + chr(0b10001 + 0o42), 47148 - 47140), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + '\x36' + '\x32', 8), nzTpIcepk0o8(chr(0b110000) + chr(5440 - 5329) + chr(0b110010) + '\x37' + '\060', 0o10), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(0b1110 + 0o45) + '\x30', 55243 - 55235), nzTpIcepk0o8('\060' + '\157' + '\x35' + chr(0b10001 + 0o46), ord("\x08")), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(111) + '\061' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(53) + chr(2440 - 2389), 9867 - 9859), nzTpIcepk0o8('\060' + chr(111) + chr(730 - 681) + chr(0b110000) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(4742 - 4631) + '\x32' + chr(363 - 315) + '\061', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(55) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(2369 - 2318) + chr(0b110001 + 0o0) + chr(48), 0b1000), nzTpIcepk0o8(chr(1598 - 1550) + chr(457 - 346) + chr(50) + chr(51), 25132 - 25124), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(963 - 912) + '\x35' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\063' + chr(52), 39814 - 39806), nzTpIcepk0o8(chr(847 - 799) + chr(10511 - 10400) + chr(1685 - 1635) + chr(54) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(5473 - 5362) + chr(49) + chr(55) + chr(0b10110 + 0o35), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + chr(0b1001 + 0o50) + chr(0b1 + 0o65) + '\x37', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + chr(53) + chr(58 - 10), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(1481 - 1431) + chr(0b110001) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x32' + '\061' + '\x36', 466 - 458), nzTpIcepk0o8(chr(2278 - 2230) + chr(6995 - 6884) + '\062' + chr(0b110111) + chr(111 - 62), 61937 - 61929), nzTpIcepk0o8('\060' + '\x6f' + '\x31' + chr(49) + chr(1102 - 1054), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + '\x36' + chr(2310 - 2257), 26576 - 26568), nzTpIcepk0o8(chr(740 - 692) + '\x6f' + '\x32' + chr(51) + '\067', 46545 - 46537), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(982 - 934) + chr(0b1011 + 0o54), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(50) + chr(1610 - 1555) + chr(53), 0o10), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(0b11110 + 0o25) + chr(0b110111) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\067' + '\067', 22044 - 22036), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + chr(1373 - 1322) + chr(0b101001 + 0o14), 0b1000), nzTpIcepk0o8(chr(420 - 372) + chr(1231 - 1120) + chr(0b110100) + chr(0b10 + 0o60), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(49) + '\x34' + chr(0b100100 + 0o20), 14392 - 14384), nzTpIcepk0o8(chr(1202 - 1154) + chr(0b11000 + 0o127) + '\x31' + chr(49), 6462 - 6454), nzTpIcepk0o8('\x30' + chr(111) + chr(55), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b11 + 0o60) + '\067' + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(0b1001100 + 0o43) + chr(49) + chr(0b10111 + 0o40), 41112 - 41104)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\065' + chr(48), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x9c'), chr(0b1100100) + chr(101) + chr(0b10101 + 0o116) + '\x6f' + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(5772 - 5670) + chr(0b101101) + chr(0b100111 + 0o21)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def psdNgiDUtgLB(hXMPsSrOQzbh, RcX9bbuOzh5L, xXA6gCtaliX5=None, HTS4xgGojoU5=nzTpIcepk0o8('\x30' + chr(0b1011 + 0o144) + '\x30', ord("\x08")), qjksZ7GK0xkJ=None): if xXA6gCtaliX5: jXqxEQuu_5DD = xXA6gCtaliX5 else: jXqxEQuu_5DD = hXMPsSrOQzbh.EXVYY4cgQiXQ[RcX9bbuOzh5L] if not qjksZ7GK0xkJ: qjksZ7GK0xkJ = hXMPsSrOQzbh.InVoWQwNBeGF if RcX9bbuOzh5L in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xe5\xad^\xd8\xc2\x93\x82\xcb\x11vzg'), chr(0b10110 + 0o116) + '\145' + chr(0b110 + 0o135) + chr(111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(8790 - 8674) + chr(0b1100110) + chr(0b10001 + 0o34) + chr(0b111000))): lR0AM2EbdnGh = hXMPsSrOQzbh.remove_names(RcX9bbuOzh5L) neY2HPRd1pS4 = hXMPsSrOQzbh.tables[RcX9bbuOzh5L].write_magic_file(custom_name=jXqxEQuu_5DD, dir_path=qjksZ7GK0xkJ, append=HTS4xgGojoU5, df=lR0AM2EbdnGh) return neY2HPRd1pS4
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.remove_names
def remove_names(self, dtype): """ Remove unneeded name columns ('specimen'/'sample'/etc) from the specified table. Parameters ---------- dtype : str Returns --------- pandas DataFrame without the unneeded columns Example --------- Contribution.tables['specimens'].df = Contribution.remove_names('specimens') # takes out 'location', 'site', and/or 'sample' columns from the # specimens dataframe if those columns have been added """ if dtype not in self.ancestry: return if dtype in self.tables: # remove extra columns here self_ind = self.ancestry.index(dtype) parent_ind = self_ind + 1 if self_ind < (len(self.ancestry) -1) else self_ind remove = set(self.ancestry).difference([self.ancestry[self_ind], self.ancestry[parent_ind]]) remove = [dtype[:-1] for dtype in remove] columns = self.tables[dtype].df.columns.difference(remove) return self.tables[dtype].df[columns]
python
def remove_names(self, dtype): """ Remove unneeded name columns ('specimen'/'sample'/etc) from the specified table. Parameters ---------- dtype : str Returns --------- pandas DataFrame without the unneeded columns Example --------- Contribution.tables['specimens'].df = Contribution.remove_names('specimens') # takes out 'location', 'site', and/or 'sample' columns from the # specimens dataframe if those columns have been added """ if dtype not in self.ancestry: return if dtype in self.tables: # remove extra columns here self_ind = self.ancestry.index(dtype) parent_ind = self_ind + 1 if self_ind < (len(self.ancestry) -1) else self_ind remove = set(self.ancestry).difference([self.ancestry[self_ind], self.ancestry[parent_ind]]) remove = [dtype[:-1] for dtype in remove] columns = self.tables[dtype].df.columns.difference(remove) return self.tables[dtype].df[columns]
[ "def", "remove_names", "(", "self", ",", "dtype", ")", ":", "if", "dtype", "not", "in", "self", ".", "ancestry", ":", "return", "if", "dtype", "in", "self", ".", "tables", ":", "# remove extra columns here", "self_ind", "=", "self", ".", "ancestry", ".", "index", "(", "dtype", ")", "parent_ind", "=", "self_ind", "+", "1", "if", "self_ind", "<", "(", "len", "(", "self", ".", "ancestry", ")", "-", "1", ")", "else", "self_ind", "remove", "=", "set", "(", "self", ".", "ancestry", ")", ".", "difference", "(", "[", "self", ".", "ancestry", "[", "self_ind", "]", ",", "self", ".", "ancestry", "[", "parent_ind", "]", "]", ")", "remove", "=", "[", "dtype", "[", ":", "-", "1", "]", "for", "dtype", "in", "remove", "]", "columns", "=", "self", ".", "tables", "[", "dtype", "]", ".", "df", ".", "columns", ".", "difference", "(", "remove", ")", "return", "self", ".", "tables", "[", "dtype", "]", ".", "df", "[", "columns", "]" ]
Remove unneeded name columns ('specimen'/'sample'/etc) from the specified table. Parameters ---------- dtype : str Returns --------- pandas DataFrame without the unneeded columns Example --------- Contribution.tables['specimens'].df = Contribution.remove_names('specimens') # takes out 'location', 'site', and/or 'sample' columns from the # specimens dataframe if those columns have been added
[ "Remove", "unneeded", "name", "columns", "(", "specimen", "/", "sample", "/", "etc", ")", "from", "the", "specified", "table", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1154-L1182
train
Remove unneeded name columns from the specified table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2168 - 2120) + chr(0b1101111) + chr(303 - 253), ord("\x08")), nzTpIcepk0o8(chr(1402 - 1354) + chr(111) + '\x31', 19991 - 19983), nzTpIcepk0o8('\x30' + chr(6093 - 5982) + chr(51) + chr(49) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111010 + 0o65) + chr(54) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + chr(0b10111 + 0o32) + chr(1698 - 1643), 0b1000), nzTpIcepk0o8(chr(0b100110 + 0o12) + '\x6f' + chr(550 - 501) + chr(173 - 118) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(2043 - 1995) + chr(111) + '\x32' + chr(0b110101) + '\x33', 0b1000), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(3082 - 2971) + chr(0b110001) + chr(2293 - 2239) + chr(0b1111 + 0o45), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(5330 - 5219) + chr(50) + chr(0b110010) + chr(1234 - 1186), ord("\x08")), nzTpIcepk0o8(chr(1733 - 1685) + '\157' + chr(0b10011 + 0o36) + chr(55) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(4032 - 3921) + chr(1727 - 1676) + '\x37' + chr(0b11101 + 0o30), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\060', 0o10), nzTpIcepk0o8(chr(1079 - 1031) + '\x6f' + '\x32' + '\065' + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110000 + 0o1), 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(6477 - 6366) + '\x33' + chr(682 - 633) + '\x37', 8), nzTpIcepk0o8(chr(48) + chr(6995 - 6884) + '\061' + chr(0b110110) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101 + 0o142) + '\x33' + chr(55) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(3040 - 2929) + '\x33' + chr(1846 - 1795) + '\x33', 18715 - 18707), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b11110 + 0o23) + chr(104 - 50) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(2161 - 2110) + chr(1591 - 1542) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(1752 - 1704) + chr(0b1101111) + chr(0b110001) + chr(0b110110) + chr(0b100110 + 0o16), 8), nzTpIcepk0o8(chr(48) + chr(0b1001111 + 0o40) + chr(284 - 233) + chr(0b110000) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10100 + 0o36) + '\065' + '\064', 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(2301 - 2250) + chr(2202 - 2148) + '\065', 14772 - 14764), nzTpIcepk0o8(chr(48) + chr(0b111101 + 0o62) + chr(797 - 746) + chr(0b101 + 0o55) + chr(51), 20325 - 20317), nzTpIcepk0o8(chr(0b110000) + chr(0b1101101 + 0o2) + '\062' + '\063' + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(1645 - 1596) + chr(2873 - 2818), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(272 - 218) + '\x34', 0b1000), nzTpIcepk0o8(chr(313 - 265) + chr(5519 - 5408) + '\x31' + chr(2832 - 2777) + chr(0b1010 + 0o47), 8), nzTpIcepk0o8('\x30' + chr(0b1101010 + 0o5) + chr(0b110001) + chr(51) + '\063', 0b1000), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(1505 - 1394) + '\x33' + chr(0b110010) + chr(1049 - 1001), 47636 - 47628), nzTpIcepk0o8(chr(1641 - 1593) + '\157' + chr(2005 - 1953) + '\063', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b111 + 0o54) + chr(51) + chr(0b110010 + 0o1), 8), nzTpIcepk0o8(chr(2129 - 2081) + chr(7711 - 7600) + chr(1490 - 1439) + chr(0b100000 + 0o25) + chr(0b11001 + 0o35), 54991 - 54983), nzTpIcepk0o8(chr(569 - 521) + chr(4351 - 4240) + chr(51) + chr(0b110100) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(2964 - 2853) + '\061' + '\x32' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10100 + 0o35) + chr(0b110 + 0o53) + '\x34', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101000 + 0o7) + chr(0b110 + 0o55) + chr(0b11110 + 0o24) + chr(48), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + '\066' + '\066', 7220 - 7212), nzTpIcepk0o8(chr(1207 - 1159) + chr(111) + '\062' + chr(0b100010 + 0o25) + '\066', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(5334 - 5223) + '\065' + '\x30', 28907 - 28899)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b','), chr(9836 - 9736) + chr(8856 - 8755) + chr(0b101 + 0o136) + '\x6f' + '\144' + chr(3482 - 3381))(chr(8400 - 8283) + chr(0b1110100) + '\x66' + chr(1315 - 1270) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def wtYMcILzGeYO(hXMPsSrOQzbh, RcX9bbuOzh5L): if RcX9bbuOzh5L not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'P5\xadC\x96\x0e\xe6\x10\xa5\x1c\xaaf'), chr(959 - 859) + '\145' + chr(4119 - 4020) + chr(111) + chr(8097 - 7997) + '\145')(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b110110 + 0o2))): return if RcX9bbuOzh5L in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Uf\xbc`\x85!\x9b\x07\xd9!\x8dL'), chr(0b101001 + 0o73) + chr(0b1100101) + chr(0b110110 + 0o55) + chr(0b110000 + 0o77) + chr(0b1100100) + chr(6551 - 6450))('\165' + chr(116) + chr(3609 - 3507) + chr(0b101101) + '\x38')): hi8RrKYim2gH = hXMPsSrOQzbh.ancestry.ZpfN5tSLaZze(RcX9bbuOzh5L) R0d1diKG8Os8 = hi8RrKYim2gH + nzTpIcepk0o8(chr(0b11011 + 0o25) + '\x6f' + chr(0b110001), 8) if hi8RrKYim2gH < ftfygxgFas5X(hXMPsSrOQzbh.R4epYwMd5dWf) - nzTpIcepk0o8(chr(885 - 837) + '\157' + '\x31', 8) else hi8RrKYim2gH pMlUhd2JmKAE = Bvi71nNyvlqO(hXMPsSrOQzbh.ancestry)._61auecdOib2([hXMPsSrOQzbh.R4epYwMd5dWf[hi8RrKYim2gH], hXMPsSrOQzbh.R4epYwMd5dWf[R0d1diKG8Os8]]) pMlUhd2JmKAE = [RcX9bbuOzh5L[:-nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b100010 + 0o17), 8)] for RcX9bbuOzh5L in pMlUhd2JmKAE] U39jSiI54Mlp = hXMPsSrOQzbh.tables[RcX9bbuOzh5L].df.columns._61auecdOib2(pMlUhd2JmKAE) return roI3spqORKae(hXMPsSrOQzbh.tables[RcX9bbuOzh5L], roI3spqORKae(ES5oEprVxulp(b'hq\x87]\xf7=\xe5.\xe8\x1a\x9fx'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(3461 - 3361) + '\x65')(chr(0b111100 + 0o71) + '\164' + chr(0b1100100 + 0o2) + chr(0b101101) + chr(0b10100 + 0o44)))[U39jSiI54Mlp]
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.find_missing_items
def find_missing_items(self, dtype): """ Find any items that are referenced in a child table but are missing in their own table. For example, a site that is listed in the samples table, but has no entry in the sites table. Parameters ---------- dtype : str table name, e.g. 'specimens' Returns --------- set of missing values """ parent_dtype, child_dtype = self.get_parent_and_child(dtype) if not child_dtype in self.tables: return set() items = set(self.tables[dtype].df.index.unique()) items_in_child_table = set(self.tables[child_dtype].df[dtype[:-1]].unique()) return {i for i in (items_in_child_table - items) if not_null(i)}
python
def find_missing_items(self, dtype): """ Find any items that are referenced in a child table but are missing in their own table. For example, a site that is listed in the samples table, but has no entry in the sites table. Parameters ---------- dtype : str table name, e.g. 'specimens' Returns --------- set of missing values """ parent_dtype, child_dtype = self.get_parent_and_child(dtype) if not child_dtype in self.tables: return set() items = set(self.tables[dtype].df.index.unique()) items_in_child_table = set(self.tables[child_dtype].df[dtype[:-1]].unique()) return {i for i in (items_in_child_table - items) if not_null(i)}
[ "def", "find_missing_items", "(", "self", ",", "dtype", ")", ":", "parent_dtype", ",", "child_dtype", "=", "self", ".", "get_parent_and_child", "(", "dtype", ")", "if", "not", "child_dtype", "in", "self", ".", "tables", ":", "return", "set", "(", ")", "items", "=", "set", "(", "self", ".", "tables", "[", "dtype", "]", ".", "df", ".", "index", ".", "unique", "(", ")", ")", "items_in_child_table", "=", "set", "(", "self", ".", "tables", "[", "child_dtype", "]", ".", "df", "[", "dtype", "[", ":", "-", "1", "]", "]", ".", "unique", "(", ")", ")", "return", "{", "i", "for", "i", "in", "(", "items_in_child_table", "-", "items", ")", "if", "not_null", "(", "i", ")", "}" ]
Find any items that are referenced in a child table but are missing in their own table. For example, a site that is listed in the samples table, but has no entry in the sites table. Parameters ---------- dtype : str table name, e.g. 'specimens' Returns --------- set of missing values
[ "Find", "any", "items", "that", "are", "referenced", "in", "a", "child", "table", "but", "are", "missing", "in", "their", "own", "table", ".", "For", "example", "a", "site", "that", "is", "listed", "in", "the", "samples", "table", "but", "has", "no", "entry", "in", "the", "sites", "table", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1187-L1208
train
Find any items that are referenced in a child table but are missing in their own table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2253 - 2205) + chr(0b1100111 + 0o10) + '\x33' + '\064' + '\x33', 0b1000), nzTpIcepk0o8(chr(550 - 502) + chr(0b1101111) + chr(1639 - 1588) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + chr(1000 - 889) + '\x33' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b0 + 0o61) + '\064' + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(7436 - 7325) + chr(0b110001) + chr(0b110111) + chr(0b110 + 0o55), 0b1000), nzTpIcepk0o8(chr(824 - 776) + chr(0b1100111 + 0o10) + chr(2385 - 2335) + chr(2598 - 2547), 50050 - 50042), nzTpIcepk0o8('\x30' + '\157' + chr(0b11100 + 0o25) + chr(0b110001) + chr(0b110111), 28856 - 28848), nzTpIcepk0o8(chr(1906 - 1858) + chr(0b1101111) + '\065' + chr(48), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + '\x31' + chr(0b110111), 8), nzTpIcepk0o8(chr(1377 - 1329) + '\157' + '\063' + chr(51) + '\x31', 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + '\060' + chr(0b10100 + 0o41), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(2224 - 2175) + chr(0b1101 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(0b110010) + '\x37' + chr(2676 - 2624), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(49) + chr(52) + chr(0b110110), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1010111 + 0o30) + chr(51) + chr(0b110001), 8), nzTpIcepk0o8('\060' + chr(0b111101 + 0o62) + chr(0b101111 + 0o4) + chr(656 - 606) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\065' + chr(0b110010), 58345 - 58337), nzTpIcepk0o8(chr(2249 - 2201) + '\x6f' + chr(51) + '\x30' + '\x31', 0o10), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1011100 + 0o23) + '\x33' + chr(2341 - 2290) + chr(0b110110), 26441 - 26433), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + chr(0b110011) + '\066', 0o10), nzTpIcepk0o8(chr(1554 - 1506) + chr(4978 - 4867) + '\063' + '\060' + chr(0b100010 + 0o21), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(1637 - 1588) + chr(0b101010 + 0o12) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\062' + chr(1230 - 1176), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11756 - 11645) + chr(1422 - 1373) + chr(50) + chr(0b110100), 13519 - 13511), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + chr(54) + chr(0b110 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\x36' + chr(48), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110011) + '\063' + chr(1335 - 1280), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1100011 + 0o14) + chr(0b11001 + 0o30) + '\x36' + chr(50), 0b1000), nzTpIcepk0o8(chr(2061 - 2013) + chr(111) + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\067' + chr(0b11001 + 0o31), 0o10), nzTpIcepk0o8(chr(48) + chr(0b0 + 0o157) + chr(49) + chr(1836 - 1788) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1100001 + 0o16) + chr(50) + chr(2193 - 2142) + '\x34', 0o10), nzTpIcepk0o8(chr(789 - 741) + chr(111) + chr(0b101101 + 0o6) + chr(0b110011) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(389 - 278) + chr(0b110011 + 0o0) + chr(0b0 + 0o63) + '\x37', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b111 + 0o52) + chr(2258 - 2207) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + chr(0b110010) + '\x30' + chr(48), 0o10), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(0b1100011 + 0o14) + chr(50) + chr(1179 - 1126) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\x32' + chr(0b110001) + chr(883 - 833), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + '\063' + chr(82 - 31), 0o10), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(50) + chr(1144 - 1089) + chr(52), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + '\065' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xcd'), '\144' + chr(0b10101 + 0o120) + chr(99) + chr(111) + chr(0b1100100) + chr(0b1011011 + 0o12))(chr(0b101100 + 0o111) + chr(0b1110100) + chr(0b1100011 + 0o3) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def tQfyyHVqcuoE(hXMPsSrOQzbh, RcX9bbuOzh5L): (WECt7y2N25vc, Za4iN3FoVrYw) = hXMPsSrOQzbh.get_parent_and_child(RcX9bbuOzh5L) if Za4iN3FoVrYw not in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4~h01K\x7f[\x06\x80\xb5\x04'), chr(100) + chr(101) + chr(0b1001010 + 0o31) + chr(0b1101111) + chr(0b1100100) + '\x65')('\165' + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b101110 + 0o12))): return Bvi71nNyvlqO() Y_nNEzH43vXi = Bvi71nNyvlqO(hXMPsSrOQzbh.tables[RcX9bbuOzh5L].df.index.G3de2eWQaS0D()) lUgq8Z0EyAun = Bvi71nNyvlqO(hXMPsSrOQzbh.tables[Za4iN3FoVrYw].df[RcX9bbuOzh5L[:-nzTpIcepk0o8(chr(48) + chr(0b11000 + 0o127) + chr(0b11101 + 0o24), 0o10)]].G3de2eWQaS0D()) return {ZlbFMSG8gCoF for ZlbFMSG8gCoF in lUgq8Z0EyAun - Y_nNEzH43vXi if OPdnCSWnXMKM(ZlbFMSG8gCoF)}
PmagPy/PmagPy
pmagpy/contribution_builder.py
Contribution.get_con_id
def get_con_id(self): """ Return contribution id if available """ con_id = "" if "contribution" in self.tables: if "id" in self.tables["contribution"].df.columns: con_id = str(self.tables["contribution"].df["id"].values[0]) return con_id
python
def get_con_id(self): """ Return contribution id if available """ con_id = "" if "contribution" in self.tables: if "id" in self.tables["contribution"].df.columns: con_id = str(self.tables["contribution"].df["id"].values[0]) return con_id
[ "def", "get_con_id", "(", "self", ")", ":", "con_id", "=", "\"\"", "if", "\"contribution\"", "in", "self", ".", "tables", ":", "if", "\"id\"", "in", "self", ".", "tables", "[", "\"contribution\"", "]", ".", "df", ".", "columns", ":", "con_id", "=", "str", "(", "self", ".", "tables", "[", "\"contribution\"", "]", ".", "df", "[", "\"id\"", "]", ".", "values", "[", "0", "]", ")", "return", "con_id" ]
Return contribution id if available
[ "Return", "contribution", "id", "if", "available" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1211-L1219
train
Return contribution id if available
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + '\063' + '\x32', ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(0b11101 + 0o122) + '\062' + chr(0b110000) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(48) + chr(1962 - 1909), ord("\x08")), nzTpIcepk0o8(chr(2064 - 2016) + '\157' + chr(0b110011) + chr(1005 - 954) + chr(0b100110 + 0o14), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + '\x32', 0o10), nzTpIcepk0o8(chr(402 - 354) + chr(0b1101111) + chr(0b1010 + 0o47) + chr(1704 - 1655) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(964 - 853) + '\064' + '\064', 0b1000), nzTpIcepk0o8(chr(50 - 2) + chr(11078 - 10967) + chr(0b1100 + 0o46) + '\062', 0b1000), nzTpIcepk0o8(chr(1767 - 1719) + chr(4915 - 4804) + '\063' + '\x36' + chr(0b101110 + 0o7), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b100101 + 0o14) + '\063' + chr(0b110101 + 0o1), ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + chr(48), 32042 - 32034), nzTpIcepk0o8(chr(1710 - 1662) + chr(111) + chr(0b110 + 0o54) + chr(1541 - 1489) + chr(55), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1001001 + 0o46) + '\062' + chr(2407 - 2357) + chr(1307 - 1256), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + '\061' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(0b110001) + chr(0b100010 + 0o21), 16273 - 16265), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110100) + chr(1572 - 1519), 0b1000), nzTpIcepk0o8(chr(1113 - 1065) + chr(0b1101111) + chr(2334 - 2285) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1011001 + 0o26) + chr(956 - 907) + chr(0b101001 + 0o7), 0b1000), nzTpIcepk0o8('\060' + chr(138 - 27) + chr(0b111 + 0o55) + chr(0b100001 + 0o22), 0b1000), nzTpIcepk0o8('\060' + chr(7619 - 7508) + chr(0b10010 + 0o41) + chr(648 - 597) + chr(0b110 + 0o60), 0o10), nzTpIcepk0o8(chr(1273 - 1225) + '\157' + chr(49) + '\065' + chr(979 - 925), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x31' + chr(51) + '\x30', 708 - 700), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b100010 + 0o115) + '\x31' + chr(0b0 + 0o66) + '\x36', 883 - 875), nzTpIcepk0o8(chr(48) + chr(0b11011 + 0o124) + '\x31' + chr(1507 - 1458) + chr(0b100111 + 0o12), 0o10), nzTpIcepk0o8(chr(2303 - 2255) + chr(0b1101111) + chr(0b110011) + chr(0b11000 + 0o31), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\062' + '\062', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10000 + 0o42) + chr(48) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1111 + 0o140) + chr(49) + chr(0b101100 + 0o10) + chr(131 - 79), 0o10), nzTpIcepk0o8('\x30' + chr(3353 - 3242) + chr(51) + '\060' + '\065', 33064 - 33056), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(52) + chr(0b101000 + 0o17), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1000100 + 0o53) + chr(0b110001) + chr(2353 - 2300) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\062' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(51) + chr(1934 - 1885) + chr(0b101 + 0o54), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\062' + chr(53) + '\x35', 3105 - 3097), nzTpIcepk0o8(chr(631 - 583) + chr(0b11111 + 0o120) + '\063' + chr(1846 - 1793) + chr(2565 - 2513), 0o10), nzTpIcepk0o8(chr(946 - 898) + chr(111) + chr(0b10100 + 0o36) + chr(0b10011 + 0o44) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b11 + 0o154) + chr(0b10111 + 0o33) + chr(1172 - 1119) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + '\062' + chr(50), 8), nzTpIcepk0o8(chr(0b110000) + chr(5125 - 5014) + chr(1578 - 1528) + '\x33' + chr(0b101101 + 0o11), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + '\x35' + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb4'), chr(4502 - 4402) + chr(0b1011100 + 0o11) + chr(0b1100011) + '\x6f' + chr(0b1100100) + '\145')(chr(0b1001101 + 0o50) + chr(0b1110100) + chr(102) + '\055' + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def bxpc1zGGvvhU(hXMPsSrOQzbh): FBG2MCwkKg3g = roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(101) + chr(99) + '\x6f' + chr(0b111100 + 0o50) + '\x65')(chr(0b1000100 + 0o61) + chr(116) + chr(102) + '\055' + '\x38') if roI3spqORKae(ES5oEprVxulp(b'\xf9\xef\xeb\xaeh&Fg\x817\x7f\xc9'), chr(0b1100100) + chr(1465 - 1364) + '\143' + '\157' + '\144' + '\145')(chr(117) + chr(116) + chr(0b1001001 + 0o35) + chr(0b101101) + chr(0b111000)) in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xcd\xe7\xf1\x89P\x17\x14a\xbc\x07`\xeb'), '\x64' + chr(6059 - 5958) + '\143' + chr(111) + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + '\146' + chr(45) + '\070')): if roI3spqORKae(ES5oEprVxulp(b'\xf3\xe4'), chr(100) + chr(101) + '\143' + chr(6784 - 6673) + chr(9650 - 9550) + chr(0b1100101))(chr(0b1110101) + chr(4925 - 4809) + chr(0b1010101 + 0o21) + '\055' + '\x38') in roI3spqORKae(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\xf9\xef\xeb\xaeh&Fg\x817\x7f\xc9'), chr(100) + chr(0b10111 + 0o116) + chr(0b11110 + 0o105) + chr(4575 - 4464) + chr(0b1100100) + chr(0b100100 + 0o101))(chr(11302 - 11185) + chr(116) + chr(0b1100101 + 0o1) + chr(0b101101) + chr(0b111000))].df, roI3spqORKae(ES5oEprVxulp(b"\xcf\xb3\xbc\xb0I&m'\xc1\x13|\xd7"), '\x64' + chr(101) + '\x63' + '\157' + chr(0b1100100) + chr(0b1001101 + 0o30))(chr(117) + '\164' + chr(5192 - 5090) + '\x2d' + '\070')): FBG2MCwkKg3g = N9zlRy29S1SS(hXMPsSrOQzbh.tables[roI3spqORKae(ES5oEprVxulp(b'\xf9\xef\xeb\xaeh&Fg\x817\x7f\xc9'), '\144' + chr(101) + chr(1914 - 1815) + chr(0b1011110 + 0o21) + chr(9583 - 9483) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(3754 - 3652) + chr(45) + '\x38')].df[roI3spqORKae(ES5oEprVxulp(b'\xf3\xe4'), chr(8634 - 8534) + chr(0b1011111 + 0o6) + chr(99) + '\157' + chr(981 - 881) + chr(101))(chr(0b1001111 + 0o46) + chr(12044 - 11928) + chr(102) + chr(0b100100 + 0o11) + chr(0b11110 + 0o32))].CsodZJH6x9Tx[nzTpIcepk0o8(chr(0b10110 + 0o32) + '\157' + '\x30', ord("\x08"))]) return FBG2MCwkKg3g
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.all_to_str
def all_to_str(self): """ In all columns, turn all floats/ints into strings. If a float ends with .0, strip off '.0' from the resulting string. """ def stringify(x): # float --> string, # truncating floats like 3.0 --> 3 if isinstance(x, float): if x.is_integer(): #print('{} --> {}'.format(x, str(x).rstrip('0').rstrip('.'))) return str(x).rstrip('0').rstrip('.') return(str(x)) # keep strings as they are, # unless it is a string like "3.0", # in which case truncate that too if isinstance(x, str): try: float(x) if x.endswith('0'): if x.rstrip('0').endswith('.'): #print('{} --> {}'.format(x, x.rstrip('0').rstrip('.'))) return x.rstrip('0').rstrip('.') except (ValueError, TypeError): pass # integer --> string if isinstance(x, int): return str(x) # if it is not int/str/float, just return as is return x def remove_extra_digits(x, prog): """ Remove extra digits x is a string, prog is always the following '_sre.SRE_Pattern': prog = re.compile("\d*[.]\d*([0]{5,100}|[9]{5,100})\d*\Z"). However, it is compiled outside of this sub-function for performance reasons. """ if not isinstance(x, str): return x result = prog.match(x) if result: decimals = result.string.split('.')[1] result = result.string if decimals[-3] == '0': result = x[:-2].rstrip('0') if decimals[-3] == '9': result = x[:-2].rstrip('9') try: last_digit = int(result[-1]) result = result[:-1] + str(last_digit + 1) except ValueError: result = float(result[:-1]) + 1 #if result != x: # print('changing {} to {}'.format(x, result)) return result return x for col in self.df.columns: self.df[col] = self.df[col].apply(stringify) prog = re.compile("\d*[.]\d*([0]{5,100}|[9]{5,100})\d*\Z") for col in self.df.columns: self.df[col] = self.df[col].apply(lambda x: remove_extra_digits(x, prog))
python
def all_to_str(self): """ In all columns, turn all floats/ints into strings. If a float ends with .0, strip off '.0' from the resulting string. """ def stringify(x): # float --> string, # truncating floats like 3.0 --> 3 if isinstance(x, float): if x.is_integer(): #print('{} --> {}'.format(x, str(x).rstrip('0').rstrip('.'))) return str(x).rstrip('0').rstrip('.') return(str(x)) # keep strings as they are, # unless it is a string like "3.0", # in which case truncate that too if isinstance(x, str): try: float(x) if x.endswith('0'): if x.rstrip('0').endswith('.'): #print('{} --> {}'.format(x, x.rstrip('0').rstrip('.'))) return x.rstrip('0').rstrip('.') except (ValueError, TypeError): pass # integer --> string if isinstance(x, int): return str(x) # if it is not int/str/float, just return as is return x def remove_extra_digits(x, prog): """ Remove extra digits x is a string, prog is always the following '_sre.SRE_Pattern': prog = re.compile("\d*[.]\d*([0]{5,100}|[9]{5,100})\d*\Z"). However, it is compiled outside of this sub-function for performance reasons. """ if not isinstance(x, str): return x result = prog.match(x) if result: decimals = result.string.split('.')[1] result = result.string if decimals[-3] == '0': result = x[:-2].rstrip('0') if decimals[-3] == '9': result = x[:-2].rstrip('9') try: last_digit = int(result[-1]) result = result[:-1] + str(last_digit + 1) except ValueError: result = float(result[:-1]) + 1 #if result != x: # print('changing {} to {}'.format(x, result)) return result return x for col in self.df.columns: self.df[col] = self.df[col].apply(stringify) prog = re.compile("\d*[.]\d*([0]{5,100}|[9]{5,100})\d*\Z") for col in self.df.columns: self.df[col] = self.df[col].apply(lambda x: remove_extra_digits(x, prog))
[ "def", "all_to_str", "(", "self", ")", ":", "def", "stringify", "(", "x", ")", ":", "# float --> string,", "# truncating floats like 3.0 --> 3", "if", "isinstance", "(", "x", ",", "float", ")", ":", "if", "x", ".", "is_integer", "(", ")", ":", "#print('{} --> {}'.format(x, str(x).rstrip('0').rstrip('.')))", "return", "str", "(", "x", ")", ".", "rstrip", "(", "'0'", ")", ".", "rstrip", "(", "'.'", ")", "return", "(", "str", "(", "x", ")", ")", "# keep strings as they are,", "# unless it is a string like \"3.0\",", "# in which case truncate that too", "if", "isinstance", "(", "x", ",", "str", ")", ":", "try", ":", "float", "(", "x", ")", "if", "x", ".", "endswith", "(", "'0'", ")", ":", "if", "x", ".", "rstrip", "(", "'0'", ")", ".", "endswith", "(", "'.'", ")", ":", "#print('{} --> {}'.format(x, x.rstrip('0').rstrip('.')))", "return", "x", ".", "rstrip", "(", "'0'", ")", ".", "rstrip", "(", "'.'", ")", "except", "(", "ValueError", ",", "TypeError", ")", ":", "pass", "# integer --> string", "if", "isinstance", "(", "x", ",", "int", ")", ":", "return", "str", "(", "x", ")", "# if it is not int/str/float, just return as is", "return", "x", "def", "remove_extra_digits", "(", "x", ",", "prog", ")", ":", "\"\"\"\n Remove extra digits\n x is a string,\n prog is always the following '_sre.SRE_Pattern':\n prog = re.compile(\"\\d*[.]\\d*([0]{5,100}|[9]{5,100})\\d*\\Z\").\n However, it is compiled outside of this sub-function\n for performance reasons.\n \"\"\"", "if", "not", "isinstance", "(", "x", ",", "str", ")", ":", "return", "x", "result", "=", "prog", ".", "match", "(", "x", ")", "if", "result", ":", "decimals", "=", "result", ".", "string", ".", "split", "(", "'.'", ")", "[", "1", "]", "result", "=", "result", ".", "string", "if", "decimals", "[", "-", "3", "]", "==", "'0'", ":", "result", "=", "x", "[", ":", "-", "2", "]", ".", "rstrip", "(", "'0'", ")", "if", "decimals", "[", "-", "3", "]", "==", "'9'", ":", "result", "=", "x", "[", ":", "-", "2", "]", ".", "rstrip", "(", "'9'", ")", "try", ":", "last_digit", "=", "int", "(", "result", "[", "-", "1", "]", ")", "result", "=", "result", "[", ":", "-", "1", "]", "+", "str", "(", "last_digit", "+", "1", ")", "except", "ValueError", ":", "result", "=", "float", "(", "result", "[", ":", "-", "1", "]", ")", "+", "1", "#if result != x:", "# print('changing {} to {}'.format(x, result))", "return", "result", "return", "x", "for", "col", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "col", "]", "=", "self", ".", "df", "[", "col", "]", ".", "apply", "(", "stringify", ")", "prog", "=", "re", ".", "compile", "(", "\"\\d*[.]\\d*([0]{5,100}|[9]{5,100})\\d*\\Z\"", ")", "for", "col", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "col", "]", "=", "self", ".", "df", "[", "col", "]", ".", "apply", "(", "lambda", "x", ":", "remove_extra_digits", "(", "x", ",", "prog", ")", ")" ]
In all columns, turn all floats/ints into strings. If a float ends with .0, strip off '.0' from the resulting string.
[ "In", "all", "columns", "turn", "all", "floats", "/", "ints", "into", "strings", ".", "If", "a", "float", "ends", "with", ".", "0", "strip", "off", ".", "0", "from", "the", "resulting", "string", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1430-L1495
train
Convert all the columns of the log file into a string.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1267 - 1219) + '\157' + chr(0b110001) + chr(0b1101 + 0o45) + '\066', 23674 - 23666), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(2265 - 2212) + chr(0b1011 + 0o53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(0b11101 + 0o26) + '\x30', 35164 - 35156), nzTpIcepk0o8(chr(1985 - 1937) + '\157' + '\x32' + '\x31' + chr(1009 - 955), 0b1000), nzTpIcepk0o8(chr(48) + chr(2889 - 2778) + chr(49) + '\064' + chr(0b110001), 0o10), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b111 + 0o150) + chr(2294 - 2244) + chr(0b1111 + 0o41) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(780 - 729) + chr(49) + '\x32', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(1172 - 1123) + chr(0b110 + 0o57), 33561 - 33553), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + chr(49) + chr(0b11010 + 0o26) + chr(1556 - 1507), 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + '\x32' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + '\062' + chr(0b11010 + 0o31), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(1628 - 1576), 0o10), nzTpIcepk0o8(chr(0b110000 + 0o0) + '\x6f' + chr(2182 - 2131) + '\061' + chr(878 - 825), 8), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b1011 + 0o46) + chr(0b110111 + 0o0) + chr(0b101110 + 0o3), 22987 - 22979), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110100) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(1507 - 1457) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101010 + 0o105) + '\063' + '\x31', 11947 - 11939), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + '\060' + chr(0b1111 + 0o43), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1100 + 0o47) + chr(0b110010) + chr(951 - 901), 26935 - 26927), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(1869 - 1819), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(2368 - 2316), ord("\x08")), nzTpIcepk0o8(chr(0b1001 + 0o47) + chr(0b1101111) + '\062' + '\x32' + chr(0b100011 + 0o22), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(1093 - 982) + chr(0b10011 + 0o36) + chr(0b1000 + 0o51) + '\x33', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(48) + chr(949 - 899), 8), nzTpIcepk0o8('\x30' + chr(111) + '\062' + '\x33' + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b1000010 + 0o55) + '\062' + '\067' + chr(1055 - 1003), 10685 - 10677), nzTpIcepk0o8('\060' + chr(0b110101 + 0o72) + '\063' + chr(51) + '\066', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(0b100111 + 0o17) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b11001 + 0o27) + chr(0b110000), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\066' + chr(517 - 463), ord("\x08")), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101100 + 0o3) + chr(49) + chr(52) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + '\x36' + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x33' + '\067' + chr(49), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + chr(1622 - 1567) + chr(0b101011 + 0o6), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(0b1000110 + 0o51) + '\x35' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + chr(0b0 + 0o62) + '\x34' + chr(0b110010), 5563 - 5555), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(10366 - 10255) + chr(49) + chr(49) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b11001 + 0o33) + chr(0b1000 + 0o51), 8), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + '\x32' + chr(0b10010 + 0o42) + chr(0b1111 + 0o45), 1150 - 1142), nzTpIcepk0o8(chr(535 - 487) + chr(111) + '\x37' + chr(0b110101), 4889 - 4881)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + chr(0b100000 + 0o20), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'x'), chr(100) + chr(4080 - 3979) + '\x63' + chr(6965 - 6854) + chr(0b10101 + 0o117) + chr(0b1011100 + 0o11))(chr(117) + chr(8704 - 8588) + '\x66' + chr(0b100011 + 0o12) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def j2a3mTwO8VT9(hXMPsSrOQzbh): def lKPngxmNNt0Y(bI5jsQ9OkQtj): if suIjIS24Zkqw(bI5jsQ9OkQtj, jLW6pRf2DSRk): if roI3spqORKae(bI5jsQ9OkQtj, roI3spqORKae(ES5oEprVxulp(b'\x00W\xba\xde\x0f\xd6\xa1\xa6 \xc0\xcbd'), chr(3593 - 3493) + chr(0b1100101) + '\143' + chr(1900 - 1789) + chr(100) + chr(0b101000 + 0o75))(chr(10986 - 10869) + '\164' + '\x66' + chr(0b100101 + 0o10) + chr(56)))(): return roI3spqORKae(N9zlRy29S1SS(bI5jsQ9OkQtj).rstrip(roI3spqORKae(ES5oEprVxulp(b'f'), '\x64' + chr(0b1000000 + 0o45) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(117) + '\x74' + '\146' + chr(0b10011 + 0o32) + chr(56))), roI3spqORKae(ES5oEprVxulp(b'$]\xac\xfc\x08\xf1'), '\x64' + '\x65' + chr(0b111100 + 0o47) + '\157' + chr(100) + '\145')('\165' + '\164' + chr(0b1010101 + 0o21) + chr(0b100011 + 0o12) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'x'), '\144' + '\145' + chr(99) + chr(0b1 + 0o156) + chr(7502 - 7402) + '\x65')('\x75' + chr(0b1001010 + 0o52) + chr(1486 - 1384) + chr(45) + '\x38')) return N9zlRy29S1SS(bI5jsQ9OkQtj) if suIjIS24Zkqw(bI5jsQ9OkQtj, N9zlRy29S1SS): try: jLW6pRf2DSRk(bI5jsQ9OkQtj) if roI3spqORKae(bI5jsQ9OkQtj, roI3spqORKae(ES5oEprVxulp(b'\x1f\x17\xbe\xc5(\xc2\x8b\x81 \xe2\xd9^'), chr(0b1100100) + '\x65' + chr(99) + chr(0b110101 + 0o72) + '\144' + '\x65')(chr(0b1100110 + 0o17) + chr(7870 - 7754) + chr(0b1100110) + chr(1736 - 1691) + chr(56)))(roI3spqORKae(ES5oEprVxulp(b'f'), chr(0b10010 + 0o122) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(7000 - 6884) + '\146' + '\x2d' + chr(56))): if roI3spqORKae(bI5jsQ9OkQtj.rstrip(roI3spqORKae(ES5oEprVxulp(b'f'), '\x64' + chr(101) + chr(0b111010 + 0o51) + chr(0b1010000 + 0o37) + '\x64' + chr(766 - 665))(chr(0b1110101) + chr(969 - 853) + '\146' + chr(45) + '\070')), roI3spqORKae(ES5oEprVxulp(b'\x1f\x17\xbe\xc5(\xc2\x8b\x81 \xe2\xd9^'), chr(9663 - 9563) + chr(0b10 + 0o143) + chr(99) + '\x6f' + chr(0b1100100) + chr(101))(chr(4431 - 4314) + chr(116) + chr(3454 - 3352) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'x'), chr(0b1100100) + '\x65' + '\x63' + chr(111) + chr(0b1100100) + chr(0b1100101))('\x75' + '\x74' + chr(6513 - 6411) + '\055' + chr(0b101 + 0o63))): return roI3spqORKae(bI5jsQ9OkQtj.rstrip(roI3spqORKae(ES5oEprVxulp(b'f'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(111) + chr(0b1100 + 0o130) + chr(0b1100101))(chr(117) + chr(116) + '\x66' + chr(1278 - 1233) + chr(0b111000))), roI3spqORKae(ES5oEprVxulp(b'$]\xac\xfc\x08\xf1'), '\x64' + '\145' + '\143' + '\x6f' + chr(5981 - 5881) + chr(0b1100 + 0o131))(chr(0b1101111 + 0o6) + chr(116) + chr(0b1100110) + chr(45) + chr(2388 - 2332)))(roI3spqORKae(ES5oEprVxulp(b'x'), chr(0b1100100) + '\x65' + '\143' + chr(111) + chr(7252 - 7152) + chr(101))(chr(0b10110 + 0o137) + '\x74' + '\x66' + chr(0b1010 + 0o43) + chr(0b111000))) except (WbNHlDKpyPtQ, jZIjKu8IFANs): pass if suIjIS24Zkqw(bI5jsQ9OkQtj, nzTpIcepk0o8): return N9zlRy29S1SS(bI5jsQ9OkQtj) return bI5jsQ9OkQtj def QKGOZT11RGZA(bI5jsQ9OkQtj, nKUQwjAvZs_e): if not suIjIS24Zkqw(bI5jsQ9OkQtj, N9zlRy29S1SS): return bI5jsQ9OkQtj POx95m7SPOVy = nKUQwjAvZs_e.hk9OijmiC_zA(bI5jsQ9OkQtj) if POx95m7SPOVy: kzuumt7BkRpn = POx95m7SPOVy.string.LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'x'), '\144' + chr(101) + chr(99) + chr(0b1101111) + chr(0b1000001 + 0o43) + chr(0b1100101))('\165' + '\x74' + chr(2440 - 2338) + chr(639 - 594) + chr(1243 - 1187)))[nzTpIcepk0o8('\x30' + '\x6f' + '\061', ord("\x08"))] POx95m7SPOVy = POx95m7SPOVy.aji3jF4_nqWL if kzuumt7BkRpn[-nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063', 0b1000)] == roI3spqORKae(ES5oEprVxulp(b'f'), '\144' + '\145' + chr(7686 - 7587) + chr(0b1010110 + 0o31) + chr(1401 - 1301) + chr(4648 - 4547))(chr(0b1010100 + 0o41) + chr(13214 - 13098) + chr(0b1100110) + chr(1386 - 1341) + chr(56)): POx95m7SPOVy = bI5jsQ9OkQtj[:-nzTpIcepk0o8(chr(0b110000) + chr(8801 - 8690) + chr(438 - 388), 0o10)].rstrip(roI3spqORKae(ES5oEprVxulp(b'f'), chr(2327 - 2227) + '\145' + chr(99) + chr(111) + chr(0b110101 + 0o57) + chr(101))(chr(117) + chr(116) + chr(102) + chr(0b101101) + chr(0b111000))) if kzuumt7BkRpn[-nzTpIcepk0o8('\060' + '\x6f' + chr(2529 - 2478), 8)] == roI3spqORKae(ES5oEprVxulp(b'o'), '\x64' + chr(0b100101 + 0o100) + chr(0b1010001 + 0o22) + chr(4163 - 4052) + chr(100) + chr(0b110011 + 0o62))(chr(0b1100001 + 0o24) + '\x74' + chr(0b1100110) + chr(1233 - 1188) + chr(0b10011 + 0o45)): POx95m7SPOVy = bI5jsQ9OkQtj[:-nzTpIcepk0o8(chr(531 - 483) + '\x6f' + '\062', 8)].rstrip(roI3spqORKae(ES5oEprVxulp(b'o'), chr(7526 - 7426) + chr(101) + chr(99) + '\x6f' + chr(0b1000101 + 0o37) + chr(7347 - 7246))(chr(0b1110 + 0o147) + '\x74' + chr(6355 - 6253) + '\x2d' + chr(2883 - 2827))) try: i9nt_PYN4Lis = nzTpIcepk0o8(POx95m7SPOVy[-nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1528 - 1479), 8)]) POx95m7SPOVy = POx95m7SPOVy[:-nzTpIcepk0o8('\x30' + chr(0b110001 + 0o76) + '\x31', 8)] + N9zlRy29S1SS(i9nt_PYN4Lis + nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + '\x31', 8)) except WbNHlDKpyPtQ: POx95m7SPOVy = jLW6pRf2DSRk(POx95m7SPOVy[:-nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061', 8)]) + nzTpIcepk0o8(chr(797 - 749) + '\x6f' + chr(0b11110 + 0o23), 8) return POx95m7SPOVy return bI5jsQ9OkQtj for hRTUxJgvuslu in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\x03\x1d\xe1\xe42\xe8\x83\xf8u\xda\xff\\'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(0b1101111) + chr(6212 - 6112) + '\x65')(chr(0b100010 + 0o123) + chr(0b1110100) + chr(0b1100011 + 0o3) + chr(45) + '\x38')): hXMPsSrOQzbh.jpOn8DNZxbbx[hRTUxJgvuslu] = hXMPsSrOQzbh.df[hRTUxJgvuslu].apply(lKPngxmNNt0Y) nKUQwjAvZs_e = aoTc4YA2bs2R.compile(roI3spqORKae(ES5oEprVxulp(b'\nJ\xf2\xd5O\xdc\x96\xa9k\xbf\xc8\x1c\x90\x02\x17<(\xf2\xe2ox\xcer\x9f\xe6\x89\xf2\x80p\x06\x18\xda\xa5]\x01\xfe\x16'), '\x64' + chr(0b110000 + 0o65) + '\143' + chr(0b1101111) + chr(0b1111 + 0o125) + chr(5444 - 5343))(chr(2792 - 2675) + chr(11639 - 11523) + chr(0b111110 + 0o50) + chr(0b101101) + chr(0b10110 + 0o42))) for hRTUxJgvuslu in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\x03\x1d\xe1\xe42\xe8\x83\xf8u\xda\xff\\'), '\x64' + chr(0b11101 + 0o110) + chr(0b1000111 + 0o34) + chr(0b101101 + 0o102) + chr(5433 - 5333) + chr(4386 - 4285))(chr(0b111001 + 0o74) + chr(0b1110100) + chr(1210 - 1108) + '\x2d' + chr(849 - 793))): hXMPsSrOQzbh.jpOn8DNZxbbx[hRTUxJgvuslu] = hXMPsSrOQzbh.df[hRTUxJgvuslu].apply(lambda bI5jsQ9OkQtj: QKGOZT11RGZA(bI5jsQ9OkQtj, nKUQwjAvZs_e))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.remove_non_magic_cols_from_table
def remove_non_magic_cols_from_table(self, ignore_cols=()): """ Remove all non-magic columns from self.df. Changes in place. Parameters ---------- ignore_cols : list-like columns not to remove, whether they are proper MagIC columns or not Returns --------- unrecognized_cols : list any columns that were removed """ unrecognized_cols = self.get_non_magic_cols() for col in ignore_cols: if col in unrecognized_cols: unrecognized_cols.remove(col) if unrecognized_cols: print('-I- Removing non-MagIC column names from {}:'.format(self.dtype), end=' ') for col in unrecognized_cols: self.df.drop(col, axis='columns', inplace=True) print(col, end=' ') print("\n") return unrecognized_cols
python
def remove_non_magic_cols_from_table(self, ignore_cols=()): """ Remove all non-magic columns from self.df. Changes in place. Parameters ---------- ignore_cols : list-like columns not to remove, whether they are proper MagIC columns or not Returns --------- unrecognized_cols : list any columns that were removed """ unrecognized_cols = self.get_non_magic_cols() for col in ignore_cols: if col in unrecognized_cols: unrecognized_cols.remove(col) if unrecognized_cols: print('-I- Removing non-MagIC column names from {}:'.format(self.dtype), end=' ') for col in unrecognized_cols: self.df.drop(col, axis='columns', inplace=True) print(col, end=' ') print("\n") return unrecognized_cols
[ "def", "remove_non_magic_cols_from_table", "(", "self", ",", "ignore_cols", "=", "(", ")", ")", ":", "unrecognized_cols", "=", "self", ".", "get_non_magic_cols", "(", ")", "for", "col", "in", "ignore_cols", ":", "if", "col", "in", "unrecognized_cols", ":", "unrecognized_cols", ".", "remove", "(", "col", ")", "if", "unrecognized_cols", ":", "print", "(", "'-I- Removing non-MagIC column names from {}:'", ".", "format", "(", "self", ".", "dtype", ")", ",", "end", "=", "' '", ")", "for", "col", "in", "unrecognized_cols", ":", "self", ".", "df", ".", "drop", "(", "col", ",", "axis", "=", "'columns'", ",", "inplace", "=", "True", ")", "print", "(", "col", ",", "end", "=", "' '", ")", "print", "(", "\"\\n\"", ")", "return", "unrecognized_cols" ]
Remove all non-magic columns from self.df. Changes in place. Parameters ---------- ignore_cols : list-like columns not to remove, whether they are proper MagIC columns or not Returns --------- unrecognized_cols : list any columns that were removed
[ "Remove", "all", "non", "-", "magic", "columns", "from", "self", ".", "df", ".", "Changes", "in", "place", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1498-L1524
train
Removes all non - MagIC columns from the table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(1728 - 1617) + '\x32' + chr(53) + '\x34', 44360 - 44352), nzTpIcepk0o8('\060' + chr(10179 - 10068) + chr(0b110011) + chr(0b100001 + 0o20) + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b10110 + 0o32) + '\x6f' + chr(49) + chr(0b10101 + 0o40) + chr(0b11011 + 0o27), 3319 - 3311), nzTpIcepk0o8(chr(48) + chr(0b1100000 + 0o17) + chr(305 - 256) + '\063' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110010) + chr(0b11111 + 0o27), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(0b0 + 0o65) + '\066', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x34' + '\066', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b100001 + 0o20) + '\066' + chr(0b1 + 0o62), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6865 - 6754) + chr(0b11010 + 0o30) + chr(0b1110 + 0o45) + '\x33', 0b1000), nzTpIcepk0o8(chr(1041 - 993) + chr(7150 - 7039) + chr(0b110010) + chr(0b1111 + 0o45) + chr(0b1110 + 0o50), 0o10), nzTpIcepk0o8('\x30' + chr(4541 - 4430) + '\062' + chr(0b10110 + 0o34) + chr(0b101100 + 0o6), 28904 - 28896), nzTpIcepk0o8(chr(397 - 349) + chr(111) + '\x31' + chr(0b110010) + '\064', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(2459 - 2409) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(1648 - 1600) + chr(111) + '\x31' + chr(48) + chr(0b110101), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(422 - 369) + chr(0b1 + 0o61), 0b1000), nzTpIcepk0o8('\060' + chr(5465 - 5354) + chr(1025 - 976) + '\064' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(53) + chr(2170 - 2122), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\061' + '\061' + '\063', 45854 - 45846), nzTpIcepk0o8(chr(0b110000) + chr(0b110111 + 0o70) + chr(49) + '\x36' + '\x35', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101 + 0o142) + '\062' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + '\066' + '\067', 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(0b1101111) + chr(332 - 282) + chr(0b110010) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b10110 + 0o131) + '\x36' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b11001 + 0o27) + chr(0b11 + 0o62), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b100010 + 0o115) + '\x33' + chr(0b11010 + 0o33) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(71 - 20) + chr(2186 - 2136), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1307 - 1256) + chr(2868 - 2814) + chr(2054 - 2003), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1000001 + 0o56) + chr(0b101111 + 0o4) + chr(1873 - 1821) + chr(984 - 930), 40206 - 40198), nzTpIcepk0o8('\060' + chr(0b1010111 + 0o30) + chr(0b110011) + '\x34' + '\066', 8), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(0b110010) + chr(0b110010) + '\066', 879 - 871), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(852 - 802) + chr(54), 63078 - 63070), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b101111 + 0o2) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + '\067', 43969 - 43961), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(0b111110 + 0o61) + '\063' + chr(0b110000), 28869 - 28861), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b1010 + 0o51) + chr(433 - 383) + chr(1609 - 1556), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\067' + '\064', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\x33' + chr(0b110011) + chr(0b110000), 11833 - 11825), nzTpIcepk0o8(chr(48) + chr(0b1100011 + 0o14) + chr(0b110011) + chr(0b110110) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3992 - 3881) + chr(50) + '\x32' + chr(49), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(0b110000) + chr(0b110001), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(4592 - 4481) + chr(0b110101) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x82'), chr(100) + chr(0b101000 + 0o75) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(11937 - 11820) + '\x74' + chr(5570 - 5468) + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def GvMfDS4p_LdG(hXMPsSrOQzbh, dhl3sG1RxeAY=()): MsjU8qLQdRnu = hXMPsSrOQzbh.get_non_magic_cols() for hRTUxJgvuslu in dhl3sG1RxeAY: if hRTUxJgvuslu in MsjU8qLQdRnu: roI3spqORKae(MsjU8qLQdRnu, roI3spqORKae(ES5oEprVxulp(b'\xdc\x83\x06\r>\x8a\x149\xf6\xed\xd3\x11'), '\144' + '\x65' + chr(215 - 116) + chr(0b1101111) + chr(100) + '\x65')('\165' + chr(9725 - 9609) + chr(0b1000100 + 0o42) + chr(45) + chr(1206 - 1150)))(hRTUxJgvuslu) if MsjU8qLQdRnu: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x81\x87Gx\x04\x8bK\x1c\xed\xcf\xfc3\xb3+\xc5\x0bE\x06\x14s\xfe\xd2\x10\xe6\x84v\x86\x8b\x88\xb6\xb8kj}\xa6\x1c\xbe\x80\xfe\xac\x8c\xb5\x17b'), chr(1322 - 1222) + chr(0b111110 + 0o47) + '\143' + chr(111) + chr(5273 - 5173) + '\145')('\165' + '\x74' + chr(0b1100110) + chr(1389 - 1344) + chr(2949 - 2893)), roI3spqORKae(ES5oEprVxulp(b'\xdd\xfdY\x13\x11\xdd@\x1c\xca\xf9\xd1\x1e'), chr(1884 - 1784) + '\145' + chr(0b10000 + 0o123) + chr(0b1011110 + 0o21) + chr(0b1100100) + chr(3862 - 3761))(chr(0b11011 + 0o132) + chr(6053 - 5937) + chr(102) + chr(1751 - 1706) + chr(620 - 564)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xfe\xad2a4\x8cS<\xe1\xce\xa7\x18'), chr(0b1100100) + '\x65' + chr(0b1100011) + '\x6f' + chr(100) + '\x65')('\165' + '\164' + chr(102) + chr(1455 - 1410) + chr(56)))), end=roI3spqORKae(ES5oEprVxulp(b'\x8c'), chr(8935 - 8835) + chr(0b1100101) + chr(4759 - 4660) + chr(8494 - 8383) + '\144' + chr(0b101 + 0o140))(chr(0b1110101) + '\x74' + chr(7879 - 7777) + chr(901 - 856) + chr(0b110110 + 0o2))) for hRTUxJgvuslu in MsjU8qLQdRnu: roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xc8\xbc\x05('), '\x64' + '\145' + chr(0b111101 + 0o46) + chr(111) + chr(3474 - 3374) + '\145')(chr(6949 - 6832) + chr(0b1110100) + '\x66' + '\x2d' + chr(0b111000)))(hRTUxJgvuslu, axis=roI3spqORKae(ES5oEprVxulp(b'\xcf\xa1\x06-;\x80U'), chr(5920 - 5820) + chr(0b1100101) + chr(0b1011010 + 0o11) + chr(0b1101111) + '\x64' + chr(760 - 659))(chr(11621 - 11504) + chr(0b1110100) + chr(102) + chr(0b11010 + 0o23) + chr(2343 - 2287)), inplace=nzTpIcepk0o8('\x30' + '\157' + chr(49), 0b1000)) v8jsMqaYV6U2(hRTUxJgvuslu, end=roI3spqORKae(ES5oEprVxulp(b'\x8c'), '\144' + '\145' + chr(99) + chr(111) + chr(1959 - 1859) + chr(101))(chr(0b1100 + 0o151) + chr(116) + '\146' + chr(0b11001 + 0o24) + '\070')) v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\xa6'), '\144' + '\145' + '\143' + chr(111) + chr(0b1100100) + chr(4481 - 4380))(chr(0b1110101) + chr(1335 - 1219) + '\x66' + chr(0b101101) + '\x38')) return MsjU8qLQdRnu
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.update_row
def update_row(self, ind, row_data): """ Update a row with data. Must provide the specific numeric index (not row label). If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace. """ if sorted(row_data.keys()) != sorted(self.df.columns): # add any new column names for key in row_data: if key not in self.df.columns: self.df[key] = None # add missing column names into row_data for col_label in self.df.columns: if col_label not in list(row_data.keys()): row_data[col_label] = None try: self.df.iloc[ind] = pd.Series(row_data) except IndexError: return False return self.df
python
def update_row(self, ind, row_data): """ Update a row with data. Must provide the specific numeric index (not row label). If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace. """ if sorted(row_data.keys()) != sorted(self.df.columns): # add any new column names for key in row_data: if key not in self.df.columns: self.df[key] = None # add missing column names into row_data for col_label in self.df.columns: if col_label not in list(row_data.keys()): row_data[col_label] = None try: self.df.iloc[ind] = pd.Series(row_data) except IndexError: return False return self.df
[ "def", "update_row", "(", "self", ",", "ind", ",", "row_data", ")", ":", "if", "sorted", "(", "row_data", ".", "keys", "(", ")", ")", "!=", "sorted", "(", "self", ".", "df", ".", "columns", ")", ":", "# add any new column names", "for", "key", "in", "row_data", ":", "if", "key", "not", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "key", "]", "=", "None", "# add missing column names into row_data", "for", "col_label", "in", "self", ".", "df", ".", "columns", ":", "if", "col_label", "not", "in", "list", "(", "row_data", ".", "keys", "(", ")", ")", ":", "row_data", "[", "col_label", "]", "=", "None", "try", ":", "self", ".", "df", ".", "iloc", "[", "ind", "]", "=", "pd", ".", "Series", "(", "row_data", ")", "except", "IndexError", ":", "return", "False", "return", "self", ".", "df" ]
Update a row with data. Must provide the specific numeric index (not row label). If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace.
[ "Update", "a", "row", "with", "data", ".", "Must", "provide", "the", "specific", "numeric", "index", "(", "not", "row", "label", ")", ".", "If", "any", "new", "keys", "are", "present", "in", "row_data", "dictionary", "that", "column", "will", "be", "added", "to", "the", "dataframe", ".", "This", "is", "done", "inplace", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1551-L1572
train
Update a row with data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + chr(52) + chr(0b110000), 0b1000), nzTpIcepk0o8('\x30' + chr(0b101100 + 0o103) + chr(49) + chr(0b101111 + 0o6) + '\062', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\065' + '\x37', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(0b1100 + 0o46) + '\062' + chr(1823 - 1775), 0b1000), nzTpIcepk0o8('\060' + chr(7894 - 7783) + chr(591 - 539) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + chr(0b110 + 0o55) + chr(55) + chr(1888 - 1839), 0b1000), nzTpIcepk0o8('\x30' + chr(1702 - 1591) + chr(808 - 758) + '\x33' + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + '\x32' + chr(55), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111111 + 0o60) + '\x34' + chr(0b0 + 0o60), 8), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(7596 - 7485) + chr(0b110001) + chr(0b1011 + 0o54) + '\x30', 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + '\x37', 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(1789 - 1739) + '\x33' + chr(1550 - 1502), 52547 - 52539), nzTpIcepk0o8(chr(0b1101 + 0o43) + chr(0b1101111) + chr(50) + chr(2257 - 2207) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(0b111010 + 0o65) + chr(458 - 409), 0o10), nzTpIcepk0o8('\060' + chr(0b101000 + 0o107) + chr(0b10010 + 0o42) + '\x34', 8), nzTpIcepk0o8('\x30' + chr(0b11111 + 0o120) + '\x32' + chr(0b1111 + 0o50), 8), nzTpIcepk0o8('\060' + chr(3474 - 3363) + chr(0b0 + 0o62) + chr(2593 - 2542) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x35' + chr(0b100000 + 0o23), 14570 - 14562), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + chr(0b110111) + chr(0b10010 + 0o44), 63606 - 63598), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(53) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100100 + 0o15) + chr(0b11101 + 0o27) + '\x33', 55371 - 55363), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(0b10001 + 0o45) + chr(0b1011 + 0o53), 0o10), nzTpIcepk0o8('\x30' + chr(6227 - 6116) + '\x31' + chr(0b110111) + '\x30', 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b11010 + 0o30) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b110110 + 0o71) + chr(1227 - 1177) + '\063' + '\064', 8), nzTpIcepk0o8(chr(0b110000) + chr(9195 - 9084) + '\x35' + '\x33', 8), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(764 - 714) + chr(48) + chr(423 - 373), 0o10), nzTpIcepk0o8(chr(2284 - 2236) + chr(111) + chr(0b110010) + chr(50) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(111) + chr(51) + '\x37' + chr(51), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110101) + chr(0b110100), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(0b101001 + 0o16) + chr(0b110101), 17181 - 17173), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + chr(515 - 462) + chr(52), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(1645 - 1595) + '\061' + '\066', 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x37' + '\062', 14744 - 14736), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + '\x32' + chr(0b10101 + 0o42) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + '\062' + '\x31' + chr(0b101 + 0o62), 0b1000), nzTpIcepk0o8(chr(825 - 777) + chr(0b1101111) + '\063' + '\x33' + chr(0b1001 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7641 - 7530) + '\x33' + chr(51) + chr(0b100 + 0o63), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110000 + 0o6) + chr(55), 0b1000), nzTpIcepk0o8(chr(1345 - 1297) + chr(773 - 662) + chr(0b110001) + chr(55) + '\x34', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(2221 - 2168) + '\060', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x0e'), chr(0b1000000 + 0o44) + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(101))('\x75' + chr(116) + chr(0b1100010 + 0o4) + chr(1306 - 1261) + chr(0b110000 + 0o10)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def jYu4IwgQPsY5(hXMPsSrOQzbh, w5vcgUzFN3bF, GQm5jxstgOn6): if V3OlOVg98A85(roI3spqORKae(GQm5jxstgOn6, roI3spqORKae(ES5oEprVxulp(b'K\x0f\x96\xe3'), '\144' + '\145' + chr(99) + chr(0b1101111) + chr(100) + chr(0b101 + 0o140))(chr(7866 - 7749) + chr(0b1110100) + chr(2825 - 2723) + chr(0b101101) + '\070'))()) != V3OlOVg98A85(roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'uY\xd6\xfaw\x90\xd5b\x145{\xe8'), chr(0b1100100) + chr(1402 - 1301) + chr(99) + chr(0b1001 + 0o146) + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(4663 - 4561) + '\x2d' + chr(0b111000)))): for QYodcsDtoGq7 in GQm5jxstgOn6: if QYodcsDtoGq7 not in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'uY\xd6\xfaw\x90\xd5b\x145{\xe8'), chr(7407 - 7307) + chr(0b1010111 + 0o16) + chr(0b1100011) + chr(111) + chr(9641 - 9541) + chr(0b1100101))('\x75' + '\164' + chr(0b1100110) + chr(45) + chr(0b110110 + 0o2))): hXMPsSrOQzbh.jpOn8DNZxbbx[QYodcsDtoGq7] = None for I1_5FWDSAzRY in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'uY\xd6\xfaw\x90\xd5b\x145{\xe8'), chr(0b1100100) + '\x65' + '\x63' + chr(0b1101111) + chr(901 - 801) + '\145')(chr(0b110011 + 0o102) + chr(116) + chr(2947 - 2845) + chr(45) + chr(56))): if I1_5FWDSAzRY not in H4NoA26ON7iG(roI3spqORKae(GQm5jxstgOn6, roI3spqORKae(ES5oEprVxulp(b'K\x0f\x96\xe3'), chr(0b1010100 + 0o20) + chr(0b1100101) + '\x63' + '\x6f' + chr(3182 - 3082) + chr(0b1100101))('\165' + chr(0b11110 + 0o126) + '\x66' + chr(45) + chr(56)))()): GQm5jxstgOn6[I1_5FWDSAzRY] = None try: hXMPsSrOQzbh.df.mj4jMnYn3A2l[w5vcgUzFN3bF] = HLKt4sa1j9hm.Series(GQm5jxstgOn6) except ah0DLMBSEU5j: return nzTpIcepk0o8(chr(1428 - 1380) + chr(0b1011100 + 0o23) + chr(1869 - 1821), ord("\x08")) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'J\x1a\xa0\xfe\x1c\xbd\xd2\rX\x1au\xe0'), chr(0b1100100) + '\145' + chr(0b1011110 + 0o5) + '\157' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(9153 - 9051) + chr(741 - 696) + chr(0b11010 + 0o36)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.add_row
def add_row(self, label, row_data, columns=""): """ Add a row with data. If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace """ # use provided column order, making sure you don't lose any values # from self.df.columns if len(columns): if sorted(self.df.columns) == sorted(columns): self.df.columns = columns else: new_columns = [] new_columns.extend(columns) for col in self.df.columns: if col not in new_columns: new_columns.append(col) # makes sure all columns have data or None if sorted(row_data.keys()) != sorted(self.df.columns): # add any new column names for key in row_data: if key not in self.df.columns: self.df[key] = None # add missing column names into row_data for col_label in self.df.columns: if col_label not in list(row_data.keys()): row_data[col_label] = None # (make sure you are working with strings) self.df.index = self.df.index.astype(str) label = str(label) # create a new row with suffix "new" # (this ensures that you get a unique, new row, # instead of adding on to an existing row with the same label) self.df.loc[label + "new"] = pd.Series(row_data) # rename it to be correct self.df.rename(index={label + "new": label}, inplace=True) # use next line to sort index inplace #self.df.sort_index(inplace=True) return self.df
python
def add_row(self, label, row_data, columns=""): """ Add a row with data. If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace """ # use provided column order, making sure you don't lose any values # from self.df.columns if len(columns): if sorted(self.df.columns) == sorted(columns): self.df.columns = columns else: new_columns = [] new_columns.extend(columns) for col in self.df.columns: if col not in new_columns: new_columns.append(col) # makes sure all columns have data or None if sorted(row_data.keys()) != sorted(self.df.columns): # add any new column names for key in row_data: if key not in self.df.columns: self.df[key] = None # add missing column names into row_data for col_label in self.df.columns: if col_label not in list(row_data.keys()): row_data[col_label] = None # (make sure you are working with strings) self.df.index = self.df.index.astype(str) label = str(label) # create a new row with suffix "new" # (this ensures that you get a unique, new row, # instead of adding on to an existing row with the same label) self.df.loc[label + "new"] = pd.Series(row_data) # rename it to be correct self.df.rename(index={label + "new": label}, inplace=True) # use next line to sort index inplace #self.df.sort_index(inplace=True) return self.df
[ "def", "add_row", "(", "self", ",", "label", ",", "row_data", ",", "columns", "=", "\"\"", ")", ":", "# use provided column order, making sure you don't lose any values", "# from self.df.columns", "if", "len", "(", "columns", ")", ":", "if", "sorted", "(", "self", ".", "df", ".", "columns", ")", "==", "sorted", "(", "columns", ")", ":", "self", ".", "df", ".", "columns", "=", "columns", "else", ":", "new_columns", "=", "[", "]", "new_columns", ".", "extend", "(", "columns", ")", "for", "col", "in", "self", ".", "df", ".", "columns", ":", "if", "col", "not", "in", "new_columns", ":", "new_columns", ".", "append", "(", "col", ")", "# makes sure all columns have data or None", "if", "sorted", "(", "row_data", ".", "keys", "(", ")", ")", "!=", "sorted", "(", "self", ".", "df", ".", "columns", ")", ":", "# add any new column names", "for", "key", "in", "row_data", ":", "if", "key", "not", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "key", "]", "=", "None", "# add missing column names into row_data", "for", "col_label", "in", "self", ".", "df", ".", "columns", ":", "if", "col_label", "not", "in", "list", "(", "row_data", ".", "keys", "(", ")", ")", ":", "row_data", "[", "col_label", "]", "=", "None", "# (make sure you are working with strings)", "self", ".", "df", ".", "index", "=", "self", ".", "df", ".", "index", ".", "astype", "(", "str", ")", "label", "=", "str", "(", "label", ")", "# create a new row with suffix \"new\"", "# (this ensures that you get a unique, new row,", "# instead of adding on to an existing row with the same label)", "self", ".", "df", ".", "loc", "[", "label", "+", "\"new\"", "]", "=", "pd", ".", "Series", "(", "row_data", ")", "# rename it to be correct", "self", ".", "df", ".", "rename", "(", "index", "=", "{", "label", "+", "\"new\"", ":", "label", "}", ",", "inplace", "=", "True", ")", "# use next line to sort index inplace", "#self.df.sort_index(inplace=True)", "return", "self", ".", "df" ]
Add a row with data. If any new keys are present in row_data dictionary, that column will be added to the dataframe. This is done inplace
[ "Add", "a", "row", "with", "data", ".", "If", "any", "new", "keys", "are", "present", "in", "row_data", "dictionary", "that", "column", "will", "be", "added", "to", "the", "dataframe", ".", "This", "is", "done", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1574-L1615
train
Add a row with data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x37' + '\x33', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b11110 + 0o121) + '\061' + chr(0b110010) + '\061', 0o10), nzTpIcepk0o8('\060' + chr(0b1100110 + 0o11) + '\x32' + '\062' + '\x31', 27189 - 27181), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x33' + '\062', 51335 - 51327), nzTpIcepk0o8(chr(0b11110 + 0o22) + chr(0b1101111) + chr(0b10011 + 0o36) + chr(1397 - 1343) + chr(0b10011 + 0o37), ord("\x08")), nzTpIcepk0o8(chr(1753 - 1705) + chr(0b1101111) + chr(491 - 442) + chr(51) + chr(0b110001), 22 - 14), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b1101101 + 0o2) + '\063' + '\x34' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b1110 + 0o42) + '\x6f' + '\061' + chr(0b10000 + 0o40) + chr(49), 0b1000), nzTpIcepk0o8(chr(1297 - 1249) + '\x6f' + '\x31' + chr(0b110100) + '\x37', 0o10), nzTpIcepk0o8(chr(583 - 535) + chr(0b101011 + 0o104) + '\x31' + chr(54) + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(288 - 240) + chr(0b101 + 0o152) + chr(0b110001) + chr(2398 - 2349) + '\x37', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b10100 + 0o36) + chr(0b110010) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b1101111) + chr(0b110001) + '\062' + chr(417 - 363), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110110) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11111 + 0o24) + '\067', 30698 - 30690), nzTpIcepk0o8('\x30' + '\157' + chr(0b11 + 0o57) + chr(0b10111 + 0o31) + chr(807 - 756), 0o10), nzTpIcepk0o8(chr(48) + chr(481 - 370) + chr(0b110001) + chr(0b10011 + 0o35) + '\066', 0o10), nzTpIcepk0o8(chr(1398 - 1350) + '\x6f' + '\065' + chr(0b110100), 37714 - 37706), nzTpIcepk0o8(chr(370 - 322) + chr(111) + chr(0b10110 + 0o35) + chr(0b110110) + '\x31', 0o10), nzTpIcepk0o8(chr(2146 - 2098) + chr(0b1101111) + '\062' + '\065' + chr(709 - 658), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(1560 - 1449) + '\062' + '\x32' + chr(1199 - 1148), 57840 - 57832), nzTpIcepk0o8(chr(1602 - 1554) + chr(11888 - 11777) + chr(2469 - 2419) + chr(51), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x33' + chr(0b0 + 0o65), 0o10), nzTpIcepk0o8(chr(2168 - 2120) + chr(2995 - 2884) + '\062' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101011 + 0o4) + chr(0b110 + 0o55) + chr(1751 - 1703), 0o10), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(10193 - 10082) + chr(55) + '\x32', 0b1000), nzTpIcepk0o8(chr(1876 - 1828) + chr(0b1101111) + chr(52) + chr(621 - 572), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\063' + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b100101 + 0o112) + chr(0b100101 + 0o14) + chr(0b110001) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x32' + chr(0b110011) + chr(1709 - 1660), 0b1000), nzTpIcepk0o8('\x30' + chr(0b100 + 0o153) + chr(50) + chr(0b110101) + '\x35', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111 + 0o0) + chr(980 - 930) + chr(0b110000) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(130 - 82) + chr(10297 - 10186) + '\063' + '\065' + '\x31', 43029 - 43021), nzTpIcepk0o8(chr(0b110000) + chr(0b1000010 + 0o55) + chr(0b110001) + '\063' + chr(49), 8), nzTpIcepk0o8(chr(0b110000) + chr(10329 - 10218) + chr(0b110001) + chr(51) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + '\x32' + chr(0b110101), 16958 - 16950), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\066' + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(613 - 562) + chr(53) + chr(0b110 + 0o55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110100) + chr(0b110011), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b110100) + chr(0b110110), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110101) + chr(0b110000), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x15'), chr(0b1001100 + 0o30) + '\x65' + chr(4773 - 4674) + chr(1820 - 1709) + chr(0b1100100) + chr(958 - 857))(chr(11389 - 11272) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BoP2DUR2mq4k(hXMPsSrOQzbh, OkDIn6t2Cke6, GQm5jxstgOn6, U39jSiI54Mlp=roI3spqORKae(ES5oEprVxulp(b''), chr(6356 - 6256) + chr(0b10110 + 0o117) + chr(0b1100011) + chr(111) + '\x64' + chr(0b11010 + 0o113))('\165' + chr(290 - 174) + chr(102) + '\x2d' + chr(56))): if ftfygxgFas5X(U39jSiI54Mlp): if V3OlOVg98A85(roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'nb\xa8\xb0!0\xabtS=#\xe7'), chr(0b1000111 + 0o35) + chr(0b110110 + 0o57) + chr(0b1100011) + chr(0b110101 + 0o72) + '\x64' + '\x65')(chr(0b1110101) + chr(116) + '\146' + chr(0b11111 + 0o16) + '\x38'))) == V3OlOVg98A85(U39jSiI54Mlp): hXMPsSrOQzbh.df.U39jSiI54Mlp = U39jSiI54Mlp else: zMecKq_Owq49 = [] roI3spqORKae(zMecKq_Owq49, roI3spqORKae(ES5oEprVxulp(b'o\x0e\xa2\x97\x1d=\xae\x1682-\xe6'), '\144' + chr(199 - 98) + chr(0b1010011 + 0o20) + chr(0b100001 + 0o116) + chr(100) + chr(101))('\165' + chr(0b1001110 + 0o46) + '\146' + chr(45) + '\070'))(U39jSiI54Mlp) for hRTUxJgvuslu in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'nb\xa8\xb0!0\xabtS=#\xe7'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1101110 + 0o1) + chr(100) + '\x65')(chr(3720 - 3603) + '\164' + '\146' + chr(45) + '\070')): if hRTUxJgvuslu not in zMecKq_Owq49: roI3spqORKae(zMecKq_Owq49, roI3spqORKae(ES5oEprVxulp(b's\x05\xc2\xee\n>\xa5.\r\x1f\x1a\xa2'), chr(100) + '\145' + chr(0b101 + 0o136) + chr(0b1101111) + chr(100) + chr(101))('\x75' + chr(11430 - 11314) + '\146' + chr(0b1000 + 0o45) + '\070'))(hRTUxJgvuslu) if V3OlOVg98A85(roI3spqORKae(GQm5jxstgOn6, roI3spqORKae(ES5oEprVxulp(b'P4\xe8\xa9'), chr(0b101100 + 0o70) + chr(0b1100000 + 0o5) + chr(0b1100011) + '\157' + chr(3771 - 3671) + chr(0b111 + 0o136))('\165' + chr(0b1110100) + chr(0b1100110) + '\055' + chr(0b111000)))()) != V3OlOVg98A85(roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'nb\xa8\xb0!0\xabtS=#\xe7'), chr(0b1100100) + '\145' + chr(99) + chr(0b1101111) + '\144' + '\x65')(chr(2682 - 2565) + '\x74' + chr(0b110011 + 0o63) + chr(45) + chr(584 - 528)))): for QYodcsDtoGq7 in GQm5jxstgOn6: if QYodcsDtoGq7 not in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'nb\xa8\xb0!0\xabtS=#\xe7'), chr(4993 - 4893) + '\145' + chr(8017 - 7918) + chr(8799 - 8688) + chr(100) + '\x65')('\x75' + chr(0b110000 + 0o104) + chr(0b1100110) + chr(45) + chr(611 - 555))): hXMPsSrOQzbh.jpOn8DNZxbbx[QYodcsDtoGq7] = None for I1_5FWDSAzRY in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'nb\xa8\xb0!0\xabtS=#\xe7'), '\x64' + '\x65' + chr(0b1000 + 0o133) + chr(0b1101111) + chr(6305 - 6205) + '\x65')(chr(117) + '\164' + chr(0b101111 + 0o67) + '\x2d' + '\x38')): if I1_5FWDSAzRY not in H4NoA26ON7iG(roI3spqORKae(GQm5jxstgOn6, roI3spqORKae(ES5oEprVxulp(b'P4\xe8\xa9'), chr(5448 - 5348) + chr(0b111011 + 0o52) + chr(99) + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + '\x66' + '\055' + '\070'))()): GQm5jxstgOn6[I1_5FWDSAzRY] = None hXMPsSrOQzbh.df.ZpfN5tSLaZze = hXMPsSrOQzbh.df.index.xqAChpcBkssb(N9zlRy29S1SS) OkDIn6t2Cke6 = N9zlRy29S1SS(OkDIn6t2Cke6) hXMPsSrOQzbh.df.UQ8hRiBoHcn5[OkDIn6t2Cke6 + roI3spqORKae(ES5oEprVxulp(b'U4\xe6'), chr(3551 - 3451) + chr(4671 - 4570) + chr(0b1100011) + chr(0b1101111) + '\x64' + '\145')(chr(117) + chr(4147 - 4031) + chr(0b1000111 + 0o37) + chr(45) + chr(0b111000))] = HLKt4sa1j9hm.Series(GQm5jxstgOn6) roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'I4\xff\xbb\x1f<'), chr(2868 - 2768) + chr(0b1000111 + 0o36) + '\143' + chr(111) + chr(0b101 + 0o137) + chr(0b1100101))(chr(117) + '\164' + chr(0b111001 + 0o55) + chr(1639 - 1594) + '\070'))(index={OkDIn6t2Cke6 + roI3spqORKae(ES5oEprVxulp(b'U4\xe6'), '\x64' + '\x65' + chr(3697 - 3598) + chr(111) + chr(3647 - 3547) + chr(5130 - 5029))(chr(0b1110101) + chr(9193 - 9077) + '\146' + '\055' + chr(0b100 + 0o64)): OkDIn6t2Cke6}, inplace=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49), 0b1000)) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'Q!\xde\xb4J\x1d\xac\x1b\x1f\x12-\xef'), '\144' + chr(101) + chr(99) + '\157' + chr(0b1100100) + '\x65')(chr(962 - 845) + chr(0b1101000 + 0o14) + chr(0b11000 + 0o116) + chr(0b10001 + 0o34) + chr(0b1010 + 0o56)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.add_data
def add_data(self, data): # add append option later """ Add df to a MagicDataFrame using a data list. Parameters ---------- data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }] dtype : str MagIC table type """ df = pd.DataFrame(data) name, dtype = self.get_singular_and_plural_dtype(self.dtype) if name in df.columns: df.index = df[name] df.index.name = name + " name" self.df = df
python
def add_data(self, data): # add append option later """ Add df to a MagicDataFrame using a data list. Parameters ---------- data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }] dtype : str MagIC table type """ df = pd.DataFrame(data) name, dtype = self.get_singular_and_plural_dtype(self.dtype) if name in df.columns: df.index = df[name] df.index.name = name + " name" self.df = df
[ "def", "add_data", "(", "self", ",", "data", ")", ":", "# add append option later", "df", "=", "pd", ".", "DataFrame", "(", "data", ")", "name", ",", "dtype", "=", "self", ".", "get_singular_and_plural_dtype", "(", "self", ".", "dtype", ")", "if", "name", "in", "df", ".", "columns", ":", "df", ".", "index", "=", "df", "[", "name", "]", "df", ".", "index", ".", "name", "=", "name", "+", "\" name\"", "self", ".", "df", "=", "df" ]
Add df to a MagicDataFrame using a data list. Parameters ---------- data : list of dicts data list with format [{'key1': 'val1', ...}, {'key1': 'val2', ...}, ... }] dtype : str MagIC table type
[ "Add", "df", "to", "a", "MagicDataFrame", "using", "a", "data", "list", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1617-L1633
train
Add df to a MagicDataFrame using a data list.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100001 + 0o22) + chr(0b110010) + chr(1501 - 1447), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\062' + chr(1270 - 1218) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10716 - 10605) + '\x33' + chr(0b111 + 0o56) + chr(50), ord("\x08")), nzTpIcepk0o8(chr(764 - 716) + '\x6f' + chr(0b110110) + '\x35', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + chr(0b11101 + 0o26) + chr(0b110111) + chr(0b110011), 52374 - 52366), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(6676 - 6565) + chr(0b11 + 0o60) + chr(53), 32246 - 32238), nzTpIcepk0o8(chr(2026 - 1978) + chr(0b1101111) + '\x33' + chr(53) + '\067', ord("\x08")), nzTpIcepk0o8(chr(0b11001 + 0o27) + '\x6f' + chr(1545 - 1495) + chr(54) + chr(50), 0b1000), nzTpIcepk0o8(chr(1135 - 1087) + '\x6f' + chr(0b1000 + 0o52) + chr(1145 - 1090) + chr(0b100 + 0o55), 32206 - 32198), nzTpIcepk0o8(chr(48) + '\157' + chr(0b101110 + 0o5) + chr(0b110000) + '\x32', 36956 - 36948), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100001 + 0o20) + '\066', 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110001 + 0o3) + chr(48), 32868 - 32860), nzTpIcepk0o8('\060' + chr(5567 - 5456) + chr(0b110100) + chr(0b100010 + 0o17), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(49) + chr(2052 - 2004) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + '\x36' + chr(55), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(7224 - 7113) + '\x31' + chr(0b110110), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101 + 0o54) + chr(69 - 14) + chr(52), ord("\x08")), nzTpIcepk0o8(chr(584 - 536) + chr(0b11101 + 0o122) + '\061' + '\x34' + '\066', 37781 - 37773), nzTpIcepk0o8(chr(48) + chr(1206 - 1095) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + '\064' + chr(815 - 764), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(1086 - 1035) + chr(0b110101) + '\x30', 50284 - 50276), nzTpIcepk0o8('\060' + '\157' + chr(2310 - 2261), 0o10), nzTpIcepk0o8(chr(2253 - 2205) + chr(0b1101111) + chr(0b110001) + chr(1247 - 1198) + chr(0b100101 + 0o21), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + chr(0b100010 + 0o16) + '\x36', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(9507 - 9396) + chr(1432 - 1378) + chr(0b1100 + 0o45), 14777 - 14769), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(54) + chr(1062 - 1014), 14029 - 14021), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(55) + '\064', 0o10), nzTpIcepk0o8(chr(318 - 270) + chr(0b1010100 + 0o33) + chr(0b110010) + chr(0b110011 + 0o4) + chr(226 - 175), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(4986 - 4875) + chr(1132 - 1082) + chr(0b1101 + 0o51) + chr(1388 - 1338), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100010 + 0o20) + chr(0b100100 + 0o14) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(207 - 158) + chr(55) + '\064', 8), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110110) + chr(0b110 + 0o55), 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b1101111) + '\x33' + chr(948 - 899) + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1010011 + 0o34) + '\x31' + '\x33' + chr(0b100101 + 0o20), 38094 - 38086), nzTpIcepk0o8(chr(0b110000) + chr(2719 - 2608) + chr(0b110011) + chr(0b10101 + 0o40) + chr(0b10100 + 0o35), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + '\x32' + '\x32' + chr(0b101100 + 0o7), 15971 - 15963), nzTpIcepk0o8('\x30' + '\x6f' + chr(1801 - 1750) + chr(0b1000 + 0o51) + chr(0b10010 + 0o44), ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + '\x35' + '\x33', ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + '\x33' + '\067' + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110011) + chr(0b110110), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11010 + 0o26) + '\x6f' + '\065' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf8'), '\144' + chr(2508 - 2407) + chr(5134 - 5035) + chr(4776 - 4665) + chr(100) + chr(0b1100101))('\165' + chr(116) + chr(0b1011000 + 0o16) + chr(0b11101 + 0o20) + chr(1984 - 1928)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def efWzFA5JXHsK(hXMPsSrOQzbh, FfKOThdpoDTb): jpOn8DNZxbbx = HLKt4sa1j9hm.DataFrame(FfKOThdpoDTb) (SLVB2BPA_mIe, RcX9bbuOzh5L) = hXMPsSrOQzbh.get_singular_and_plural_dtype(hXMPsSrOQzbh.RcX9bbuOzh5L) if SLVB2BPA_mIe in roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\x83\x97\xd3_\xa8t\xa6\x87\x8d\x8fb\x10'), chr(2073 - 1973) + '\145' + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))(chr(0b1110101) + chr(116) + '\x66' + chr(0b101101) + chr(0b111000))): jpOn8DNZxbbx.ZpfN5tSLaZze = jpOn8DNZxbbx[SLVB2BPA_mIe] jpOn8DNZxbbx.index.SLVB2BPA_mIe = SLVB2BPA_mIe + roI3spqORKae(ES5oEprVxulp(b'\xf6\xca\x8bX\x9e'), chr(100) + '\145' + chr(0b1010101 + 0o16) + chr(111) + '\144' + chr(101))(chr(117) + '\x74' + chr(0b111110 + 0o50) + '\x2d' + '\x38') hXMPsSrOQzbh.jpOn8DNZxbbx = jpOn8DNZxbbx
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.add_blank_row
def add_blank_row(self, label): """ Add a blank row with only an index value to self.df. This is done inplace. """ col_labels = self.df.columns blank_item = pd.Series({}, index=col_labels, name=label) # use .loc to add in place (append won't do that) self.df.loc[blank_item.name] = blank_item return self.df
python
def add_blank_row(self, label): """ Add a blank row with only an index value to self.df. This is done inplace. """ col_labels = self.df.columns blank_item = pd.Series({}, index=col_labels, name=label) # use .loc to add in place (append won't do that) self.df.loc[blank_item.name] = blank_item return self.df
[ "def", "add_blank_row", "(", "self", ",", "label", ")", ":", "col_labels", "=", "self", ".", "df", ".", "columns", "blank_item", "=", "pd", ".", "Series", "(", "{", "}", ",", "index", "=", "col_labels", ",", "name", "=", "label", ")", "# use .loc to add in place (append won't do that)", "self", ".", "df", ".", "loc", "[", "blank_item", ".", "name", "]", "=", "blank_item", "return", "self", ".", "df" ]
Add a blank row with only an index value to self.df. This is done inplace.
[ "Add", "a", "blank", "row", "with", "only", "an", "index", "value", "to", "self", ".", "df", ".", "This", "is", "done", "inplace", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1635-L1644
train
Add a blank row with only an index value to self. df. This is done inplace.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(111) + chr(0b11101 + 0o24) + chr(0b110001 + 0o0) + chr(410 - 361), 0o10), nzTpIcepk0o8(chr(762 - 714) + chr(111) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1 + 0o156) + chr(0b110011) + chr(0b101110 + 0o2) + chr(52), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x36' + '\x35', 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(0b110000) + chr(172 - 122), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + '\157' + chr(0b110011) + chr(0b110101) + chr(1886 - 1838), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(50) + chr(0b101111 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\157' + '\062' + '\x31' + chr(50), 0b1000), nzTpIcepk0o8(chr(1191 - 1143) + chr(111) + '\061' + chr(0b110001 + 0o4) + chr(0b101000 + 0o17), 34048 - 34040), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\065' + chr(0b1111 + 0o42), 5744 - 5736), nzTpIcepk0o8('\x30' + '\157' + chr(0b110011) + chr(0b110000) + chr(55), 7966 - 7958), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110011 + 0o2) + chr(0b101011 + 0o10), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110011) + '\061' + chr(0b110010), 56316 - 56308), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\x33' + chr(0b110000) + chr(2497 - 2443), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\062' + chr(1972 - 1920) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x37' + chr(1754 - 1706), 25232 - 25224), nzTpIcepk0o8('\060' + chr(2896 - 2785) + chr(49) + chr(0b110000) + chr(0b100011 + 0o17), 0o10), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\157' + chr(0b11110 + 0o24) + chr(0b110101) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(2249 - 2201) + chr(111) + '\x33' + chr(0b11 + 0o56) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x33' + chr(2264 - 2210) + chr(2538 - 2487), 41918 - 41910), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(5941 - 5830) + '\061' + chr(165 - 115) + '\063', 8), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(50) + chr(0b100000 + 0o20) + '\067', 12147 - 12139), nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(0b110111) + chr(2165 - 2115), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(51) + chr(2530 - 2477) + chr(2701 - 2646), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1717 - 1664) + chr(615 - 561), 9171 - 9163), nzTpIcepk0o8('\x30' + chr(0b11011 + 0o124) + chr(0b110010) + '\x32' + chr(0b110100), 23236 - 23228), nzTpIcepk0o8(chr(1275 - 1227) + chr(111) + '\x32' + chr(0b100000 + 0o25) + chr(0b110011), 55553 - 55545), nzTpIcepk0o8(chr(0b11110 + 0o22) + '\x6f' + chr(0b110000 + 0o2) + '\066' + chr(185 - 135), 0o10), nzTpIcepk0o8(chr(679 - 631) + '\x6f' + chr(1755 - 1705) + chr(0b110101) + chr(0b110001), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11000 + 0o31) + chr(0b110010) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(1560 - 1509) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b100101 + 0o21) + chr(109 - 56), 58232 - 58224), nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + '\x31' + '\065' + '\063', 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(270 - 221) + '\x35' + chr(0b100001 + 0o23), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(53) + '\062', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + '\x33' + '\066' + '\x36', 46970 - 46962), nzTpIcepk0o8('\x30' + chr(0b10101 + 0o132) + chr(2375 - 2320), 8), nzTpIcepk0o8(chr(1943 - 1895) + chr(1181 - 1070) + chr(0b110010) + chr(2279 - 2228) + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + chr(0b101 + 0o61) + chr(0b10000 + 0o40), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + chr(53) + chr(0b110000), 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'g'), chr(0b1010110 + 0o16) + chr(2063 - 1962) + chr(0b1100011) + chr(11776 - 11665) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111 + 0o61)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def Rymzg9yuiKJ3(hXMPsSrOQzbh, OkDIn6t2Cke6): ByFdZdjpJs1f = hXMPsSrOQzbh.df.U39jSiI54Mlp BEgyQ1tBrNrH = HLKt4sa1j9hm.Series({}, index=ByFdZdjpJs1f, name=OkDIn6t2Cke6) hXMPsSrOQzbh.df.UQ8hRiBoHcn5[BEgyQ1tBrNrH.SLVB2BPA_mIe] = BEgyQ1tBrNrH return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'#w\x8b[\xfa\xac\x1d\xd0\x17\xcb\xa5S'), '\144' + chr(0b1100101) + chr(99) + chr(111) + '\x64' + '\x65')(chr(0b1110101) + chr(116) + '\146' + chr(0b10010 + 0o33) + chr(0b111000)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.delete_row
def delete_row(self, ind): """ remove self.df row at ind inplace """ self.df = pd.concat([self.df[:ind], self.df[ind+1:]], sort=True) return self.df
python
def delete_row(self, ind): """ remove self.df row at ind inplace """ self.df = pd.concat([self.df[:ind], self.df[ind+1:]], sort=True) return self.df
[ "def", "delete_row", "(", "self", ",", "ind", ")", ":", "self", ".", "df", "=", "pd", ".", "concat", "(", "[", "self", ".", "df", "[", ":", "ind", "]", ",", "self", ".", "df", "[", "ind", "+", "1", ":", "]", "]", ",", "sort", "=", "True", ")", "return", "self", ".", "df" ]
remove self.df row at ind inplace
[ "remove", "self", ".", "df", "row", "at", "ind", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1646-L1652
train
remove the row at ind
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100000 + 0o20) + chr(0b10000 + 0o137) + '\x31' + '\064' + '\x31', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b110110 + 0o1) + chr(0b110010), 39641 - 39633), nzTpIcepk0o8(chr(828 - 780) + chr(0b1101111) + chr(0b110011) + chr(0b110100), 52978 - 52970), nzTpIcepk0o8('\x30' + chr(0b11110 + 0o121) + '\x32' + chr(50) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b111001 + 0o66) + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(0b110000) + chr(48), 0b1000), nzTpIcepk0o8(chr(2181 - 2133) + '\x6f' + chr(0b110010) + chr(0b101110 + 0o7) + chr(1244 - 1193), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(55) + chr(48), 0o10), nzTpIcepk0o8(chr(0b1111 + 0o41) + chr(0b1101 + 0o142) + chr(49) + chr(0b110110) + '\067', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110010) + chr(70 - 20) + chr(1156 - 1108), 8), nzTpIcepk0o8(chr(780 - 732) + chr(111) + '\063' + '\064' + chr(0b10000 + 0o42), 44989 - 44981), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b10101 + 0o34) + chr(0b110000) + '\064', 0b1000), nzTpIcepk0o8(chr(1667 - 1619) + chr(0b1101111) + chr(0b110 + 0o54) + chr(0b110011) + '\x30', 31356 - 31348), nzTpIcepk0o8('\x30' + chr(2524 - 2413) + chr(0b110011) + chr(0b100111 + 0o13) + chr(0b100011 + 0o15), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\x33' + '\066', 412 - 404), nzTpIcepk0o8(chr(0b111 + 0o51) + chr(10907 - 10796) + chr(53) + '\062', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(770 - 720) + chr(2246 - 2198) + chr(0b11000 + 0o31), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(465 - 414) + '\x34' + '\x33', 39082 - 39074), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\x30' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100) + chr(75 - 27), 48808 - 48800), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b0 + 0o61) + chr(1627 - 1574) + chr(1742 - 1691), 8549 - 8541), nzTpIcepk0o8('\x30' + chr(5564 - 5453) + chr(726 - 676) + '\x31' + '\066', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b0 + 0o61) + '\060' + '\060', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001000 + 0o47) + '\x32' + chr(715 - 667) + chr(55), 61278 - 61270), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010) + chr(53) + chr(0b1110 + 0o42), 0o10), nzTpIcepk0o8(chr(2264 - 2216) + '\x6f' + chr(0b1 + 0o66), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1480 - 1431) + chr(1988 - 1938) + '\x30', 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b10 + 0o60) + chr(0b10010 + 0o42) + chr(54), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(2545 - 2494) + chr(0b110100) + chr(54), 61766 - 61758), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(111) + chr(825 - 776) + chr(430 - 381) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10 + 0o63) + chr(0b11010 + 0o34), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011010 + 0o25) + chr(2130 - 2080) + chr(2558 - 2503) + '\x36', ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(2490 - 2440) + chr(55), 25503 - 25495), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b1101101 + 0o2) + chr(50) + chr(0b110100) + '\060', 24967 - 24959), nzTpIcepk0o8(chr(0b10 + 0o56) + chr(111) + chr(1263 - 1213) + chr(51) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(49) + '\062' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x31' + '\061' + chr(0b10011 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(4487 - 4376) + chr(2171 - 2120) + '\061' + '\x32', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\063' + '\x34' + chr(0b1110 + 0o46), 55381 - 55373), nzTpIcepk0o8(chr(816 - 768) + chr(0b1101111) + chr(2127 - 2077) + '\x34' + chr(0b11101 + 0o30), 41409 - 41401)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\157' + chr(53) + chr(0b10111 + 0o31), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'O'), chr(0b10100 + 0o120) + '\145' + chr(99) + '\157' + '\x64' + chr(0b1010001 + 0o24))(chr(5194 - 5077) + chr(5096 - 4980) + '\146' + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def bEV14uMuNjN4(hXMPsSrOQzbh, w5vcgUzFN3bF): hXMPsSrOQzbh.jpOn8DNZxbbx = HLKt4sa1j9hm.concat([hXMPsSrOQzbh.jpOn8DNZxbbx[:w5vcgUzFN3bF], hXMPsSrOQzbh.jpOn8DNZxbbx[w5vcgUzFN3bF + nzTpIcepk0o8(chr(62 - 14) + '\157' + '\x31', 0o10):]], sort=nzTpIcepk0o8('\060' + chr(111) + chr(0b110001), 8)) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x0b\nS\xfe<\xc4\xe5b\x0f\xf2\x80<'), chr(3948 - 3848) + chr(0b1100101) + chr(0b11001 + 0o112) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(2773 - 2671) + chr(45) + chr(656 - 600)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.delete_rows
def delete_rows(self, condition, info_str=None): """ delete all rows with condition==True inplace Parameters ---------- condition : pandas DataFrame indexer all self.df rows that meet this condition will be deleted info_str : str description of the kind of rows to be deleted, e.g "specimen rows with blank method codes" Returns -------- df_data : pandas DataFrame updated self.df """ self.df['num'] = list(range(len(self.df))) df_data = self.df # delete all records that meet condition if len(df_data[condition]) > 0: #we have one or more records to delete inds = df_data[condition]['num'] # list of all rows where condition is TRUE for ind in inds[::-1]: df_data = self.delete_row(ind) if info_str: print("-I- Deleting {}. ".format(info_str), end=' ') print('deleting row {}'.format(str(ind))) # sort so that all rows for an item are together df_data.sort_index(inplace=True) # redo temporary index df_data['num'] = list(range(len(df_data))) self.df = df_data return df_data
python
def delete_rows(self, condition, info_str=None): """ delete all rows with condition==True inplace Parameters ---------- condition : pandas DataFrame indexer all self.df rows that meet this condition will be deleted info_str : str description of the kind of rows to be deleted, e.g "specimen rows with blank method codes" Returns -------- df_data : pandas DataFrame updated self.df """ self.df['num'] = list(range(len(self.df))) df_data = self.df # delete all records that meet condition if len(df_data[condition]) > 0: #we have one or more records to delete inds = df_data[condition]['num'] # list of all rows where condition is TRUE for ind in inds[::-1]: df_data = self.delete_row(ind) if info_str: print("-I- Deleting {}. ".format(info_str), end=' ') print('deleting row {}'.format(str(ind))) # sort so that all rows for an item are together df_data.sort_index(inplace=True) # redo temporary index df_data['num'] = list(range(len(df_data))) self.df = df_data return df_data
[ "def", "delete_rows", "(", "self", ",", "condition", ",", "info_str", "=", "None", ")", ":", "self", ".", "df", "[", "'num'", "]", "=", "list", "(", "range", "(", "len", "(", "self", ".", "df", ")", ")", ")", "df_data", "=", "self", ".", "df", "# delete all records that meet condition", "if", "len", "(", "df_data", "[", "condition", "]", ")", ">", "0", ":", "#we have one or more records to delete", "inds", "=", "df_data", "[", "condition", "]", "[", "'num'", "]", "# list of all rows where condition is TRUE", "for", "ind", "in", "inds", "[", ":", ":", "-", "1", "]", ":", "df_data", "=", "self", ".", "delete_row", "(", "ind", ")", "if", "info_str", ":", "print", "(", "\"-I- Deleting {}. \"", ".", "format", "(", "info_str", ")", ",", "end", "=", "' '", ")", "print", "(", "'deleting row {}'", ".", "format", "(", "str", "(", "ind", ")", ")", ")", "# sort so that all rows for an item are together", "df_data", ".", "sort_index", "(", "inplace", "=", "True", ")", "# redo temporary index", "df_data", "[", "'num'", "]", "=", "list", "(", "range", "(", "len", "(", "df_data", ")", ")", ")", "self", ".", "df", "=", "df_data", "return", "df_data" ]
delete all rows with condition==True inplace Parameters ---------- condition : pandas DataFrame indexer all self.df rows that meet this condition will be deleted info_str : str description of the kind of rows to be deleted, e.g "specimen rows with blank method codes" Returns -------- df_data : pandas DataFrame updated self.df
[ "delete", "all", "rows", "with", "condition", "==", "True", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1654-L1687
train
Delete all rows that meet the condition and return a new dataframe with the new rows deleted
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + chr(49) + '\060' + chr(2134 - 2084), 4376 - 4368), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(111) + chr(0b110011) + chr(914 - 865) + chr(0b10100 + 0o41), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1001100 + 0o43) + chr(0b110001) + chr(0b110101) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + '\x32' + '\x37', 0o10), nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1010001 + 0o36) + chr(49) + chr(55), 1997 - 1989), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(49) + chr(943 - 888) + chr(51), 28746 - 28738), nzTpIcepk0o8('\060' + chr(0b1101111) + '\063' + chr(342 - 289) + chr(0b100 + 0o63), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110010) + chr(0b110110) + chr(799 - 745), 54383 - 54375), nzTpIcepk0o8(chr(48) + chr(7686 - 7575) + '\061' + chr(1643 - 1591), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b0 + 0o67) + '\061', 15129 - 15121), nzTpIcepk0o8('\x30' + '\157' + chr(0b110001) + chr(0b1101 + 0o45) + chr(0b1110 + 0o44), 44870 - 44862), nzTpIcepk0o8('\060' + '\157' + '\063' + chr(1207 - 1154) + chr(0b11010 + 0o35), 8), nzTpIcepk0o8(chr(1711 - 1663) + chr(111) + chr(2087 - 2037) + chr(663 - 609) + '\x31', 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + chr(0b11111 + 0o21) + '\x36', 15926 - 15918), nzTpIcepk0o8('\060' + chr(0b1100001 + 0o16) + '\x32' + '\x31' + chr(671 - 618), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(861 - 810) + '\x37' + chr(0b110010), 0b1000), nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + chr(0b110011) + chr(0b1101 + 0o43) + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + chr(3663 - 3552) + chr(0b110010) + chr(51) + chr(0b101000 + 0o15), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + '\x35' + chr(0b101101 + 0o12), 1219 - 1211), nzTpIcepk0o8('\060' + chr(0b1101010 + 0o5) + chr(0b110011) + chr(0b110111) + chr(0b100100 + 0o15), 34133 - 34125), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(10838 - 10727) + chr(0b10000 + 0o41) + chr(52) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(1790 - 1741) + '\062', 65341 - 65333), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(841 - 792) + '\067' + chr(0b0 + 0o65), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b1111 + 0o42) + '\060' + '\067', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11110 + 0o23) + chr(53) + chr(0b10101 + 0o34), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\063' + chr(2167 - 2112) + '\062', 8), nzTpIcepk0o8(chr(0b101011 + 0o5) + chr(0b1101111) + chr(0b1001 + 0o51) + chr(521 - 467) + '\x33', ord("\x08")), nzTpIcepk0o8(chr(492 - 444) + '\157' + '\x36' + chr(54), 0b1000), nzTpIcepk0o8('\060' + chr(0b11111 + 0o120) + chr(0b110011) + '\x35' + chr(0b100011 + 0o16), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(3871 - 3760) + chr(0b101001 + 0o11) + chr(0b101000 + 0o16) + '\067', ord("\x08")), nzTpIcepk0o8(chr(1966 - 1918) + '\x6f' + chr(0b110010) + chr(48) + chr(53), ord("\x08")), nzTpIcepk0o8(chr(575 - 527) + chr(0b1101111) + chr(0b110001) + chr(0b110100) + chr(0b110010), 60287 - 60279), nzTpIcepk0o8(chr(991 - 943) + chr(0b101110 + 0o101) + chr(0b110010) + '\x36' + '\x30', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x37', 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1805 - 1755) + chr(0b11010 + 0o35) + '\066', 23816 - 23808), nzTpIcepk0o8('\x30' + chr(0b1010110 + 0o31) + chr(49) + '\x33' + chr(0b110 + 0o52), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10010 + 0o135) + '\063' + chr(0b10 + 0o56) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + chr(380 - 330) + chr(100 - 45), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(111) + chr(0b11100 + 0o27) + chr(49) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(770 - 721) + '\x37' + chr(0b110111), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(111) + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'l'), chr(100) + chr(4167 - 4066) + '\143' + chr(111) + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b111100 + 0o52) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def KjL6CShNpb_d(hXMPsSrOQzbh, ihXi_REa_8XA, E4g15DhCfhSm=None): hXMPsSrOQzbh.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b',\xb8\x02'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(508 - 397) + '\144' + chr(101))('\x75' + '\x74' + chr(5791 - 5689) + chr(1385 - 1340) + chr(0b110000 + 0o10))] = H4NoA26ON7iG(bbT2xIe5pzk7(ftfygxgFas5X(hXMPsSrOQzbh.jpOn8DNZxbbx))) wjn6tnQhsou7 = hXMPsSrOQzbh.jpOn8DNZxbbx if ftfygxgFas5X(wjn6tnQhsou7[ihXi_REa_8XA]) > nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110000), 35182 - 35174): JXsHVQlcUm3B = wjn6tnQhsou7[ihXi_REa_8XA][roI3spqORKae(ES5oEprVxulp(b',\xb8\x02'), chr(100) + chr(4216 - 4115) + chr(4379 - 4280) + chr(111) + chr(0b1100100) + chr(9106 - 9005))(chr(117) + '\164' + '\x66' + chr(606 - 561) + '\070')] for w5vcgUzFN3bF in JXsHVQlcUm3B[::-nzTpIcepk0o8('\060' + '\157' + '\061', 0o10)]: wjn6tnQhsou7 = hXMPsSrOQzbh.delete_row(w5vcgUzFN3bF) if E4g15DhCfhSm: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'o\x84B7K\x1e\x83\xd3xP<\x88\x91\xbd\xf0\xd4\xe3'), chr(100) + chr(0b1100101) + chr(0b111010 + 0o51) + chr(0b1010000 + 0o37) + chr(0b1100100) + '\x65')(chr(117) + chr(116) + chr(0b111110 + 0o50) + '\055' + chr(0b100110 + 0o22)), roI3spqORKae(ES5oEprVxulp(b'3\xfe\\\\HH\x89\xd9]f\x11\xa5'), chr(0b1100100) + chr(0b1000110 + 0o37) + '\x63' + '\x6f' + chr(0b11001 + 0o113) + chr(101))(chr(0b10101 + 0o140) + '\164' + chr(4671 - 4569) + chr(45) + chr(3051 - 2995)))(E4g15DhCfhSm), end=roI3spqORKae(ES5oEprVxulp(b'b'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(0b1001110 + 0o41) + '\144' + '\x65')('\x75' + '\x74' + chr(9700 - 9598) + '\055' + chr(0b111000))) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'&\xa8\x03r{\x12\x81\xd1,K=\x98\x91\xbd\xf0'), '\144' + chr(5482 - 5381) + chr(0b1 + 0o142) + '\157' + chr(0b1010010 + 0o22) + '\x65')(chr(0b1110101) + chr(0b11111 + 0o125) + chr(2082 - 1980) + chr(0b101101) + chr(0b101010 + 0o16)), roI3spqORKae(ES5oEprVxulp(b'3\xfe\\\\HH\x89\xd9]f\x11\xa5'), '\144' + chr(3782 - 3681) + chr(342 - 243) + '\157' + chr(0b1100100) + chr(5068 - 4967))(chr(117) + chr(116) + chr(0b1000101 + 0o41) + chr(45) + chr(56)))(N9zlRy29S1SS(w5vcgUzFN3bF))) roI3spqORKae(wjn6tnQhsou7, roI3spqORKae(ES5oEprVxulp(b'1\xa2\x1dcP\x12\x81\xd2iA'), chr(5906 - 5806) + '\145' + '\143' + chr(0b1001001 + 0o46) + '\x64' + '\x65')(chr(0b10 + 0o163) + '\164' + chr(0b1100001 + 0o5) + chr(45) + chr(0b111000)))(inplace=nzTpIcepk0o8(chr(0b110000) + chr(0b1000001 + 0o56) + chr(49), 8)) wjn6tnQhsou7[roI3spqORKae(ES5oEprVxulp(b',\xb8\x02'), chr(0b1100100) + chr(9747 - 9646) + chr(0b10000 + 0o123) + chr(0b101100 + 0o103) + chr(100) + chr(0b111101 + 0o50))(chr(117) + chr(0b1110100) + chr(5588 - 5486) + chr(0b101101) + '\070')] = H4NoA26ON7iG(bbT2xIe5pzk7(ftfygxgFas5X(wjn6tnQhsou7))) hXMPsSrOQzbh.jpOn8DNZxbbx = wjn6tnQhsou7 return wjn6tnQhsou7
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.drop_stub_rows
def drop_stub_rows(self, ignore_cols=('specimen', 'sample', 'software_packages', 'num')): """ Drop self.df rows that have only null values, ignoring certain columns. Parameters ---------- ignore_cols : list-like list of column names to ignore for Returns --------- self.df : pandas DataFrame """ # ignore citations if they just say 'This study' if 'citations' in self.df.columns: if list(self.df['citations'].unique()) == ['This study']: ignore_cols = ignore_cols + ('citations',) drop_cols = self.df.columns.difference(ignore_cols) self.df.dropna(axis='index', subset=drop_cols, how='all', inplace=True) return self.df
python
def drop_stub_rows(self, ignore_cols=('specimen', 'sample', 'software_packages', 'num')): """ Drop self.df rows that have only null values, ignoring certain columns. Parameters ---------- ignore_cols : list-like list of column names to ignore for Returns --------- self.df : pandas DataFrame """ # ignore citations if they just say 'This study' if 'citations' in self.df.columns: if list(self.df['citations'].unique()) == ['This study']: ignore_cols = ignore_cols + ('citations',) drop_cols = self.df.columns.difference(ignore_cols) self.df.dropna(axis='index', subset=drop_cols, how='all', inplace=True) return self.df
[ "def", "drop_stub_rows", "(", "self", ",", "ignore_cols", "=", "(", "'specimen'", ",", "'sample'", ",", "'software_packages'", ",", "'num'", ")", ")", ":", "# ignore citations if they just say 'This study'", "if", "'citations'", "in", "self", ".", "df", ".", "columns", ":", "if", "list", "(", "self", ".", "df", "[", "'citations'", "]", ".", "unique", "(", ")", ")", "==", "[", "'This study'", "]", ":", "ignore_cols", "=", "ignore_cols", "+", "(", "'citations'", ",", ")", "drop_cols", "=", "self", ".", "df", ".", "columns", ".", "difference", "(", "ignore_cols", ")", "self", ".", "df", ".", "dropna", "(", "axis", "=", "'index'", ",", "subset", "=", "drop_cols", ",", "how", "=", "'all'", ",", "inplace", "=", "True", ")", "return", "self", ".", "df" ]
Drop self.df rows that have only null values, ignoring certain columns. Parameters ---------- ignore_cols : list-like list of column names to ignore for Returns --------- self.df : pandas DataFrame
[ "Drop", "self", ".", "df", "rows", "that", "have", "only", "null", "values", "ignoring", "certain", "columns", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1689-L1712
train
Drop rows that have only null values ignoring certain columns.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101100 + 0o3) + chr(448 - 398) + chr(684 - 633) + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(2734 - 2681) + chr(0b1000 + 0o54), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(6120 - 6009) + '\x33' + chr(543 - 489) + '\x35', 47875 - 47867), nzTpIcepk0o8(chr(0b111 + 0o51) + '\157' + chr(51) + chr(0b110101) + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + chr(0b100111 + 0o11) + chr(0b110010), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\067' + chr(0b110 + 0o54), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(807 - 758) + chr(0b110011 + 0o1) + chr(0b110100), 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b11011 + 0o124) + chr(49) + chr(2502 - 2450) + chr(50), 0b1000), nzTpIcepk0o8(chr(1120 - 1072) + chr(955 - 844) + '\x33' + chr(0b101101 + 0o12) + chr(0b10101 + 0o35), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110011) + '\x37' + chr(48), 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b110 + 0o54) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100 + 0o143) + chr(0b11111 + 0o23) + chr(0b110111) + '\x37', 19579 - 19571), nzTpIcepk0o8(chr(409 - 361) + chr(0b1101111) + chr(2482 - 2430) + chr(271 - 220), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\x31' + chr(1967 - 1916) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(51) + '\066', 36199 - 36191), nzTpIcepk0o8(chr(0b1000 + 0o50) + '\x6f' + '\063' + chr(0b110010) + chr(55), 15622 - 15614), nzTpIcepk0o8('\x30' + '\157' + chr(2434 - 2384) + '\x35' + chr(0b100 + 0o57), 16492 - 16484), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\157' + chr(49) + chr(1317 - 1264) + chr(140 - 90), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(1253 - 1203) + chr(0b10000 + 0o46) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b101000 + 0o10) + '\x6f' + chr(513 - 464) + chr(0b110100) + '\062', 8), nzTpIcepk0o8(chr(48) + chr(10756 - 10645) + '\063' + chr(0b110110) + chr(50), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + '\157' + chr(830 - 779) + chr(0b110000 + 0o4) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(50) + '\x37' + '\063', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1001000 + 0o47) + chr(0b110110) + chr(1303 - 1255), 9450 - 9442), nzTpIcepk0o8(chr(48) + chr(8502 - 8391) + chr(0b101001 + 0o12) + '\062' + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b100011 + 0o114) + '\066' + chr(551 - 501), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + chr(0b110011) + '\x35' + '\x35', 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + '\065' + '\x30', 0b1000), nzTpIcepk0o8(chr(2152 - 2104) + chr(0b11 + 0o154) + chr(0b100010 + 0o23) + chr(55), 54512 - 54504), nzTpIcepk0o8(chr(0b110000) + chr(3041 - 2930) + chr(54) + chr(1699 - 1645), 52372 - 52364), nzTpIcepk0o8('\060' + chr(0b10111 + 0o130) + chr(0b101 + 0o55) + chr(0b1001 + 0o55) + chr(0b1 + 0o63), 8698 - 8690), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + '\x30' + chr(0b110110), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b1010 + 0o51) + chr(0b10100 + 0o36) + chr(52), 8), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(1541 - 1488) + chr(55), 0o10), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b1101111) + '\x33' + '\x32' + '\061', 65091 - 65083), nzTpIcepk0o8('\x30' + chr(0b1001111 + 0o40) + '\062' + '\x36' + '\x35', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10000 + 0o137) + '\x33' + '\064' + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\062' + chr(51) + '\x31', 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(0b1101111) + '\061' + chr(0b100011 + 0o21), 22746 - 22738)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(2120 - 2072) + chr(10884 - 10773) + '\065' + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb7'), chr(100) + chr(2505 - 2404) + '\x63' + chr(111) + chr(0b1 + 0o143) + chr(101))('\165' + '\x74' + chr(5423 - 5321) + '\x2d' + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def lrjXeG3WCaho(hXMPsSrOQzbh, dhl3sG1RxeAY=(roI3spqORKae(ES5oEprVxulp(b'\xea\\\x90\x88\xeb\xd7\x01e'), chr(4564 - 4464) + '\145' + chr(6944 - 6845) + '\x6f' + '\144' + chr(4738 - 4637))('\x75' + chr(0b1110100) + chr(1950 - 1848) + chr(1380 - 1335) + chr(202 - 146)), roI3spqORKae(ES5oEprVxulp(b'\xeaM\x98\x9b\xee\xdf'), chr(100) + chr(101) + chr(4672 - 4573) + chr(1157 - 1046) + '\x64' + '\145')(chr(0b10011 + 0o142) + chr(0b111 + 0o155) + '\146' + chr(0b10 + 0o53) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xeaC\x93\x9f\xf5\xdb\x16n=\x8a\x993\xd4B?{\xa4'), chr(7376 - 7276) + chr(5993 - 5892) + chr(99) + chr(1789 - 1678) + '\x64' + chr(0b1100101))('\x75' + '\164' + chr(6245 - 6143) + chr(0b101101) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xf7Y\x98'), chr(0b1100100) + chr(0b1100101) + chr(5528 - 5429) + chr(111) + chr(100) + '\145')(chr(0b1110101) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b111000)))): if roI3spqORKae(ES5oEprVxulp(b'\xfaE\x81\x8a\xf6\xd3\x0be\x11'), chr(0b11010 + 0o112) + '\145' + '\143' + chr(9851 - 9740) + chr(0b1101 + 0o127) + chr(0b1100101))(chr(0b101111 + 0o106) + chr(116) + '\146' + '\x2d' + chr(56)) in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xcc\x1f\xcc\x81\xd1\xd3->V\xb7\x94 '), chr(0b1100100) + chr(5645 - 5544) + chr(0b1100011) + chr(0b1010011 + 0o34) + '\x64' + chr(0b1100101))('\x75' + chr(0b1010110 + 0o36) + chr(5094 - 4992) + chr(0b101101) + '\x38')): if H4NoA26ON7iG(roI3spqORKae(hXMPsSrOQzbh.df[roI3spqORKae(ES5oEprVxulp(b'\xfaE\x81\x8a\xf6\xd3\x0be\x11'), '\144' + '\145' + chr(0b1010 + 0o131) + chr(111) + '\x64' + '\x65')('\165' + chr(4426 - 4310) + chr(0b10110 + 0o120) + '\x2d' + chr(56))], roI3spqORKae(ES5oEprVxulp(b'\xde\x1f\x91\x8e\xb0\xdf3Z\x03\xa9\xc8\x14'), '\144' + chr(101) + '\143' + chr(111) + chr(0b111001 + 0o53) + chr(10015 - 9914))(chr(12028 - 11911) + '\x74' + chr(0b1100110) + chr(1607 - 1562) + '\070'))()) == [roI3spqORKae(ES5oEprVxulp(b'\xcdD\x9c\x98\xa2\xc9\x10~\x06\x83'), '\144' + chr(0b1100101) + chr(0b101101 + 0o66) + chr(0b1010010 + 0o35) + chr(0b1100100) + chr(0b1011010 + 0o13))(chr(0b1110101) + '\164' + chr(0b1100110 + 0o0) + chr(254 - 209) + chr(56))]: dhl3sG1RxeAY = dhl3sG1RxeAY + (roI3spqORKae(ES5oEprVxulp(b'\xfaE\x81\x8a\xf6\xd3\x0be\x11'), chr(100) + '\145' + chr(0b1100011) + chr(0b1000111 + 0o50) + chr(0b1100100) + '\x65')('\x75' + '\164' + '\x66' + chr(0b11111 + 0o16) + '\x38'),) ARzh5QnPL94c = hXMPsSrOQzbh.df.columns._61auecdOib2(dhl3sG1RxeAY) roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xfd^\x9a\x9b\xec\xdb'), chr(100) + chr(0b1000101 + 0o40) + '\x63' + '\x6f' + '\x64' + chr(0b1100101))('\165' + chr(0b1110100) + '\x66' + '\055' + '\070'))(axis=roI3spqORKae(ES5oEprVxulp(b'\xf0B\x91\x8e\xfa'), chr(3044 - 2944) + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + '\x65')('\x75' + chr(6111 - 5995) + chr(102) + '\x2d' + '\x38'), subset=ARzh5QnPL94c, how=roI3spqORKae(ES5oEprVxulp(b'\xf8@\x99'), '\x64' + chr(4039 - 3938) + '\143' + chr(111) + chr(2191 - 2091) + '\145')(chr(117) + '\x74' + chr(102) + chr(0b1110 + 0o37) + '\x38'), inplace=nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49), 60644 - 60636)) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf3\\\xba\x85\xba\xfe*Q\x1a\x98\x9a('), '\144' + chr(3812 - 3711) + '\x63' + chr(8499 - 8388) + chr(0b1100100) + chr(0b111110 + 0o47))(chr(117) + chr(0b100110 + 0o116) + chr(102) + chr(0b101101) + chr(0b111000)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.drop_duplicate_rows
def drop_duplicate_rows(self, ignore_cols=['specimen', 'sample']): """ Drop self.df rows that have only null values, ignoring certain columns BUT only if those rows do not have a unique index. Different from drop_stub_rows because it only drops empty rows if there is another row with that index. Parameters ---------- ignore_cols : list_like list of colum names to ignore Returns ---------- self.df : pandas DataFrame """ # keep any row with a unique index unique_index = self.df.index.unique() cond1 = ~self.df.index.duplicated(keep=False) # or with actual data ignore_cols = [col for col in ignore_cols if col in self.df.columns] relevant_df = self.df.drop(ignore_cols, axis=1) cond2 = relevant_df.notnull().any(axis=1) orig_len = len(self.df) new_df = self.df[cond1 | cond2] # make sure we haven't lost anything important if any(unique_index.difference(new_df.index.unique())): cond1 = ~self.df.index.duplicated(keep="first") self.df = self.df[cond1 | cond2] end_len = len(self.df) removed = orig_len - end_len if removed: print('-I- Removed {} redundant records from {} table'.format(removed, self.dtype)) return self.df
python
def drop_duplicate_rows(self, ignore_cols=['specimen', 'sample']): """ Drop self.df rows that have only null values, ignoring certain columns BUT only if those rows do not have a unique index. Different from drop_stub_rows because it only drops empty rows if there is another row with that index. Parameters ---------- ignore_cols : list_like list of colum names to ignore Returns ---------- self.df : pandas DataFrame """ # keep any row with a unique index unique_index = self.df.index.unique() cond1 = ~self.df.index.duplicated(keep=False) # or with actual data ignore_cols = [col for col in ignore_cols if col in self.df.columns] relevant_df = self.df.drop(ignore_cols, axis=1) cond2 = relevant_df.notnull().any(axis=1) orig_len = len(self.df) new_df = self.df[cond1 | cond2] # make sure we haven't lost anything important if any(unique_index.difference(new_df.index.unique())): cond1 = ~self.df.index.duplicated(keep="first") self.df = self.df[cond1 | cond2] end_len = len(self.df) removed = orig_len - end_len if removed: print('-I- Removed {} redundant records from {} table'.format(removed, self.dtype)) return self.df
[ "def", "drop_duplicate_rows", "(", "self", ",", "ignore_cols", "=", "[", "'specimen'", ",", "'sample'", "]", ")", ":", "# keep any row with a unique index", "unique_index", "=", "self", ".", "df", ".", "index", ".", "unique", "(", ")", "cond1", "=", "~", "self", ".", "df", ".", "index", ".", "duplicated", "(", "keep", "=", "False", ")", "# or with actual data", "ignore_cols", "=", "[", "col", "for", "col", "in", "ignore_cols", "if", "col", "in", "self", ".", "df", ".", "columns", "]", "relevant_df", "=", "self", ".", "df", ".", "drop", "(", "ignore_cols", ",", "axis", "=", "1", ")", "cond2", "=", "relevant_df", ".", "notnull", "(", ")", ".", "any", "(", "axis", "=", "1", ")", "orig_len", "=", "len", "(", "self", ".", "df", ")", "new_df", "=", "self", ".", "df", "[", "cond1", "|", "cond2", "]", "# make sure we haven't lost anything important", "if", "any", "(", "unique_index", ".", "difference", "(", "new_df", ".", "index", ".", "unique", "(", ")", ")", ")", ":", "cond1", "=", "~", "self", ".", "df", ".", "index", ".", "duplicated", "(", "keep", "=", "\"first\"", ")", "self", ".", "df", "=", "self", ".", "df", "[", "cond1", "|", "cond2", "]", "end_len", "=", "len", "(", "self", ".", "df", ")", "removed", "=", "orig_len", "-", "end_len", "if", "removed", ":", "print", "(", "'-I- Removed {} redundant records from {} table'", ".", "format", "(", "removed", ",", "self", ".", "dtype", ")", ")", "return", "self", ".", "df" ]
Drop self.df rows that have only null values, ignoring certain columns BUT only if those rows do not have a unique index. Different from drop_stub_rows because it only drops empty rows if there is another row with that index. Parameters ---------- ignore_cols : list_like list of colum names to ignore Returns ---------- self.df : pandas DataFrame
[ "Drop", "self", ".", "df", "rows", "that", "have", "only", "null", "values", "ignoring", "certain", "columns", "BUT", "only", "if", "those", "rows", "do", "not", "have", "a", "unique", "index", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1714-L1749
train
Drop duplicate rows from self. df.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + '\157' + '\x31' + '\062' + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(967 - 918) + '\x30', 0b1000), nzTpIcepk0o8(chr(1602 - 1554) + chr(0b1101111) + chr(0b110010) + '\063' + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + '\x6f' + chr(0b101011 + 0o7) + '\x36' + '\x35', 0o10), nzTpIcepk0o8('\x30' + chr(0b1001110 + 0o41) + chr(51) + '\065' + chr(0b110001), 42119 - 42111), nzTpIcepk0o8(chr(0b110000) + chr(5663 - 5552) + chr(0b110011) + '\x30' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110001) + chr(0b10 + 0o61) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(0b1101111) + chr(0b110011) + '\063' + chr(1725 - 1676), 8308 - 8300), nzTpIcepk0o8(chr(851 - 803) + '\157' + chr(0b101111 + 0o2) + '\x35' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\060' + chr(258 - 208), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110101 + 0o72) + chr(0b10011 + 0o40) + chr(50), 0o10), nzTpIcepk0o8(chr(0b101010 + 0o6) + chr(111) + '\x32' + chr(940 - 892) + chr(0b11011 + 0o33), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\061' + chr(48) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(5464 - 5353) + '\x31' + chr(0b110011) + chr(0b11 + 0o61), 32917 - 32909), nzTpIcepk0o8('\x30' + chr(0b110100 + 0o73) + chr(50) + '\x30' + chr(0b110011), 40138 - 40130), nzTpIcepk0o8(chr(48) + chr(0b10000 + 0o137) + chr(0b11100 + 0o25) + '\062' + '\x32', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1011111 + 0o20) + '\063' + '\061' + chr(0b110111), ord("\x08")), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(50) + chr(0b11010 + 0o35) + chr(2797 - 2744), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(54) + chr(0b10110 + 0o41), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(475 - 425) + chr(51) + chr(0b11001 + 0o32), 0o10), nzTpIcepk0o8('\060' + chr(0b100 + 0o153) + '\062' + chr(1547 - 1495) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(2162 - 2112) + chr(0b110100) + chr(0b111 + 0o57), 0b1000), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + chr(0b1101 + 0o50) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + '\064' + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(0b111100 + 0o63) + '\x31' + '\x34' + '\x32', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100 + 0o61), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7275 - 7164) + chr(0b110011) + '\x37' + '\061', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b10101 + 0o34) + chr(1228 - 1177) + chr(595 - 542), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + chr(54) + chr(1638 - 1588), 27432 - 27424), nzTpIcepk0o8(chr(707 - 659) + chr(111) + chr(337 - 288) + chr(0b11000 + 0o36) + chr(0b110000), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(0b110001) + chr(55), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(2348 - 2297) + '\062' + chr(0b1010 + 0o54), 0b1000), nzTpIcepk0o8(chr(888 - 840) + chr(0b1001111 + 0o40) + '\x36' + chr(2513 - 2459), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(0b110000) + chr(55), 8), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110011) + '\060' + chr(54), 62612 - 62604), nzTpIcepk0o8(chr(48) + chr(0b1011110 + 0o21) + chr(0b110001) + chr(0b10011 + 0o35) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + chr(1666 - 1555) + chr(1879 - 1830) + chr(668 - 616) + chr(49), 64005 - 63997), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(0b10101 + 0o34) + chr(50), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(1122 - 1071) + chr(431 - 381), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(53) + chr(1412 - 1364), ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'y'), chr(2526 - 2426) + '\x65' + '\x63' + '\157' + '\144' + chr(101))(chr(0b11010 + 0o133) + chr(0b1001 + 0o153) + chr(0b1100110) + chr(0b100011 + 0o12) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def QOTUURdTnLl2(hXMPsSrOQzbh, dhl3sG1RxeAY=[roI3spqORKae(ES5oEprVxulp(b'$x\xfa\xd6\x80\xa8?\xb7'), chr(100) + chr(101) + '\x63' + '\x6f' + chr(100) + chr(1749 - 1648))(chr(117) + chr(0b11010 + 0o132) + chr(0b1001010 + 0o34) + '\055' + chr(1246 - 1190)), roI3spqORKae(ES5oEprVxulp(b'$i\xf2\xc5\x85\xa0'), chr(0b1100100) + chr(0b100101 + 0o100) + '\x63' + chr(0b10110 + 0o131) + '\x64' + '\145')(chr(0b111100 + 0o71) + chr(12872 - 12756) + chr(0b1100110) + '\055' + chr(284 - 228))]): SHEDIF8LjU5t = hXMPsSrOQzbh.df.index.G3de2eWQaS0D() rm1uRQGSygF4 = ~hXMPsSrOQzbh.df.index.duplicated(keep=nzTpIcepk0o8(chr(0b110000 + 0o0) + chr(0b1101111) + '\060', 0b1000)) dhl3sG1RxeAY = [hRTUxJgvuslu for hRTUxJgvuslu in dhl3sG1RxeAY if hRTUxJgvuslu in hXMPsSrOQzbh.df.U39jSiI54Mlp] rREQRBiT682b = hXMPsSrOQzbh.df.drop(dhl3sG1RxeAY, axis=nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001), 0b1000)) maMDvHzsQ6IR = rREQRBiT682b.notnull().VF4pKOObtlPc(axis=nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061', 8)) _cu4ZZnZAaha = ftfygxgFas5X(hXMPsSrOQzbh.jpOn8DNZxbbx) nb1PCJiiJkkG = hXMPsSrOQzbh.jpOn8DNZxbbx[rm1uRQGSygF4 | maMDvHzsQ6IR] if VF4pKOObtlPc(roI3spqORKae(SHEDIF8LjU5t, roI3spqORKae(ES5oEprVxulp(b'\x08>\xae\xd4\x9c\xa09\xbd&+x\xb4'), chr(5895 - 5795) + '\145' + chr(99) + '\x6f' + chr(9730 - 9630) + chr(8744 - 8643))('\x75' + chr(0b1110100) + chr(0b100001 + 0o105) + chr(45) + chr(0b111000)))(roI3spqORKae(nb1PCJiiJkkG.index, roI3spqORKae(ES5oEprVxulp(b'\x10;\xfb\xd0\xdb\xa0\r\x88\x08\x11*\xc2'), chr(7994 - 7894) + '\x65' + chr(0b1100011) + chr(0b1101111) + '\x64' + '\x65')(chr(117) + chr(0b1110100) + '\x66' + chr(45) + '\x38'))())): rm1uRQGSygF4 = ~hXMPsSrOQzbh.df.index.duplicated(keep=roI3spqORKae(ES5oEprVxulp(b'1a\xed\xc6\x9d'), '\x64' + '\145' + '\143' + chr(0b111101 + 0o62) + '\144' + chr(101))(chr(0b1110101) + '\164' + chr(7715 - 7613) + chr(45) + chr(0b111000))) hXMPsSrOQzbh.jpOn8DNZxbbx = hXMPsSrOQzbh.jpOn8DNZxbbx[rm1uRQGSygF4 | maMDvHzsQ6IR] uwMgb6ysN3zi = ftfygxgFas5X(hXMPsSrOQzbh.jpOn8DNZxbbx) tBmgsvO2s9X1 = _cu4ZZnZAaha - uwMgb6ysN3zi if tBmgsvO2s9X1: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"zA\xb2\x95\xbb\xa07\xb6\x1f'~\xa6<!\xa3 \xaa\xd9B\xf5\xc1\xc7\xc1VBwv\x9a2@\x14\xbc\xf6P5\xa9,A1\xa7w|\xfe\xd7\x85\xa0"), '\x64' + chr(0b111001 + 0o54) + '\x63' + chr(5917 - 5806) + '\x64' + chr(0b1100101))(chr(10492 - 10375) + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b100 + 0o64)), roI3spqORKae(ES5oEprVxulp(b'&;\xac\xfe\xae\xf6<\xb68\x1dY\xcc'), '\x64' + chr(101) + '\x63' + '\x6f' + chr(9287 - 9187) + chr(101))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(0b101000 + 0o20)))(tBmgsvO2s9X1, roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x05k\xc7\x8c\x8b\xa7/\x96\x13*/\xca'), chr(100) + chr(0b1010001 + 0o24) + chr(0b100 + 0o137) + '\x6f' + chr(100) + chr(5929 - 5828))(chr(117) + chr(116) + chr(102) + chr(0b1 + 0o54) + chr(56))))) return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'=x\xd0\xdb\xd1\x81\x14\x83\x11 x\xfe'), chr(0b100011 + 0o101) + chr(101) + chr(99) + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1110101 + 0o0) + chr(0b1110100) + '\146' + '\x2d' + chr(0b1111 + 0o51)))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.update_record
def update_record(self, name, new_data, condition, update_only=False, debug=False): """ Find the first row in self.df with index == name and condition == True. Update that record with new_data, then delete any additional records where index == name and condition == True. Change is inplace """ # add numeric index column temporarily self.df['num'] = list(range(len(self.df))) df_data = self.df condition2 = (df_data.index == name) # edit first of existing data that meets condition if len(df_data[condition & condition2]) > 0: #we have one or more records to update or delete # list of all rows where condition is true and index == name inds = df_data[condition & condition2]['num'] #inds = df_data[condition]['num'] # list of all rows where condition is true existing_data = dict(df_data.iloc[inds.iloc[0]]) # get first record of existing_data from dataframe existing_data.update(new_data) # update existing data with new interpretations # update row self.update_row(inds.iloc[0], existing_data) # now remove all the remaining records of same condition if len(inds) > 1: for ind in inds[1:]: print("deleting redundant records for:", name) df_data = self.delete_row(ind) else: if update_only: print("no record found for that condition, not updating ", name) else: print('no record found - creating new one for ', name) # add new row df_data = self.add_row(name, new_data) # sort so that all rows for an item are together df_data.sort_index(inplace=True) # redo temporary index df_data['num'] = list(range(len(df_data))) self.df = df_data return df_data
python
def update_record(self, name, new_data, condition, update_only=False, debug=False): """ Find the first row in self.df with index == name and condition == True. Update that record with new_data, then delete any additional records where index == name and condition == True. Change is inplace """ # add numeric index column temporarily self.df['num'] = list(range(len(self.df))) df_data = self.df condition2 = (df_data.index == name) # edit first of existing data that meets condition if len(df_data[condition & condition2]) > 0: #we have one or more records to update or delete # list of all rows where condition is true and index == name inds = df_data[condition & condition2]['num'] #inds = df_data[condition]['num'] # list of all rows where condition is true existing_data = dict(df_data.iloc[inds.iloc[0]]) # get first record of existing_data from dataframe existing_data.update(new_data) # update existing data with new interpretations # update row self.update_row(inds.iloc[0], existing_data) # now remove all the remaining records of same condition if len(inds) > 1: for ind in inds[1:]: print("deleting redundant records for:", name) df_data = self.delete_row(ind) else: if update_only: print("no record found for that condition, not updating ", name) else: print('no record found - creating new one for ', name) # add new row df_data = self.add_row(name, new_data) # sort so that all rows for an item are together df_data.sort_index(inplace=True) # redo temporary index df_data['num'] = list(range(len(df_data))) self.df = df_data return df_data
[ "def", "update_record", "(", "self", ",", "name", ",", "new_data", ",", "condition", ",", "update_only", "=", "False", ",", "debug", "=", "False", ")", ":", "# add numeric index column temporarily", "self", ".", "df", "[", "'num'", "]", "=", "list", "(", "range", "(", "len", "(", "self", ".", "df", ")", ")", ")", "df_data", "=", "self", ".", "df", "condition2", "=", "(", "df_data", ".", "index", "==", "name", ")", "# edit first of existing data that meets condition", "if", "len", "(", "df_data", "[", "condition", "&", "condition2", "]", ")", ">", "0", ":", "#we have one or more records to update or delete", "# list of all rows where condition is true and index == name", "inds", "=", "df_data", "[", "condition", "&", "condition2", "]", "[", "'num'", "]", "#inds = df_data[condition]['num'] # list of all rows where condition is true", "existing_data", "=", "dict", "(", "df_data", ".", "iloc", "[", "inds", ".", "iloc", "[", "0", "]", "]", ")", "# get first record of existing_data from dataframe", "existing_data", ".", "update", "(", "new_data", ")", "# update existing data with new interpretations", "# update row", "self", ".", "update_row", "(", "inds", ".", "iloc", "[", "0", "]", ",", "existing_data", ")", "# now remove all the remaining records of same condition", "if", "len", "(", "inds", ")", ">", "1", ":", "for", "ind", "in", "inds", "[", "1", ":", "]", ":", "print", "(", "\"deleting redundant records for:\"", ",", "name", ")", "df_data", "=", "self", ".", "delete_row", "(", "ind", ")", "else", ":", "if", "update_only", ":", "print", "(", "\"no record found for that condition, not updating \"", ",", "name", ")", "else", ":", "print", "(", "'no record found - creating new one for '", ",", "name", ")", "# add new row", "df_data", "=", "self", ".", "add_row", "(", "name", ",", "new_data", ")", "# sort so that all rows for an item are together", "df_data", ".", "sort_index", "(", "inplace", "=", "True", ")", "# redo temporary index", "df_data", "[", "'num'", "]", "=", "list", "(", "range", "(", "len", "(", "df_data", ")", ")", ")", "self", ".", "df", "=", "df_data", "return", "df_data" ]
Find the first row in self.df with index == name and condition == True. Update that record with new_data, then delete any additional records where index == name and condition == True. Change is inplace
[ "Find", "the", "first", "row", "in", "self", ".", "df", "with", "index", "==", "name", "and", "condition", "==", "True", ".", "Update", "that", "record", "with", "new_data", "then", "delete", "any", "additional", "records", "where", "index", "==", "name", "and", "condition", "==", "True", ".", "Change", "is", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1752-L1791
train
Update a record in the table with new data.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(51) + '\066' + chr(3004 - 2949), 8999 - 8991), nzTpIcepk0o8(chr(446 - 398) + chr(0b1101111) + chr(50) + '\063' + '\061', 0o10), nzTpIcepk0o8(chr(1765 - 1717) + chr(0b1101110 + 0o1) + chr(1835 - 1785) + chr(87 - 36) + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + '\x6f' + '\x33' + chr(0b11101 + 0o27) + chr(0b10010 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101100 + 0o6) + chr(2714 - 2660) + chr(0b10001 + 0o42), 0b1000), nzTpIcepk0o8('\x30' + chr(0b110000 + 0o77) + chr(0b110010) + chr(0b110100) + '\060', 35673 - 35665), nzTpIcepk0o8(chr(0b10 + 0o56) + '\x6f' + chr(0b10 + 0o57) + chr(0b110111) + '\x33', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1011100 + 0o23) + chr(0b11110 + 0o23) + chr(0b1110 + 0o43) + chr(1380 - 1327), 27873 - 27865), nzTpIcepk0o8('\x30' + chr(0b1100011 + 0o14) + chr(1279 - 1230) + chr(0b110110) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(10070 - 9959) + chr(2053 - 2004) + '\060' + chr(0b101101 + 0o6), 32888 - 32880), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(2384 - 2335) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x36' + chr(51), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x32', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b101 + 0o55) + chr(0b110100) + chr(50), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(10385 - 10274) + '\066' + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(55) + chr(0b110100), 42174 - 42166), nzTpIcepk0o8('\x30' + chr(3675 - 3564) + '\x33' + chr(55) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(2007 - 1959) + '\157' + chr(0b110001) + chr(0b101111 + 0o5) + '\061', 0o10), nzTpIcepk0o8(chr(87 - 39) + chr(3574 - 3463) + chr(0b110001) + '\061' + chr(2122 - 2068), 15795 - 15787), nzTpIcepk0o8('\060' + chr(0b1101001 + 0o6) + chr(49) + chr(50) + '\x32', ord("\x08")), nzTpIcepk0o8(chr(1978 - 1930) + chr(0b1101111) + chr(1416 - 1367) + chr(55), 28818 - 28810), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b110001) + '\061', 30459 - 30451), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x30' + chr(0b110101), 63439 - 63431), nzTpIcepk0o8('\060' + '\x6f' + '\062' + '\x37' + '\061', 37327 - 37319), nzTpIcepk0o8('\060' + chr(3592 - 3481) + chr(0b110010) + '\x34' + chr(0b10 + 0o60), 8), nzTpIcepk0o8(chr(48) + chr(1449 - 1338) + '\067' + chr(639 - 589), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b100000 + 0o22) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b110011 + 0o74) + chr(0b110011) + '\x30', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\061' + chr(0b11011 + 0o33) + chr(0b100110 + 0o21), 33223 - 33215), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1011001 + 0o26) + '\062' + '\x32' + chr(2832 - 2778), 45557 - 45549), nzTpIcepk0o8(chr(0b100000 + 0o20) + '\x6f' + chr(0b0 + 0o63) + chr(1669 - 1617), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + '\062' + chr(1580 - 1527), 49441 - 49433), nzTpIcepk0o8(chr(0b110000) + chr(5250 - 5139) + '\063' + chr(0b110100) + chr(0b110011), 24719 - 24711), nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + chr(182 - 127) + '\x36', 5867 - 5859), nzTpIcepk0o8('\x30' + '\x6f' + chr(1070 - 1020) + chr(48) + chr(0b110000), 51248 - 51240), nzTpIcepk0o8('\060' + chr(111) + chr(55) + chr(2018 - 1970), 0o10), nzTpIcepk0o8(chr(48) + chr(8747 - 8636) + chr(0b110001) + chr(1175 - 1121) + chr(49), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(0b1101111) + chr(0b110001) + '\x30' + '\067', 36841 - 36833), nzTpIcepk0o8(chr(1564 - 1516) + '\157' + chr(0b110001) + chr(0b110001) + '\061', 0b1000), nzTpIcepk0o8(chr(1971 - 1923) + chr(0b11 + 0o154) + chr(50) + chr(1729 - 1677) + chr(1069 - 1020), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\157' + chr(1318 - 1265) + '\060', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xd9'), '\144' + chr(8839 - 8738) + chr(99) + chr(0b1111 + 0o140) + '\x64' + chr(0b1010010 + 0o23))(chr(0b1110101) + chr(116) + '\146' + chr(0b101101) + chr(0b11000 + 0o40)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def YcUS7DJhcnm8(hXMPsSrOQzbh, SLVB2BPA_mIe, ypHZ5ZvlVZBP, ihXi_REa_8XA, Ec6izpsDUvJU=nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(48), 0o10), gA9Z9do6UmEZ=nzTpIcepk0o8('\060' + chr(0b1000001 + 0o56) + chr(48), 8)): hXMPsSrOQzbh.jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\x99\xec\xf2'), chr(0b1100100) + '\145' + chr(3262 - 3163) + chr(2335 - 2224) + chr(8625 - 8525) + chr(0b1100101))(chr(0b1011010 + 0o33) + chr(0b1011001 + 0o33) + '\146' + chr(45) + '\070')] = H4NoA26ON7iG(bbT2xIe5pzk7(ftfygxgFas5X(hXMPsSrOQzbh.jpOn8DNZxbbx))) wjn6tnQhsou7 = hXMPsSrOQzbh.jpOn8DNZxbbx idZSP_cfXeyC = wjn6tnQhsou7.ZpfN5tSLaZze == SLVB2BPA_mIe if ftfygxgFas5X(wjn6tnQhsou7[ihXi_REa_8XA & idZSP_cfXeyC]) > nzTpIcepk0o8(chr(0b100111 + 0o11) + '\157' + chr(64 - 16), 8): JXsHVQlcUm3B = wjn6tnQhsou7[ihXi_REa_8XA & idZSP_cfXeyC][roI3spqORKae(ES5oEprVxulp(b'\x99\xec\xf2'), chr(100) + chr(0b101100 + 0o71) + chr(0b101001 + 0o72) + chr(7873 - 7762) + chr(2300 - 2200) + chr(101))('\x75' + '\164' + chr(102) + '\055' + '\070')] j6mD2ALK0yFq = znjnJWK64FDT(wjn6tnQhsou7.mj4jMnYn3A2l[JXsHVQlcUm3B.mj4jMnYn3A2l[nzTpIcepk0o8('\x30' + '\157' + chr(0b10111 + 0o31), 8)]]) roI3spqORKae(j6mD2ALK0yFq, roI3spqORKae(ES5oEprVxulp(b'\xbd\xc6\xf4\xd2\xfa\xf99|\x10&x\xdd'), chr(0b1100100) + chr(101) + '\x63' + '\x6f' + chr(0b10010 + 0o122) + chr(9194 - 9093))(chr(0b1110101) + chr(0b1110100) + chr(0b1110 + 0o130) + chr(1323 - 1278) + chr(56)))(ypHZ5ZvlVZBP) roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x82\xe9\xfb\x81\xc7\xc5$?\x1c4'), chr(1631 - 1531) + chr(6950 - 6849) + chr(0b1100011) + chr(0b1010001 + 0o36) + '\144' + '\x65')(chr(117) + chr(0b1110100) + chr(4764 - 4662) + '\x2d' + chr(0b111000)))(roI3spqORKae(JXsHVQlcUm3B, roI3spqORKae(ES5oEprVxulp(b'\x9a\xf3\xab\x8a\xfe\xce"#@\x02;\xdf'), '\144' + chr(0b1100101) + '\x63' + chr(0b1010100 + 0o33) + chr(0b11010 + 0o112) + chr(101))(chr(117) + chr(0b1101101 + 0o7) + '\146' + '\x2d' + chr(2345 - 2289)))[nzTpIcepk0o8(chr(0b101110 + 0o2) + chr(0b1101111) + '\060', 8)], j6mD2ALK0yFq) if ftfygxgFas5X(JXsHVQlcUm3B) > nzTpIcepk0o8(chr(618 - 570) + chr(111) + '\061', ord("\x08")): for w5vcgUzFN3bF in JXsHVQlcUm3B[nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49), 8):]: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x93\xfc\xf3\x85\xc7\xc9\x15*S1l\xd7w\xccW\x1d\x96\x15n j\xea*\xcb\xc6I4~\x18\xe4&'), '\x64' + chr(0b100100 + 0o101) + chr(4206 - 4107) + chr(2700 - 2589) + '\x64' + chr(0b1100101))('\x75' + '\x74' + chr(102) + chr(1520 - 1475) + chr(0b110 + 0o62)), SLVB2BPA_mIe) wjn6tnQhsou7 = hXMPsSrOQzbh.delete_row(w5vcgUzFN3bF) elif Ec6izpsDUvJU: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x99\xf6\xbf\x92\xd6\xc3\x14?\x17co\xdcw\xccW\\\x9e\x0e<r{\xe1$\xcd\x82Y{v\x13\xffh\xfc\x8cP\xac\x18\x1f(=\x81\x82\xe9\xfb\x81\xc7\xc9\x15*S'), chr(0b1110 + 0o126) + chr(101) + chr(99) + chr(0b1101111) + '\144' + '\145')(chr(0b11101 + 0o130) + chr(0b1101000 + 0o14) + chr(102) + chr(0b101101) + chr(0b110011 + 0o5)), SLVB2BPA_mIe) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x99\xf6\xbf\x92\xd6\xc3\x14?\x17co\xdcw\xccW\\\xd5A- j\xe81\xd0\xcc]4v\x12\xe1<\xfa\x8d[\xa0^\x1e5i'), chr(0b1100100) + chr(101) + chr(99) + chr(8990 - 8879) + chr(0b1100100) + chr(101))('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b101101) + chr(0b111000)), SLVB2BPA_mIe) wjn6tnQhsou7 = hXMPsSrOQzbh.add_row(SLVB2BPA_mIe, ypHZ5ZvlVZBP) roI3spqORKae(wjn6tnQhsou7, roI3spqORKae(ES5oEprVxulp(b'\x84\xf6\xed\x94\xec\xc9\x15)\x16;'), chr(0b1011010 + 0o12) + chr(6108 - 6007) + chr(5083 - 4984) + chr(111) + chr(1485 - 1385) + chr(0b101100 + 0o71))(chr(0b1110101) + '\164' + chr(5527 - 5425) + chr(1286 - 1241) + '\070'))(inplace=nzTpIcepk0o8(chr(731 - 683) + chr(111) + chr(49), 8)) wjn6tnQhsou7[roI3spqORKae(ES5oEprVxulp(b'\x99\xec\xf2'), chr(8619 - 8519) + '\x65' + chr(0b1001 + 0o132) + chr(111) + chr(982 - 882) + '\x65')('\165' + chr(0b1110100) + chr(0b11010 + 0o114) + chr(45) + '\070')] = H4NoA26ON7iG(bbT2xIe5pzk7(ftfygxgFas5X(wjn6tnQhsou7))) hXMPsSrOQzbh.jpOn8DNZxbbx = wjn6tnQhsou7 return wjn6tnQhsou7
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.front_and_backfill
def front_and_backfill(self, cols, inplace=True): """ Groups dataframe by index name then replaces null values in selected columns with front/backfilled values if available. Changes self.df inplace. Parameters ---------- self : MagicDataFrame cols : array-like list of column names Returns --------- self.df """ cols = list(cols) for col in cols: if col not in self.df.columns: self.df[col] = np.nan short_df = self.df[cols] # horrible, bizarre hack to test for pandas malfunction tester = short_df.groupby(short_df.index, sort=False).fillna(method='ffill') if not_null(tester): short_df = short_df.groupby(short_df.index, sort=False).fillna(method='ffill').groupby(short_df.index, sort=False).fillna(method='bfill') else: print('-W- Was not able to front/back fill table {} with these columns: {}'.format(self.dtype, ', '.join(cols))) if inplace: self.df[cols] = short_df[cols] return self.df return short_df
python
def front_and_backfill(self, cols, inplace=True): """ Groups dataframe by index name then replaces null values in selected columns with front/backfilled values if available. Changes self.df inplace. Parameters ---------- self : MagicDataFrame cols : array-like list of column names Returns --------- self.df """ cols = list(cols) for col in cols: if col not in self.df.columns: self.df[col] = np.nan short_df = self.df[cols] # horrible, bizarre hack to test for pandas malfunction tester = short_df.groupby(short_df.index, sort=False).fillna(method='ffill') if not_null(tester): short_df = short_df.groupby(short_df.index, sort=False).fillna(method='ffill').groupby(short_df.index, sort=False).fillna(method='bfill') else: print('-W- Was not able to front/back fill table {} with these columns: {}'.format(self.dtype, ', '.join(cols))) if inplace: self.df[cols] = short_df[cols] return self.df return short_df
[ "def", "front_and_backfill", "(", "self", ",", "cols", ",", "inplace", "=", "True", ")", ":", "cols", "=", "list", "(", "cols", ")", "for", "col", "in", "cols", ":", "if", "col", "not", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "col", "]", "=", "np", ".", "nan", "short_df", "=", "self", ".", "df", "[", "cols", "]", "# horrible, bizarre hack to test for pandas malfunction", "tester", "=", "short_df", ".", "groupby", "(", "short_df", ".", "index", ",", "sort", "=", "False", ")", ".", "fillna", "(", "method", "=", "'ffill'", ")", "if", "not_null", "(", "tester", ")", ":", "short_df", "=", "short_df", ".", "groupby", "(", "short_df", ".", "index", ",", "sort", "=", "False", ")", ".", "fillna", "(", "method", "=", "'ffill'", ")", ".", "groupby", "(", "short_df", ".", "index", ",", "sort", "=", "False", ")", ".", "fillna", "(", "method", "=", "'bfill'", ")", "else", ":", "print", "(", "'-W- Was not able to front/back fill table {} with these columns: {}'", ".", "format", "(", "self", ".", "dtype", ",", "', '", ".", "join", "(", "cols", ")", ")", ")", "if", "inplace", ":", "self", ".", "df", "[", "cols", "]", "=", "short_df", "[", "cols", "]", "return", "self", ".", "df", "return", "short_df" ]
Groups dataframe by index name then replaces null values in selected columns with front/backfilled values if available. Changes self.df inplace. Parameters ---------- self : MagicDataFrame cols : array-like list of column names Returns --------- self.df
[ "Groups", "dataframe", "by", "index", "name", "then", "replaces", "null", "values", "in", "selected", "columns", "with", "front", "/", "backfilled", "values", "if", "available", ".", "Changes", "self", ".", "df", "inplace", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1793-L1822
train
Returns a MagicDataFrame with the selected column names replaced null values in selected columns with front and backfilled values if available.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + chr(622 - 567) + '\066', 0b1000), nzTpIcepk0o8(chr(0b11010 + 0o26) + chr(0b1110 + 0o141) + chr(188 - 138) + chr(1630 - 1580) + chr(1727 - 1675), 0o10), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(0b110011) + chr(1296 - 1241), 50248 - 50240), nzTpIcepk0o8(chr(48) + chr(5809 - 5698) + '\x32' + '\062', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(49) + '\066' + chr(0b110110), 0o10), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1111 + 0o140) + chr(2915 - 2860) + chr(127 - 76), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(0b100100 + 0o15) + chr(1912 - 1859), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(275 - 221) + chr(2028 - 1980), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110001) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b100111 + 0o11) + '\x6f' + '\x31' + chr(0b11111 + 0o26) + '\065', ord("\x08")), nzTpIcepk0o8(chr(1595 - 1547) + chr(0b11 + 0o154) + chr(51) + chr(0b110101) + '\x34', 28413 - 28405), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11111 + 0o22), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(53) + chr(0b110000), 22951 - 22943), nzTpIcepk0o8(chr(0b110000) + chr(11122 - 11011) + '\063' + chr(0b110000) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + '\063' + '\062', 0o10), nzTpIcepk0o8(chr(1633 - 1585) + chr(0b1010101 + 0o32) + '\063' + chr(50) + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(1989 - 1878) + chr(1882 - 1832) + chr(265 - 212) + chr(0b11101 + 0o23), ord("\x08")), nzTpIcepk0o8('\x30' + chr(11424 - 11313) + '\062' + chr(0b11101 + 0o26) + '\x33', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(731 - 681) + chr(0b110110) + '\061', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(51) + chr(0b110000) + chr(0b11001 + 0o30), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b10001 + 0o44) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(0b110101) + chr(0b110111), 35474 - 35466), nzTpIcepk0o8(chr(1127 - 1079) + chr(8799 - 8688) + chr(0b100111 + 0o12) + '\063' + chr(0b1011 + 0o45), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(0b11010 + 0o30) + chr(0b100100 + 0o15) + chr(1288 - 1238), 20782 - 20774), nzTpIcepk0o8('\060' + chr(111) + '\061', 8), nzTpIcepk0o8(chr(0b101001 + 0o7) + '\x6f' + '\x32' + chr(0b101001 + 0o10) + chr(0b110100), 29666 - 29658), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(0b11011 + 0o30) + '\060' + chr(49), 8), nzTpIcepk0o8('\060' + chr(1872 - 1761) + '\061', 8), nzTpIcepk0o8('\x30' + '\157' + chr(0b110010 + 0o1) + chr(1873 - 1824), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b110001) + '\x35', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(513 - 459), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b100111 + 0o110) + '\062' + chr(0b110000) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + chr(0b110100) + chr(1267 - 1215), 42952 - 42944), nzTpIcepk0o8(chr(1835 - 1787) + '\x6f' + chr(49) + chr(618 - 569) + chr(1203 - 1150), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1574 - 1525) + chr(0b100 + 0o56) + chr(0b110000), ord("\x08")), nzTpIcepk0o8(chr(1717 - 1669) + chr(0b100011 + 0o114) + '\x32' + chr(498 - 444) + chr(1180 - 1132), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + chr(0b11001 + 0o32) + chr(1398 - 1343), 3152 - 3144), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51) + chr(54) + chr(0b101100 + 0o6), 0o10), nzTpIcepk0o8(chr(2155 - 2107) + '\157' + '\x32' + chr(2714 - 2659) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(1331 - 1283) + chr(0b10000 + 0o137) + chr(51) + '\x31' + chr(52), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + chr(8400 - 8289) + '\x35' + chr(710 - 662), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x90'), chr(925 - 825) + chr(0b1100101) + '\x63' + chr(111) + '\144' + chr(0b101110 + 0o67))(chr(0b100010 + 0o123) + '\x74' + chr(0b101011 + 0o73) + '\055' + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def EoDUHZiBaef1(hXMPsSrOQzbh, Y2QfnnvVOo8E, mejESlh4QhP0=nzTpIcepk0o8(chr(1255 - 1207) + chr(0b1101111) + chr(1880 - 1831), 8)): Y2QfnnvVOo8E = H4NoA26ON7iG(Y2QfnnvVOo8E) for hRTUxJgvuslu in Y2QfnnvVOo8E: if hRTUxJgvuslu not in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xeb\xa7&x%R\xc4E? \x80q'), '\x64' + chr(0b1001011 + 0o32) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(101))(chr(1561 - 1444) + '\164' + chr(3306 - 3204) + chr(0b101101) + chr(0b111000))): hXMPsSrOQzbh.jpOn8DNZxbbx[hRTUxJgvuslu] = nDF4gVNx0u9Q.nan _RQ4Dieo3hwM = hXMPsSrOQzbh.jpOn8DNZxbbx[Y2QfnnvVOo8E] oN2hg_Dn2X0y = _RQ4Dieo3hwM.groupby(_RQ4Dieo3hwM.index, sort=nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x30', ord("\x08"))).fillna(method=roI3spqORKae(ES5oEprVxulp(b'\xd8\xf2v~\x1a'), chr(320 - 220) + '\145' + chr(0b1100011) + '\x6f' + '\144' + '\145')(chr(0b1110101) + '\164' + chr(102) + chr(45) + chr(1459 - 1403))) if OPdnCSWnXMKM(oN2hg_Dn2X0y): _RQ4Dieo3hwM = _RQ4Dieo3hwM.groupby(_RQ4Dieo3hwM.index, sort=nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + chr(48), 8)).fillna(method=roI3spqORKae(ES5oEprVxulp(b'\xd8\xf2v~\x1a'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(0b1011010 + 0o12) + chr(1178 - 1077))(chr(117) + chr(116) + '\x66' + chr(1718 - 1673) + chr(0b11000 + 0o40))).groupby(_RQ4Dieo3hwM.index, sort=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1001 - 953), 8)).fillna(method=roI3spqORKae(ES5oEprVxulp(b'\xdc\xf2v~\x1a'), '\x64' + chr(101) + chr(0b110001 + 0o62) + chr(111) + chr(100) + chr(0b1100001 + 0o4))('\165' + chr(116) + chr(102) + '\055' + chr(0b1010 + 0o56))) else: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x93\xc322!Z\xfePe\x02\x98!I\xa7\xf6\xb5\x88\xef\xde\xe1J\x1d7\xe4u\xa3\xa3`z\xe6.\xe4M!<\x90+\x93\xdb\xa0\xdb\xb4doVL\xe4\x04cM\x98iM\xb6\xff\xf0\xcb\xf4\xdd\xb4A\x01+\xb0!\xf7\xbc'), '\144' + chr(0b1111 + 0o126) + '\143' + chr(9530 - 9419) + chr(0b1010000 + 0o24) + '\x65')(chr(5370 - 5253) + chr(0b1110100) + chr(102) + chr(0b101011 + 0o2) + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xcf\xa7,Y1\x08\xeb\x1fZ2\xafK'), chr(0b1 + 0o143) + chr(4914 - 4813) + chr(5795 - 5696) + chr(111) + chr(0b1100100) + chr(1994 - 1893))(chr(0b1010001 + 0o44) + '\x74' + chr(0b1100110) + chr(0b101101) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xec\xf7G+\x14Y\xf8?q\x05\xd9M'), chr(0b1100100) + chr(101) + chr(99) + chr(0b1101111) + chr(0b1100100) + chr(0b1100101))(chr(11047 - 10930) + chr(0b1110100) + '\x66' + chr(0b101101) + chr(0b10101 + 0o43))), roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\x92\xb4'), chr(0b1100100) + chr(101) + chr(99) + '\x6f' + chr(0b111001 + 0o53) + chr(101))('\165' + chr(3309 - 3193) + '\x66' + chr(0b101 + 0o50) + chr(1898 - 1842)), roI3spqORKae(ES5oEprVxulp(b'\xe7\xa0f_Oy\xee\x16_.\xa2p'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + chr(8533 - 8433) + chr(0b1100101))(chr(4452 - 4335) + '\164' + chr(0b101 + 0o141) + chr(0b101101) + chr(56)))(Y2QfnnvVOo8E))) if mejESlh4QhP0: hXMPsSrOQzbh.jpOn8DNZxbbx[Y2QfnnvVOo8E] = _RQ4Dieo3hwM[Y2QfnnvVOo8E] return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xd4\xe4P|N\x7f\xc3*s\x0f\x8ey'), chr(0b1100100) + chr(0b0 + 0o145) + chr(444 - 345) + '\x6f' + '\144' + chr(0b1100101))('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + '\070')) return _RQ4Dieo3hwM
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.find_filled_col
def find_filled_col(self, col_list): """ return the first col_name from the list that is both a. present in self.df.columns and b. self.df[col_name] has at least one non-null value Parameters ---------- self: MagicDataFrame col_list : iterable list of columns to check Returns ---------- col_name : str """ for col in col_list: if col in self.df.columns: if not all([is_null(val, False) for val in self.df[col]]): return col
python
def find_filled_col(self, col_list): """ return the first col_name from the list that is both a. present in self.df.columns and b. self.df[col_name] has at least one non-null value Parameters ---------- self: MagicDataFrame col_list : iterable list of columns to check Returns ---------- col_name : str """ for col in col_list: if col in self.df.columns: if not all([is_null(val, False) for val in self.df[col]]): return col
[ "def", "find_filled_col", "(", "self", ",", "col_list", ")", ":", "for", "col", "in", "col_list", ":", "if", "col", "in", "self", ".", "df", ".", "columns", ":", "if", "not", "all", "(", "[", "is_null", "(", "val", ",", "False", ")", "for", "val", "in", "self", ".", "df", "[", "col", "]", "]", ")", ":", "return", "col" ]
return the first col_name from the list that is both a. present in self.df.columns and b. self.df[col_name] has at least one non-null value Parameters ---------- self: MagicDataFrame col_list : iterable list of columns to check Returns ---------- col_name : str
[ "return", "the", "first", "col_name", "from", "the", "list", "that", "is", "both", "a", ".", "present", "in", "self", ".", "df", ".", "columns", "and", "b", ".", "self", ".", "df", "[", "col_name", "]", "has", "at", "least", "one", "non", "-", "null", "value" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1867-L1886
train
Returns the first col_name from the list that is both TracingEnabled and COOKIEID.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(293 - 245) + chr(12087 - 11976) + chr(0b110010) + '\063' + chr(0b11110 + 0o31), 0o10), nzTpIcepk0o8('\060' + chr(0b110010 + 0o75) + chr(207 - 156) + '\x30' + chr(50), 38037 - 38029), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(0b110000 + 0o77) + chr(50) + chr(0b110101) + chr(754 - 699), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(9256 - 9145) + '\x33' + '\066' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(2277 - 2229) + chr(0b1101111) + '\x37' + chr(585 - 535), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(657 - 607) + chr(52), 0b1000), nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(8150 - 8039) + chr(49) + '\x37' + chr(0b11110 + 0o27), 1069 - 1061), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\067' + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(1127 - 1076) + '\x37' + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\061' + chr(0b101011 + 0o7) + '\x32', 57765 - 57757), nzTpIcepk0o8('\x30' + '\157' + chr(50) + '\x35', 0b1000), nzTpIcepk0o8('\060' + '\x6f' + chr(55), 15824 - 15816), nzTpIcepk0o8(chr(1691 - 1643) + '\157' + chr(52) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(4697 - 4586) + chr(0b11100 + 0o27) + '\060' + chr(0b11001 + 0o33), ord("\x08")), nzTpIcepk0o8(chr(860 - 812) + '\157' + chr(316 - 266) + '\x33' + '\x31', 0o10), nzTpIcepk0o8(chr(48) + chr(9160 - 9049) + chr(0b110011) + '\x33' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101110 + 0o4) + '\064' + chr(55), 21294 - 21286), nzTpIcepk0o8(chr(0b101111 + 0o1) + '\x6f' + '\062' + chr(0b101101 + 0o4) + '\x31', 44724 - 44716), nzTpIcepk0o8(chr(48) + chr(12312 - 12201) + '\x32' + '\x34' + chr(0b10110 + 0o33), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\063' + '\x36' + chr(0b110000), 59497 - 59489), nzTpIcepk0o8('\x30' + chr(6497 - 6386) + chr(0b110001) + chr(49) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(994 - 883) + chr(0b110011) + chr(0b110 + 0o61) + chr(2238 - 2186), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(51) + chr(52) + '\x34', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(49) + '\067' + '\x34', 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(9238 - 9127) + chr(0b110010) + chr(2056 - 2005) + '\x36', 0o10), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(55) + chr(0b11101 + 0o26), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b110100) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110 + 0o52) + chr(3765 - 3654) + '\063' + '\061' + chr(2019 - 1970), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1100101 + 0o12) + chr(49) + chr(0b110010) + chr(2251 - 2198), 16187 - 16179), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1617 - 1567) + chr(0b110010) + chr(163 - 115), 0o10), nzTpIcepk0o8(chr(1507 - 1459) + '\157' + chr(0b110010 + 0o1) + chr(0b110111) + chr(53), 0o10), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(52) + '\x33', 62830 - 62822), nzTpIcepk0o8('\060' + chr(0b1000 + 0o147) + chr(0b110001) + '\062' + chr(0b110000), 0o10), nzTpIcepk0o8(chr(378 - 330) + '\157' + chr(0b1100 + 0o50) + '\x31', 8), nzTpIcepk0o8(chr(0b110000) + chr(0b111011 + 0o64) + chr(438 - 388) + chr(0b1110 + 0o45) + chr(53), 0b1000), nzTpIcepk0o8(chr(0b11 + 0o55) + chr(0b100010 + 0o115) + '\x32' + chr(49), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\063' + chr(52) + chr(0b110000), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(2697 - 2644) + '\064', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(1659 - 1548) + '\064' + chr(48), 6201 - 6193)][ZlbFMSG8gCoF % nzTpIcepk0o8('\060' + chr(111) + '\065' + '\x30', 0b1000)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xb1'), '\144' + '\x65' + '\143' + chr(2290 - 2179) + chr(8146 - 8046) + chr(1394 - 1293))('\165' + chr(0b111000 + 0o74) + '\146' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def MUuZGEFCmCwY(hXMPsSrOQzbh, OoYd1QhU7ZJs): for hRTUxJgvuslu in OoYd1QhU7ZJs: if hRTUxJgvuslu in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xca\xf1\x96\x9fi}4I\xcc\x1fyw'), '\144' + chr(0b1100101) + chr(1929 - 1830) + chr(0b1101111) + chr(100) + chr(0b1011011 + 0o12))(chr(0b1110101) + '\x74' + '\146' + '\055' + chr(975 - 919))): if not qX60lO1lgHA5([LSZVShFMqy75(pXwvT17vr09s, nzTpIcepk0o8('\060' + chr(0b1101111) + '\x30', 50270 - 50262)) for pXwvT17vr09s in roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xf5\xb2\xe0\x9b\x02P3&\x800w\x7f'), '\144' + '\x65' + '\x63' + '\x6f' + '\x64' + chr(0b11 + 0o142))('\x75' + '\164' + '\x66' + chr(45) + '\x38'))[hRTUxJgvuslu]]): return hRTUxJgvuslu
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.convert_to_pmag_data_list
def convert_to_pmag_data_list(self, lst_or_dict="lst", df=None): """ Take MagicDataFrame and turn it into a list of dictionaries. This will have the same format as reading in a 2.5 file with pmag.magic_read(), i.e.: if "lst": [{"sample": "samp_name", "azimuth": 12, ...}, {...}] if "dict": {"samp_name": {"azimuth": 12, ...}, "samp_name2": {...}, ...} NOTE: "dict" not recommended with 3.0, as one sample can have many rows, which means that dictionary items can be overwritten """ if isinstance(df, type(None)): df = self.df # replace np.nan / None with "" df = df.where(df.notnull(), "") # string-i-fy everything df = df.astype(str) if lst_or_dict == "lst": return list(df.T.apply(dict)) else: return {str(i[df.index.name.split(' ')[0]]): dict(i) for i in list(df.T.apply(dict))}
python
def convert_to_pmag_data_list(self, lst_or_dict="lst", df=None): """ Take MagicDataFrame and turn it into a list of dictionaries. This will have the same format as reading in a 2.5 file with pmag.magic_read(), i.e.: if "lst": [{"sample": "samp_name", "azimuth": 12, ...}, {...}] if "dict": {"samp_name": {"azimuth": 12, ...}, "samp_name2": {...}, ...} NOTE: "dict" not recommended with 3.0, as one sample can have many rows, which means that dictionary items can be overwritten """ if isinstance(df, type(None)): df = self.df # replace np.nan / None with "" df = df.where(df.notnull(), "") # string-i-fy everything df = df.astype(str) if lst_or_dict == "lst": return list(df.T.apply(dict)) else: return {str(i[df.index.name.split(' ')[0]]): dict(i) for i in list(df.T.apply(dict))}
[ "def", "convert_to_pmag_data_list", "(", "self", ",", "lst_or_dict", "=", "\"lst\"", ",", "df", "=", "None", ")", ":", "if", "isinstance", "(", "df", ",", "type", "(", "None", ")", ")", ":", "df", "=", "self", ".", "df", "# replace np.nan / None with \"\"", "df", "=", "df", ".", "where", "(", "df", ".", "notnull", "(", ")", ",", "\"\"", ")", "# string-i-fy everything", "df", "=", "df", ".", "astype", "(", "str", ")", "if", "lst_or_dict", "==", "\"lst\"", ":", "return", "list", "(", "df", ".", "T", ".", "apply", "(", "dict", ")", ")", "else", ":", "return", "{", "str", "(", "i", "[", "df", ".", "index", ".", "name", ".", "split", "(", "' '", ")", "[", "0", "]", "]", ")", ":", "dict", "(", "i", ")", "for", "i", "in", "list", "(", "df", ".", "T", ".", "apply", "(", "dict", ")", ")", "}" ]
Take MagicDataFrame and turn it into a list of dictionaries. This will have the same format as reading in a 2.5 file with pmag.magic_read(), i.e.: if "lst": [{"sample": "samp_name", "azimuth": 12, ...}, {...}] if "dict": {"samp_name": {"azimuth": 12, ...}, "samp_name2": {...}, ...} NOTE: "dict" not recommended with 3.0, as one sample can have many rows, which means that dictionary items can be overwritten
[ "Take", "MagicDataFrame", "and", "turn", "it", "into", "a", "list", "of", "dictionaries", ".", "This", "will", "have", "the", "same", "format", "as", "reading", "in", "a", "2", ".", "5", "file", "with", "pmag", ".", "magic_read", "()", "i", ".", "e", ".", ":", "if", "lst", ":", "[", "{", "sample", ":", "samp_name", "azimuth", ":", "12", "...", "}", "{", "...", "}", "]", "if", "dict", ":", "{", "samp_name", ":", "{", "azimuth", ":", "12", "...", "}", "samp_name2", ":", "{", "...", "}", "...", "}", "NOTE", ":", "dict", "not", "recommended", "with", "3", ".", "0", "as", "one", "sample", "can", "have", "many", "rows", "which", "means", "that", "dictionary", "items", "can", "be", "overwritten" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1888-L1911
train
Take MagicDataFrame and turn it into a list of dictionaries.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1448 - 1400) + chr(0b1100010 + 0o15) + chr(0b101110 + 0o3) + chr(0b100000 + 0o24), 15339 - 15331), nzTpIcepk0o8('\x30' + chr(111) + chr(0b101011 + 0o7) + '\067' + chr(0b110101), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(800 - 749) + chr(242 - 193) + chr(48), ord("\x08")), nzTpIcepk0o8(chr(234 - 186) + chr(3299 - 3188) + '\061' + chr(0b110101) + '\060', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(411 - 360) + chr(51), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110011) + chr(2052 - 1999) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(9405 - 9294) + '\062' + '\061' + '\x34', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(0b101011 + 0o7) + '\066' + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b100010 + 0o17) + chr(0b110000) + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x36' + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b1 + 0o61) + '\x31' + chr(0b1110 + 0o47), 9203 - 9195), nzTpIcepk0o8('\060' + chr(0b100000 + 0o117) + '\x32' + chr(0b110100) + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(994 - 883) + chr(922 - 868), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + '\067' + chr(0b101100 + 0o5), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\x36' + chr(1039 - 987), 0b1000), nzTpIcepk0o8('\060' + chr(5004 - 4893) + chr(196 - 146) + chr(0b110000) + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x37' + chr(0b100100 + 0o23), 0o10), nzTpIcepk0o8(chr(48) + chr(3801 - 3690) + chr(0b11010 + 0o30) + chr(0b10000 + 0o43) + chr(1057 - 1007), 0o10), nzTpIcepk0o8(chr(1751 - 1703) + chr(111) + chr(50) + '\x35' + chr(1979 - 1925), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + '\x31' + chr(53) + chr(881 - 833), 8), nzTpIcepk0o8(chr(48) + '\157' + chr(2385 - 2331) + chr(0b110100), 8), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + chr(1974 - 1920), 0o10), nzTpIcepk0o8('\x30' + '\157' + '\x31' + chr(0b110101) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\063' + chr(113 - 61), 0b1000), nzTpIcepk0o8(chr(0b101001 + 0o7) + chr(1246 - 1135) + chr(1888 - 1838) + '\x36' + chr(0b1011 + 0o52), 4770 - 4762), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b10011 + 0o36) + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(1212 - 1157), 8), nzTpIcepk0o8('\x30' + chr(111) + '\x33' + '\x30' + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110010 + 0o0) + chr(201 - 152) + '\063', 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(0b11000 + 0o127) + '\061' + chr(1437 - 1387) + '\x36', 0b1000), nzTpIcepk0o8(chr(1192 - 1144) + '\157' + '\x32' + chr(347 - 293) + '\x32', 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(2971 - 2916) + chr(1271 - 1216), 8), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + chr(0b101110 + 0o2) + chr(0b110010), 4170 - 4162), nzTpIcepk0o8(chr(1242 - 1194) + chr(0b1011001 + 0o26) + chr(0b110011) + chr(0b100001 + 0o25) + chr(2043 - 1994), 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1100111 + 0o10) + chr(51) + '\x32' + chr(50), 0b1000), nzTpIcepk0o8('\x30' + chr(9342 - 9231) + chr(49) + chr(0b100001 + 0o25) + chr(0b101101 + 0o12), 34512 - 34504), nzTpIcepk0o8(chr(0b110000) + chr(4121 - 4010) + chr(49) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(111) + chr(50) + chr(334 - 280) + '\x32', 8), nzTpIcepk0o8('\x30' + chr(9852 - 9741) + chr(0b11110 + 0o25) + chr(54) + chr(49), 8), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + chr(2124 - 2070) + chr(719 - 668), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\157' + '\x35' + chr(0b110000), 2308 - 2300)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'"'), '\x64' + '\145' + '\x63' + '\x6f' + '\x64' + chr(0b1010101 + 0o20))(chr(9964 - 9847) + '\164' + chr(7139 - 7037) + chr(0b11101 + 0o20) + '\x38') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def qJaVak7hLadY(hXMPsSrOQzbh, B_DDGAoEOwob=roI3spqORKae(ES5oEprVxulp(b'`\xce\xbc'), '\144' + '\145' + chr(0b1100011) + '\157' + chr(0b1010011 + 0o21) + chr(0b1100101))('\165' + chr(12399 - 12283) + '\146' + '\x2d' + '\070'), jpOn8DNZxbbx=None): if suIjIS24Zkqw(jpOn8DNZxbbx, MJ07XsN5uFgW(None)): jpOn8DNZxbbx = hXMPsSrOQzbh.jpOn8DNZxbbx jpOn8DNZxbbx = jpOn8DNZxbbx.xWH4M7K6Qbd3(jpOn8DNZxbbx.notnull(), roI3spqORKae(ES5oEprVxulp(b''), chr(0b1100100) + chr(0b1011011 + 0o12) + chr(0b1001010 + 0o31) + '\x6f' + '\144' + chr(0b110100 + 0o61))(chr(117) + '\x74' + chr(0b1000000 + 0o46) + chr(0b101101) + chr(0b111000))) jpOn8DNZxbbx = jpOn8DNZxbbx.xqAChpcBkssb(N9zlRy29S1SS) if B_DDGAoEOwob == roI3spqORKae(ES5oEprVxulp(b'`\xce\xbc'), chr(100) + chr(0b1100101) + chr(99) + '\157' + chr(6910 - 6810) + chr(101))('\165' + chr(0b1110100) + '\x66' + chr(45) + chr(0b111000)): return H4NoA26ON7iG(roI3spqORKae(jpOn8DNZxbbx.T, roI3spqORKae(ES5oEprVxulp(b'm\xcd\xb8\x04\xe2'), chr(100) + chr(0b1100101) + chr(99) + chr(1375 - 1264) + '\x64' + '\145')('\x75' + chr(2994 - 2878) + chr(0b100001 + 0o105) + chr(45) + '\070'))(znjnJWK64FDT)) else: return {N9zlRy29S1SS(ZlbFMSG8gCoF[roI3spqORKae(jpOn8DNZxbbx.index.name, roI3spqORKae(ES5oEprVxulp(b'@\xdb\x9a\x1a\xca\xa5\xf4\xc5\x01A\xe3\xe2'), '\144' + chr(101) + '\143' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(0b101001 + 0o114) + chr(0b1011011 + 0o31) + '\146' + chr(1189 - 1144) + '\x38'))(roI3spqORKae(ES5oEprVxulp(b','), '\x64' + chr(5237 - 5136) + chr(0b1100011) + '\x6f' + chr(9190 - 9090) + '\145')('\x75' + chr(116) + '\x66' + '\x2d' + chr(56)))[nzTpIcepk0o8(chr(48) + chr(0b101 + 0o152) + chr(0b10101 + 0o33), 61696 - 61688)]]): znjnJWK64FDT(ZlbFMSG8gCoF) for ZlbFMSG8gCoF in H4NoA26ON7iG(roI3spqORKae(jpOn8DNZxbbx.T, roI3spqORKae(ES5oEprVxulp(b'm\xcd\xb8\x04\xe2'), chr(0b1001 + 0o133) + chr(0b1010110 + 0o17) + '\143' + chr(0b1000001 + 0o56) + chr(0b101110 + 0o66) + chr(0b1100101))(chr(0b1100000 + 0o25) + '\164' + chr(5606 - 5504) + chr(45) + chr(0b11000 + 0o40)))(znjnJWK64FDT))}
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_name
def get_name(self, col_name, df_slice="", index_names=""): """ Takes in a column name, and either a DataFrame slice or a list of index_names to slice self.df using fancy indexing. Then return the value for that column in the relevant slice. (Assumes that all values for column will be the same in the chosen slice, so return the first one.) """ # if slice is provided, use it if any(df_slice): df_slice = df_slice # if given index_names, grab a slice using fancy indexing elif index_names: df_slice = self.df.loc[index_names] # otherwise, use the full DataFrame else: df_slice = self.df # if the slice is empty, return "" if len(df_slice) == 0: return "" # if the column name isn't present in the slice, return "" if col_name not in df_slice.columns: return "" # otherwise, return the first value from that column first_val = list(df_slice[col_name].dropna()) if any(first_val): return first_val[0] else: return ""
python
def get_name(self, col_name, df_slice="", index_names=""): """ Takes in a column name, and either a DataFrame slice or a list of index_names to slice self.df using fancy indexing. Then return the value for that column in the relevant slice. (Assumes that all values for column will be the same in the chosen slice, so return the first one.) """ # if slice is provided, use it if any(df_slice): df_slice = df_slice # if given index_names, grab a slice using fancy indexing elif index_names: df_slice = self.df.loc[index_names] # otherwise, use the full DataFrame else: df_slice = self.df # if the slice is empty, return "" if len(df_slice) == 0: return "" # if the column name isn't present in the slice, return "" if col_name not in df_slice.columns: return "" # otherwise, return the first value from that column first_val = list(df_slice[col_name].dropna()) if any(first_val): return first_val[0] else: return ""
[ "def", "get_name", "(", "self", ",", "col_name", ",", "df_slice", "=", "\"\"", ",", "index_names", "=", "\"\"", ")", ":", "# if slice is provided, use it", "if", "any", "(", "df_slice", ")", ":", "df_slice", "=", "df_slice", "# if given index_names, grab a slice using fancy indexing", "elif", "index_names", ":", "df_slice", "=", "self", ".", "df", ".", "loc", "[", "index_names", "]", "# otherwise, use the full DataFrame", "else", ":", "df_slice", "=", "self", ".", "df", "# if the slice is empty, return \"\"", "if", "len", "(", "df_slice", ")", "==", "0", ":", "return", "\"\"", "# if the column name isn't present in the slice, return \"\"", "if", "col_name", "not", "in", "df_slice", ".", "columns", ":", "return", "\"\"", "# otherwise, return the first value from that column", "first_val", "=", "list", "(", "df_slice", "[", "col_name", "]", ".", "dropna", "(", ")", ")", "if", "any", "(", "first_val", ")", ":", "return", "first_val", "[", "0", "]", "else", ":", "return", "\"\"" ]
Takes in a column name, and either a DataFrame slice or a list of index_names to slice self.df using fancy indexing. Then return the value for that column in the relevant slice. (Assumes that all values for column will be the same in the chosen slice, so return the first one.)
[ "Takes", "in", "a", "column", "name", "and", "either", "a", "DataFrame", "slice", "or", "a", "list", "of", "index_names", "to", "slice", "self", ".", "df", "using", "fancy", "indexing", ".", "Then", "return", "the", "value", "for", "that", "column", "in", "the", "relevant", "slice", ".", "(", "Assumes", "that", "all", "values", "for", "column", "will", "be", "the", "same", "in", "the", "chosen", "slice", "so", "return", "the", "first", "one", ".", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1913-L1941
train
Returns the name of the given column in a DataFrame or a list of index_names to slice self. df.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b0 + 0o60) + '\157' + '\x33' + chr(0b10110 + 0o33) + chr(53), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b10011 + 0o134) + chr(0b100001 + 0o21) + '\x36' + chr(55), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b100010 + 0o115) + chr(51) + chr(0b110101) + '\x34', 0o10), nzTpIcepk0o8(chr(170 - 122) + '\157' + chr(0b100010 + 0o17) + chr(0b110111), ord("\x08")), nzTpIcepk0o8('\060' + chr(1606 - 1495) + chr(1307 - 1258) + chr(55) + chr(0b110110), 31374 - 31366), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110010) + '\064', 0o10), nzTpIcepk0o8(chr(48) + chr(10568 - 10457) + chr(575 - 524) + chr(694 - 641) + chr(1015 - 960), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(1322 - 1271) + chr(1805 - 1753) + chr(0b10110 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(2203 - 2155) + chr(0b11101 + 0o122) + chr(0b1000 + 0o51) + chr(2174 - 2122) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b10110 + 0o34) + '\x30' + chr(0b100110 + 0o16), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\066' + chr(0b100100 + 0o23), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x33' + chr(1241 - 1189), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(0b110100), 8), nzTpIcepk0o8('\060' + chr(11345 - 11234) + chr(0b110000 + 0o4), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\x37' + '\061', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1111 + 0o140) + chr(0b11111 + 0o22) + '\060' + '\064', ord("\x08")), nzTpIcepk0o8('\x30' + chr(1498 - 1387) + '\x31' + '\x36' + chr(514 - 461), 52895 - 52887), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(0b1111 + 0o44) + '\x30' + chr(1698 - 1647), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\x32', 39767 - 39759), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + '\x37' + chr(565 - 512), 50700 - 50692), nzTpIcepk0o8(chr(48) + chr(9048 - 8937) + '\x31' + '\x37' + chr(0b100010 + 0o22), 0b1000), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(0b110010) + chr(0b1000 + 0o54), ord("\x08")), nzTpIcepk0o8('\x30' + chr(496 - 385) + chr(50) + '\064' + chr(0b110100), 13108 - 13100), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b110000) + '\064', 8), nzTpIcepk0o8(chr(739 - 691) + '\157' + chr(49) + chr(0b110010 + 0o4), ord("\x08")), nzTpIcepk0o8(chr(1849 - 1801) + '\157' + chr(0b1110 + 0o45) + '\064', 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + chr(68 - 18) + '\066' + '\060', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(0b1101111) + chr(0b101110 + 0o4) + chr(50) + '\x33', ord("\x08")), nzTpIcepk0o8('\x30' + chr(2087 - 1976) + chr(0b10111 + 0o33) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(961 - 910) + chr(0b101111 + 0o7) + chr(281 - 233), ord("\x08")), nzTpIcepk0o8('\060' + chr(5989 - 5878) + '\065' + chr(0b1101 + 0o46), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101100 + 0o3) + chr(0b110011) + chr(0b11100 + 0o31) + chr(0b10000 + 0o43), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(10520 - 10409) + chr(50) + '\x34', 8), nzTpIcepk0o8('\060' + chr(111) + chr(1666 - 1616) + chr(0b110101) + chr(0b1110 + 0o47), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110011) + chr(0b110001) + '\060', ord("\x08")), nzTpIcepk0o8(chr(1592 - 1544) + chr(111) + chr(0b110010) + chr(0b1110 + 0o46) + chr(0b1110 + 0o47), 30924 - 30916), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(0b110011) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + '\x35' + '\063', 8), nzTpIcepk0o8(chr(1498 - 1450) + chr(0b1101111) + chr(0b110100 + 0o2) + '\063', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + chr(0b1110 + 0o141) + '\x35' + chr(0b1101 + 0o43), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xe3'), chr(0b1100100) + '\145' + chr(0b1000000 + 0o43) + '\x6f' + chr(0b111011 + 0o51) + chr(0b100011 + 0o102))(chr(117) + chr(0b11110 + 0o126) + chr(0b110110 + 0o60) + chr(0b101101) + chr(56)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BJoJQqD1t_wx(hXMPsSrOQzbh, VuRTNmVdcYm1, eSN0mENQIwlO=roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\145' + '\143' + '\157' + chr(0b1010101 + 0o17) + chr(0b1001100 + 0o31))(chr(0b100101 + 0o120) + '\x74' + chr(0b1100110) + chr(0b11101 + 0o20) + '\070'), fvzUPCXi83DR=roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(0b101110 + 0o67) + chr(0b1100011) + '\157' + chr(0b1100100) + '\145')(chr(12229 - 12112) + '\164' + chr(0b111 + 0o137) + '\055' + '\070')): if VF4pKOObtlPc(eSN0mENQIwlO): eSN0mENQIwlO = eSN0mENQIwlO elif fvzUPCXi83DR: eSN0mENQIwlO = hXMPsSrOQzbh.df.UQ8hRiBoHcn5[fvzUPCXi83DR] else: eSN0mENQIwlO = hXMPsSrOQzbh.jpOn8DNZxbbx if ftfygxgFas5X(eSN0mENQIwlO) == nzTpIcepk0o8('\060' + chr(10193 - 10082) + chr(0b110000), 0b1000): return roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(101) + chr(99) + chr(111) + chr(0b1010101 + 0o17) + chr(0b10100 + 0o121))(chr(0b1110101) + '\x74' + chr(0b101001 + 0o75) + chr(0b100010 + 0o13) + chr(0b111000)) if VuRTNmVdcYm1 not in roI3spqORKae(eSN0mENQIwlO, roI3spqORKae(ES5oEprVxulp(b'\x98\x84\xd5e-}\xa6\xd2U\xc9[l'), chr(0b1100000 + 0o4) + '\x65' + '\x63' + chr(6251 - 6140) + chr(0b101100 + 0o70) + '\x65')('\x75' + '\x74' + '\x66' + chr(1239 - 1194) + chr(0b111000))): return roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\x65' + '\x63' + chr(0b1101111) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\x74' + '\146' + '\x2d' + '\070') CgHf8qC5Zpsh = H4NoA26ON7iG(eSN0mENQIwlO[VuRTNmVdcYm1].dropna()) if VF4pKOObtlPc(CgHf8qC5Zpsh): return CgHf8qC5Zpsh[nzTpIcepk0o8(chr(0b100 + 0o54) + chr(0b1010110 + 0o31) + chr(1055 - 1007), 8)] else: return roI3spqORKae(ES5oEprVxulp(b''), chr(5151 - 5051) + chr(9252 - 9151) + chr(0b1100011) + chr(111) + '\x64' + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(45) + chr(0b1101 + 0o53))
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_di_block
def get_di_block(self, df_slice=None, do_index=False, item_names=None, tilt_corr='100', excl=None, ignore_tilt=False): """ Input either a DataFrame slice or do_index=True and a list of index_names. Optional arguments: Provide tilt_corr (default 100). Excl is a list of method codes to exclude. Output dec/inc from the slice in this format: [[dec1, inc1], [dec2, inc2], ...]. Not inplace """ tilt_corr = int(tilt_corr) if isinstance(df_slice, str): if df_slice.lower() == "all": # use entire DataFrame df_slice = self.df elif do_index: # use fancy indexing (but note this will give duplicates) df_slice = self.df.loc[item_names] elif not do_index: # otherwise use the provided slice df_slice = df_slice # once you have the slice, fix up the data # tilt correction must match if not ignore_tilt: if tilt_corr != 0: df_slice = df_slice[df_slice['dir_tilt_correction'] == tilt_corr] else: # if geographic ("0"), # use records with no tilt_corr and assume geographic cond1 = df_slice['dir_tilt_correction'] == None cond2 = df_slice['dir_tilt_correction'] == tilt_corr df_slice = df_slice[cond1 | cond2] # exclude data with unwanted codes if excl: for ex in excl: df_slice = self.get_records_for_code(ex, incl=False, use_slice=True, sli=df_slice) df_slice = df_slice[df_slice['dir_inc'].notnull() & df_slice['dir_dec'].notnull()] # possible add in: # split out di_block from this study from di_block from other studies (in citations column) # previously just used "This study", but it is no longer required #if 'citations' in df_slice.columns: # df_slice = df_slice[df_slice['citations'].str.contains("This study")] # convert values into DIblock format di_block = [[float(row['dir_dec']), float(row['dir_inc'])] for ind, row in df_slice.iterrows()] return di_block
python
def get_di_block(self, df_slice=None, do_index=False, item_names=None, tilt_corr='100', excl=None, ignore_tilt=False): """ Input either a DataFrame slice or do_index=True and a list of index_names. Optional arguments: Provide tilt_corr (default 100). Excl is a list of method codes to exclude. Output dec/inc from the slice in this format: [[dec1, inc1], [dec2, inc2], ...]. Not inplace """ tilt_corr = int(tilt_corr) if isinstance(df_slice, str): if df_slice.lower() == "all": # use entire DataFrame df_slice = self.df elif do_index: # use fancy indexing (but note this will give duplicates) df_slice = self.df.loc[item_names] elif not do_index: # otherwise use the provided slice df_slice = df_slice # once you have the slice, fix up the data # tilt correction must match if not ignore_tilt: if tilt_corr != 0: df_slice = df_slice[df_slice['dir_tilt_correction'] == tilt_corr] else: # if geographic ("0"), # use records with no tilt_corr and assume geographic cond1 = df_slice['dir_tilt_correction'] == None cond2 = df_slice['dir_tilt_correction'] == tilt_corr df_slice = df_slice[cond1 | cond2] # exclude data with unwanted codes if excl: for ex in excl: df_slice = self.get_records_for_code(ex, incl=False, use_slice=True, sli=df_slice) df_slice = df_slice[df_slice['dir_inc'].notnull() & df_slice['dir_dec'].notnull()] # possible add in: # split out di_block from this study from di_block from other studies (in citations column) # previously just used "This study", but it is no longer required #if 'citations' in df_slice.columns: # df_slice = df_slice[df_slice['citations'].str.contains("This study")] # convert values into DIblock format di_block = [[float(row['dir_dec']), float(row['dir_inc'])] for ind, row in df_slice.iterrows()] return di_block
[ "def", "get_di_block", "(", "self", ",", "df_slice", "=", "None", ",", "do_index", "=", "False", ",", "item_names", "=", "None", ",", "tilt_corr", "=", "'100'", ",", "excl", "=", "None", ",", "ignore_tilt", "=", "False", ")", ":", "tilt_corr", "=", "int", "(", "tilt_corr", ")", "if", "isinstance", "(", "df_slice", ",", "str", ")", ":", "if", "df_slice", ".", "lower", "(", ")", "==", "\"all\"", ":", "# use entire DataFrame", "df_slice", "=", "self", ".", "df", "elif", "do_index", ":", "# use fancy indexing (but note this will give duplicates)", "df_slice", "=", "self", ".", "df", ".", "loc", "[", "item_names", "]", "elif", "not", "do_index", ":", "# otherwise use the provided slice", "df_slice", "=", "df_slice", "# once you have the slice, fix up the data", "# tilt correction must match", "if", "not", "ignore_tilt", ":", "if", "tilt_corr", "!=", "0", ":", "df_slice", "=", "df_slice", "[", "df_slice", "[", "'dir_tilt_correction'", "]", "==", "tilt_corr", "]", "else", ":", "# if geographic (\"0\"),", "# use records with no tilt_corr and assume geographic", "cond1", "=", "df_slice", "[", "'dir_tilt_correction'", "]", "==", "None", "cond2", "=", "df_slice", "[", "'dir_tilt_correction'", "]", "==", "tilt_corr", "df_slice", "=", "df_slice", "[", "cond1", "|", "cond2", "]", "# exclude data with unwanted codes", "if", "excl", ":", "for", "ex", "in", "excl", ":", "df_slice", "=", "self", ".", "get_records_for_code", "(", "ex", ",", "incl", "=", "False", ",", "use_slice", "=", "True", ",", "sli", "=", "df_slice", ")", "df_slice", "=", "df_slice", "[", "df_slice", "[", "'dir_inc'", "]", ".", "notnull", "(", ")", "&", "df_slice", "[", "'dir_dec'", "]", ".", "notnull", "(", ")", "]", "# possible add in:", "# split out di_block from this study from di_block from other studies (in citations column)", "# previously just used \"This study\", but it is no longer required", "#if 'citations' in df_slice.columns:", "# df_slice = df_slice[df_slice['citations'].str.contains(\"This study\")]", "# convert values into DIblock format", "di_block", "=", "[", "[", "float", "(", "row", "[", "'dir_dec'", "]", ")", ",", "float", "(", "row", "[", "'dir_inc'", "]", ")", "]", "for", "ind", ",", "row", "in", "df_slice", ".", "iterrows", "(", ")", "]", "return", "di_block" ]
Input either a DataFrame slice or do_index=True and a list of index_names. Optional arguments: Provide tilt_corr (default 100). Excl is a list of method codes to exclude. Output dec/inc from the slice in this format: [[dec1, inc1], [dec2, inc2], ...]. Not inplace
[ "Input", "either", "a", "DataFrame", "slice", "or", "do_index", "=", "True", "and", "a", "list", "of", "index_names", ".", "Optional", "arguments", ":", "Provide", "tilt_corr", "(", "default", "100", ")", ".", "Excl", "is", "a", "list", "of", "method", "codes", "to", "exclude", ".", "Output", "dec", "/", "inc", "from", "the", "slice", "in", "this", "format", ":", "[[", "dec1", "inc1", "]", "[", "dec2", "inc2", "]", "...", "]", ".", "Not", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L1945-L1998
train
Get the di_block from the slice or the entire DataFrame.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(1622 - 1574) + chr(0b1101111) + chr(0b110011) + chr(48) + chr(48), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(50) + '\x30', 11996 - 11988), nzTpIcepk0o8(chr(0b11011 + 0o25) + chr(0b100 + 0o153) + '\x31' + '\066' + chr(0b10011 + 0o36), 0o10), nzTpIcepk0o8(chr(1143 - 1095) + chr(0b101101 + 0o102) + chr(0b110001) + chr(48) + chr(0b110010 + 0o3), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(49) + chr(0b110100) + '\066', 0o10), nzTpIcepk0o8('\060' + '\157' + '\061' + chr(48) + chr(50), 601 - 593), nzTpIcepk0o8(chr(1795 - 1747) + chr(8529 - 8418) + '\061' + '\x31' + '\x33', 56768 - 56760), nzTpIcepk0o8('\x30' + '\157' + '\066' + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(2081 - 2033) + chr(0b1101111) + chr(0b111 + 0o52) + chr(0b111 + 0o51) + chr(0b110100), 52247 - 52239), nzTpIcepk0o8('\060' + chr(111) + chr(51) + chr(233 - 179) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(6281 - 6170) + chr(1155 - 1104) + chr(0b110011) + chr(0b100111 + 0o20), 0b1000), nzTpIcepk0o8(chr(1467 - 1419) + chr(0b11101 + 0o122) + chr(0b110101) + chr(2016 - 1965), 0o10), nzTpIcepk0o8('\060' + chr(111) + '\063' + chr(51) + chr(51), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(982 - 933) + '\066' + chr(1281 - 1231), 38379 - 38371), nzTpIcepk0o8('\060' + chr(0b101111 + 0o100) + '\061' + '\x35' + chr(1462 - 1414), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b10000 + 0o44) + '\063', 0b1000), nzTpIcepk0o8(chr(48) + chr(0b1101 + 0o142) + chr(0b110111) + chr(2506 - 2454), 0b1000), nzTpIcepk0o8(chr(112 - 64) + '\157' + '\x36' + chr(55), 39337 - 39329), nzTpIcepk0o8(chr(0b110000) + chr(0b1 + 0o156) + chr(53) + '\060', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100001 + 0o20) + chr(0b110011) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\064' + chr(0b110011), 0b1000), nzTpIcepk0o8('\x30' + chr(12208 - 12097) + '\x32' + '\x30' + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b100111 + 0o11) + chr(6800 - 6689) + '\063' + chr(0b110001 + 0o6) + chr(50), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + chr(0b110001) + '\063' + chr(55), 42848 - 42840), nzTpIcepk0o8('\x30' + '\x6f' + '\x33' + chr(0b1 + 0o62) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(1340 - 1292) + '\x6f' + chr(49) + '\064' + chr(55), 35372 - 35364), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110 + 0o55) + chr(0b100 + 0o56) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b101011 + 0o104) + '\x33' + '\x37' + chr(0b1100 + 0o47), 41623 - 41615), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(0b1 + 0o57) + chr(220 - 170), 48617 - 48609), nzTpIcepk0o8('\060' + chr(0b100010 + 0o115) + '\x33' + '\062' + '\x33', 8), nzTpIcepk0o8(chr(48) + '\x6f' + '\064' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(1547 - 1498) + '\066' + '\x32', 8), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\x6f' + '\062' + chr(0b11001 + 0o33) + '\x34', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b10100 + 0o36) + '\065' + '\067', 0b1000), nzTpIcepk0o8(chr(362 - 314) + chr(0b101110 + 0o101) + chr(2539 - 2488) + '\x33' + chr(1723 - 1674), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(54) + chr(0b0 + 0o67), 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(1835 - 1786) + chr(2215 - 2165) + chr(0b10011 + 0o40), ord("\x08")), nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(0b10001 + 0o46) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(49) + chr(0b100 + 0o63) + '\x31', 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1075 - 1027) + '\x6f' + '\065' + chr(1316 - 1268), 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xee'), '\144' + chr(101) + chr(1269 - 1170) + chr(4833 - 4722) + chr(0b111001 + 0o53) + chr(101))('\x75' + chr(116) + '\x66' + chr(0b10 + 0o53) + '\070') + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def WBHY44oyomnf(hXMPsSrOQzbh, eSN0mENQIwlO=None, Kf8r7VrhHMaK=nzTpIcepk0o8('\x30' + '\157' + '\x30', 0b1000), LDGqg03_9oIV=None, occNJYT7TcOg=roI3spqORKae(ES5oEprVxulp(b'\xf1 A'), chr(9864 - 9764) + chr(0b110011 + 0o62) + chr(0b11 + 0o140) + chr(0b1100000 + 0o17) + chr(0b100011 + 0o101) + '\x65')(chr(0b1110101) + chr(0b10111 + 0o135) + '\146' + chr(0b101101) + chr(1224 - 1168)), mJjKesEWSPnW=None, bJ9c5ym5o1Gc=nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110000), 8)): occNJYT7TcOg = nzTpIcepk0o8(occNJYT7TcOg) if suIjIS24Zkqw(eSN0mENQIwlO, N9zlRy29S1SS): if roI3spqORKae(eSN0mENQIwlO, roI3spqORKae(ES5oEprVxulp(b'\x98~I\x00(\x15\x06i \xbb\x8d_'), chr(0b1011010 + 0o12) + chr(0b1100101) + chr(0b111001 + 0o52) + chr(0b10011 + 0o134) + chr(0b1100100) + '\145')('\x75' + chr(13235 - 13119) + chr(0b1 + 0o145) + chr(798 - 753) + chr(1897 - 1841)))() == roI3spqORKae(ES5oEprVxulp(b'\xa1|\x1d'), '\x64' + chr(0b111101 + 0o50) + '\143' + chr(0b1101111) + chr(100) + '\145')(chr(12473 - 12356) + chr(0b1110100) + '\146' + chr(45) + chr(411 - 355)): eSN0mENQIwlO = hXMPsSrOQzbh.jpOn8DNZxbbx elif Kf8r7VrhHMaK: eSN0mENQIwlO = hXMPsSrOQzbh.df.UQ8hRiBoHcn5[LDGqg03_9oIV] elif not Kf8r7VrhHMaK: eSN0mENQIwlO = eSN0mENQIwlO if not bJ9c5ym5o1Gc: if occNJYT7TcOg != nzTpIcepk0o8(chr(1494 - 1446) + chr(0b1101110 + 0o1) + chr(0b110000), 8): eSN0mENQIwlO = eSN0mENQIwlO[eSN0mENQIwlO[roI3spqORKae(ES5oEprVxulp(b"\xa4y\x03\x1a\x12+'G\x1b\x91\xb0Y\xa9\x17\x0bWUXF"), chr(0b1011000 + 0o14) + chr(0b1100101) + chr(0b1110 + 0o125) + chr(0b1001011 + 0o44) + '\x64' + chr(0b1100101))('\165' + '\x74' + chr(0b1100110) + '\x2d' + chr(1340 - 1284))] == occNJYT7TcOg] else: rm1uRQGSygF4 = eSN0mENQIwlO[roI3spqORKae(ES5oEprVxulp(b"\xa4y\x03\x1a\x12+'G\x1b\x91\xb0Y\xa9\x17\x0bWUXF"), '\144' + chr(274 - 173) + '\x63' + chr(953 - 842) + '\x64' + '\x65')('\165' + '\x74' + chr(0b1100110) + '\055' + '\x38')] is None maMDvHzsQ6IR = eSN0mENQIwlO[roI3spqORKae(ES5oEprVxulp(b"\xa4y\x03\x1a\x12+'G\x1b\x91\xb0Y\xa9\x17\x0bWUXF"), chr(0b1001001 + 0o33) + chr(0b101100 + 0o71) + '\x63' + chr(0b1101111) + chr(6550 - 6450) + chr(4760 - 4659))('\165' + '\164' + chr(8385 - 8283) + chr(0b100011 + 0o12) + '\070')] == occNJYT7TcOg eSN0mENQIwlO = eSN0mENQIwlO[rm1uRQGSygF4 | maMDvHzsQ6IR] if mJjKesEWSPnW: for dclkBu6Bdnnh in mJjKesEWSPnW: eSN0mENQIwlO = hXMPsSrOQzbh.get_records_for_code(dclkBu6Bdnnh, incl=nzTpIcepk0o8(chr(0b110000) + '\157' + '\x30', 8), use_slice=nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49), ord("\x08")), sli=eSN0mENQIwlO) eSN0mENQIwlO = eSN0mENQIwlO[eSN0mENQIwlO[roI3spqORKae(ES5oEprVxulp(b'\xa4y\x03\x1a\x0f,('), chr(100) + chr(0b1100101) + chr(0b0 + 0o143) + chr(250 - 139) + chr(7522 - 7422) + '\145')(chr(0b1110101) + chr(116) + '\146' + chr(0b11111 + 0o16) + '\x38')].notnull() & eSN0mENQIwlO[roI3spqORKae(ES5oEprVxulp(b"\xa4y\x03\x1a\x02'("), '\144' + chr(101) + chr(3006 - 2907) + chr(8950 - 8839) + chr(100) + chr(0b101101 + 0o70))(chr(0b1110101) + chr(0b111101 + 0o67) + '\x66' + chr(0b101101) + '\070')].notnull()] AgwvZqQgIt7U = [[jLW6pRf2DSRk(o6UWUO21mH25[roI3spqORKae(ES5oEprVxulp(b"\xa4y\x03\x1a\x02'("), chr(0b1010111 + 0o15) + '\x65' + chr(2197 - 2098) + '\x6f' + chr(0b1100100) + '\x65')(chr(11132 - 11015) + '\164' + chr(0b1100110) + '\x2d' + chr(0b111000))]), jLW6pRf2DSRk(o6UWUO21mH25[roI3spqORKae(ES5oEprVxulp(b'\xa4y\x03\x1a\x0f,('), chr(0b100111 + 0o75) + '\145' + chr(0b100110 + 0o75) + '\x6f' + chr(438 - 338) + chr(0b11010 + 0o113))(chr(117) + chr(13323 - 13207) + chr(102) + chr(0b101101) + '\070')])] for (w5vcgUzFN3bF, o6UWUO21mH25) in eSN0mENQIwlO.iterrows()] return AgwvZqQgIt7U
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_records_for_code
def get_records_for_code(self, meth_code, incl=True, use_slice=False, sli=None, strict_match=True): """ Use regex to see if meth_code is in the method_codes ":" delimited list. If incl == True, return all records WITH meth_code. If incl == False, return all records WITHOUT meth_code. If strict_match == True, return only records with the exact meth_code. If strict_match == False, return records that contain the meth_code partial string, (i.e., "DE-"). Not inplace """ # (must use fillna to replace np.nan with False for indexing) if use_slice: df = sli.copy() else: df = self.df.copy() # if meth_code not provided, return unchanged dataframe if not meth_code: return df # get regex if not strict_match: # grab any record that contains any part of meth_code cond = df['method_codes'].str.contains(meth_code).fillna(False) else: # grab only an exact match pattern = re.compile('{}(?=:|\s|\Z)'.format(meth_code)) cond = df['method_codes'].str.contains(pattern).fillna(False) if incl: # return a copy of records with that method code: return df[cond] else: # return a copy of records without that method code return df[~cond]
python
def get_records_for_code(self, meth_code, incl=True, use_slice=False, sli=None, strict_match=True): """ Use regex to see if meth_code is in the method_codes ":" delimited list. If incl == True, return all records WITH meth_code. If incl == False, return all records WITHOUT meth_code. If strict_match == True, return only records with the exact meth_code. If strict_match == False, return records that contain the meth_code partial string, (i.e., "DE-"). Not inplace """ # (must use fillna to replace np.nan with False for indexing) if use_slice: df = sli.copy() else: df = self.df.copy() # if meth_code not provided, return unchanged dataframe if not meth_code: return df # get regex if not strict_match: # grab any record that contains any part of meth_code cond = df['method_codes'].str.contains(meth_code).fillna(False) else: # grab only an exact match pattern = re.compile('{}(?=:|\s|\Z)'.format(meth_code)) cond = df['method_codes'].str.contains(pattern).fillna(False) if incl: # return a copy of records with that method code: return df[cond] else: # return a copy of records without that method code return df[~cond]
[ "def", "get_records_for_code", "(", "self", ",", "meth_code", ",", "incl", "=", "True", ",", "use_slice", "=", "False", ",", "sli", "=", "None", ",", "strict_match", "=", "True", ")", ":", "# (must use fillna to replace np.nan with False for indexing)", "if", "use_slice", ":", "df", "=", "sli", ".", "copy", "(", ")", "else", ":", "df", "=", "self", ".", "df", ".", "copy", "(", ")", "# if meth_code not provided, return unchanged dataframe", "if", "not", "meth_code", ":", "return", "df", "# get regex", "if", "not", "strict_match", ":", "# grab any record that contains any part of meth_code", "cond", "=", "df", "[", "'method_codes'", "]", ".", "str", ".", "contains", "(", "meth_code", ")", ".", "fillna", "(", "False", ")", "else", ":", "# grab only an exact match", "pattern", "=", "re", ".", "compile", "(", "'{}(?=:|\\s|\\Z)'", ".", "format", "(", "meth_code", ")", ")", "cond", "=", "df", "[", "'method_codes'", "]", ".", "str", ".", "contains", "(", "pattern", ")", ".", "fillna", "(", "False", ")", "if", "incl", ":", "# return a copy of records with that method code:", "return", "df", "[", "cond", "]", "else", ":", "# return a copy of records without that method code", "return", "df", "[", "~", "cond", "]" ]
Use regex to see if meth_code is in the method_codes ":" delimited list. If incl == True, return all records WITH meth_code. If incl == False, return all records WITHOUT meth_code. If strict_match == True, return only records with the exact meth_code. If strict_match == False, return records that contain the meth_code partial string, (i.e., "DE-"). Not inplace
[ "Use", "regex", "to", "see", "if", "meth_code", "is", "in", "the", "method_codes", ":", "delimited", "list", ".", "If", "incl", "==", "True", "return", "all", "records", "WITH", "meth_code", ".", "If", "incl", "==", "False", "return", "all", "records", "WITHOUT", "meth_code", ".", "If", "strict_match", "==", "True", "return", "only", "records", "with", "the", "exact", "meth_code", ".", "If", "strict_match", "==", "False", "return", "records", "that", "contain", "the", "meth_code", "partial", "string", "(", "i", ".", "e", ".", "DE", "-", ")", ".", "Not", "inplace" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2001-L2033
train
Get the records for a given method code.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(483 - 435) + '\x6f' + chr(0b110010) + '\x31' + chr(1216 - 1168), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\x31' + '\063' + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(11229 - 11118) + chr(2149 - 2100) + chr(0b110111) + chr(880 - 831), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(110 - 58) + '\x31', ord("\x08")), nzTpIcepk0o8(chr(930 - 882) + chr(0b1101111) + '\x32' + '\065' + chr(48), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(49) + chr(0b10001 + 0o45), 43699 - 43691), nzTpIcepk0o8(chr(1982 - 1934) + '\x6f' + '\x32' + chr(0b110111) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b10000 + 0o40) + chr(111) + chr(0b110011) + '\065' + chr(0b110101), ord("\x08")), nzTpIcepk0o8('\x30' + chr(10740 - 10629) + chr(1700 - 1651) + chr(53) + chr(0b101000 + 0o17), 63527 - 63519), nzTpIcepk0o8('\x30' + '\x6f' + '\x31' + chr(52) + chr(49), 0o10), nzTpIcepk0o8(chr(1038 - 990) + chr(3692 - 3581) + chr(0b110011) + chr(54), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1100110 + 0o11) + chr(0b110010) + chr(1233 - 1178), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b100101 + 0o112) + chr(49) + chr(0b110000 + 0o3) + chr(0b100101 + 0o15), 0o10), nzTpIcepk0o8(chr(2035 - 1987) + chr(0b110 + 0o151) + chr(0b110010) + chr(0b110111) + '\x33', 0o10), nzTpIcepk0o8(chr(48) + chr(7071 - 6960) + '\x33' + chr(0b110100) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110101) + chr(0b110010 + 0o2), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(3371 - 3260) + chr(1134 - 1083) + chr(1070 - 1019) + '\065', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(2028 - 1978) + chr(0b10010 + 0o42) + '\x30', 0b1000), nzTpIcepk0o8('\060' + chr(0b11010 + 0o125) + '\062' + '\x36' + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b110110), 62345 - 62337), nzTpIcepk0o8(chr(48) + chr(111) + '\x31' + chr(53) + chr(53), 1318 - 1310), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b101011 + 0o10) + '\063' + chr(48), 0b1000), nzTpIcepk0o8('\x30' + chr(12292 - 12181) + chr(2107 - 2057) + '\x36' + chr(0b1000 + 0o51), 0b1000), nzTpIcepk0o8(chr(2017 - 1969) + '\x6f' + chr(0b110001), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110011) + chr(0b110100) + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(11530 - 11419) + chr(0b110011) + '\x31' + chr(2195 - 2140), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + '\x6f' + chr(49) + chr(0b100100 + 0o23) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(54) + '\060', 0o10), nzTpIcepk0o8(chr(742 - 694) + chr(0b101011 + 0o104) + '\062' + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(2508 - 2453) + '\060', 15056 - 15048), nzTpIcepk0o8('\x30' + chr(0b10001 + 0o136) + '\062' + chr(49) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(1910 - 1862) + chr(0b1101111) + chr(1560 - 1510) + chr(0b0 + 0o62) + chr(0b10110 + 0o34), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\x31' + chr(0b10111 + 0o37), 24375 - 24367), nzTpIcepk0o8('\060' + '\x6f' + chr(1885 - 1836) + chr(0b110010) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(55), ord("\x08")), nzTpIcepk0o8(chr(530 - 482) + chr(111) + chr(0b100101 + 0o15) + chr(0b110110) + chr(50), 16859 - 16851), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b11000 + 0o35) + chr(1242 - 1189), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\063' + '\067' + chr(0b111 + 0o57), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x31' + '\x33' + '\x30', ord("\x08")), nzTpIcepk0o8(chr(526 - 478) + '\x6f' + '\062' + '\066' + chr(51), 0b1000)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\x35' + '\060', 17313 - 17305)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa6'), '\x64' + chr(7095 - 6994) + '\x63' + chr(1626 - 1515) + '\144' + chr(101))(chr(117) + '\164' + '\146' + chr(45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def SsORO51YlKL4(hXMPsSrOQzbh, NpCo7y0gquHT, g8qcUa0xE12L=nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(511 - 462), 8), Vna1ubBbtClB=nzTpIcepk0o8(chr(48) + chr(111) + '\x30', 0b1000), cVEcJFr6o6vR=None, f78O1TrJbpVr=nzTpIcepk0o8('\060' + chr(111) + chr(0b1 + 0o60), 8)): if Vna1ubBbtClB: jpOn8DNZxbbx = cVEcJFr6o6vR.copy() else: jpOn8DNZxbbx = hXMPsSrOQzbh.df.copy() if not NpCo7y0gquHT: return jpOn8DNZxbbx if not f78O1TrJbpVr: VBCqc_uABtb3 = jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\xe59\rI\xc7j\xe0\x8e\x00\x05{d'), chr(0b1001110 + 0o26) + '\x65' + chr(99) + chr(0b1101111) + chr(2833 - 2733) + chr(101))(chr(117) + '\x74' + chr(102) + chr(0b10 + 0o53) + chr(0b110000 + 0o10))].str.contains(NpCo7y0gquHT).fillna(nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110 + 0o52), 8)) else: UYtHA0XyNB9C = aoTc4YA2bs2R.compile(roI3spqORKae(ES5oEprVxulp(b'\xf3!Q\x1e\x954\xc3\xb1\x1c\x1dBMs'), '\x64' + chr(1686 - 1585) + chr(0b1100011) + chr(0b1001110 + 0o41) + '\144' + '\x65')(chr(117) + chr(116) + '\x66' + '\x2d' + chr(56)).q33KG3foQ_CJ(NpCo7y0gquHT)) VBCqc_uABtb3 = jpOn8DNZxbbx[roI3spqORKae(ES5oEprVxulp(b'\xe59\rI\xc7j\xe0\x8e\x00\x05{d'), chr(3531 - 3431) + chr(4552 - 4451) + '\x63' + chr(0b1011110 + 0o21) + chr(0b1011100 + 0o10) + '\145')(chr(3624 - 3507) + '\164' + '\x66' + '\x2d' + '\070')].str.contains(UYtHA0XyNB9C).fillna(nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1111 + 0o41), 8)) if g8qcUa0xE12L: return jpOn8DNZxbbx[VBCqc_uABtb3] else: return jpOn8DNZxbbx[~VBCqc_uABtb3]
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.merge_dfs
def merge_dfs(self, df1): """ Description: takes new calculated data and replaces the corresponding data in self.df with the new input data preserving the most important metadata if they are not otherwise saved. Note this does not mutate self.df it simply returns the merged dataframe if you want to replace self.df you'll have to do that yourself. @param: df1 - first DataFrame whose data will preferentially be used. """ if self.df.empty: return df1 elif df1.empty: return self.df #copy to prevent mutation cdf2 = self.df.copy() #split data into types and decide which to replace # if replace_dir_or_int == 'dir' and 'method_codes' in cdf2.columns: # cdf2 = cdf2[cdf2['method_codes'].notnull()] # acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')] # mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')] # elif replace_dir_or_int == 'int' and 'method_codes' in cdf2.columns: # cdf2 = cdf2[cdf2['method_codes'].notnull()] # mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')] # acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')] # else: # mcdf2 = cdf2 # acdf2 = pd.DataFrame(columns=mcdf2.columns) #get rid of stupid duplicates # [mcdf2.drop(cx,inplace=True,axis=1) for cx in mcdf2.columns if cx in df1.columns] #join the new calculated data with the old data of same type if self.dtype.endswith('s'): dtype = self.dtype[:-1] else: dtype = self.dtype index_name = dtype + "_name" for df in [df1, cdf2]: df.index.name = index_name mdf = df1.join(cdf2, how='outer', rsuffix='_remove', on=index_name) def keep_non_null_vals(column): extra_column = column + "_remove" if column in mdf.columns and extra_column in mdf.columns: mdf[column] = np.where(mdf[column].apply(lambda x: not_null(x, False)), mdf[column], mdf[extra_column]) # merge values in the following columns # e.g., combine info from specimen + specimen_remove into specimen column for col in ['specimen', 'sample', 'site', 'location', 'lat', 'lon']: keep_non_null_vals(col) #drop duplicate columns if they were created [mdf.drop(col,inplace=True,axis=1) for col in mdf.columns if col.endswith("_remove")] #duplicates rows for some freaking reason mdf.drop_duplicates(inplace=True,subset=[col for col in mdf.columns if col != 'description']) #merge the data of the other type with the new data # mdf = mdf.merge(acdf2, how='outer') if dtype in mdf.columns: #fix freaking indecies because pandas mdf = mdf.set_index(dtype) #really? I wanted the index changed not a column deleted?!? mdf[dtype] = mdf.index mdf.index.name = index_name mdf.sort_index(inplace=True) return mdf
python
def merge_dfs(self, df1): """ Description: takes new calculated data and replaces the corresponding data in self.df with the new input data preserving the most important metadata if they are not otherwise saved. Note this does not mutate self.df it simply returns the merged dataframe if you want to replace self.df you'll have to do that yourself. @param: df1 - first DataFrame whose data will preferentially be used. """ if self.df.empty: return df1 elif df1.empty: return self.df #copy to prevent mutation cdf2 = self.df.copy() #split data into types and decide which to replace # if replace_dir_or_int == 'dir' and 'method_codes' in cdf2.columns: # cdf2 = cdf2[cdf2['method_codes'].notnull()] # acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')] # mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')] # elif replace_dir_or_int == 'int' and 'method_codes' in cdf2.columns: # cdf2 = cdf2[cdf2['method_codes'].notnull()] # mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')] # acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')] # else: # mcdf2 = cdf2 # acdf2 = pd.DataFrame(columns=mcdf2.columns) #get rid of stupid duplicates # [mcdf2.drop(cx,inplace=True,axis=1) for cx in mcdf2.columns if cx in df1.columns] #join the new calculated data with the old data of same type if self.dtype.endswith('s'): dtype = self.dtype[:-1] else: dtype = self.dtype index_name = dtype + "_name" for df in [df1, cdf2]: df.index.name = index_name mdf = df1.join(cdf2, how='outer', rsuffix='_remove', on=index_name) def keep_non_null_vals(column): extra_column = column + "_remove" if column in mdf.columns and extra_column in mdf.columns: mdf[column] = np.where(mdf[column].apply(lambda x: not_null(x, False)), mdf[column], mdf[extra_column]) # merge values in the following columns # e.g., combine info from specimen + specimen_remove into specimen column for col in ['specimen', 'sample', 'site', 'location', 'lat', 'lon']: keep_non_null_vals(col) #drop duplicate columns if they were created [mdf.drop(col,inplace=True,axis=1) for col in mdf.columns if col.endswith("_remove")] #duplicates rows for some freaking reason mdf.drop_duplicates(inplace=True,subset=[col for col in mdf.columns if col != 'description']) #merge the data of the other type with the new data # mdf = mdf.merge(acdf2, how='outer') if dtype in mdf.columns: #fix freaking indecies because pandas mdf = mdf.set_index(dtype) #really? I wanted the index changed not a column deleted?!? mdf[dtype] = mdf.index mdf.index.name = index_name mdf.sort_index(inplace=True) return mdf
[ "def", "merge_dfs", "(", "self", ",", "df1", ")", ":", "if", "self", ".", "df", ".", "empty", ":", "return", "df1", "elif", "df1", ".", "empty", ":", "return", "self", ".", "df", "#copy to prevent mutation", "cdf2", "=", "self", ".", "df", ".", "copy", "(", ")", "#split data into types and decide which to replace", "# if replace_dir_or_int == 'dir' and 'method_codes' in cdf2.columns:", "# cdf2 = cdf2[cdf2['method_codes'].notnull()]", "# acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')]", "# mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')]", "# elif replace_dir_or_int == 'int' and 'method_codes' in cdf2.columns:", "# cdf2 = cdf2[cdf2['method_codes'].notnull()]", "# mcdf2 = cdf2[cdf2['method_codes'].str.contains('LP-PI')]", "# acdf2 = cdf2[cdf2['method_codes'].str.contains('LP-DIR')]", "# else:", "# mcdf2 = cdf2", "# acdf2 = pd.DataFrame(columns=mcdf2.columns)", "#get rid of stupid duplicates", "# [mcdf2.drop(cx,inplace=True,axis=1) for cx in mcdf2.columns if cx in df1.columns]", "#join the new calculated data with the old data of same type", "if", "self", ".", "dtype", ".", "endswith", "(", "'s'", ")", ":", "dtype", "=", "self", ".", "dtype", "[", ":", "-", "1", "]", "else", ":", "dtype", "=", "self", ".", "dtype", "index_name", "=", "dtype", "+", "\"_name\"", "for", "df", "in", "[", "df1", ",", "cdf2", "]", ":", "df", ".", "index", ".", "name", "=", "index_name", "mdf", "=", "df1", ".", "join", "(", "cdf2", ",", "how", "=", "'outer'", ",", "rsuffix", "=", "'_remove'", ",", "on", "=", "index_name", ")", "def", "keep_non_null_vals", "(", "column", ")", ":", "extra_column", "=", "column", "+", "\"_remove\"", "if", "column", "in", "mdf", ".", "columns", "and", "extra_column", "in", "mdf", ".", "columns", ":", "mdf", "[", "column", "]", "=", "np", ".", "where", "(", "mdf", "[", "column", "]", ".", "apply", "(", "lambda", "x", ":", "not_null", "(", "x", ",", "False", ")", ")", ",", "mdf", "[", "column", "]", ",", "mdf", "[", "extra_column", "]", ")", "# merge values in the following columns", "# e.g., combine info from specimen + specimen_remove into specimen column", "for", "col", "in", "[", "'specimen'", ",", "'sample'", ",", "'site'", ",", "'location'", ",", "'lat'", ",", "'lon'", "]", ":", "keep_non_null_vals", "(", "col", ")", "#drop duplicate columns if they were created", "[", "mdf", ".", "drop", "(", "col", ",", "inplace", "=", "True", ",", "axis", "=", "1", ")", "for", "col", "in", "mdf", ".", "columns", "if", "col", ".", "endswith", "(", "\"_remove\"", ")", "]", "#duplicates rows for some freaking reason", "mdf", ".", "drop_duplicates", "(", "inplace", "=", "True", ",", "subset", "=", "[", "col", "for", "col", "in", "mdf", ".", "columns", "if", "col", "!=", "'description'", "]", ")", "#merge the data of the other type with the new data", "# mdf = mdf.merge(acdf2, how='outer')", "if", "dtype", "in", "mdf", ".", "columns", ":", "#fix freaking indecies because pandas", "mdf", "=", "mdf", ".", "set_index", "(", "dtype", ")", "#really? I wanted the index changed not a column deleted?!?", "mdf", "[", "dtype", "]", "=", "mdf", ".", "index", "mdf", ".", "index", ".", "name", "=", "index_name", "mdf", ".", "sort_index", "(", "inplace", "=", "True", ")", "return", "mdf" ]
Description: takes new calculated data and replaces the corresponding data in self.df with the new input data preserving the most important metadata if they are not otherwise saved. Note this does not mutate self.df it simply returns the merged dataframe if you want to replace self.df you'll have to do that yourself. @param: df1 - first DataFrame whose data will preferentially be used.
[ "Description", ":", "takes", "new", "calculated", "data", "and", "replaces", "the", "corresponding", "data", "in", "self", ".", "df", "with", "the", "new", "input", "data", "preserving", "the", "most", "important", "metadata", "if", "they", "are", "not", "otherwise", "saved", ".", "Note", "this", "does", "not", "mutate", "self", ".", "df", "it", "simply", "returns", "the", "merged", "dataframe", "if", "you", "want", "to", "replace", "self", ".", "df", "you", "ll", "have", "to", "do", "that", "yourself", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2038-L2097
train
This method takes new calculated data and replaces the corresponding data in self. df with the new input data preserving most important metadata if they are not already saved.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(0b110000) + chr(1080 - 1025), 0b1000), nzTpIcepk0o8(chr(896 - 848) + chr(0b1101111) + '\063' + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b100010 + 0o16) + chr(1925 - 1814) + '\x33' + '\x30' + chr(51), ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110010) + chr(54) + '\x31', 34504 - 34496), nzTpIcepk0o8(chr(0b110 + 0o52) + '\157' + chr(0b110011) + chr(0b100001 + 0o23) + '\060', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(53) + chr(51), 36914 - 36906), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110010) + chr(1863 - 1814) + chr(0b101010 + 0o12), 61737 - 61729), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\062' + chr(0b1010 + 0o47), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(6118 - 6007) + '\x33' + '\062' + chr(0b110111), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(8118 - 8007) + '\x33' + '\062' + chr(49), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x36' + chr(53), 64852 - 64844), nzTpIcepk0o8(chr(1042 - 994) + chr(111) + chr(49) + '\061' + chr(0b110100), 0o10), nzTpIcepk0o8(chr(0b101011 + 0o5) + '\157' + chr(2291 - 2241) + '\x36' + chr(50), 53560 - 53552), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + '\x37' + chr(1629 - 1577), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(49) + chr(0b110100), 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\x6f' + chr(0b110011) + chr(0b110011) + chr(2022 - 1972), 0o10), nzTpIcepk0o8('\060' + chr(1697 - 1586) + '\062' + '\060' + chr(0b110110), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + '\x33' + chr(273 - 218), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(50) + '\062' + '\062', 13710 - 13702), nzTpIcepk0o8(chr(0b110000) + chr(11751 - 11640) + chr(0b110011) + chr(478 - 425) + '\066', 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(956 - 904) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1100100 + 0o13) + '\x31' + '\062', 49775 - 49767), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10101 + 0o36) + '\x34' + chr(790 - 736), 0o10), nzTpIcepk0o8(chr(1571 - 1523) + '\x6f' + chr(0b110001) + '\x35' + chr(48), 0b1000), nzTpIcepk0o8(chr(464 - 416) + chr(0b1 + 0o156) + chr(0b1000 + 0o53) + '\065' + chr(0b110110), 8), nzTpIcepk0o8('\060' + chr(0b1001001 + 0o46) + '\x31' + chr(51) + '\065', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\062' + chr(51), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(925 - 874) + chr(0b110010) + chr(0b110111), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + '\x37' + '\063', 0b1000), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(1498 - 1450) + chr(0b11100 + 0o26), ord("\x08")), nzTpIcepk0o8(chr(48) + chr(111) + '\062' + chr(0b10000 + 0o43) + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b111100 + 0o63) + chr(0b110010) + chr(0b110001) + chr(2413 - 2361), 8), nzTpIcepk0o8(chr(522 - 474) + '\x6f' + chr(560 - 511) + '\x31' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(0b110010) + chr(0b11 + 0o61) + chr(1199 - 1151), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(555 - 444) + chr(0b1000 + 0o51) + chr(48) + chr(0b110110), 28873 - 28865), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b1101111) + chr(0b110011) + chr(0b10 + 0o57) + chr(0b0 + 0o61), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b111 + 0o150) + '\062' + chr(396 - 347) + chr(0b10010 + 0o41), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b11111 + 0o120) + chr(53) + chr(0b110001), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1001011 + 0o44) + chr(51) + chr(683 - 631) + chr(0b101101 + 0o11), 8), nzTpIcepk0o8(chr(0b110000) + chr(342 - 231) + chr(0b110111) + '\x33', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1609 - 1561) + '\157' + '\065' + chr(0b110000), 32600 - 32592)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa9'), '\x64' + '\x65' + chr(0b100101 + 0o76) + '\157' + chr(7972 - 7872) + chr(0b1010 + 0o133))('\165' + '\x74' + chr(102) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def hZD_8hsaMpr_(hXMPsSrOQzbh, YExHaJOaBKgH): if roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\xc2X\xaf\x81\xb0\x99\xf5)\xa1\xaba<'), chr(0b1100100) + chr(0b1 + 0o144) + chr(0b1001011 + 0o30) + chr(0b1101111) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\055' + '\x38')): return YExHaJOaBKgH elif roI3spqORKae(YExHaJOaBKgH, roI3spqORKae(ES5oEprVxulp(b'\xc2X\xaf\x81\xb0\x99\xf5)\xa1\xaba<'), chr(410 - 310) + chr(0b1010110 + 0o17) + chr(99) + '\x6f' + chr(100) + '\145')(chr(0b1100 + 0o151) + chr(116) + '\146' + chr(0b101101) + chr(0b111000))): return roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xedm\x8c\xdf\xd8\xaf\xc2K\xaf\xb3W4'), chr(100) + chr(0b1001100 + 0o31) + chr(99) + chr(111) + chr(100) + '\x65')(chr(3072 - 2955) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000))) EBc0_NYCFZ7A = hXMPsSrOQzbh.df.copy() if roI3spqORKae(hXMPsSrOQzbh.dtype, roI3spqORKae(ES5oEprVxulp(b'\xce$\xa5\xfa\xa9\xa8\xcd]\xb6\xa4\x7f>'), '\144' + chr(0b1100101) + '\x63' + chr(1494 - 1383) + '\x64' + chr(0b1100101))('\x75' + chr(116) + chr(102) + '\055' + '\070'))(roI3spqORKae(ES5oEprVxulp(b'\xf4'), '\x64' + chr(0b1100001 + 0o4) + chr(0b1010011 + 0o20) + chr(111) + chr(0b1000 + 0o134) + chr(0b111100 + 0o51))(chr(0b1110101) + chr(13205 - 13089) + chr(102) + chr(45) + '\070')): RcX9bbuOzh5L = hXMPsSrOQzbh.RcX9bbuOzh5L[:-nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1101111) + chr(0b100111 + 0o12), 22877 - 22869)] else: RcX9bbuOzh5L = hXMPsSrOQzbh.RcX9bbuOzh5L pNaX8e3PHIoF = RcX9bbuOzh5L + roI3spqORKae(ES5oEprVxulp(b'\xd8s\xa2\xdc\x85'), chr(0b1100100) + chr(0b1000011 + 0o42) + chr(0b1100000 + 0o3) + chr(0b1101111) + chr(100) + chr(0b111111 + 0o46))(chr(0b1110101) + chr(0b1101011 + 0o11) + '\x66' + chr(203 - 158) + chr(2501 - 2445)) for jpOn8DNZxbbx in [YExHaJOaBKgH, EBc0_NYCFZ7A]: jpOn8DNZxbbx.index.SLVB2BPA_mIe = pNaX8e3PHIoF Oh11vm6VNxd5 = YExHaJOaBKgH.Y4yM9BcfTCNq(EBc0_NYCFZ7A, how=roI3spqORKae(ES5oEprVxulp(b'\xe8h\xb7\xd4\x92'), chr(0b1010 + 0o132) + chr(2050 - 1949) + '\x63' + chr(11147 - 11036) + chr(0b1100100) + '\145')(chr(431 - 314) + '\164' + '\146' + chr(45) + chr(0b10110 + 0o42)), rsuffix=roI3spqORKae(ES5oEprVxulp(b'\xd8o\xa6\xdc\x8f\x9d\xe9'), chr(0b1010100 + 0o20) + '\145' + chr(7415 - 7316) + '\157' + chr(0b1010100 + 0o20) + '\145')('\165' + chr(0b1110100) + chr(6578 - 6476) + chr(182 - 137) + chr(1058 - 1002)), on=pNaX8e3PHIoF) def tPirwzMIRqFH(KBggEttLg7_8): pYTGqxjqkZwU = KBggEttLg7_8 + roI3spqORKae(ES5oEprVxulp(b'\xd8o\xa6\xdc\x8f\x9d\xe9'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(0b101111 + 0o100) + chr(0b1100100) + chr(0b1100101))('\165' + chr(5957 - 5841) + chr(0b10 + 0o144) + '\x2d' + chr(0b101100 + 0o14)) if KBggEttLg7_8 in roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xd2.\xfa\xdb\xb3\x82\xc5$\xe3\x9cY<'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(0b1100100) + chr(4806 - 4705))(chr(117) + '\164' + chr(102) + '\x2d' + chr(0b111000))) and pYTGqxjqkZwU in roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xd2.\xfa\xdb\xb3\x82\xc5$\xe3\x9cY<'), '\144' + chr(4973 - 4872) + '\143' + '\x6f' + chr(100) + '\145')(chr(117) + '\x74' + chr(0b1100110) + chr(0b101101) + chr(56))): Oh11vm6VNxd5[KBggEttLg7_8] = nDF4gVNx0u9Q.xWH4M7K6Qbd3(Oh11vm6VNxd5[KBggEttLg7_8].apply(lambda bI5jsQ9OkQtj: OPdnCSWnXMKM(bI5jsQ9OkQtj, nzTpIcepk0o8(chr(48) + chr(111) + '\x30', ord("\x08")))), Oh11vm6VNxd5[KBggEttLg7_8], Oh11vm6VNxd5[pYTGqxjqkZwU]) for hRTUxJgvuslu in [roI3spqORKae(ES5oEprVxulp(b'\xf4m\xa6\xd2\x89\x86\xe9\x7f'), chr(0b1001011 + 0o31) + '\145' + '\x63' + '\157' + '\x64' + chr(8982 - 8881))(chr(7997 - 7880) + chr(116) + chr(0b111 + 0o137) + '\055' + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xf4|\xae\xc1\x8c\x8e'), chr(5746 - 5646) + chr(0b11 + 0o142) + '\x63' + chr(0b1100101 + 0o12) + chr(100) + chr(101))(chr(11487 - 11370) + chr(0b101 + 0o157) + '\x66' + chr(0b10111 + 0o26) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xf4t\xb7\xd4'), chr(0b110011 + 0o61) + chr(2901 - 2800) + chr(0b10110 + 0o115) + '\157' + chr(0b1001011 + 0o31) + '\x65')(chr(2654 - 2537) + chr(116) + chr(5658 - 5556) + chr(45) + chr(2443 - 2387)), roI3spqORKae(ES5oEprVxulp(b'\xebr\xa0\xd0\x94\x82\xe3\x7f'), '\x64' + '\145' + chr(0b11 + 0o140) + chr(0b101111 + 0o100) + '\x64' + chr(0b1001001 + 0o34))(chr(10552 - 10435) + chr(0b1000000 + 0o64) + chr(0b1100110) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xeb|\xb7'), '\144' + chr(0b1100101) + '\143' + '\x6f' + chr(0b1011011 + 0o11) + '\145')(chr(117) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xebr\xad'), chr(100) + chr(101) + chr(0b1100011) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(6602 - 6485) + '\164' + '\x66' + chr(45) + chr(0b1100 + 0o54))]: tPirwzMIRqFH(hRTUxJgvuslu) [roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xe3o\xac\xc1'), chr(6769 - 6669) + chr(0b1000111 + 0o36) + chr(99) + chr(111) + '\144' + '\145')(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(935 - 879)))(hRTUxJgvuslu, inplace=nzTpIcepk0o8(chr(48) + '\x6f' + chr(49), 8), axis=nzTpIcepk0o8(chr(0b101000 + 0o10) + chr(0b1101111) + '\061', 8)) for hRTUxJgvuslu in roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xd2.\xfa\xdb\xb3\x82\xc5$\xe3\x9cY<'), chr(2001 - 1901) + chr(0b1100101) + chr(4768 - 4669) + chr(9695 - 9584) + '\x64' + '\x65')('\x75' + chr(0b1110100) + '\146' + chr(45) + chr(0b10010 + 0o46))) if roI3spqORKae(hRTUxJgvuslu, roI3spqORKae(ES5oEprVxulp(b'\xce$\xa5\xfa\xa9\xa8\xcd]\xb6\xa4\x7f>'), chr(100) + chr(0b1100101) + '\x63' + chr(111) + chr(0b1100100) + '\x65')('\165' + chr(116) + '\x66' + '\x2d' + '\x38'))(roI3spqORKae(ES5oEprVxulp(b'\xd8o\xa6\xdc\x8f\x9d\xe9'), chr(0b1111 + 0o125) + chr(7348 - 7247) + '\x63' + '\157' + '\144' + chr(0b111 + 0o136))(chr(0b1110101) + '\164' + '\146' + chr(0b101011 + 0o2) + chr(0b111000)))] roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xe3o\xac\xc1\xbf\x8f\xf9a\xbb\xb8V-\xc6\x19\x7f'), chr(0b1100100) + '\x65' + chr(0b1000 + 0o133) + chr(0b1011101 + 0o22) + chr(0b1100100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b1011111 + 0o7) + chr(0b11100 + 0o21) + chr(56)))(inplace=nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(0b11111 + 0o22), 8), subset=[hRTUxJgvuslu for hRTUxJgvuslu in roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xd2.\xfa\xdb\xb3\x82\xc5$\xe3\x9cY<'), '\x64' + chr(0b1010111 + 0o16) + '\x63' + '\157' + chr(100) + chr(2057 - 1956))(chr(0b1011101 + 0o30) + chr(0b1110100) + '\146' + chr(45) + chr(329 - 273))) if hRTUxJgvuslu != roI3spqORKae(ES5oEprVxulp(b'\xe3x\xb0\xd2\x92\x82\xfce\xbe\xbe['), chr(0b1100100 + 0o0) + '\x65' + '\x63' + '\157' + chr(100) + '\145')(chr(0b111110 + 0o67) + chr(0b1000010 + 0o62) + '\x66' + '\055' + chr(0b111000))]) if RcX9bbuOzh5L in roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xd2.\xfa\xdb\xb3\x82\xc5$\xe3\x9cY<'), chr(100) + chr(101) + chr(1183 - 1084) + '\157' + chr(0b1100100) + chr(0b1011111 + 0o6))(chr(4122 - 4005) + chr(116) + chr(0b1001 + 0o135) + chr(65 - 20) + chr(56))): Oh11vm6VNxd5 = Oh11vm6VNxd5.set_index(RcX9bbuOzh5L) Oh11vm6VNxd5[RcX9bbuOzh5L] = Oh11vm6VNxd5.ZpfN5tSLaZze Oh11vm6VNxd5.index.SLVB2BPA_mIe = pNaX8e3PHIoF roI3spqORKae(Oh11vm6VNxd5, roI3spqORKae(ES5oEprVxulp(b'\xf4r\xb1\xc5\xbf\x82\xe2u\xb2\xa9'), chr(4954 - 4854) + '\x65' + chr(99) + chr(9202 - 9091) + '\x64' + chr(1351 - 1250))('\x75' + chr(0b1110100) + '\x66' + chr(0b101101) + '\070'))(inplace=nzTpIcepk0o8(chr(48) + '\x6f' + '\x31', 8)) return Oh11vm6VNxd5
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.write_magic_file
def write_magic_file(self, custom_name=None, dir_path=".", append=False, multi_type=False, df=None): """ Write self.df out to tab-delimited file. By default will use standard MagIC filenames (specimens.txt, etc.), or you can provide a custom_name to write to instead. By default will write to custom_name if custom_name is a full path, or will write to dir_path + custom_name if custom_name is not a full path. Parameters ---------- self : MagIC DataFrame custom_name : str custom file name dir_path : str dir_path (used if custom_name is not a full path), default "." append : bool append to existing file, default False multi_type : bool for creating upload file Return -------- fname : str output file name """ # don't let custom name start with "./" if custom_name: if custom_name.startswith('.'): custom_name = os.path.split(custom_name)[1] # put columns in logical order (by group) self.sort_dataframe_cols() # if indexing column was put in, remove it if "num" in self.df.columns: self.df = self.df.drop("num", axis=1) # # make sure name is a string name = self.get_singular_and_plural_dtype(self.dtype)[0] if name in self.df.columns: self.df[name] = self.df[name].astype(str) # if df is None: df = self.df # get full file path dir_path = os.path.realpath(dir_path) if custom_name: fname = pmag.resolve_file_name(custom_name, dir_path) # os.path.join(dir_path, custom_name) elif self.magic_file: fname = pmag.resolve_file_name(self.magic_file, dir_path) else: fname = os.path.join(dir_path, self.dtype + ".txt") # see if there's any data if not len(df): print('-W- No data to write to {}'.format(fname)) return False # add to existing file if append: print('-I- appending {} data to {}'.format(self.dtype, fname)) mode = "a" # overwrite existing file elif os.path.exists(fname): print('-I- overwriting {}'.format(fname)) mode = "w" # or create new file else: print('-I- writing {} records to {}'.format(self.dtype, fname)) mode = "w" f = open(fname, mode) if append: header = False if multi_type: header = True f.write('tab\t{}\n'.format(self.dtype)) f.flush() df.to_csv(f, sep="\t", header=header, index=False, mode='a') else: f.write('tab\t{}\n'.format(self.dtype)) f.flush() df.to_csv(f, sep="\t", header=True, index=False, mode='a') print('-I- {} records written to {} file'.format(len(df), self.dtype)) f.close() return fname
python
def write_magic_file(self, custom_name=None, dir_path=".", append=False, multi_type=False, df=None): """ Write self.df out to tab-delimited file. By default will use standard MagIC filenames (specimens.txt, etc.), or you can provide a custom_name to write to instead. By default will write to custom_name if custom_name is a full path, or will write to dir_path + custom_name if custom_name is not a full path. Parameters ---------- self : MagIC DataFrame custom_name : str custom file name dir_path : str dir_path (used if custom_name is not a full path), default "." append : bool append to existing file, default False multi_type : bool for creating upload file Return -------- fname : str output file name """ # don't let custom name start with "./" if custom_name: if custom_name.startswith('.'): custom_name = os.path.split(custom_name)[1] # put columns in logical order (by group) self.sort_dataframe_cols() # if indexing column was put in, remove it if "num" in self.df.columns: self.df = self.df.drop("num", axis=1) # # make sure name is a string name = self.get_singular_and_plural_dtype(self.dtype)[0] if name in self.df.columns: self.df[name] = self.df[name].astype(str) # if df is None: df = self.df # get full file path dir_path = os.path.realpath(dir_path) if custom_name: fname = pmag.resolve_file_name(custom_name, dir_path) # os.path.join(dir_path, custom_name) elif self.magic_file: fname = pmag.resolve_file_name(self.magic_file, dir_path) else: fname = os.path.join(dir_path, self.dtype + ".txt") # see if there's any data if not len(df): print('-W- No data to write to {}'.format(fname)) return False # add to existing file if append: print('-I- appending {} data to {}'.format(self.dtype, fname)) mode = "a" # overwrite existing file elif os.path.exists(fname): print('-I- overwriting {}'.format(fname)) mode = "w" # or create new file else: print('-I- writing {} records to {}'.format(self.dtype, fname)) mode = "w" f = open(fname, mode) if append: header = False if multi_type: header = True f.write('tab\t{}\n'.format(self.dtype)) f.flush() df.to_csv(f, sep="\t", header=header, index=False, mode='a') else: f.write('tab\t{}\n'.format(self.dtype)) f.flush() df.to_csv(f, sep="\t", header=True, index=False, mode='a') print('-I- {} records written to {} file'.format(len(df), self.dtype)) f.close() return fname
[ "def", "write_magic_file", "(", "self", ",", "custom_name", "=", "None", ",", "dir_path", "=", "\".\"", ",", "append", "=", "False", ",", "multi_type", "=", "False", ",", "df", "=", "None", ")", ":", "# don't let custom name start with \"./\"", "if", "custom_name", ":", "if", "custom_name", ".", "startswith", "(", "'.'", ")", ":", "custom_name", "=", "os", ".", "path", ".", "split", "(", "custom_name", ")", "[", "1", "]", "# put columns in logical order (by group)", "self", ".", "sort_dataframe_cols", "(", ")", "# if indexing column was put in, remove it", "if", "\"num\"", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "=", "self", ".", "df", ".", "drop", "(", "\"num\"", ",", "axis", "=", "1", ")", "#", "# make sure name is a string", "name", "=", "self", ".", "get_singular_and_plural_dtype", "(", "self", ".", "dtype", ")", "[", "0", "]", "if", "name", "in", "self", ".", "df", ".", "columns", ":", "self", ".", "df", "[", "name", "]", "=", "self", ".", "df", "[", "name", "]", ".", "astype", "(", "str", ")", "#", "if", "df", "is", "None", ":", "df", "=", "self", ".", "df", "# get full file path", "dir_path", "=", "os", ".", "path", ".", "realpath", "(", "dir_path", ")", "if", "custom_name", ":", "fname", "=", "pmag", ".", "resolve_file_name", "(", "custom_name", ",", "dir_path", ")", "# os.path.join(dir_path, custom_name)", "elif", "self", ".", "magic_file", ":", "fname", "=", "pmag", ".", "resolve_file_name", "(", "self", ".", "magic_file", ",", "dir_path", ")", "else", ":", "fname", "=", "os", ".", "path", ".", "join", "(", "dir_path", ",", "self", ".", "dtype", "+", "\".txt\"", ")", "# see if there's any data", "if", "not", "len", "(", "df", ")", ":", "print", "(", "'-W- No data to write to {}'", ".", "format", "(", "fname", ")", ")", "return", "False", "# add to existing file", "if", "append", ":", "print", "(", "'-I- appending {} data to {}'", ".", "format", "(", "self", ".", "dtype", ",", "fname", ")", ")", "mode", "=", "\"a\"", "# overwrite existing file", "elif", "os", ".", "path", ".", "exists", "(", "fname", ")", ":", "print", "(", "'-I- overwriting {}'", ".", "format", "(", "fname", ")", ")", "mode", "=", "\"w\"", "# or create new file", "else", ":", "print", "(", "'-I- writing {} records to {}'", ".", "format", "(", "self", ".", "dtype", ",", "fname", ")", ")", "mode", "=", "\"w\"", "f", "=", "open", "(", "fname", ",", "mode", ")", "if", "append", ":", "header", "=", "False", "if", "multi_type", ":", "header", "=", "True", "f", ".", "write", "(", "'tab\\t{}\\n'", ".", "format", "(", "self", ".", "dtype", ")", ")", "f", ".", "flush", "(", ")", "df", ".", "to_csv", "(", "f", ",", "sep", "=", "\"\\t\"", ",", "header", "=", "header", ",", "index", "=", "False", ",", "mode", "=", "'a'", ")", "else", ":", "f", ".", "write", "(", "'tab\\t{}\\n'", ".", "format", "(", "self", ".", "dtype", ")", ")", "f", ".", "flush", "(", ")", "df", ".", "to_csv", "(", "f", ",", "sep", "=", "\"\\t\"", ",", "header", "=", "True", ",", "index", "=", "False", ",", "mode", "=", "'a'", ")", "print", "(", "'-I- {} records written to {} file'", ".", "format", "(", "len", "(", "df", ")", ",", "self", ".", "dtype", ")", ")", "f", ".", "close", "(", ")", "return", "fname" ]
Write self.df out to tab-delimited file. By default will use standard MagIC filenames (specimens.txt, etc.), or you can provide a custom_name to write to instead. By default will write to custom_name if custom_name is a full path, or will write to dir_path + custom_name if custom_name is not a full path. Parameters ---------- self : MagIC DataFrame custom_name : str custom file name dir_path : str dir_path (used if custom_name is not a full path), default "." append : bool append to existing file, default False multi_type : bool for creating upload file Return -------- fname : str output file name
[ "Write", "self", ".", "df", "out", "to", "tab", "-", "delimited", "file", ".", "By", "default", "will", "use", "standard", "MagIC", "filenames", "(", "specimens", ".", "txt", "etc", ".", ")", "or", "you", "can", "provide", "a", "custom_name", "to", "write", "to", "instead", ".", "By", "default", "will", "write", "to", "custom_name", "if", "custom_name", "is", "a", "full", "path", "or", "will", "write", "to", "dir_path", "+", "custom_name", "if", "custom_name", "is", "not", "a", "full", "path", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2102-L2184
train
Write out to a MagIC file.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b11000 + 0o30) + chr(111) + chr(0b10000 + 0o43) + chr(1835 - 1784) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(9709 - 9598) + chr(50) + '\x31' + '\x35', 49370 - 49362), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + '\065' + '\060', ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + '\x37' + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x32' + '\x30' + '\063', 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + chr(869 - 819) + chr(52) + chr(2521 - 2468), 29965 - 29957), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110010) + chr(53) + chr(0b110010), 5609 - 5601), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(9207 - 9096) + '\062' + '\063' + chr(0b110100), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\x32' + chr(2706 - 2651) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1100 + 0o46) + chr(0b100010 + 0o24) + '\x34', 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + '\061' + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + '\062' + '\065' + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + '\x37' + '\062', 36054 - 36046), nzTpIcepk0o8('\060' + '\x6f' + chr(54), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110011) + '\066' + chr(0b100001 + 0o23), ord("\x08")), nzTpIcepk0o8(chr(0b11010 + 0o26) + '\x6f' + '\x33' + '\x36' + '\067', 0o10), nzTpIcepk0o8(chr(0b0 + 0o60) + chr(0b1101111) + chr(0b110010) + chr(363 - 313) + chr(0b110000), 0o10), nzTpIcepk0o8('\x30' + chr(313 - 202) + chr(0b110110) + chr(0b10010 + 0o40), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(1705 - 1655) + chr(1462 - 1408) + '\064', 8), nzTpIcepk0o8('\060' + '\x6f' + '\061' + chr(0b110111) + chr(1837 - 1789), 7238 - 7230), nzTpIcepk0o8(chr(48) + chr(5864 - 5753) + '\x34' + chr(54), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + '\066', 0o10), nzTpIcepk0o8(chr(114 - 66) + chr(3729 - 3618) + chr(109 - 59) + chr(0b110101) + '\061', 20427 - 20419), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(50) + chr(48) + chr(51), 8), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\x6f' + chr(2260 - 2210) + chr(0b110010) + chr(0b110101), 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(2392 - 2337) + chr(1391 - 1343), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110001) + chr(0b11111 + 0o23) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\157' + '\x33' + chr(218 - 164) + '\064', 8), nzTpIcepk0o8(chr(0b10000 + 0o40) + '\x6f' + chr(0b11001 + 0o30) + '\x33' + '\067', 19267 - 19259), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(111) + chr(1838 - 1789) + chr(0b110101) + chr(48), 0o10), nzTpIcepk0o8('\x30' + chr(0b1011001 + 0o26) + chr(0b100110 + 0o16) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(1578 - 1527) + chr(54) + chr(0b10110 + 0o37), 60042 - 60034), nzTpIcepk0o8(chr(548 - 500) + chr(0b1101001 + 0o6) + chr(0b10 + 0o61) + chr(0b110000) + '\060', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b11111 + 0o23) + '\063' + chr(1508 - 1460), 54442 - 54434), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x36', 8), nzTpIcepk0o8(chr(681 - 633) + '\157' + '\x31' + chr(0b110110) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(6373 - 6262) + '\x33' + chr(1463 - 1408) + '\x35', 0o10), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(317 - 268) + chr(1234 - 1183) + chr(55), 8), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110001) + chr(0b110100) + '\067', 0b1000), nzTpIcepk0o8(chr(442 - 394) + chr(111) + chr(178 - 128) + '\x31' + chr(0b110001), 38500 - 38492)][ZlbFMSG8gCoF % nzTpIcepk0o8('\x30' + '\x6f' + '\065' + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xf7'), chr(100) + '\145' + '\x63' + chr(111) + chr(0b1100100) + '\145')(chr(8764 - 8647) + '\164' + chr(8025 - 7923) + '\055' + chr(3133 - 3077)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def NrSeGccOgF3d(hXMPsSrOQzbh, xXA6gCtaliX5=None, qjksZ7GK0xkJ=roI3spqORKae(ES5oEprVxulp(b'\xf7'), chr(7229 - 7129) + '\x65' + chr(0b101100 + 0o67) + chr(1068 - 957) + chr(0b1100100) + chr(7416 - 7315))(chr(0b1011000 + 0o35) + '\164' + chr(0b1100010 + 0o4) + chr(45) + chr(0b111000)), HTS4xgGojoU5=nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(614 - 566), 0o10), qiQK37BLqAYt=nzTpIcepk0o8(chr(48) + '\x6f' + '\x30', 8), jpOn8DNZxbbx=None): if xXA6gCtaliX5: if roI3spqORKae(xXA6gCtaliX5, roI3spqORKae(ES5oEprVxulp(b'\xaa\xf9\x89\x8e\xf7\xd6\xdd\xf5\xcf\xdc'), chr(0b100100 + 0o100) + '\x65' + chr(0b1100011) + '\157' + chr(0b101101 + 0o67) + '\x65')(chr(117) + '\164' + '\x66' + chr(0b1001 + 0o44) + chr(0b111000)))(roI3spqORKae(ES5oEprVxulp(b'\xf7'), '\x64' + chr(101) + '\x63' + chr(0b110 + 0o151) + chr(0b1100100) + chr(101))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(0b100 + 0o51) + chr(2292 - 2236))): xXA6gCtaliX5 = aHUqKstZLeS6.path.LfRrQOxuDvnC(xXA6gCtaliX5)[nzTpIcepk0o8(chr(1252 - 1204) + '\157' + '\x31', 0b1000)] roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xaa\xe2\x9a\x88\xdc\xc1\xcb\xe8\xda\xd2<\xc9\x17c\xab\x94\xff^\xc7'), chr(9061 - 8961) + chr(0b1100101) + '\x63' + chr(0b1101111) + '\144' + chr(0b1100101))(chr(4861 - 4744) + '\164' + chr(102) + chr(45) + chr(56)))() if roI3spqORKae(ES5oEprVxulp(b'\xb7\xf8\x85'), '\144' + '\x65' + '\x63' + chr(0b110000 + 0o77) + chr(0b1100100) + '\x65')('\165' + '\164' + chr(0b1001 + 0o135) + '\x2d' + '\x38') in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\x8c\xbe\xd1\x96\xd0\xcc\xe3\xa9\x8f\xf9"\xd8'), '\x64' + '\145' + '\x63' + chr(0b1100000 + 0o17) + chr(0b100010 + 0o102) + chr(0b1100101))(chr(117) + chr(10296 - 10180) + chr(0b100101 + 0o101) + chr(0b101101) + chr(0b111000))): hXMPsSrOQzbh.jpOn8DNZxbbx = hXMPsSrOQzbh.df.drop(roI3spqORKae(ES5oEprVxulp(b'\xb7\xf8\x85'), '\144' + chr(0b1011010 + 0o13) + chr(0b1100011 + 0o0) + chr(111) + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(102) + chr(45) + chr(920 - 864)), axis=nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061', 8)) SLVB2BPA_mIe = hXMPsSrOQzbh.get_singular_and_plural_dtype(hXMPsSrOQzbh.RcX9bbuOzh5L)[nzTpIcepk0o8('\060' + chr(0b1101100 + 0o3) + chr(48), 8)] if SLVB2BPA_mIe in roI3spqORKae(hXMPsSrOQzbh.df, roI3spqORKae(ES5oEprVxulp(b'\x8c\xbe\xd1\x96\xd0\xcc\xe3\xa9\x8f\xf9"\xd8'), chr(0b1000110 + 0o36) + chr(0b1100101) + '\143' + chr(0b1100110 + 0o11) + '\144' + chr(0b1100101))(chr(0b1101000 + 0o15) + chr(0b1110100) + chr(102) + chr(0b101101) + chr(761 - 705))): hXMPsSrOQzbh.jpOn8DNZxbbx[SLVB2BPA_mIe] = hXMPsSrOQzbh.df[SLVB2BPA_mIe].xqAChpcBkssb(N9zlRy29S1SS) if jpOn8DNZxbbx is None: jpOn8DNZxbbx = hXMPsSrOQzbh.jpOn8DNZxbbx qjksZ7GK0xkJ = aHUqKstZLeS6.path.s0pnpDWwX0By(qjksZ7GK0xkJ) if xXA6gCtaliX5: jXqxEQuu_5DD = hUcsWwAd0nE_.resolve_file_name(xXA6gCtaliX5, qjksZ7GK0xkJ) elif roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\xb4\xec\x8f\x95\xe0\xfa\xcc\xf5\xd7\xd1'), chr(0b1100100) + '\x65' + chr(0b1100010 + 0o1) + chr(4312 - 4201) + '\x64' + chr(101))(chr(0b1110101) + chr(11165 - 11049) + chr(0b1100110) + '\x2d' + chr(56))): jXqxEQuu_5DD = hUcsWwAd0nE_.resolve_file_name(hXMPsSrOQzbh.magic_file, qjksZ7GK0xkJ) else: jXqxEQuu_5DD = aHUqKstZLeS6.path.Y4yM9BcfTCNq(qjksZ7GK0xkJ, hXMPsSrOQzbh.RcX9bbuOzh5L + roI3spqORKae(ES5oEprVxulp(b'\xf7\xf9\x90\x88'), '\x64' + chr(6284 - 6183) + chr(99) + chr(0b101011 + 0o104) + '\x64' + chr(0b1100101))('\x75' + chr(9376 - 9260) + chr(102) + chr(0b111 + 0o46) + chr(0b1 + 0o67))) if not ftfygxgFas5X(jpOn8DNZxbbx): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf4\xda\xc5\xdc\xcd\xca\x8a\xf8\xda\xc0/\x88\x0ei\xd4\x80\xe2[\xc0\x1d\x06z\xc6\xa3\xee\x05'), chr(100) + '\x65' + '\143' + chr(0b110110 + 0o71) + '\144' + '\x65')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\055' + chr(0b1100 + 0o54)), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), chr(100) + chr(101) + '\143' + chr(0b1001 + 0o146) + '\x64' + '\145')(chr(0b1110101) + chr(116) + chr(102) + '\x2d' + chr(1626 - 1570)))(jXqxEQuu_5DD)) return nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(48), 8) if HTS4xgGojoU5: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xf4\xc4\xc5\xdc\xe2\xd5\xda\xf9\xd5\xd0'\xc6\x1d&\x8f\x8a\xb0V\xd5\x0cG.\xdd\xec\xb5\x03/"), chr(0b100001 + 0o103) + chr(101) + '\x63' + chr(111) + chr(100) + '\x65')('\165' + chr(116) + chr(7069 - 6967) + chr(0b101101) + chr(0b101010 + 0o16)), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), chr(1429 - 1329) + chr(101) + chr(0b101010 + 0o71) + chr(8564 - 8453) + chr(6321 - 6221) + '\145')(chr(117) + '\164' + '\146' + chr(0b10101 + 0o30) + '\070'))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\xee\xb0\xc5\xe1\xc7\xdf\xd3\xc1\xdc{\xe4'), chr(100) + '\145' + '\143' + chr(0b1101111) + '\144' + chr(101))('\x75' + chr(0b1110100) + chr(102) + chr(0b0 + 0o55) + chr(56))), jXqxEQuu_5DD)) bmJ7SvuZE3jD = roI3spqORKae(ES5oEprVxulp(b'\xb8'), '\144' + chr(0b1100101) + '\143' + chr(0b111101 + 0o62) + chr(0b1100100) + chr(0b1100101))('\165' + '\164' + '\x66' + '\x2d' + chr(56)) elif roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xa3\xde\xa1\x85\xed\xf5\xdf\xd9\xcd\xd8\x1f\x9c'), chr(0b101101 + 0o67) + chr(101) + '\x63' + chr(111) + chr(0b10110 + 0o116) + chr(0b1100101))(chr(0b1100001 + 0o24) + chr(0b1100110 + 0o16) + chr(8435 - 8333) + chr(0b100 + 0o51) + '\x38'))(jXqxEQuu_5DD): v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b"\xf4\xc4\xc5\xdc\xec\xd3\xcf\xee\xcc\xc6'\xdc\x13h\x93\xd7\xebO"), chr(0b1001 + 0o133) + '\145' + chr(0b1100011) + chr(111) + '\x64' + chr(5331 - 5230))(chr(117) + chr(0b11001 + 0o133) + chr(9458 - 9356) + chr(0b11010 + 0o23) + chr(0b111000)), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), '\144' + chr(6510 - 6409) + chr(453 - 354) + '\157' + chr(4755 - 4655) + '\145')(chr(11828 - 11711) + chr(116) + '\146' + chr(0b100010 + 0o13) + chr(1915 - 1859)))(jXqxEQuu_5DD)) bmJ7SvuZE3jD = roI3spqORKae(ES5oEprVxulp(b'\xae'), '\x64' + chr(0b1001001 + 0o34) + chr(99) + '\157' + chr(100) + '\145')(chr(0b1110101) + chr(0b11000 + 0o134) + chr(0b11101 + 0o111) + chr(0b101101) + chr(56)) else: v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf4\xc4\xc5\xdc\xf4\xd7\xc3\xe8\xd2\xda)\x88\x01{\xd4\x85\xf5Q\xdb\nB}\x89\xf7\xfaX)\x89'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(0b100100 + 0o100) + chr(2457 - 2356))('\x75' + chr(0b1110100) + chr(102) + '\x2d' + '\070'), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), '\144' + chr(101) + chr(8426 - 8327) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(117) + '\164' + chr(102) + chr(0b101101) + chr(803 - 747)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\xee\xb0\xc5\xe1\xc7\xdf\xd3\xc1\xdc{\xe4'), chr(5447 - 5347) + chr(0b1100101) + chr(8034 - 7935) + chr(6935 - 6824) + chr(100) + chr(101))(chr(0b1110101) + chr(0b1010010 + 0o42) + chr(0b1011011 + 0o13) + '\055' + '\x38')), jXqxEQuu_5DD)) bmJ7SvuZE3jD = roI3spqORKae(ES5oEprVxulp(b'\xae'), chr(0b101011 + 0o71) + '\145' + chr(0b1010000 + 0o23) + '\157' + '\144' + chr(336 - 235))(chr(117) + chr(0b1110100) + chr(7549 - 7447) + chr(978 - 933) + chr(0b111000)) _R8IKF5IwAfX = DnU3Rq9N5ala(jXqxEQuu_5DD, bmJ7SvuZE3jD) if HTS4xgGojoU5: jkp_M8Pp8CIt = nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110000), 8) if qiQK37BLqAYt: jkp_M8Pp8CIt = nzTpIcepk0o8('\060' + chr(0b10011 + 0o134) + '\x31', 8) roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xb4\xe1\xd8\x94\xeb\xd5\xdc\xad\xf7\xc4?\x9a'), chr(100) + chr(0b11000 + 0o115) + chr(99) + chr(0b1001010 + 0o45) + '\x64' + chr(0b1000011 + 0o42))(chr(0b1110101) + '\x74' + chr(0b1100110) + chr(1354 - 1309) + chr(152 - 96)))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xad\xec\x8a\xf5\xf8\xd8\xa0'), chr(0b1010 + 0o132) + chr(9359 - 9258) + chr(0b1100011) + chr(111) + chr(0b1100100) + '\145')(chr(117) + chr(116) + chr(0b10100 + 0o122) + chr(0b101101) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), chr(0b1100100) + chr(0b1100101) + chr(0b1100011) + '\157' + '\x64' + '\x65')(chr(0b110001 + 0o104) + chr(116) + chr(102) + '\x2d' + chr(1806 - 1750)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\xee\xb0\xc5\xe1\xc7\xdf\xd3\xc1\xdc{\xe4'), '\x64' + chr(0b1000111 + 0o36) + chr(99) + chr(7369 - 7258) + chr(100) + chr(101))('\x75' + chr(11934 - 11818) + chr(0b1100110) + '\055' + chr(0b11 + 0o65))))) roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xb2\xda\x98\x85\xc1\xd7\xfc\xcb\xf9\xc4=\xed'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(4494 - 4394) + chr(0b1001001 + 0o34))('\165' + '\164' + chr(102) + chr(0b101101) + chr(2255 - 2199)))() roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xad\xe2\xb7\x9f\xf0\xd3'), '\x64' + '\145' + chr(0b1110 + 0o125) + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(2468 - 2351) + '\164' + '\x66' + chr(45) + chr(0b10 + 0o66)))(_R8IKF5IwAfX, sep=roI3spqORKae(ES5oEprVxulp(b'\xd0'), '\x64' + chr(101) + chr(0b10101 + 0o116) + chr(111) + chr(0b1100100) + chr(0b1100101 + 0o0))('\x75' + chr(0b1011 + 0o151) + chr(2833 - 2731) + chr(45) + chr(772 - 716)), header=jkp_M8Pp8CIt, index=nzTpIcepk0o8('\x30' + '\x6f' + '\060', 8), mode=roI3spqORKae(ES5oEprVxulp(b'\xb8'), chr(0b1100100) + chr(0b1100101) + chr(0b110001 + 0o62) + '\157' + chr(2925 - 2825) + chr(101))(chr(117) + '\x74' + chr(7826 - 7724) + '\x2d' + chr(580 - 524))) else: roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xb4\xe1\xd8\x94\xeb\xd5\xdc\xad\xf7\xc4?\x9a'), chr(0b1011001 + 0o13) + '\145' + chr(7185 - 7086) + chr(3857 - 3746) + '\x64' + '\145')('\165' + chr(0b1110100) + chr(0b1100110) + chr(0b100110 + 0o7) + '\x38'))(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xad\xec\x8a\xf5\xf8\xd8\xa0'), '\144' + chr(0b1011010 + 0o13) + chr(0b110 + 0o135) + chr(0b1001110 + 0o41) + chr(0b1110 + 0o126) + '\x65')(chr(0b1010000 + 0o45) + chr(0b1101001 + 0o13) + chr(7794 - 7692) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), chr(3703 - 3603) + chr(0b1011111 + 0o6) + chr(0b1100011) + chr(111) + '\144' + chr(0b1100101))(chr(0b111011 + 0o72) + '\x74' + chr(0b1101 + 0o131) + chr(0b101101) + chr(0b111000)))(roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\xee\xb0\xc5\xe1\xc7\xdf\xd3\xc1\xdc{\xe4'), chr(0b101100 + 0o70) + chr(0b1100101) + '\x63' + '\x6f' + chr(0b1000111 + 0o35) + chr(101))(chr(0b101000 + 0o115) + chr(5025 - 4909) + chr(10255 - 10153) + '\x2d' + '\070')))) roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\xb2\xda\x98\x85\xc1\xd7\xfc\xcb\xf9\xc4=\xed'), '\144' + chr(1394 - 1293) + chr(0b1100011) + chr(10050 - 9939) + '\x64' + '\x65')('\x75' + chr(10946 - 10830) + chr(1601 - 1499) + '\055' + chr(0b1000 + 0o60)))() roI3spqORKae(jpOn8DNZxbbx, roI3spqORKae(ES5oEprVxulp(b'\xad\xe2\xb7\x9f\xf0\xd3'), '\x64' + chr(0b111101 + 0o50) + chr(99) + '\x6f' + chr(100) + chr(0b1100101))('\165' + chr(0b1110100) + chr(0b11001 + 0o115) + chr(0b101101) + '\x38'))(_R8IKF5IwAfX, sep=roI3spqORKae(ES5oEprVxulp(b'\xd0'), chr(669 - 569) + chr(0b1100101) + chr(99) + '\157' + '\144' + chr(0b1100101))(chr(0b1111 + 0o146) + '\x74' + chr(102) + chr(45) + '\070'), header=nzTpIcepk0o8('\x30' + '\157' + chr(49), 8), index=nzTpIcepk0o8(chr(48) + chr(4587 - 4476) + chr(0b110000), 8), mode=roI3spqORKae(ES5oEprVxulp(b'\xb8'), chr(100) + '\x65' + chr(0b101010 + 0o71) + chr(111) + '\x64' + '\x65')('\165' + '\x74' + chr(102) + chr(0b1 + 0o54) + '\070')) v8jsMqaYV6U2(roI3spqORKae(roI3spqORKae(ES5oEprVxulp(b'\xf4\xc4\xc5\xdc\xf8\xd8\x8a\xee\xde\xd7!\xda\x1eu\xd4\x80\xe2[\xc0\x0cC`\x89\xf7\xfaX)\x89\x7f\x0eK\x99\xa5'), chr(0b10111 + 0o115) + '\x65' + chr(99) + chr(0b1101110 + 0o1) + chr(0b1100100) + chr(0b101010 + 0o73))(chr(0b1010111 + 0o36) + chr(3721 - 3605) + chr(0b110 + 0o140) + chr(1476 - 1431) + '\x38'), roI3spqORKae(ES5oEprVxulp(b'\xa8\xbe\xdb\xb7\xc4\x96\xcc\xf3\xea\xeb\r\xe2'), chr(4375 - 4275) + chr(0b1100101) + chr(0b1100011) + chr(5807 - 5696) + '\144' + chr(101))('\x75' + '\164' + chr(102) + chr(0b11101 + 0o20) + '\x38'))(ftfygxgFas5X(jpOn8DNZxbbx), roI3spqORKae(hXMPsSrOQzbh, roI3spqORKae(ES5oEprVxulp(b'\x8b\xee\xb0\xc5\xe1\xc7\xdf\xd3\xc1\xdc{\xe4'), '\144' + chr(0b1011011 + 0o12) + chr(0b1100011) + '\157' + '\144' + chr(0b110010 + 0o63))(chr(3150 - 3033) + chr(0b1110100) + chr(102) + chr(45) + chr(2842 - 2786))))) roI3spqORKae(_R8IKF5IwAfX, roI3spqORKae(ES5oEprVxulp(b'\x83\xe8\x99\xcb\xc0\xc6\xcc\xa5\xee\xd0v\xc2'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + '\x64' + chr(0b1100101))(chr(12130 - 12013) + chr(0b1110100) + '\x66' + chr(827 - 782) + chr(56)))() return jXqxEQuu_5DD
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_non_magic_cols
def get_non_magic_cols(self): """ Find all columns in self.df that are not real MagIC 3 columns. Returns -------- unrecognized_cols : list """ table_dm = self.data_model.dm[self.dtype] approved_cols = table_dm.index unrecognized_cols = (set(self.df.columns) - set(approved_cols)) return unrecognized_cols
python
def get_non_magic_cols(self): """ Find all columns in self.df that are not real MagIC 3 columns. Returns -------- unrecognized_cols : list """ table_dm = self.data_model.dm[self.dtype] approved_cols = table_dm.index unrecognized_cols = (set(self.df.columns) - set(approved_cols)) return unrecognized_cols
[ "def", "get_non_magic_cols", "(", "self", ")", ":", "table_dm", "=", "self", ".", "data_model", ".", "dm", "[", "self", ".", "dtype", "]", "approved_cols", "=", "table_dm", ".", "index", "unrecognized_cols", "=", "(", "set", "(", "self", ".", "df", ".", "columns", ")", "-", "set", "(", "approved_cols", ")", ")", "return", "unrecognized_cols" ]
Find all columns in self.df that are not real MagIC 3 columns. Returns -------- unrecognized_cols : list
[ "Find", "all", "columns", "in", "self", ".", "df", "that", "are", "not", "real", "MagIC", "3", "columns", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2189-L2200
train
Find all columns that are not real MagIC 3 columns.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(111) + '\x32' + chr(0b0 + 0o64) + chr(0b110111), 33327 - 33319), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(55) + '\061', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b100000 + 0o26) + chr(0b1000 + 0o52), 65397 - 65389), nzTpIcepk0o8('\060' + '\157' + chr(1061 - 1012) + '\066' + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(4169 - 4058) + '\x33' + chr(173 - 125) + chr(0b110100), ord("\x08")), nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(0b1000111 + 0o50) + chr(0b110010) + '\x34' + '\067', 8), nzTpIcepk0o8(chr(0b101111 + 0o1) + chr(111) + chr(51) + chr(53) + '\064', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\061' + chr(0b110110) + '\065', ord("\x08")), nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(111) + chr(0b110110) + chr(997 - 947), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b100101 + 0o112) + chr(50) + chr(55) + '\060', 0o10), nzTpIcepk0o8(chr(48) + chr(0b1101111) + chr(51) + '\067' + chr(50), 49242 - 49234), nzTpIcepk0o8('\060' + '\157' + chr(0b100111 + 0o17) + chr(0b110110), 29184 - 29176), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\061' + chr(0b110010) + chr(50), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b101000 + 0o12) + '\067' + chr(0b1010 + 0o51), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b100100 + 0o23) + chr(0b101000 + 0o16), 11974 - 11966), nzTpIcepk0o8(chr(0b100101 + 0o13) + chr(111) + chr(0b110001) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b100111 + 0o13) + '\x35' + '\060', ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\061' + chr(202 - 149) + chr(2279 - 2226), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + '\061' + '\067', 2667 - 2659), nzTpIcepk0o8(chr(48) + '\157' + '\063' + chr(51) + chr(0b110100), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + chr(51) + chr(0b110111) + chr(0b110001), 8), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\061' + '\064' + '\x30', 0b1000), nzTpIcepk0o8(chr(0b1010 + 0o46) + chr(0b1101111) + chr(51) + '\x35' + chr(0b110101), 8872 - 8864), nzTpIcepk0o8(chr(0b1111 + 0o41) + '\x6f' + chr(827 - 777) + '\x31' + '\066', 0b1000), nzTpIcepk0o8(chr(0b101100 + 0o4) + '\x6f' + '\063' + '\x35' + chr(2908 - 2854), 0o10), nzTpIcepk0o8(chr(48) + chr(0b110001 + 0o76) + chr(0b11000 + 0o31) + chr(0b110010) + chr(0b110010), 8), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b10000 + 0o137) + '\064' + chr(961 - 912), 10565 - 10557), nzTpIcepk0o8(chr(0b110000) + chr(0b111110 + 0o61) + '\x31' + chr(0b10100 + 0o40) + chr(0b100110 + 0o12), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(2219 - 2169), 63803 - 63795), nzTpIcepk0o8(chr(0b110000) + chr(4223 - 4112) + '\061' + '\x37' + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(50) + '\063' + chr(50), 0b1000), nzTpIcepk0o8(chr(481 - 433) + chr(0b111010 + 0o65) + chr(1945 - 1895) + chr(1935 - 1886) + '\x30', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(50) + chr(52) + chr(0b110011), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110001) + '\063', 55695 - 55687), nzTpIcepk0o8(chr(48) + chr(111) + chr(2074 - 2023) + chr(0b11101 + 0o26) + chr(0b10011 + 0o41), 8), nzTpIcepk0o8('\x30' + chr(0b1000000 + 0o57) + chr(1889 - 1835) + '\063', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(0b11 + 0o60) + chr(0b110100) + chr(0b101011 + 0o12), 0b1000), nzTpIcepk0o8(chr(0b101110 + 0o2) + '\x6f' + chr(50) + chr(1465 - 1417) + chr(0b101000 + 0o15), 1352 - 1344), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\062' + chr(51) + chr(0b10110 + 0o32), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b10111 + 0o33) + '\062' + chr(0b11111 + 0o21), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b10010 + 0o36) + chr(0b1101111) + chr(53) + chr(0b110000), 9842 - 9834)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\x89'), chr(0b1100100) + chr(0b111011 + 0o52) + '\x63' + chr(11800 - 11689) + '\144' + chr(101))(chr(117) + '\164' + chr(0b1100110) + chr(644 - 599) + chr(2214 - 2158)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def hTuO8aMLTjGd(hXMPsSrOQzbh): QMYx7KcbRt8P = hXMPsSrOQzbh.data_model._zcxIoncSRlL[hXMPsSrOQzbh.RcX9bbuOzh5L] iAJ7xHDhk1sB = QMYx7KcbRt8P.ZpfN5tSLaZze MsjU8qLQdRnu = Bvi71nNyvlqO(hXMPsSrOQzbh.df.U39jSiI54Mlp) - Bvi71nNyvlqO(iAJ7xHDhk1sB) return MsjU8qLQdRnu
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_first_non_null_value
def get_first_non_null_value(self, ind_name, col_name): """ For a given index and column, find the first non-null value. Parameters ---------- self : MagicDataFrame ind_name : str index name for indexing col_name : str column name for indexing Returns --------- single value of str, float, or int """ short_df = self.df.loc[ind_name, col_name] mask = pd.notnull(short_df) print(short_df[mask]) try: val = short_df[mask].unique()[0] except IndexError: val = None return val
python
def get_first_non_null_value(self, ind_name, col_name): """ For a given index and column, find the first non-null value. Parameters ---------- self : MagicDataFrame ind_name : str index name for indexing col_name : str column name for indexing Returns --------- single value of str, float, or int """ short_df = self.df.loc[ind_name, col_name] mask = pd.notnull(short_df) print(short_df[mask]) try: val = short_df[mask].unique()[0] except IndexError: val = None return val
[ "def", "get_first_non_null_value", "(", "self", ",", "ind_name", ",", "col_name", ")", ":", "short_df", "=", "self", ".", "df", ".", "loc", "[", "ind_name", ",", "col_name", "]", "mask", "=", "pd", ".", "notnull", "(", "short_df", ")", "print", "(", "short_df", "[", "mask", "]", ")", "try", ":", "val", "=", "short_df", "[", "mask", "]", ".", "unique", "(", ")", "[", "0", "]", "except", "IndexError", ":", "val", "=", "None", "return", "val" ]
For a given index and column, find the first non-null value. Parameters ---------- self : MagicDataFrame ind_name : str index name for indexing col_name : str column name for indexing Returns --------- single value of str, float, or int
[ "For", "a", "given", "index", "and", "column", "find", "the", "first", "non", "-", "null", "value", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2203-L2226
train
Returns the first non - null value in a given index and column.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(2256 - 2208) + chr(111) + chr(50) + chr(0b10001 + 0o37) + '\066', ord("\x08")), nzTpIcepk0o8('\060' + '\x6f' + chr(50) + chr(53) + chr(0b110011 + 0o2), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + '\x33' + '\x30' + chr(52), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(50) + chr(0b100 + 0o56) + '\x32', 20509 - 20501), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b110111), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + '\062' + chr(50), 8), nzTpIcepk0o8('\x30' + chr(0b1101011 + 0o4) + chr(0b1010 + 0o51) + chr(48) + '\x36', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b110010 + 0o75) + chr(0b110000 + 0o2) + chr(52) + chr(51), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + '\157' + chr(54) + chr(0b110010 + 0o2), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1015 - 962) + chr(0b11101 + 0o23), 0o10), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + '\x37' + '\x33', ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1011111 + 0o20) + chr(0b10 + 0o60) + '\065' + '\062', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + '\x32' + chr(52), 0o10), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b1110 + 0o43) + chr(54) + chr(1207 - 1158), 54032 - 54024), nzTpIcepk0o8('\x30' + chr(0b110111 + 0o70) + chr(0b110011) + '\x36' + chr(0b11110 + 0o31), 1155 - 1147), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(916 - 862) + '\x33', 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + '\061' + '\060' + '\x33', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + '\x33' + chr(52), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1001111 + 0o40) + chr(2426 - 2376) + '\x31' + chr(688 - 637), 47265 - 47257), nzTpIcepk0o8('\x30' + chr(111) + '\x36' + '\x31', ord("\x08")), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(1359 - 1307) + chr(0b110000), 8195 - 8187), nzTpIcepk0o8(chr(0b1011 + 0o45) + chr(0b111000 + 0o67) + '\063' + '\060' + chr(0b110010), 0o10), nzTpIcepk0o8('\060' + '\x6f' + '\x32' + '\063' + chr(53), 0o10), nzTpIcepk0o8(chr(48) + chr(10573 - 10462) + '\x33' + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1010101 + 0o32) + chr(1223 - 1172) + chr(50) + chr(1077 - 1024), ord("\x08")), nzTpIcepk0o8(chr(1851 - 1803) + chr(0b100100 + 0o113) + '\x33' + chr(2695 - 2640) + '\061', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + '\065' + '\x35', 25177 - 25169), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x33' + chr(0b1100 + 0o50) + '\x33', 0o10), nzTpIcepk0o8(chr(699 - 651) + '\157' + '\x33' + chr(0b110101) + chr(0b110101), 8), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(0b1101111) + '\062' + '\067' + '\x30', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1100010 + 0o15) + chr(50) + '\065' + '\066', 30386 - 30378), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x33' + chr(0b110101) + '\x31', 0b1000), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(4658 - 4547) + chr(52) + '\x37', ord("\x08")), nzTpIcepk0o8(chr(0b101101 + 0o3) + chr(111) + chr(1270 - 1219) + chr(51) + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101110 + 0o1) + chr(0b110001) + chr(0b11100 + 0o31) + chr(0b110001), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + '\x32' + chr(0b110001) + chr(0b110000 + 0o6), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + '\062' + chr(247 - 197) + chr(1619 - 1566), ord("\x08")), nzTpIcepk0o8(chr(0b100 + 0o54) + chr(11553 - 11442) + '\x32' + chr(0b110111) + chr(0b110111), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\x32' + chr(0b1001 + 0o50) + '\x37', ord("\x08")), nzTpIcepk0o8('\x30' + chr(111) + chr(49) + chr(1237 - 1185) + chr(0b110110), 16128 - 16120)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(1502 - 1454) + '\157' + chr(0b11 + 0o62) + '\x30', 8)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xa8'), '\x64' + chr(101) + chr(0b1010001 + 0o22) + chr(0b1101111) + chr(0b1100100) + chr(6187 - 6086))('\x75' + chr(0b1110100) + chr(4267 - 4165) + '\055' + chr(0b1110 + 0o52)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def qxJqJWFUoyAz(hXMPsSrOQzbh, gHHXKvgG1XFo, VuRTNmVdcYm1): _RQ4Dieo3hwM = hXMPsSrOQzbh.df.UQ8hRiBoHcn5[gHHXKvgG1XFo, VuRTNmVdcYm1] BBM8dxm7YWge = HLKt4sa1j9hm.notnull(_RQ4Dieo3hwM) v8jsMqaYV6U2(_RQ4Dieo3hwM[BBM8dxm7YWge]) try: pXwvT17vr09s = _RQ4Dieo3hwM[BBM8dxm7YWge].G3de2eWQaS0D()[nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b100101 + 0o13), 18651 - 18643)] except ah0DLMBSEU5j: pXwvT17vr09s = None return pXwvT17vr09s
PmagPy/PmagPy
pmagpy/contribution_builder.py
MagicDataFrame.get_singular_and_plural_dtype
def get_singular_and_plural_dtype(self, dtype): """ Parameters ---------- dtype : str MagIC table type (specimens, samples, contribution, etc.) Returns --------- name : str singular name for MagIC table ('specimen' for specimens table, etc.) dtype : str plural dtype for MagIC table ('specimens' for specimens table, etc.) """ dtype = dtype.strip() if dtype.endswith('s'): return dtype[:-1], dtype elif dtype == 'criteria': return 'table_column', 'criteria' elif dtype == 'contribution': return 'doi', 'contribution'
python
def get_singular_and_plural_dtype(self, dtype): """ Parameters ---------- dtype : str MagIC table type (specimens, samples, contribution, etc.) Returns --------- name : str singular name for MagIC table ('specimen' for specimens table, etc.) dtype : str plural dtype for MagIC table ('specimens' for specimens table, etc.) """ dtype = dtype.strip() if dtype.endswith('s'): return dtype[:-1], dtype elif dtype == 'criteria': return 'table_column', 'criteria' elif dtype == 'contribution': return 'doi', 'contribution'
[ "def", "get_singular_and_plural_dtype", "(", "self", ",", "dtype", ")", ":", "dtype", "=", "dtype", ".", "strip", "(", ")", "if", "dtype", ".", "endswith", "(", "'s'", ")", ":", "return", "dtype", "[", ":", "-", "1", "]", ",", "dtype", "elif", "dtype", "==", "'criteria'", ":", "return", "'table_column'", ",", "'criteria'", "elif", "dtype", "==", "'contribution'", ":", "return", "'doi'", ",", "'contribution'" ]
Parameters ---------- dtype : str MagIC table type (specimens, samples, contribution, etc.) Returns --------- name : str singular name for MagIC table ('specimen' for specimens table, etc.) dtype : str plural dtype for MagIC table ('specimens' for specimens table, etc.)
[ "Parameters", "----------", "dtype", ":", "str", "MagIC", "table", "type", "(", "specimens", "samples", "contribution", "etc", ".", ")" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/contribution_builder.py#L2229-L2249
train
Returns singular and plural dtype for a specific MagIC table.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\x30' + chr(0b10 + 0o155) + '\061' + chr(915 - 867) + chr(0b101010 + 0o13), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x31' + '\x31' + '\067', ord("\x08")), nzTpIcepk0o8('\060' + chr(2329 - 2218) + chr(0b100000 + 0o22) + '\065' + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(1248 - 1197) + chr(283 - 233) + chr(0b0 + 0o65), ord("\x08")), nzTpIcepk0o8('\x30' + chr(5522 - 5411) + chr(0b110010) + chr(329 - 274) + '\x32', 0o10), nzTpIcepk0o8(chr(48) + '\157' + chr(0b11110 + 0o25) + chr(0b101110 + 0o4) + '\x32', 48650 - 48642), nzTpIcepk0o8(chr(1214 - 1166) + '\x6f' + chr(0b110010) + chr(0b110001) + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b10101 + 0o33) + '\157' + '\x33' + chr(55) + chr(51), 42628 - 42620), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(0b11000 + 0o36) + chr(0b110010 + 0o5), 0o10), nzTpIcepk0o8('\060' + chr(7635 - 7524) + chr(1415 - 1363) + chr(2649 - 2597), ord("\x08")), nzTpIcepk0o8(chr(0b11111 + 0o21) + chr(111) + '\061' + '\x34' + chr(467 - 415), 0o10), nzTpIcepk0o8(chr(210 - 162) + chr(10621 - 10510) + chr(0b110001) + '\064' + chr(0b10111 + 0o40), 0b1000), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110100 + 0o0) + '\065', 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x32' + chr(0b11100 + 0o31) + chr(0b110001), 0b1000), nzTpIcepk0o8('\060' + '\157' + '\x33' + chr(921 - 872) + chr(52), ord("\x08")), nzTpIcepk0o8('\x30' + chr(3078 - 2967) + chr(0b101000 + 0o11) + chr(0b110101) + chr(0b100000 + 0o22), 0b1000), nzTpIcepk0o8(chr(0b10100 + 0o34) + '\157' + '\x32' + '\x36' + chr(0b110011), 63226 - 63218), nzTpIcepk0o8('\060' + chr(0b101100 + 0o103) + '\x34', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\x32' + chr(0b101001 + 0o14) + '\066', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110011) + chr(1630 - 1577) + chr(55), 0b1000), nzTpIcepk0o8(chr(0b1 + 0o57) + '\x6f' + chr(0b101110 + 0o5) + chr(854 - 804) + chr(49), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\063' + chr(55) + chr(48), 21274 - 21266), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(0b110110), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + '\x37' + chr(0b110001), 0b1000), nzTpIcepk0o8(chr(380 - 332) + '\157' + chr(979 - 926) + chr(0b110101), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x31' + chr(53), 0o10), nzTpIcepk0o8('\060' + '\157' + '\x36' + '\x36', ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\063' + chr(2530 - 2477) + chr(0b110101), 0o10), nzTpIcepk0o8(chr(109 - 61) + '\157' + '\x31' + '\066' + chr(51), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110010) + chr(2076 - 2028), 49611 - 49603), nzTpIcepk0o8(chr(48) + chr(8774 - 8663) + '\x36' + chr(0b11101 + 0o31), 8), nzTpIcepk0o8('\x30' + '\157' + chr(51) + chr(0b10000 + 0o46), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b10 + 0o155) + chr(0b10101 + 0o36) + '\x35' + chr(451 - 396), 8), nzTpIcepk0o8(chr(136 - 88) + '\157' + chr(51) + chr(0b110110) + chr(0b10110 + 0o33), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b11100 + 0o26) + '\x33' + chr(855 - 802), ord("\x08")), nzTpIcepk0o8(chr(1565 - 1517) + '\157' + '\x31' + '\065' + chr(1999 - 1951), 30821 - 30813), nzTpIcepk0o8('\060' + chr(0b1101111) + '\062' + '\065' + chr(0b110100), 716 - 708), nzTpIcepk0o8(chr(0b110000) + chr(0b101010 + 0o105) + chr(50) + chr(53) + chr(2812 - 2757), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(50) + chr(53) + chr(0b10101 + 0o42), 8), nzTpIcepk0o8(chr(0b110000) + chr(0b1100000 + 0o17) + '\062' + chr(0b11 + 0o61) + chr(0b110011), ord("\x08"))][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(681 - 633) + '\x6f' + '\065' + chr(48), 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'k'), '\144' + '\x65' + chr(0b1100011) + '\x6f' + chr(0b101011 + 0o71) + chr(0b1100101))(chr(13503 - 13386) + chr(0b10 + 0o162) + '\x66' + '\x2d' + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def g73vX6xn3RHV(hXMPsSrOQzbh, RcX9bbuOzh5L): RcX9bbuOzh5L = RcX9bbuOzh5L.kdIDrcwZTCs5() if roI3spqORKae(RcX9bbuOzh5L, roI3spqORKae(ES5oEprVxulp(b'\x0cv\xcc\x9e\xf3\x91\xcb\xb7VQ.\x15'), chr(6713 - 6613) + '\145' + chr(99) + chr(0b1010011 + 0o34) + '\x64' + chr(1373 - 1272))('\x75' + '\164' + chr(0b1110 + 0o130) + chr(0b101001 + 0o4) + '\070'))(roI3spqORKae(ES5oEprVxulp(b'6'), chr(798 - 698) + chr(101) + '\143' + chr(1321 - 1210) + '\x64' + chr(101))(chr(4861 - 4744) + chr(0b1110100) + chr(0b1001 + 0o135) + chr(0b1101 + 0o40) + chr(0b101110 + 0o12))): return (RcX9bbuOzh5L[:-nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(323 - 274), 44905 - 44897)], RcX9bbuOzh5L) elif RcX9bbuOzh5L == roI3spqORKae(ES5oEprVxulp(b'&=\xc3\xa1\xdf\xa0\xe3\x9a'), chr(9500 - 9400) + '\145' + '\143' + '\x6f' + chr(0b1010111 + 0o15) + '\145')(chr(117) + chr(116) + chr(0b1010110 + 0o20) + chr(1708 - 1663) + chr(56)): return (roI3spqORKae(ES5oEprVxulp(b'1.\xc8\xb9\xdf\x8d\xe9\x94[Q\t\t'), '\x64' + chr(5304 - 5203) + chr(3022 - 2923) + '\157' + chr(0b1100100) + '\145')(chr(0b1010000 + 0o45) + '\164' + '\146' + chr(45) + chr(1566 - 1510)), roI3spqORKae(ES5oEprVxulp(b'&=\xc3\xa1\xdf\xa0\xe3\x9a'), chr(0b10110 + 0o116) + '\145' + chr(6635 - 6536) + chr(9324 - 9213) + chr(4602 - 4502) + chr(0b111101 + 0o50))(chr(0b1000011 + 0o62) + chr(0b1101011 + 0o11) + '\146' + chr(458 - 413) + chr(56))) elif RcX9bbuOzh5L == roI3spqORKae(ES5oEprVxulp(b'& \xc4\xa1\xc8\xbb\xe8\x8eCM\x0b\t'), chr(0b1001100 + 0o30) + chr(0b1100101) + '\x63' + '\157' + chr(8639 - 8539) + '\145')(chr(0b1110101) + chr(0b111 + 0o155) + '\x66' + '\055' + chr(0b111000)): return (roI3spqORKae(ES5oEprVxulp(b'! \xc3'), chr(100) + chr(101) + chr(0b1001110 + 0o25) + chr(0b1011001 + 0o26) + chr(1848 - 1748) + chr(0b1000101 + 0o40))('\165' + chr(13326 - 13210) + chr(102) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'& \xc4\xa1\xc8\xbb\xe8\x8eCM\x0b\t'), chr(0b1100100) + chr(1281 - 1180) + chr(8354 - 8255) + '\x6f' + chr(3659 - 3559) + chr(0b1100101))(chr(117) + chr(116) + chr(0b10111 + 0o117) + chr(0b101101) + '\x38'))
PmagPy/PmagPy
programs/chi_magic2.py
main
def main(): """ NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of FILE and temperature step -f FILE, specify magic_measurements format file -T IND, specify temperature step to plot -e EXP, specify experiment name to plot -fmt [svg,jpg,png,pdf] set figure format [default is svg] -sav save figure and quit DEFAULTS FILE: magic_measurements.txt IND: first SPEC: step through one by one """ cont, FTinit, BTinit, k = "", 0, 0, 0 meas_file = "magic_measurements.txt" spec = "" Tind, cont = 0, "" EXP = "" fmt = 'svg' # default image type for saving plot = 0 if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: fname = input( "Input magic_measurements file name? [magic_measurements.txt] ") if fname != "": meas_file = fname if '-e' in sys.argv: ind = sys.argv.index('-e') EXP = sys.argv[ind+1] if '-f' in sys.argv: ind = sys.argv.index('-f') meas_file = sys.argv[ind+1] if '-T' in sys.argv: ind = sys.argv.index('-T') Tind = int(sys.argv[ind+1]) if '-fmt' in sys.argv: ind = sys.argv.index('-fmt') fmt = sys.argv[ind+1] if '-sav' in sys.argv: plot = 1 # meas_data, file_type = pmag.magic_read(meas_file) # # get list of unique experiment names # # initialize some variables (a continuation flag, plot initialization flags and the experiment counter experiment_names = [] for rec in meas_data: if rec['magic_experiment_name'] not in experiment_names: experiment_names.append(rec['magic_experiment_name']) # # hunt through by experiment name if EXP != "": try: k = experiment_names.index(EXP) except: print("Bad experiment name") sys.exit() while k < len(experiment_names): e = experiment_names[k] if EXP == "": print(e, k+1, 'out of ', len(experiment_names)) # # initialize lists of data, susceptibility, temperature, frequency and field X, T, F, B = [], [], [], [] for rec in meas_data: methcodes = rec['magic_method_codes'] meths = methcodes.strip().split(':') if rec['magic_experiment_name'] == e and "LP-X" in meths: # looking for chi measurement if 'measurement_temp' not in list(rec.keys()): rec['measurement_temp'] = '300' # set defaults if 'measurement_freq' not in list(rec.keys()): rec['measurement_freq'] = '0' # set defaults if 'measurement_lab_field_ac' not in list(rec.keys()): rec['measurement_lab_field_ac'] = '0' # set default if 'measurement_x' in rec.keys(): # backward compatibility X.append(float(rec['measurement_x'])) else: # data model 2.5 X.append(float(rec['measurement_chi_volume'])) T.append(float(rec['measurement_temp'])) F.append(float(rec['measurement_freq'])) B.append(float(rec['measurement_lab_field_ac'])) # # get unique list of Ts,Fs, and Bs # Ts, Fs, Bs = [], [], [] for k in range(len(X)): # hunt through all the measurements if T[k] not in Ts: Ts.append(T[k]) # append if not in list if F[k] not in Fs: Fs.append(F[k]) if B[k] not in Bs: Bs.append(B[k]) Ts.sort() # sort list of temperatures, frequencies and fields Fs.sort() Bs.sort() if '-x' in sys.argv: k = len(experiment_names)+1 # just plot the one else: k += 1 # increment experiment number # # plot chi versus T and F holding B constant # plotnum = 1 # initialize plot number to 1 if len(X) > 2: # if there are any data to plot, continue b = Bs[-1] # keeping field constant and at maximum XTF = [] # initialize list of chi versus Temp and freq for f in Fs: # step through frequencies sequentially XT = [] # initialize list of chi versus temp for kk in range(len(X)): # hunt through all the data if F[kk] == f and B[kk] == b: # select data with given freq and field XT.append([X[kk], T[kk]]) # append to list XTF.append(XT) # append list to list of frequencies if len(XT) > 1: # if there are any temperature dependent data pmagplotlib.plot_init(plotnum, 5, 5) # initialize plot # call the plotting function pmagplotlib.plot_xtf(plotnum, XTF, Fs, e, b) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) # make it visible plotnum += 1 # increment plot number f = Fs[0] # set frequency to minimum XTB = [] # initialize list if chi versus Temp and field for b in Bs: # step through field values XT = [] # initial chi versus temp list for this field for kk in range(len(X)): # hunt through all the data if F[kk] == f and B[kk] == b: # select data with given freq and field XT.append([X[kk], T[kk]]) # append to list XTB.append(XT) if len(XT) > 1: # if there are any temperature dependent data pmagplotlib.plot_init(plotnum, 5, 5) # set up plot # call the plotting function pmagplotlib.plot_xtb(plotnum, XTB, Bs, e, f) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) plotnum += 1 # increment plot number if '-i' in sys.argv: for ind in range(len(Ts)): # print list of temperatures available print(ind, int(Ts[ind])) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == 'a': files = {} PLTS = {} for p in range(1, plotnum): key = str(p) files[key] = e+'_'+key+'.'+fmt PLTS[key] = key pmagplotlib.save_plots(PLTS, files) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == "": cont = 'q' while cont != "q": if '-i' in sys.argv: Tind = int(cont) # set temperature index b = Bs[-1] # set field to max available XF = [] # initial chi versus frequency list for kk in range(len(X)): # hunt through the data if T[kk] == Ts[Tind] and B[kk] == b: # if temperature and field match, XF.append([X[kk], F[kk]]) # append the data if len(XF) > 1: # if there are any data to plot if FTinit == 0: # if not already initialized, initialize plot # print 'initializing ',plotnum pmagplotlib.plot_init(plotnum, 5, 5) FTinit = 1 XFplot = plotnum plotnum += 1 # increment plotnum pmagplotlib.plot_xft(XFplot, XF, Ts[Tind], e, b) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) else: print( '\n *** Skipping susceptibitily-frequency plot as a function of temperature *** \n') f = Fs[0] # set frequency to minimum available XB = [] # initialize chi versus field list for kk in range(len(X)): # hunt through the data # if temperature and field match those desired if T[kk] == Ts[Tind] and F[kk] == f: XB.append([X[kk], B[kk]]) # append the data to list if len(XB) > 4: # if there are any data if BTinit == 0: # if plot not already initialized pmagplotlib.plot_init(plotnum, 5, 5) # do it BTinit = 1 # and call plotting function pmagplotlib.plot_xbt(plotnum, XB, Ts[Tind], e, f) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) else: print( 'Skipping susceptibitily - AC field plot as a function of temperature') files = {} PLTS = {} for p in range(1, plotnum): key = str(p) files[key] = e+'_'+key+'.'+fmt PLTS[key] = p if '-i' in sys.argv: # just in case you forgot, print out a new list of temperatures for ind in range(len(Ts)): print(ind, int(Ts[ind])) # ask for new temp cont = input( "Enter index of next temperature step, s[a]ve plots, [return] to quit ") if cont == "": sys.exit() if cont == 'a': pmagplotlib.save_plots(PLTS, files) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == "": sys.exit() elif plot == 0: ans = input( "enter s[a]ve to save files, [return] to quit ") if ans == 'a': pmagplotlib.save_plots(PLTS, files) sys.exit() else: sys.exit() else: pmagplotlib.save_plots(PLTS, files) sys.exit()
python
def main(): """ NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of FILE and temperature step -f FILE, specify magic_measurements format file -T IND, specify temperature step to plot -e EXP, specify experiment name to plot -fmt [svg,jpg,png,pdf] set figure format [default is svg] -sav save figure and quit DEFAULTS FILE: magic_measurements.txt IND: first SPEC: step through one by one """ cont, FTinit, BTinit, k = "", 0, 0, 0 meas_file = "magic_measurements.txt" spec = "" Tind, cont = 0, "" EXP = "" fmt = 'svg' # default image type for saving plot = 0 if '-h' in sys.argv: print(main.__doc__) sys.exit() if '-i' in sys.argv: fname = input( "Input magic_measurements file name? [magic_measurements.txt] ") if fname != "": meas_file = fname if '-e' in sys.argv: ind = sys.argv.index('-e') EXP = sys.argv[ind+1] if '-f' in sys.argv: ind = sys.argv.index('-f') meas_file = sys.argv[ind+1] if '-T' in sys.argv: ind = sys.argv.index('-T') Tind = int(sys.argv[ind+1]) if '-fmt' in sys.argv: ind = sys.argv.index('-fmt') fmt = sys.argv[ind+1] if '-sav' in sys.argv: plot = 1 # meas_data, file_type = pmag.magic_read(meas_file) # # get list of unique experiment names # # initialize some variables (a continuation flag, plot initialization flags and the experiment counter experiment_names = [] for rec in meas_data: if rec['magic_experiment_name'] not in experiment_names: experiment_names.append(rec['magic_experiment_name']) # # hunt through by experiment name if EXP != "": try: k = experiment_names.index(EXP) except: print("Bad experiment name") sys.exit() while k < len(experiment_names): e = experiment_names[k] if EXP == "": print(e, k+1, 'out of ', len(experiment_names)) # # initialize lists of data, susceptibility, temperature, frequency and field X, T, F, B = [], [], [], [] for rec in meas_data: methcodes = rec['magic_method_codes'] meths = methcodes.strip().split(':') if rec['magic_experiment_name'] == e and "LP-X" in meths: # looking for chi measurement if 'measurement_temp' not in list(rec.keys()): rec['measurement_temp'] = '300' # set defaults if 'measurement_freq' not in list(rec.keys()): rec['measurement_freq'] = '0' # set defaults if 'measurement_lab_field_ac' not in list(rec.keys()): rec['measurement_lab_field_ac'] = '0' # set default if 'measurement_x' in rec.keys(): # backward compatibility X.append(float(rec['measurement_x'])) else: # data model 2.5 X.append(float(rec['measurement_chi_volume'])) T.append(float(rec['measurement_temp'])) F.append(float(rec['measurement_freq'])) B.append(float(rec['measurement_lab_field_ac'])) # # get unique list of Ts,Fs, and Bs # Ts, Fs, Bs = [], [], [] for k in range(len(X)): # hunt through all the measurements if T[k] not in Ts: Ts.append(T[k]) # append if not in list if F[k] not in Fs: Fs.append(F[k]) if B[k] not in Bs: Bs.append(B[k]) Ts.sort() # sort list of temperatures, frequencies and fields Fs.sort() Bs.sort() if '-x' in sys.argv: k = len(experiment_names)+1 # just plot the one else: k += 1 # increment experiment number # # plot chi versus T and F holding B constant # plotnum = 1 # initialize plot number to 1 if len(X) > 2: # if there are any data to plot, continue b = Bs[-1] # keeping field constant and at maximum XTF = [] # initialize list of chi versus Temp and freq for f in Fs: # step through frequencies sequentially XT = [] # initialize list of chi versus temp for kk in range(len(X)): # hunt through all the data if F[kk] == f and B[kk] == b: # select data with given freq and field XT.append([X[kk], T[kk]]) # append to list XTF.append(XT) # append list to list of frequencies if len(XT) > 1: # if there are any temperature dependent data pmagplotlib.plot_init(plotnum, 5, 5) # initialize plot # call the plotting function pmagplotlib.plot_xtf(plotnum, XTF, Fs, e, b) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) # make it visible plotnum += 1 # increment plot number f = Fs[0] # set frequency to minimum XTB = [] # initialize list if chi versus Temp and field for b in Bs: # step through field values XT = [] # initial chi versus temp list for this field for kk in range(len(X)): # hunt through all the data if F[kk] == f and B[kk] == b: # select data with given freq and field XT.append([X[kk], T[kk]]) # append to list XTB.append(XT) if len(XT) > 1: # if there are any temperature dependent data pmagplotlib.plot_init(plotnum, 5, 5) # set up plot # call the plotting function pmagplotlib.plot_xtb(plotnum, XTB, Bs, e, f) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) plotnum += 1 # increment plot number if '-i' in sys.argv: for ind in range(len(Ts)): # print list of temperatures available print(ind, int(Ts[ind])) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == 'a': files = {} PLTS = {} for p in range(1, plotnum): key = str(p) files[key] = e+'_'+key+'.'+fmt PLTS[key] = key pmagplotlib.save_plots(PLTS, files) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == "": cont = 'q' while cont != "q": if '-i' in sys.argv: Tind = int(cont) # set temperature index b = Bs[-1] # set field to max available XF = [] # initial chi versus frequency list for kk in range(len(X)): # hunt through the data if T[kk] == Ts[Tind] and B[kk] == b: # if temperature and field match, XF.append([X[kk], F[kk]]) # append the data if len(XF) > 1: # if there are any data to plot if FTinit == 0: # if not already initialized, initialize plot # print 'initializing ',plotnum pmagplotlib.plot_init(plotnum, 5, 5) FTinit = 1 XFplot = plotnum plotnum += 1 # increment plotnum pmagplotlib.plot_xft(XFplot, XF, Ts[Tind], e, b) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) else: print( '\n *** Skipping susceptibitily-frequency plot as a function of temperature *** \n') f = Fs[0] # set frequency to minimum available XB = [] # initialize chi versus field list for kk in range(len(X)): # hunt through the data # if temperature and field match those desired if T[kk] == Ts[Tind] and F[kk] == f: XB.append([X[kk], B[kk]]) # append the data to list if len(XB) > 4: # if there are any data if BTinit == 0: # if plot not already initialized pmagplotlib.plot_init(plotnum, 5, 5) # do it BTinit = 1 # and call plotting function pmagplotlib.plot_xbt(plotnum, XB, Ts[Tind], e, f) if plot == 0: pmagplotlib.draw_figs({'fig': plotnum}) else: print( 'Skipping susceptibitily - AC field plot as a function of temperature') files = {} PLTS = {} for p in range(1, plotnum): key = str(p) files[key] = e+'_'+key+'.'+fmt PLTS[key] = p if '-i' in sys.argv: # just in case you forgot, print out a new list of temperatures for ind in range(len(Ts)): print(ind, int(Ts[ind])) # ask for new temp cont = input( "Enter index of next temperature step, s[a]ve plots, [return] to quit ") if cont == "": sys.exit() if cont == 'a': pmagplotlib.save_plots(PLTS, files) cont = input( "Enter index of desired temperature step, s[a]ve plots, [return] to quit ") if cont == "": sys.exit() elif plot == 0: ans = input( "enter s[a]ve to save files, [return] to quit ") if ans == 'a': pmagplotlib.save_plots(PLTS, files) sys.exit() else: sys.exit() else: pmagplotlib.save_plots(PLTS, files) sys.exit()
[ "def", "main", "(", ")", ":", "cont", ",", "FTinit", ",", "BTinit", ",", "k", "=", "\"\"", ",", "0", ",", "0", ",", "0", "meas_file", "=", "\"magic_measurements.txt\"", "spec", "=", "\"\"", "Tind", ",", "cont", "=", "0", ",", "\"\"", "EXP", "=", "\"\"", "fmt", "=", "'svg'", "# default image type for saving", "plot", "=", "0", "if", "'-h'", "in", "sys", ".", "argv", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "if", "'-i'", "in", "sys", ".", "argv", ":", "fname", "=", "input", "(", "\"Input magic_measurements file name? [magic_measurements.txt] \"", ")", "if", "fname", "!=", "\"\"", ":", "meas_file", "=", "fname", "if", "'-e'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-e'", ")", "EXP", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-f'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-f'", ")", "meas_file", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-T'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-T'", ")", "Tind", "=", "int", "(", "sys", ".", "argv", "[", "ind", "+", "1", "]", ")", "if", "'-fmt'", "in", "sys", ".", "argv", ":", "ind", "=", "sys", ".", "argv", ".", "index", "(", "'-fmt'", ")", "fmt", "=", "sys", ".", "argv", "[", "ind", "+", "1", "]", "if", "'-sav'", "in", "sys", ".", "argv", ":", "plot", "=", "1", "#", "meas_data", ",", "file_type", "=", "pmag", ".", "magic_read", "(", "meas_file", ")", "#", "# get list of unique experiment names", "#", "# initialize some variables (a continuation flag, plot initialization flags and the experiment counter", "experiment_names", "=", "[", "]", "for", "rec", "in", "meas_data", ":", "if", "rec", "[", "'magic_experiment_name'", "]", "not", "in", "experiment_names", ":", "experiment_names", ".", "append", "(", "rec", "[", "'magic_experiment_name'", "]", ")", "#", "# hunt through by experiment name", "if", "EXP", "!=", "\"\"", ":", "try", ":", "k", "=", "experiment_names", ".", "index", "(", "EXP", ")", "except", ":", "print", "(", "\"Bad experiment name\"", ")", "sys", ".", "exit", "(", ")", "while", "k", "<", "len", "(", "experiment_names", ")", ":", "e", "=", "experiment_names", "[", "k", "]", "if", "EXP", "==", "\"\"", ":", "print", "(", "e", ",", "k", "+", "1", ",", "'out of '", ",", "len", "(", "experiment_names", ")", ")", "#", "# initialize lists of data, susceptibility, temperature, frequency and field", "X", ",", "T", ",", "F", ",", "B", "=", "[", "]", ",", "[", "]", ",", "[", "]", ",", "[", "]", "for", "rec", "in", "meas_data", ":", "methcodes", "=", "rec", "[", "'magic_method_codes'", "]", "meths", "=", "methcodes", ".", "strip", "(", ")", ".", "split", "(", "':'", ")", "if", "rec", "[", "'magic_experiment_name'", "]", "==", "e", "and", "\"LP-X\"", "in", "meths", ":", "# looking for chi measurement", "if", "'measurement_temp'", "not", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "'measurement_temp'", "]", "=", "'300'", "# set defaults", "if", "'measurement_freq'", "not", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "'measurement_freq'", "]", "=", "'0'", "# set defaults", "if", "'measurement_lab_field_ac'", "not", "in", "list", "(", "rec", ".", "keys", "(", ")", ")", ":", "rec", "[", "'measurement_lab_field_ac'", "]", "=", "'0'", "# set default", "if", "'measurement_x'", "in", "rec", ".", "keys", "(", ")", ":", "# backward compatibility", "X", ".", "append", "(", "float", "(", "rec", "[", "'measurement_x'", "]", ")", ")", "else", ":", "# data model 2.5", "X", ".", "append", "(", "float", "(", "rec", "[", "'measurement_chi_volume'", "]", ")", ")", "T", ".", "append", "(", "float", "(", "rec", "[", "'measurement_temp'", "]", ")", ")", "F", ".", "append", "(", "float", "(", "rec", "[", "'measurement_freq'", "]", ")", ")", "B", ".", "append", "(", "float", "(", "rec", "[", "'measurement_lab_field_ac'", "]", ")", ")", "#", "# get unique list of Ts,Fs, and Bs", "#", "Ts", ",", "Fs", ",", "Bs", "=", "[", "]", ",", "[", "]", ",", "[", "]", "for", "k", "in", "range", "(", "len", "(", "X", ")", ")", ":", "# hunt through all the measurements", "if", "T", "[", "k", "]", "not", "in", "Ts", ":", "Ts", ".", "append", "(", "T", "[", "k", "]", ")", "# append if not in list", "if", "F", "[", "k", "]", "not", "in", "Fs", ":", "Fs", ".", "append", "(", "F", "[", "k", "]", ")", "if", "B", "[", "k", "]", "not", "in", "Bs", ":", "Bs", ".", "append", "(", "B", "[", "k", "]", ")", "Ts", ".", "sort", "(", ")", "# sort list of temperatures, frequencies and fields", "Fs", ".", "sort", "(", ")", "Bs", ".", "sort", "(", ")", "if", "'-x'", "in", "sys", ".", "argv", ":", "k", "=", "len", "(", "experiment_names", ")", "+", "1", "# just plot the one", "else", ":", "k", "+=", "1", "# increment experiment number", "#", "# plot chi versus T and F holding B constant", "#", "plotnum", "=", "1", "# initialize plot number to 1", "if", "len", "(", "X", ")", ">", "2", ":", "# if there are any data to plot, continue", "b", "=", "Bs", "[", "-", "1", "]", "# keeping field constant and at maximum", "XTF", "=", "[", "]", "# initialize list of chi versus Temp and freq", "for", "f", "in", "Fs", ":", "# step through frequencies sequentially", "XT", "=", "[", "]", "# initialize list of chi versus temp", "for", "kk", "in", "range", "(", "len", "(", "X", ")", ")", ":", "# hunt through all the data", "if", "F", "[", "kk", "]", "==", "f", "and", "B", "[", "kk", "]", "==", "b", ":", "# select data with given freq and field", "XT", ".", "append", "(", "[", "X", "[", "kk", "]", ",", "T", "[", "kk", "]", "]", ")", "# append to list", "XTF", ".", "append", "(", "XT", ")", "# append list to list of frequencies", "if", "len", "(", "XT", ")", ">", "1", ":", "# if there are any temperature dependent data", "pmagplotlib", ".", "plot_init", "(", "plotnum", ",", "5", ",", "5", ")", "# initialize plot", "# call the plotting function", "pmagplotlib", ".", "plot_xtf", "(", "plotnum", ",", "XTF", ",", "Fs", ",", "e", ",", "b", ")", "if", "plot", "==", "0", ":", "pmagplotlib", ".", "draw_figs", "(", "{", "'fig'", ":", "plotnum", "}", ")", "# make it visible", "plotnum", "+=", "1", "# increment plot number", "f", "=", "Fs", "[", "0", "]", "# set frequency to minimum", "XTB", "=", "[", "]", "# initialize list if chi versus Temp and field", "for", "b", "in", "Bs", ":", "# step through field values", "XT", "=", "[", "]", "# initial chi versus temp list for this field", "for", "kk", "in", "range", "(", "len", "(", "X", ")", ")", ":", "# hunt through all the data", "if", "F", "[", "kk", "]", "==", "f", "and", "B", "[", "kk", "]", "==", "b", ":", "# select data with given freq and field", "XT", ".", "append", "(", "[", "X", "[", "kk", "]", ",", "T", "[", "kk", "]", "]", ")", "# append to list", "XTB", ".", "append", "(", "XT", ")", "if", "len", "(", "XT", ")", ">", "1", ":", "# if there are any temperature dependent data", "pmagplotlib", ".", "plot_init", "(", "plotnum", ",", "5", ",", "5", ")", "# set up plot", "# call the plotting function", "pmagplotlib", ".", "plot_xtb", "(", "plotnum", ",", "XTB", ",", "Bs", ",", "e", ",", "f", ")", "if", "plot", "==", "0", ":", "pmagplotlib", ".", "draw_figs", "(", "{", "'fig'", ":", "plotnum", "}", ")", "plotnum", "+=", "1", "# increment plot number", "if", "'-i'", "in", "sys", ".", "argv", ":", "for", "ind", "in", "range", "(", "len", "(", "Ts", ")", ")", ":", "# print list of temperatures available", "print", "(", "ind", ",", "int", "(", "Ts", "[", "ind", "]", ")", ")", "cont", "=", "input", "(", "\"Enter index of desired temperature step, s[a]ve plots, [return] to quit \"", ")", "if", "cont", "==", "'a'", ":", "files", "=", "{", "}", "PLTS", "=", "{", "}", "for", "p", "in", "range", "(", "1", ",", "plotnum", ")", ":", "key", "=", "str", "(", "p", ")", "files", "[", "key", "]", "=", "e", "+", "'_'", "+", "key", "+", "'.'", "+", "fmt", "PLTS", "[", "key", "]", "=", "key", "pmagplotlib", ".", "save_plots", "(", "PLTS", ",", "files", ")", "cont", "=", "input", "(", "\"Enter index of desired temperature step, s[a]ve plots, [return] to quit \"", ")", "if", "cont", "==", "\"\"", ":", "cont", "=", "'q'", "while", "cont", "!=", "\"q\"", ":", "if", "'-i'", "in", "sys", ".", "argv", ":", "Tind", "=", "int", "(", "cont", ")", "# set temperature index", "b", "=", "Bs", "[", "-", "1", "]", "# set field to max available", "XF", "=", "[", "]", "# initial chi versus frequency list", "for", "kk", "in", "range", "(", "len", "(", "X", ")", ")", ":", "# hunt through the data", "if", "T", "[", "kk", "]", "==", "Ts", "[", "Tind", "]", "and", "B", "[", "kk", "]", "==", "b", ":", "# if temperature and field match,", "XF", ".", "append", "(", "[", "X", "[", "kk", "]", ",", "F", "[", "kk", "]", "]", ")", "# append the data", "if", "len", "(", "XF", ")", ">", "1", ":", "# if there are any data to plot", "if", "FTinit", "==", "0", ":", "# if not already initialized, initialize plot", "# print 'initializing ',plotnum", "pmagplotlib", ".", "plot_init", "(", "plotnum", ",", "5", ",", "5", ")", "FTinit", "=", "1", "XFplot", "=", "plotnum", "plotnum", "+=", "1", "# increment plotnum", "pmagplotlib", ".", "plot_xft", "(", "XFplot", ",", "XF", ",", "Ts", "[", "Tind", "]", ",", "e", ",", "b", ")", "if", "plot", "==", "0", ":", "pmagplotlib", ".", "draw_figs", "(", "{", "'fig'", ":", "plotnum", "}", ")", "else", ":", "print", "(", "'\\n *** Skipping susceptibitily-frequency plot as a function of temperature *** \\n'", ")", "f", "=", "Fs", "[", "0", "]", "# set frequency to minimum available", "XB", "=", "[", "]", "# initialize chi versus field list", "for", "kk", "in", "range", "(", "len", "(", "X", ")", ")", ":", "# hunt through the data", "# if temperature and field match those desired", "if", "T", "[", "kk", "]", "==", "Ts", "[", "Tind", "]", "and", "F", "[", "kk", "]", "==", "f", ":", "XB", ".", "append", "(", "[", "X", "[", "kk", "]", ",", "B", "[", "kk", "]", "]", ")", "# append the data to list", "if", "len", "(", "XB", ")", ">", "4", ":", "# if there are any data", "if", "BTinit", "==", "0", ":", "# if plot not already initialized", "pmagplotlib", ".", "plot_init", "(", "plotnum", ",", "5", ",", "5", ")", "# do it", "BTinit", "=", "1", "# and call plotting function", "pmagplotlib", ".", "plot_xbt", "(", "plotnum", ",", "XB", ",", "Ts", "[", "Tind", "]", ",", "e", ",", "f", ")", "if", "plot", "==", "0", ":", "pmagplotlib", ".", "draw_figs", "(", "{", "'fig'", ":", "plotnum", "}", ")", "else", ":", "print", "(", "'Skipping susceptibitily - AC field plot as a function of temperature'", ")", "files", "=", "{", "}", "PLTS", "=", "{", "}", "for", "p", "in", "range", "(", "1", ",", "plotnum", ")", ":", "key", "=", "str", "(", "p", ")", "files", "[", "key", "]", "=", "e", "+", "'_'", "+", "key", "+", "'.'", "+", "fmt", "PLTS", "[", "key", "]", "=", "p", "if", "'-i'", "in", "sys", ".", "argv", ":", "# just in case you forgot, print out a new list of temperatures", "for", "ind", "in", "range", "(", "len", "(", "Ts", ")", ")", ":", "print", "(", "ind", ",", "int", "(", "Ts", "[", "ind", "]", ")", ")", "# ask for new temp", "cont", "=", "input", "(", "\"Enter index of next temperature step, s[a]ve plots, [return] to quit \"", ")", "if", "cont", "==", "\"\"", ":", "sys", ".", "exit", "(", ")", "if", "cont", "==", "'a'", ":", "pmagplotlib", ".", "save_plots", "(", "PLTS", ",", "files", ")", "cont", "=", "input", "(", "\"Enter index of desired temperature step, s[a]ve plots, [return] to quit \"", ")", "if", "cont", "==", "\"\"", ":", "sys", ".", "exit", "(", ")", "elif", "plot", "==", "0", ":", "ans", "=", "input", "(", "\"enter s[a]ve to save files, [return] to quit \"", ")", "if", "ans", "==", "'a'", ":", "pmagplotlib", ".", "save_plots", "(", "PLTS", ",", "files", ")", "sys", ".", "exit", "(", ")", "else", ":", "sys", ".", "exit", "(", ")", "else", ":", "pmagplotlib", ".", "save_plots", "(", "PLTS", ",", "files", ")", "sys", ".", "exit", "(", ")" ]
NAME chi_magic.py DESCRIPTION plots magnetic susceptibility as a function of frequency and temperature and AC field SYNTAX chi_magic.py [command line options] OPTIONS -h prints help message and quits -i allows interactive setting of FILE and temperature step -f FILE, specify magic_measurements format file -T IND, specify temperature step to plot -e EXP, specify experiment name to plot -fmt [svg,jpg,png,pdf] set figure format [default is svg] -sav save figure and quit DEFAULTS FILE: magic_measurements.txt IND: first SPEC: step through one by one
[ "NAME", "chi_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/chi_magic2.py#L10-L247
train
NAME is the main function of the chi_magic. py script.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(48) + chr(378 - 267) + '\063' + chr(0b110000), 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001 + 0o1) + chr(373 - 318) + chr(55), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + '\062' + '\066' + chr(49), 52801 - 52793), nzTpIcepk0o8(chr(48) + '\157' + chr(2674 - 2620), 37141 - 37133), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\063' + chr(0b110110) + chr(0b110010), 20667 - 20659), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b111 + 0o53) + '\067', 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110011) + '\060' + '\x33', 0o10), nzTpIcepk0o8('\060' + chr(111) + chr(0b110110) + chr(0b101100 + 0o11), 0b1000), nzTpIcepk0o8(chr(807 - 759) + '\157' + chr(441 - 391) + chr(0b101 + 0o61), ord("\x08")), nzTpIcepk0o8('\060' + chr(7676 - 7565) + chr(50) + chr(1806 - 1754) + chr(0b110001), 0o10), nzTpIcepk0o8('\x30' + '\x6f' + '\061' + '\x35', ord("\x08")), nzTpIcepk0o8(chr(66 - 18) + '\157' + chr(50) + chr(52) + chr(0b10100 + 0o36), 0b1000), nzTpIcepk0o8(chr(0b100100 + 0o14) + chr(0b110 + 0o151) + '\x32' + chr(54) + chr(970 - 916), 0b1000), nzTpIcepk0o8(chr(1420 - 1372) + chr(3085 - 2974) + chr(0b100110 + 0o17) + '\067', 46237 - 46229), nzTpIcepk0o8(chr(1864 - 1816) + chr(111) + '\x31' + chr(0b11 + 0o64) + '\063', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110111) + '\x30', ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b101000 + 0o13) + '\065' + chr(2293 - 2243), ord("\x08")), nzTpIcepk0o8(chr(0b1100 + 0o44) + '\157' + '\x33' + chr(0b101000 + 0o14), 0o10), nzTpIcepk0o8(chr(1494 - 1446) + chr(2101 - 1990) + chr(55) + chr(0b110001), 0b1000), nzTpIcepk0o8('\x30' + '\157' + '\x32' + chr(513 - 459) + chr(668 - 619), 8), nzTpIcepk0o8(chr(1835 - 1787) + chr(11179 - 11068) + '\062' + '\x35' + chr(2831 - 2777), 13351 - 13343), nzTpIcepk0o8('\060' + chr(0b10001 + 0o136) + '\061' + '\x37' + '\x37', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(11772 - 11661) + '\067', 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + '\x32' + chr(54), 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(50) + chr(1758 - 1709) + chr(758 - 705), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110101) + '\067', 8), nzTpIcepk0o8('\x30' + chr(111) + '\x31' + chr(0b11100 + 0o33), 0b1000), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110000 + 0o1) + chr(50) + chr(1672 - 1621), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(50) + chr(0b11101 + 0o23) + chr(52), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + chr(49) + '\060' + chr(1643 - 1594), ord("\x08")), nzTpIcepk0o8(chr(62 - 14) + chr(0b1010001 + 0o36) + '\x31' + '\067' + '\064', 0b1000), nzTpIcepk0o8('\x30' + chr(9856 - 9745) + '\062' + chr(0b110110 + 0o0) + chr(48), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b100010 + 0o24) + '\x32', 0b1000), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\062' + chr(548 - 500) + '\x36', 38776 - 38768), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\062' + chr(1112 - 1063) + chr(2119 - 2070), 8631 - 8623), nzTpIcepk0o8(chr(1196 - 1148) + '\157' + chr(50) + chr(53) + '\x37', 38356 - 38348), nzTpIcepk0o8(chr(48) + chr(111) + chr(2213 - 2162) + chr(0b10111 + 0o31) + chr(0b110001), 0o10), nzTpIcepk0o8('\060' + '\157' + chr(0b110011) + chr(51) + '\x32', 0b1000), nzTpIcepk0o8('\060' + chr(9011 - 8900) + chr(0b1 + 0o62) + chr(0b110000) + '\x35', ord("\x08")), nzTpIcepk0o8(chr(48) + '\x6f' + chr(1463 - 1412) + chr(0b110001) + '\067', 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b110101) + '\x30', 0o10)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'6'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(0b110100 + 0o60) + chr(0b110111 + 0o56))(chr(117) + '\164' + chr(0b1100110) + chr(0b101101) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): (iEp7RVc3AijG, P2nn0RAGKoWA, FFyEPaPndl2I, B6UAF1zReOyJ) = (roI3spqORKae(ES5oEprVxulp(b''), chr(0b1010110 + 0o16) + chr(0b111110 + 0o47) + chr(6095 - 5996) + chr(9530 - 9419) + chr(0b1100100) + chr(7157 - 7056))('\165' + chr(116) + chr(102) + chr(1963 - 1918) + chr(0b111000)), nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b110000), 50002 - 49994), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(111) + '\x30', 8), nzTpIcepk0o8('\060' + chr(5466 - 5355) + chr(1479 - 1431), 8)) rHPU8oONrR4n = roI3spqORKae(ES5oEprVxulp(b'u\xde\xd6o\x91H\xaePw\xd2x\xd0\xd3B\x1e\x16\x9eo\x17\xc5\xd6\x0b'), chr(0b10000 + 0o124) + '\x65' + '\143' + chr(4428 - 4317) + '\144' + '\145')(chr(0b1110101) + chr(116) + chr(0b1100110) + '\x2d' + '\x38') L66BkZPPV93j = roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(0b1100101) + '\143' + chr(6384 - 6273) + chr(0b101100 + 0o70) + chr(101))(chr(1559 - 1442) + chr(116) + chr(0b101010 + 0o74) + '\x2d' + chr(0b101010 + 0o16)) (yvoNkTAEw3kV, iEp7RVc3AijG) = (nzTpIcepk0o8(chr(80 - 32) + chr(0b1100010 + 0o15) + chr(0b110000), 8), roI3spqORKae(ES5oEprVxulp(b''), chr(3041 - 2941) + chr(0b1011011 + 0o12) + chr(1634 - 1535) + '\157' + '\x64' + chr(565 - 464))(chr(0b1001110 + 0o47) + chr(116) + '\146' + '\055' + chr(0b111000))) JWEo7uQK63lh = roI3spqORKae(ES5oEprVxulp(b''), chr(812 - 712) + chr(0b1000001 + 0o44) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1100101))(chr(5440 - 5323) + chr(0b1000101 + 0o57) + chr(0b1100110) + chr(0b1 + 0o54) + chr(0b10 + 0o66)) JummcHpaNLEw = roI3spqORKae(ES5oEprVxulp(b'k\xc9\xd6'), '\144' + '\x65' + chr(0b1000101 + 0o36) + chr(7985 - 7874) + '\x64' + chr(0b1100101))(chr(0b101000 + 0o115) + '\x74' + chr(0b1100110) + chr(45) + chr(56)) mocO8sWgkzH7 = nzTpIcepk0o8(chr(48) + chr(0b1101111) + '\060', 8) if roI3spqORKae(ES5oEprVxulp(b'5\xd7'), '\144' + '\145' + chr(9784 - 9685) + chr(0b1101111) + chr(9154 - 9054) + chr(0b1100101))('\x75' + '\164' + '\x66' + chr(0b100 + 0o51) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(0b1100100) + chr(101) + '\x63' + '\x6f' + chr(100) + '\145')(chr(0b1110101) + '\x74' + '\146' + '\055' + '\x38')): v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'a\xd9\xf4c\x83F\xaa`y\xd0Z\xf6'), '\x64' + '\145' + chr(0b1100011) + chr(0b1101111) + '\144' + '\145')(chr(0b100001 + 0o124) + '\164' + chr(102) + chr(0b101101) + chr(0b111000)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), '\144' + '\145' + chr(0b1100011) + chr(0b101110 + 0o101) + '\144' + '\145')(chr(2769 - 2652) + '\164' + chr(0b1100110) + chr(990 - 945) + chr(0b111000)))() if roI3spqORKae(ES5oEprVxulp(b'5\xd6'), '\144' + '\145' + chr(99) + chr(0b1010000 + 0o37) + chr(0b111001 + 0o53) + '\x65')('\x75' + '\x74' + chr(102) + chr(0b101101) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(100) + chr(0b11010 + 0o113) + '\x63' + chr(0b11101 + 0o122) + chr(5017 - 4917) + chr(0b11010 + 0o113))(chr(0b101110 + 0o107) + chr(0b1101011 + 0o11) + chr(102) + chr(0b11110 + 0o17) + '\x38')): jXqxEQuu_5DD = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'Q\xd1\xc1s\x867\xaeTq\xc8n\xfd\xdbJ\x1a\x0b\x9fn\\\xdc\xcb\x11s%\xadIf?\xe1a\x12\xd1_\xe3\xb6\x8f\x9a\xb7\xa4\xa8q\xdc\xeek\x97v\xb0@d\xc4`\xc7\xd8[\x08V\x9edM\xec\x8e_'), chr(100) + chr(0b1100101) + '\143' + '\x6f' + '\x64' + '\145')(chr(117) + '\164' + chr(102) + '\055' + chr(56))) if jXqxEQuu_5DD != roI3spqORKae(ES5oEprVxulp(b''), chr(100) + '\x65' + chr(9651 - 9552) + '\x6f' + chr(3516 - 3416) + chr(101))('\x75' + chr(11016 - 10900) + chr(7616 - 7514) + '\x2d' + chr(0b111000)): rHPU8oONrR4n = jXqxEQuu_5DD if roI3spqORKae(ES5oEprVxulp(b'5\xda'), chr(3874 - 3774) + chr(0b11101 + 0o110) + chr(8504 - 8405) + chr(0b1101111) + '\144' + chr(1135 - 1034))(chr(3947 - 3830) + '\x74' + chr(0b1000011 + 0o43) + chr(263 - 218) + chr(0b1111 + 0o51)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), '\x64' + chr(0b1001 + 0o134) + chr(99) + chr(111) + '\x64' + '\145')(chr(0b1110101) + '\164' + chr(2413 - 2311) + chr(1312 - 1267) + '\070')): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'5\xda'), '\144' + '\145' + chr(4870 - 4771) + chr(0b1100001 + 0o16) + '\x64' + chr(101))(chr(0b1110101) + chr(0b1110100) + chr(0b11011 + 0o113) + '\055' + chr(56))) JWEo7uQK63lh = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(48) + chr(0b1010001 + 0o36) + chr(49), ord("\x08"))] if roI3spqORKae(ES5oEprVxulp(b'5\xd9'), '\144' + '\x65' + '\143' + '\157' + '\x64' + chr(0b1100101))(chr(117) + chr(0b1110100) + '\146' + chr(45) + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(0b10111 + 0o115) + '\145' + '\x63' + chr(111) + chr(7478 - 7378) + chr(101))('\x75' + '\x74' + chr(0b1100110) + chr(0b10110 + 0o27) + chr(0b1 + 0o67))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'5\xd9'), '\144' + '\x65' + '\143' + '\x6f' + chr(5943 - 5843) + chr(0b1100101))(chr(0b1110101) + chr(116) + '\146' + chr(45) + chr(56))) rHPU8oONrR4n = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8('\x30' + chr(9657 - 9546) + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'5\xeb'), chr(100) + '\145' + chr(99) + chr(111) + '\x64' + '\x65')(chr(0b1110000 + 0o5) + chr(0b1110100) + '\146' + chr(561 - 516) + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(0b1100100) + '\145' + chr(99) + chr(0b1010000 + 0o37) + '\x64' + chr(101))(chr(1943 - 1826) + '\164' + '\146' + chr(45) + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'5\xeb'), chr(0b1010110 + 0o16) + '\x65' + chr(0b1011110 + 0o5) + chr(0b1101111) + chr(2268 - 2168) + chr(0b110110 + 0o57))(chr(12735 - 12618) + chr(0b1110100) + '\146' + chr(0b100010 + 0o13) + chr(0b111000))) yvoNkTAEw3kV = nzTpIcepk0o8(bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(1586 - 1538) + chr(0b1101111) + '\061', 8)]) if roI3spqORKae(ES5oEprVxulp(b'5\xd9\xdcr'), chr(5107 - 5007) + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(9900 - 9799))(chr(0b1110101) + '\x74' + '\146' + '\055' + '\x38') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), '\144' + chr(7646 - 7545) + chr(3899 - 3800) + chr(111) + '\x64' + '\145')('\x75' + '\x74' + chr(0b1111 + 0o127) + chr(45) + chr(56))): w5vcgUzFN3bF = bpyfpu4kTbwL.argv.ZpfN5tSLaZze(roI3spqORKae(ES5oEprVxulp(b'5\xd9\xdcr'), '\x64' + chr(7105 - 7004) + chr(6140 - 6041) + chr(111) + chr(8963 - 8863) + chr(101))('\165' + chr(116) + chr(102) + chr(0b11000 + 0o25) + chr(0b111000))) JummcHpaNLEw = bpyfpu4kTbwL.ajIDWyXMBa3b[w5vcgUzFN3bF + nzTpIcepk0o8(chr(0b11 + 0o55) + '\157' + chr(0b110001), 8)] if roI3spqORKae(ES5oEprVxulp(b'5\xcc\xd0p'), chr(3228 - 3128) + chr(0b1100101) + chr(0b1100011) + '\157' + chr(0b1100100) + chr(101))(chr(0b101110 + 0o107) + '\x74' + '\x66' + '\055' + chr(0b111000)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(0b1010000 + 0o24) + chr(101) + chr(0b1100000 + 0o3) + '\157' + '\x64' + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b1100110) + chr(45) + chr(0b110 + 0o62))): mocO8sWgkzH7 = nzTpIcepk0o8(chr(0b10111 + 0o31) + chr(7657 - 7546) + '\061', 8) (wx5Y9SFJEaEM, mWsDpG3yRGLz) = hUcsWwAd0nE_.magic_read(rHPU8oONrR4n) gt6ao1JZFMmK = [] for FKO_XxLfWbYt in wx5Y9SFJEaEM: if FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xde\xd6o\x91H\xa6Mf\xc4\x7f\xcb\xdbJ\x15\x0c\xb5rX\xdc\xcb'), chr(0b1001011 + 0o31) + chr(0b100 + 0o141) + chr(99) + '\157' + '\144' + chr(101))('\x75' + chr(7589 - 7473) + chr(0b11010 + 0o114) + chr(0b101101) + chr(0b111000))] not in gt6ao1JZFMmK: roI3spqORKae(gt6ao1JZFMmK, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b1100100) + chr(0b1100101) + '\x63' + chr(11345 - 11234) + '\144' + chr(0b1100101))(chr(6266 - 6149) + '\x74' + '\x66' + chr(0b101101) + chr(2518 - 2462)))(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xde\xd6o\x91H\xa6Mf\xc4\x7f\xcb\xdbJ\x15\x0c\xb5rX\xdc\xcb'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(100) + '\145')(chr(117) + chr(3753 - 3637) + '\146' + chr(0b101101) + chr(0b111000))]) if JWEo7uQK63lh != roI3spqORKae(ES5oEprVxulp(b''), chr(9991 - 9891) + chr(0b1001010 + 0o33) + chr(2696 - 2597) + chr(0b1101111) + chr(8967 - 8867) + '\145')('\165' + chr(0b1110100) + '\x66' + '\x2d' + chr(56)): try: B6UAF1zReOyJ = gt6ao1JZFMmK.ZpfN5tSLaZze(JWEo7uQK63lh) except UtiWT6f6p9yZ: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'Z\xde\xd5&\x97o\xb3Pd\xc8`\xc7\xd8[[\x16\x8bq\\'), chr(0b110001 + 0o63) + chr(0b1100101) + chr(1062 - 963) + '\157' + '\144' + '\x65')(chr(0b1110001 + 0o4) + chr(0b100100 + 0o120) + '\146' + chr(0b100110 + 0o7) + chr(56))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), chr(599 - 499) + chr(0b1100101) + '\x63' + chr(0b1101111) + chr(100) + chr(0b1100101))(chr(117) + chr(0b1110100) + chr(7062 - 6960) + chr(45) + chr(2464 - 2408)))() while B6UAF1zReOyJ < ftfygxgFas5X(gt6ao1JZFMmK): wgf0sgcu_xPL = gt6ao1JZFMmK[B6UAF1zReOyJ] if JWEo7uQK63lh == roI3spqORKae(ES5oEprVxulp(b''), '\x64' + chr(101) + chr(0b10010 + 0o121) + '\x6f' + '\x64' + chr(10185 - 10084))(chr(4574 - 4457) + '\x74' + chr(102) + chr(1709 - 1664) + chr(0b111000)): v8jsMqaYV6U2(wgf0sgcu_xPL, B6UAF1zReOyJ + nzTpIcepk0o8(chr(48) + '\157' + chr(49), 8), roI3spqORKae(ES5oEprVxulp(b'w\xca\xc5&\x9dq\xe3'), chr(100) + '\145' + chr(99) + chr(4537 - 4426) + chr(0b1010010 + 0o22) + chr(0b10100 + 0o121))(chr(10733 - 10616) + '\164' + '\146' + chr(0b100100 + 0o11) + chr(464 - 408)), ftfygxgFas5X(gt6ao1JZFMmK)) (mxhyDqTAMpMC, hq6XE4_Nhd6R, GsKhodujj4DP, TQ0u0KgwFXN5) = ([], [], [], []) for FKO_XxLfWbYt in wx5Y9SFJEaEM: ayTBaXkHW6dY = FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xde\xd6o\x91H\xaePb\xc9b\xc6\xe9L\x14\x1c\x8fo'), chr(0b1100100) + chr(0b11111 + 0o106) + '\143' + '\157' + chr(100) + chr(0b1100101))(chr(0b1110101) + '\164' + chr(0b110111 + 0o57) + chr(0b1001 + 0o44) + '\070')] I810oeGL0u1g = ayTBaXkHW6dY.strip().LfRrQOxuDvnC(roI3spqORKae(ES5oEprVxulp(b'"'), '\144' + '\x65' + '\143' + chr(111) + chr(0b110110 + 0o56) + chr(101))(chr(4423 - 4306) + '\164' + chr(0b101100 + 0o72) + '\x2d' + chr(0b111000))) if FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xde\xd6o\x91H\xa6Mf\xc4\x7f\xcb\xdbJ\x15\x0c\xb5rX\xdc\xcb'), chr(5532 - 5432) + chr(3477 - 3376) + chr(99) + chr(1951 - 1840) + chr(0b1100100) + chr(0b100111 + 0o76))(chr(117) + '\x74' + '\x66' + chr(0b101101) + chr(413 - 357))] == wgf0sgcu_xPL and roI3spqORKae(ES5oEprVxulp(b'T\xef\x9c^'), chr(0b110010 + 0o62) + chr(101) + '\143' + '\157' + '\144' + chr(6559 - 6458))('\165' + chr(1100 - 984) + chr(102) + chr(0b101101) + '\x38') in I810oeGL0u1g: if roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xc2J\x16\x08'), chr(100) + chr(2692 - 2591) + chr(0b1100011) + '\157' + chr(100) + chr(101))('\165' + chr(0b1001100 + 0o50) + '\x66' + chr(1060 - 1015) + '\070') not in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b's\xda\xc8u'), chr(5095 - 4995) + chr(0b1100101) + chr(0b1100011) + chr(9178 - 9067) + chr(0b1000010 + 0o42) + chr(0b1100101))(chr(9079 - 8962) + chr(0b1011101 + 0o27) + '\146' + chr(0b10001 + 0o34) + '\070'))()): FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xc2J\x16\x08'), chr(100) + '\145' + chr(0b111001 + 0o52) + chr(10922 - 10811) + '\x64' + chr(5025 - 4924))(chr(568 - 451) + chr(0b1110100) + chr(9567 - 9465) + '\x2d' + chr(3034 - 2978))] = roI3spqORKae(ES5oEprVxulp(b'+\x8f\x81'), chr(2603 - 2503) + chr(0b1100101) + chr(0b1010100 + 0o17) + chr(11903 - 11792) + chr(0b1100100) + chr(0b110101 + 0o60))(chr(0b1110101) + chr(116) + '\146' + chr(0b100000 + 0o15) + chr(391 - 335)) if roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xd0]\x1e\t'), chr(0b1001101 + 0o27) + '\x65' + '\x63' + chr(0b1101111) + chr(100) + '\x65')(chr(2829 - 2712) + chr(11703 - 11587) + '\146' + chr(1809 - 1764) + chr(56)) not in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b's\xda\xc8u'), '\x64' + chr(1979 - 1878) + chr(5652 - 5553) + chr(0b1101111) + chr(100) + '\x65')('\x75' + chr(0b1000111 + 0o55) + '\146' + '\x2d' + '\070'))()): FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xd0]\x1e\t'), '\144' + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b111111 + 0o45) + chr(0b1100 + 0o131))('\x75' + '\164' + chr(0b1100110) + '\055' + chr(0b100000 + 0o30))] = roI3spqORKae(ES5oEprVxulp(b'('), chr(0b11001 + 0o113) + '\x65' + chr(0b111110 + 0o45) + '\x6f' + '\x64' + '\x65')('\165' + chr(116) + '\146' + '\x2d' + chr(0b111000)) if roI3spqORKae(ES5oEprVxulp(b"u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xdaN\x19'\x8cu\\\xdd\xca f5"), chr(0b1100100) + '\145' + chr(481 - 382) + chr(111) + '\x64' + chr(6334 - 6233))(chr(117) + '\x74' + chr(5480 - 5378) + '\055' + '\x38') not in H4NoA26ON7iG(roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b's\xda\xc8u'), chr(100) + chr(0b1100101) + chr(0b1100011) + chr(1811 - 1700) + chr(0b101011 + 0o71) + '\145')(chr(0b1110101) + chr(12157 - 12041) + chr(0b1100110) + chr(0b11110 + 0o17) + '\x38'))()): FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b"u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xdaN\x19'\x8cu\\\xdd\xca f5"), chr(0b1100100) + chr(0b1111 + 0o126) + '\x63' + chr(111) + '\x64' + '\x65')('\x75' + chr(0b1110100) + chr(0b1100110) + '\055' + '\070')] = roI3spqORKae(ES5oEprVxulp(b'('), chr(7192 - 7092) + chr(101) + '\143' + chr(11238 - 11127) + '\144' + '\145')('\x75' + chr(116) + '\x66' + '\x2d' + chr(208 - 152)) if roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xce'), '\x64' + chr(1670 - 1569) + chr(0b100100 + 0o77) + chr(111) + chr(0b101111 + 0o65) + '\x65')('\165' + chr(0b1101011 + 0o11) + chr(5770 - 5668) + chr(0b101101) + chr(0b11001 + 0o37)) in roI3spqORKae(FKO_XxLfWbYt, roI3spqORKae(ES5oEprVxulp(b's\xda\xc8u'), chr(2095 - 1995) + chr(0b1111 + 0o126) + chr(99) + chr(0b1011000 + 0o27) + chr(100) + chr(101))(chr(117) + chr(0b1110100) + chr(0b11011 + 0o113) + '\x2d' + chr(0b110011 + 0o5)))(): roI3spqORKae(mxhyDqTAMpMC, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b101011 + 0o71) + '\145' + '\143' + chr(111) + chr(3147 - 3047) + chr(0b1100101))('\x75' + '\164' + chr(0b1011011 + 0o13) + chr(1462 - 1417) + '\070'))(jLW6pRf2DSRk(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xce'), '\144' + chr(9218 - 9117) + chr(0b1100011) + '\x6f' + '\x64' + chr(0b1000110 + 0o37))('\165' + '\x74' + '\x66' + chr(0b101101) + '\x38')])) else: roI3spqORKae(mxhyDqTAMpMC, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), '\144' + chr(0b1100101) + chr(0b11011 + 0o110) + '\x6f' + chr(7358 - 7258) + '\145')(chr(0b1110101) + chr(12482 - 12366) + chr(2018 - 1916) + chr(45) + chr(0b111000)))(jLW6pRf2DSRk(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b"u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xd5G\x12'\x9csU\xc4\xc3\x1a"), chr(8577 - 8477) + chr(0b10001 + 0o124) + chr(5234 - 5135) + chr(0b1101111) + '\x64' + '\x65')(chr(0b1110101) + chr(0b101110 + 0o106) + chr(0b1100110) + chr(0b101101) + chr(936 - 880))])) roI3spqORKae(hq6XE4_Nhd6R, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b110101 + 0o57) + chr(0b1100101) + chr(0b1 + 0o142) + chr(0b1101100 + 0o3) + chr(100) + chr(0b1011010 + 0o13))('\x75' + chr(0b1110100) + '\146' + chr(0b101101) + chr(2306 - 2250)))(jLW6pRf2DSRk(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xc2J\x16\x08'), '\144' + '\145' + chr(99) + chr(111) + chr(0b110011 + 0o61) + chr(1216 - 1115))(chr(0b1110101) + chr(0b1101110 + 0o6) + chr(2027 - 1925) + chr(0b11 + 0o52) + chr(56))])) roI3spqORKae(GsKhodujj4DP, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(5190 - 5090) + chr(101) + '\143' + '\x6f' + '\x64' + '\145')(chr(0b111 + 0o156) + '\164' + chr(102) + '\055' + '\070'))(jLW6pRf2DSRk(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b'u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xd0]\x1e\t'), chr(100) + chr(3829 - 3728) + chr(0b1100011) + chr(0b110101 + 0o72) + '\x64' + chr(101))('\x75' + '\x74' + '\146' + '\055' + chr(0b111000))])) roI3spqORKae(TQ0u0KgwFXN5, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), '\x64' + chr(0b1100101) + '\x63' + chr(0b1101110 + 0o1) + chr(4329 - 4229) + chr(2778 - 2677))(chr(0b1110101) + '\x74' + chr(0b1010001 + 0o25) + '\055' + chr(0b111000)))(jLW6pRf2DSRk(FKO_XxLfWbYt[roI3spqORKae(ES5oEprVxulp(b"u\xda\xd0u\x87e\xa6Xs\xcfy\xfd\xdaN\x19'\x8cu\\\xdd\xca f5"), chr(0b10001 + 0o123) + '\145' + chr(0b1100011) + chr(11893 - 11782) + '\x64' + chr(7730 - 7629))(chr(2333 - 2216) + chr(0b100110 + 0o116) + chr(102) + chr(45) + chr(689 - 633))])) (tqyVYRfJWofp, BVDpbFyb9Kc_, pqLJ7zHZNxCh) = ([], [], []) for B6UAF1zReOyJ in bbT2xIe5pzk7(ftfygxgFas5X(mxhyDqTAMpMC)): if hq6XE4_Nhd6R[B6UAF1zReOyJ] not in tqyVYRfJWofp: roI3spqORKae(tqyVYRfJWofp, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(100) + chr(0b1100101) + '\143' + '\157' + chr(8812 - 8712) + chr(101))(chr(0b1110101) + chr(2049 - 1933) + chr(8376 - 8274) + '\055' + chr(2949 - 2893)))(hq6XE4_Nhd6R[B6UAF1zReOyJ]) if GsKhodujj4DP[B6UAF1zReOyJ] not in BVDpbFyb9Kc_: roI3spqORKae(BVDpbFyb9Kc_, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(1838 - 1738) + '\145' + chr(4938 - 4839) + '\x6f' + chr(100) + chr(1448 - 1347))('\165' + '\x74' + '\146' + chr(0b10101 + 0o30) + '\070'))(GsKhodujj4DP[B6UAF1zReOyJ]) if TQ0u0KgwFXN5[B6UAF1zReOyJ] not in pqLJ7zHZNxCh: roI3spqORKae(pqLJ7zHZNxCh, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b1100100) + '\145' + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\x65')(chr(0b1000110 + 0o57) + chr(116) + chr(7864 - 7762) + '\x2d' + chr(0b101 + 0o63)))(TQ0u0KgwFXN5[B6UAF1zReOyJ]) roI3spqORKae(tqyVYRfJWofp, roI3spqORKae(ES5oEprVxulp(b'k\xd0\xc3r'), chr(7353 - 7253) + chr(101) + chr(99) + chr(0b10010 + 0o135) + '\x64' + chr(0b111011 + 0o52))(chr(0b1110001 + 0o4) + chr(0b1101001 + 0o13) + chr(5987 - 5885) + chr(0b101010 + 0o3) + '\070'))() roI3spqORKae(BVDpbFyb9Kc_, roI3spqORKae(ES5oEprVxulp(b'k\xd0\xc3r'), chr(7509 - 7409) + '\145' + chr(0b1100011) + '\x6f' + chr(0b1100100) + chr(0b1010000 + 0o25))('\165' + chr(0b10000 + 0o144) + '\146' + chr(0b101101) + '\070'))() roI3spqORKae(pqLJ7zHZNxCh, roI3spqORKae(ES5oEprVxulp(b'k\xd0\xc3r'), chr(5586 - 5486) + chr(0b11 + 0o142) + chr(5347 - 5248) + chr(0b1001111 + 0o40) + chr(100) + '\145')(chr(117) + '\164' + '\146' + '\055' + '\070'))() if roI3spqORKae(ES5oEprVxulp(b'5\xc7'), chr(100) + '\145' + '\143' + '\x6f' + '\x64' + '\x65')(chr(0b1100010 + 0o23) + chr(116) + chr(0b1100110) + chr(45) + '\070') in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(5022 - 4922) + '\145' + chr(2162 - 2063) + chr(8045 - 7934) + '\x64' + chr(0b101000 + 0o75))(chr(117) + '\x74' + '\x66' + '\x2d' + chr(0b110 + 0o62))): B6UAF1zReOyJ = ftfygxgFas5X(gt6ao1JZFMmK) + nzTpIcepk0o8('\x30' + '\x6f' + chr(0b11101 + 0o24), 8) else: B6UAF1zReOyJ += nzTpIcepk0o8(chr(0b1000 + 0o50) + chr(6626 - 6515) + '\061', 8) qCaYLIBMA18X = nzTpIcepk0o8('\x30' + '\x6f' + '\061', 8) if ftfygxgFas5X(mxhyDqTAMpMC) > nzTpIcepk0o8(chr(1859 - 1811) + chr(111) + '\x32', 54703 - 54695): xFDEVQn5qSdh = pqLJ7zHZNxCh[-nzTpIcepk0o8('\060' + '\x6f' + chr(49), 8)] xGk3l6_qlcVS = [] for _R8IKF5IwAfX in BVDpbFyb9Kc_: ibNqpFnWPcj0 = [] for kh8Rprxl44kg in bbT2xIe5pzk7(ftfygxgFas5X(mxhyDqTAMpMC)): if GsKhodujj4DP[kh8Rprxl44kg] == _R8IKF5IwAfX and TQ0u0KgwFXN5[kh8Rprxl44kg] == xFDEVQn5qSdh: roI3spqORKae(ibNqpFnWPcj0, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(100) + '\145' + chr(99) + '\x6f' + '\144' + chr(0b100110 + 0o77))('\165' + chr(0b1000101 + 0o57) + chr(0b1100110) + chr(0b100001 + 0o14) + '\x38'))([mxhyDqTAMpMC[kh8Rprxl44kg], hq6XE4_Nhd6R[kh8Rprxl44kg]]) roI3spqORKae(xGk3l6_qlcVS, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(5022 - 4922) + '\145' + chr(0b1100011) + '\157' + chr(0b1100100) + chr(6581 - 6480))('\165' + chr(0b1110100) + '\146' + chr(1205 - 1160) + chr(2340 - 2284)))(ibNqpFnWPcj0) if ftfygxgFas5X(ibNqpFnWPcj0) > nzTpIcepk0o8('\060' + chr(111) + chr(1466 - 1417), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xad~\xad\\b'), chr(0b1100100) + '\x65' + chr(0b1100011) + chr(111) + chr(9861 - 9761) + '\145')('\x75' + chr(9129 - 9013) + chr(0b0 + 0o146) + '\055' + chr(2388 - 2332)))(qCaYLIBMA18X, nzTpIcepk0o8(chr(48) + chr(111) + '\065', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(7689 - 7578) + chr(0b101110 + 0o7), 8)) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xado\xb7S'), chr(0b1100100) + chr(101) + '\143' + chr(0b1101111) + chr(0b1100001 + 0o3) + chr(4380 - 4279))(chr(117) + chr(0b1110100) + chr(102) + '\x2d' + '\070'))(qCaYLIBMA18X, xGk3l6_qlcVS, BVDpbFyb9Kc_, wgf0sgcu_xPL, xFDEVQn5qSdh) if mocO8sWgkzH7 == nzTpIcepk0o8(chr(522 - 474) + chr(0b101101 + 0o102) + chr(0b100 + 0o54), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'|\xcd\xd0q\xadq\xaaRe'), '\x64' + chr(101) + '\x63' + '\157' + '\144' + chr(7956 - 7855))(chr(117) + '\x74' + '\146' + chr(45) + '\x38'))({roI3spqORKae(ES5oEprVxulp(b'~\xd6\xd6'), chr(0b1100100) + '\145' + chr(99) + '\157' + chr(0b1100 + 0o130) + chr(0b1100101))(chr(0b1110101) + chr(1010 - 894) + chr(102) + chr(0b101101) + chr(0b101001 + 0o17)): qCaYLIBMA18X}) qCaYLIBMA18X += nzTpIcepk0o8(chr(48) + '\157' + '\x31', 8) _R8IKF5IwAfX = BVDpbFyb9Kc_[nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b1000 + 0o50), 8)] oHk3Q2q0zQLp = [] for xFDEVQn5qSdh in pqLJ7zHZNxCh: ibNqpFnWPcj0 = [] for kh8Rprxl44kg in bbT2xIe5pzk7(ftfygxgFas5X(mxhyDqTAMpMC)): if GsKhodujj4DP[kh8Rprxl44kg] == _R8IKF5IwAfX and TQ0u0KgwFXN5[kh8Rprxl44kg] == xFDEVQn5qSdh: roI3spqORKae(ibNqpFnWPcj0, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(100) + chr(7753 - 7652))(chr(117) + '\164' + chr(102) + chr(45) + chr(0b111000)))([mxhyDqTAMpMC[kh8Rprxl44kg], hq6XE4_Nhd6R[kh8Rprxl44kg]]) roI3spqORKae(oHk3Q2q0zQLp, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b1100100) + chr(6220 - 6119) + chr(0b1100011) + chr(0b1011111 + 0o20) + '\144' + '\x65')('\x75' + chr(116) + chr(0b1100 + 0o132) + chr(0b101000 + 0o5) + '\070'))(ibNqpFnWPcj0) if ftfygxgFas5X(ibNqpFnWPcj0) > nzTpIcepk0o8('\x30' + chr(0b1011 + 0o144) + chr(0b100110 + 0o13), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xad~\xad\\b'), '\x64' + chr(7328 - 7227) + chr(0b1100011) + '\x6f' + '\x64' + chr(9086 - 8985))(chr(117) + chr(3270 - 3154) + chr(0b1100110) + '\x2d' + '\070'))(qCaYLIBMA18X, nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1010010 + 0o35) + chr(0b110101), 8), nzTpIcepk0o8(chr(48) + chr(111) + chr(53), 8)) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xado\xb7W'), chr(100) + chr(101) + chr(1786 - 1687) + chr(0b1101111) + chr(100) + chr(0b1010101 + 0o20))('\x75' + chr(0b1100101 + 0o17) + chr(102) + '\055' + chr(0b100100 + 0o24)))(qCaYLIBMA18X, oHk3Q2q0zQLp, pqLJ7zHZNxCh, wgf0sgcu_xPL, _R8IKF5IwAfX) if mocO8sWgkzH7 == nzTpIcepk0o8(chr(0b110000) + chr(4589 - 4478) + '\060', 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'|\xcd\xd0q\xadq\xaaRe'), chr(6221 - 6121) + '\145' + '\x63' + chr(111) + '\144' + chr(7698 - 7597))('\165' + chr(0b1001000 + 0o54) + '\146' + chr(0b101101) + chr(56)))({roI3spqORKae(ES5oEprVxulp(b'~\xd6\xd6'), chr(0b1100100) + chr(0b1100101) + chr(6073 - 5974) + '\x6f' + chr(1999 - 1899) + chr(101))(chr(6642 - 6525) + chr(116) + chr(8994 - 8892) + chr(47 - 2) + chr(56)): qCaYLIBMA18X}) qCaYLIBMA18X += nzTpIcepk0o8('\060' + '\157' + chr(1276 - 1227), 8) if roI3spqORKae(ES5oEprVxulp(b'5\xd6'), '\144' + '\x65' + '\x63' + chr(111) + chr(100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1011101 + 0o11) + chr(45) + chr(0b100001 + 0o27)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), '\x64' + chr(101) + chr(7090 - 6991) + chr(0b1010101 + 0o32) + '\144' + chr(0b1100101))(chr(0b1110101) + '\x74' + '\x66' + chr(1028 - 983) + '\070')): for w5vcgUzFN3bF in bbT2xIe5pzk7(ftfygxgFas5X(tqyVYRfJWofp)): v8jsMqaYV6U2(w5vcgUzFN3bF, nzTpIcepk0o8(tqyVYRfJWofp[w5vcgUzFN3bF])) iEp7RVc3AijG = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b']\xd1\xc5c\x807\xaa[r\xc4u\x82\xd9I[\x1c\x8foP\xc3\xcb\x1b\'"\xe8B\x7f6\xf6 \x08\xc5@\xe3\xa9\xdc\xb5\xbf\xb5\xe38\xcc\xeag\xafa\xa6\x15f\xcdb\xd6\xc5\x03[#\x98yM\xc4\xdc\x11Zv\xf9@/"\xf1(\x08\x90'), '\x64' + chr(0b1100101) + '\143' + '\157' + chr(0b1011011 + 0o11) + chr(0b1100101))('\165' + '\164' + '\146' + chr(389 - 344) + chr(56))) if iEp7RVc3AijG == roI3spqORKae(ES5oEprVxulp(b'y'), '\x64' + chr(7190 - 7089) + chr(0b1100011) + chr(0b111111 + 0o60) + chr(0b100100 + 0o100) + chr(9279 - 9178))('\165' + chr(0b1110100) + chr(0b110110 + 0o60) + chr(0b101101) + chr(430 - 374)): wR5_YWECjaY7 = {} QHQvC6UDYgED = {} for fSdw5wwLo9MO in bbT2xIe5pzk7(nzTpIcepk0o8(chr(48) + chr(111) + chr(177 - 128), 8), qCaYLIBMA18X): QYodcsDtoGq7 = N9zlRy29S1SS(fSdw5wwLo9MO) wR5_YWECjaY7[QYodcsDtoGq7] = wgf0sgcu_xPL + roI3spqORKae(ES5oEprVxulp(b'G'), chr(8270 - 8170) + chr(101) + '\x63' + '\x6f' + chr(0b1100100) + '\145')('\165' + chr(116) + chr(0b110110 + 0o60) + chr(191 - 146) + chr(56)) + QYodcsDtoGq7 + roI3spqORKae(ES5oEprVxulp(b'6'), chr(100) + chr(0b1000101 + 0o40) + chr(0b1100011) + chr(0b11000 + 0o127) + chr(0b11011 + 0o111) + '\145')(chr(8180 - 8063) + '\x74' + '\x66' + '\x2d' + chr(56)) + JummcHpaNLEw QHQvC6UDYgED[QYodcsDtoGq7] = QYodcsDtoGq7 roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'k\xde\xc7c\xadg\xafZb\xd2'), chr(0b11100 + 0o110) + chr(0b1100101) + '\x63' + '\x6f' + '\144' + chr(0b1100101))(chr(0b11110 + 0o127) + chr(0b11010 + 0o132) + chr(0b1111 + 0o127) + chr(0b100111 + 0o6) + chr(0b111000)))(QHQvC6UDYgED, wR5_YWECjaY7) iEp7RVc3AijG = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b']\xd1\xc5c\x807\xaa[r\xc4u\x82\xd9I[\x1c\x8foP\xc3\xcb\x1b\'"\xe8B\x7f6\xf6 \x08\xc5@\xe3\xa9\xdc\xb5\xbf\xb5\xe38\xcc\xeag\xafa\xa6\x15f\xcdb\xd6\xc5\x03[#\x98yM\xc4\xdc\x11Zv\xf9@/"\xf1(\x08\x90'), chr(0b1100100) + chr(0b101000 + 0o75) + '\143' + '\x6f' + chr(100) + chr(0b1100101))(chr(5648 - 5531) + chr(946 - 830) + '\x66' + chr(1513 - 1468) + '\070')) if iEp7RVc3AijG == roI3spqORKae(ES5oEprVxulp(b''), chr(5730 - 5630) + chr(101) + chr(0b101001 + 0o72) + chr(0b1101111) + chr(2941 - 2841) + '\x65')(chr(117) + chr(116) + chr(0b1100110) + chr(45) + chr(0b111000)): iEp7RVc3AijG = roI3spqORKae(ES5oEprVxulp(b'i'), '\144' + chr(0b1100101) + chr(99) + chr(0b1010001 + 0o36) + chr(100) + chr(4333 - 4232))('\x75' + chr(0b1100011 + 0o21) + chr(0b1100110) + '\x2d' + chr(0b10 + 0o66)) while iEp7RVc3AijG != roI3spqORKae(ES5oEprVxulp(b'i'), '\144' + chr(0b1100101) + chr(99) + '\157' + chr(100) + chr(0b1010 + 0o133))(chr(9101 - 8984) + '\x74' + chr(0b1100110) + chr(1626 - 1581) + chr(0b111000)): if roI3spqORKae(ES5oEprVxulp(b'5\xd6'), chr(0b11 + 0o141) + '\145' + chr(0b1100001 + 0o2) + chr(0b101111 + 0o100) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + '\x74' + chr(102) + chr(0b1010 + 0o43) + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), chr(0b1000011 + 0o41) + chr(101) + '\143' + chr(111) + chr(6439 - 6339) + chr(8557 - 8456))(chr(117) + '\164' + '\146' + '\x2d' + chr(2447 - 2391))): yvoNkTAEw3kV = nzTpIcepk0o8(iEp7RVc3AijG) xFDEVQn5qSdh = pqLJ7zHZNxCh[-nzTpIcepk0o8(chr(0b100001 + 0o17) + chr(5879 - 5768) + chr(1960 - 1911), 8)] s_RqKFThBsuh = [] for kh8Rprxl44kg in bbT2xIe5pzk7(ftfygxgFas5X(mxhyDqTAMpMC)): if hq6XE4_Nhd6R[kh8Rprxl44kg] == tqyVYRfJWofp[yvoNkTAEw3kV] and TQ0u0KgwFXN5[kh8Rprxl44kg] == xFDEVQn5qSdh: roI3spqORKae(s_RqKFThBsuh, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(0b1100100) + chr(101) + chr(0b1100011) + chr(0b1101111) + chr(0b110101 + 0o57) + chr(101))('\165' + chr(116) + chr(0b1100110) + chr(0b101101) + '\x38'))([mxhyDqTAMpMC[kh8Rprxl44kg], GsKhodujj4DP[kh8Rprxl44kg]]) if ftfygxgFas5X(s_RqKFThBsuh) > nzTpIcepk0o8(chr(217 - 169) + chr(0b1101111) + chr(1635 - 1586), 8): if P2nn0RAGKoWA == nzTpIcepk0o8(chr(0b100 + 0o54) + '\157' + '\x30', 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xad~\xad\\b'), '\144' + chr(462 - 361) + '\x63' + '\157' + chr(0b1100100) + chr(0b1100101))(chr(0b1001010 + 0o53) + '\x74' + '\x66' + '\055' + chr(0b11110 + 0o32)))(qCaYLIBMA18X, nzTpIcepk0o8(chr(48) + chr(2361 - 2250) + chr(0b110101), 8), nzTpIcepk0o8(chr(2295 - 2247) + '\157' + chr(0b100000 + 0o25), 8)) P2nn0RAGKoWA = nzTpIcepk0o8('\x30' + '\x6f' + chr(0b110001), 8) z92LCZXVAyNs = qCaYLIBMA18X qCaYLIBMA18X += nzTpIcepk0o8(chr(2022 - 1974) + '\x6f' + chr(49), 8) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xado\xa5A'), '\144' + chr(0b101111 + 0o66) + chr(0b1100011) + '\157' + chr(0b110010 + 0o62) + chr(0b1010101 + 0o20))(chr(0b1110101) + '\164' + '\146' + '\055' + '\x38'))(z92LCZXVAyNs, s_RqKFThBsuh, tqyVYRfJWofp[yvoNkTAEw3kV], wgf0sgcu_xPL, xFDEVQn5qSdh) if mocO8sWgkzH7 == nzTpIcepk0o8('\x30' + chr(0b1101111) + chr(0b1111 + 0o41), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'|\xcd\xd0q\xadq\xaaRe'), '\144' + '\145' + '\143' + '\157' + chr(0b1100100) + chr(101))('\x75' + '\164' + chr(769 - 667) + chr(1898 - 1853) + chr(56)))({roI3spqORKae(ES5oEprVxulp(b'~\xd6\xd6'), chr(100) + '\x65' + chr(7363 - 7264) + chr(0b1101111) + chr(1576 - 1476) + chr(101))(chr(117) + chr(0b1101100 + 0o10) + '\x66' + chr(45) + '\x38'): qCaYLIBMA18X}) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b'\x12\x9f\x9b,\xd87\x90^\x7f\xd1}\xcb\xd8H[\x0b\x9foZ\xd4\xde\x0bn4\xe4[f?\xfdl\x1a\xc2W\xf7\xfc\xca\xaf\xb9\xbc\xefh\xd3\xder\xd2v\xb0\x15w\x81k\xd7\xd8L\x0f\x11\x85r\x19\xde\xc8_s3\xe0_j!\xe55\t\xc2W\xa6\xa3\x85\xeb\xfa\xcf'), chr(8393 - 8293) + chr(0b11001 + 0o114) + chr(99) + '\157' + chr(0b1100001 + 0o3) + '\145')('\x75' + chr(116) + chr(0b110011 + 0o63) + '\x2d' + chr(2628 - 2572))) _R8IKF5IwAfX = BVDpbFyb9Kc_[nzTpIcepk0o8('\060' + '\157' + chr(520 - 472), 8)] j7zmgtpGWAdo = [] for kh8Rprxl44kg in bbT2xIe5pzk7(ftfygxgFas5X(mxhyDqTAMpMC)): if hq6XE4_Nhd6R[kh8Rprxl44kg] == tqyVYRfJWofp[yvoNkTAEw3kV] and GsKhodujj4DP[kh8Rprxl44kg] == _R8IKF5IwAfX: roI3spqORKae(j7zmgtpGWAdo, roI3spqORKae(ES5oEprVxulp(b'P\xeb\xe22\x8ap\x84Z|\xceX\x97'), chr(346 - 246) + chr(0b1100101) + chr(1690 - 1591) + chr(3883 - 3772) + chr(0b1000110 + 0o36) + '\x65')(chr(117) + chr(116) + '\146' + chr(45) + '\x38'))([mxhyDqTAMpMC[kh8Rprxl44kg], TQ0u0KgwFXN5[kh8Rprxl44kg]]) if ftfygxgFas5X(j7zmgtpGWAdo) > nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(111) + chr(963 - 911), ord("\x08")): if FFyEPaPndl2I == nzTpIcepk0o8('\x30' + '\x6f' + chr(678 - 630), 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xad~\xad\\b'), chr(315 - 215) + chr(101) + '\x63' + chr(111) + chr(6906 - 6806) + '\x65')(chr(2573 - 2456) + '\164' + chr(0b1100110) + chr(45) + chr(0b111000)))(qCaYLIBMA18X, nzTpIcepk0o8(chr(960 - 912) + '\157' + '\x35', 8), nzTpIcepk0o8(chr(1000 - 952) + chr(3827 - 3716) + chr(1703 - 1650), 8)) FFyEPaPndl2I = nzTpIcepk0o8(chr(1615 - 1567) + '\157' + chr(0b0 + 0o61), 8) roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'h\xd3\xder\xado\xa1A'), '\144' + chr(1961 - 1860) + chr(0b1100011) + chr(0b1101111) + chr(2686 - 2586) + '\145')(chr(11305 - 11188) + chr(116) + chr(0b101 + 0o141) + chr(45) + '\070'))(qCaYLIBMA18X, j7zmgtpGWAdo, tqyVYRfJWofp[yvoNkTAEw3kV], wgf0sgcu_xPL, _R8IKF5IwAfX) if mocO8sWgkzH7 == nzTpIcepk0o8(chr(48) + chr(11012 - 10901) + '\x30', 8): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'|\xcd\xd0q\xadq\xaaRe'), chr(0b1010111 + 0o15) + '\145' + chr(99) + chr(1616 - 1505) + chr(6703 - 6603) + chr(0b1000000 + 0o45))(chr(117) + '\164' + chr(0b1100110 + 0o0) + chr(45) + '\x38'))({roI3spqORKae(ES5oEprVxulp(b'~\xd6\xd6'), chr(100) + chr(1836 - 1735) + '\x63' + '\x6f' + chr(0b1100100) + chr(0b1010100 + 0o21))(chr(0b1110101) + chr(169 - 53) + '\146' + chr(0b100110 + 0o7) + chr(2053 - 1997)): qCaYLIBMA18X}) else: v8jsMqaYV6U2(roI3spqORKae(ES5oEprVxulp(b"K\xd4\xd8v\x82~\xadR6\xd2x\xd1\xd5J\x0b\x0c\x83~P\xc5\xc7\x13~v\xa0\x0fN\x10\xa4'\x15\xd5^\xe2\xa9\xdf\xad\xb5\xb1\xefy\xcc\x91g\xd2q\xb6[u\xd5d\xcd\xd8\x0f\x14\x1e\xcah\\\xdc\xde\x1au7\xf9Z}6"), '\x64' + chr(684 - 583) + chr(8786 - 8687) + chr(0b1101111) + chr(0b1010111 + 0o15) + '\145')('\x75' + chr(116) + chr(1773 - 1671) + chr(524 - 479) + chr(0b111000))) wR5_YWECjaY7 = {} QHQvC6UDYgED = {} for fSdw5wwLo9MO in bbT2xIe5pzk7(nzTpIcepk0o8(chr(954 - 906) + chr(111) + chr(49), 8), qCaYLIBMA18X): QYodcsDtoGq7 = N9zlRy29S1SS(fSdw5wwLo9MO) wR5_YWECjaY7[QYodcsDtoGq7] = wgf0sgcu_xPL + roI3spqORKae(ES5oEprVxulp(b'G'), '\144' + chr(101) + '\143' + chr(0b1011101 + 0o22) + '\144' + chr(101))(chr(272 - 155) + '\x74' + '\x66' + '\x2d' + '\070') + QYodcsDtoGq7 + roI3spqORKae(ES5oEprVxulp(b'6'), '\144' + chr(399 - 298) + chr(0b1011011 + 0o10) + chr(0b1101110 + 0o1) + chr(0b110111 + 0o55) + chr(0b1100101))('\165' + '\x74' + '\x66' + chr(0b10000 + 0o35) + chr(726 - 670)) + JummcHpaNLEw QHQvC6UDYgED[QYodcsDtoGq7] = fSdw5wwLo9MO if roI3spqORKae(ES5oEprVxulp(b'5\xd6'), '\x64' + chr(101) + chr(0b1100011) + chr(111) + chr(100) + chr(2323 - 2222))(chr(0b1110101) + chr(1987 - 1871) + '\146' + '\x2d' + chr(56)) in roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'y\xd5\xf8B\xa5n\x9bxT\xc0>\xc0'), '\144' + '\x65' + chr(99) + '\157' + chr(0b1100100) + '\145')(chr(117) + '\164' + '\146' + chr(0b101101) + '\070')): for w5vcgUzFN3bF in bbT2xIe5pzk7(ftfygxgFas5X(tqyVYRfJWofp)): v8jsMqaYV6U2(w5vcgUzFN3bF, nzTpIcepk0o8(tqyVYRfJWofp[w5vcgUzFN3bF])) iEp7RVc3AijG = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b"]\xd1\xc5c\x807\xaa[r\xc4u\x82\xd9I[\x16\x8fdM\x91\xda\x1aj&\xe8]n'\xf13\x19\x90A\xf2\xec\xdf\xed\xfa\xb6\x94y\xe2\xc7c\xd2g\xafZb\xd2!\x82\x96t\t\x1d\x9eiK\xdf\xf3_s9\xad^z:\xf0a"), chr(4326 - 4226) + '\x65' + chr(99) + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(13262 - 13145) + chr(0b1110100) + '\x66' + chr(0b101100 + 0o1) + chr(0b111000))) if iEp7RVc3AijG == roI3spqORKae(ES5oEprVxulp(b''), '\144' + '\145' + chr(0b1100011) + '\x6f' + chr(100) + chr(0b1001010 + 0o33))('\165' + '\x74' + chr(4586 - 4484) + chr(45) + chr(56)): roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), chr(5566 - 5466) + chr(3098 - 2997) + chr(7063 - 6964) + chr(10594 - 10483) + chr(100) + chr(0b100010 + 0o103))('\x75' + '\x74' + '\x66' + chr(0b101010 + 0o3) + chr(0b101000 + 0o20)))() if iEp7RVc3AijG == roI3spqORKae(ES5oEprVxulp(b'y'), '\x64' + chr(101) + '\x63' + '\x6f' + '\x64' + chr(6434 - 6333))(chr(117) + '\164' + chr(2197 - 2095) + chr(45) + chr(56)): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'k\xde\xc7c\xadg\xafZb\xd2'), chr(3386 - 3286) + chr(0b1100001 + 0o4) + chr(0b1100011) + chr(0b101010 + 0o105) + chr(100) + chr(3502 - 3401))('\x75' + chr(10529 - 10413) + chr(0b100010 + 0o104) + '\x2d' + chr(0b111000)))(QHQvC6UDYgED, wR5_YWECjaY7) iEp7RVc3AijG = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b']\xd1\xc5c\x807\xaa[r\xc4u\x82\xd9I[\x1c\x8foP\xc3\xcb\x1b\'"\xe8B\x7f6\xf6 \x08\xc5@\xe3\xa9\xdc\xb5\xbf\xb5\xe38\xcc\xeag\xafa\xa6\x15f\xcdb\xd6\xc5\x03[#\x98yM\xc4\xdc\x11Zv\xf9@/"\xf1(\x08\x90'), chr(100) + chr(7943 - 7842) + '\x63' + '\157' + chr(0b101011 + 0o71) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + '\x2d' + chr(0b111000))) if iEp7RVc3AijG == roI3spqORKae(ES5oEprVxulp(b''), '\144' + chr(101) + '\x63' + chr(111) + chr(0b1100100) + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(102) + '\055' + chr(0b111000)): roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), chr(0b1100100) + '\145' + '\143' + '\157' + chr(0b1 + 0o143) + chr(0b1100101))(chr(0b1110101) + chr(3225 - 3109) + '\x66' + chr(45) + chr(0b11000 + 0o40)))() elif mocO8sWgkzH7 == nzTpIcepk0o8('\x30' + '\x6f' + chr(0b100011 + 0o15), 8): CMfsDQitQrpd = QnTXOd5N96r1(roI3spqORKae(ES5oEprVxulp(b'}\xd1\xc5c\x807\xb0nw\xfc{\xc7\x96[\x14X\x99}O\xd4\x8e\x19n:\xe8\\#s\xa4\x1a\x0e\xd5F\xf3\xfb\xc1\x9c\xfa\xb1\xa08\xce\xc4o\x867'), '\x64' + chr(0b1100101) + '\x63' + chr(111) + '\144' + '\x65')(chr(949 - 832) + '\x74' + chr(0b100101 + 0o101) + chr(0b101101) + '\x38')) if CMfsDQitQrpd == roI3spqORKae(ES5oEprVxulp(b'y'), chr(2000 - 1900) + chr(101) + chr(0b1100011) + '\157' + chr(100) + chr(0b1100101))(chr(117) + chr(116) + '\146' + chr(0b101101) + chr(319 - 263)): roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'k\xde\xc7c\xadg\xafZb\xd2'), chr(2587 - 2487) + chr(0b1100101) + chr(0b101110 + 0o65) + chr(0b1101111) + chr(100) + '\x65')('\x75' + chr(2444 - 2328) + chr(0b101111 + 0o67) + chr(0b101000 + 0o5) + chr(56)))(QHQvC6UDYgED, wR5_YWECjaY7) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), '\144' + chr(8581 - 8480) + chr(7916 - 7817) + chr(0b1101111) + chr(0b1000110 + 0o36) + '\x65')(chr(117) + '\x74' + chr(0b1100110) + chr(1891 - 1846) + '\070'))() else: roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), '\x64' + chr(3969 - 3868) + chr(0b1100011) + chr(0b100001 + 0o116) + '\x64' + '\x65')(chr(0b101111 + 0o106) + chr(0b110011 + 0o101) + '\146' + chr(0b100100 + 0o11) + '\x38'))() else: roI3spqORKae(o77KS_r9H7AX, roI3spqORKae(ES5oEprVxulp(b'k\xde\xc7c\xadg\xafZb\xd2'), '\x64' + chr(101) + chr(99) + chr(111) + chr(2578 - 2478) + '\x65')('\x75' + '\x74' + '\146' + chr(0b100110 + 0o7) + chr(0b10011 + 0o45)))(QHQvC6UDYgED, wR5_YWECjaY7) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'B\xca\xc3l\x91B\x8f\x04e\xd2L\x9a'), chr(0b1100100) + chr(9324 - 9223) + chr(0b11011 + 0o110) + chr(9749 - 9638) + chr(1315 - 1215) + chr(1357 - 1256))(chr(9653 - 9536) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)))()
PmagPy/PmagPy
programs/hysteresis_magic.py
main
def main(): """ NAME hysteresis_magic.py DESCRIPTION calculates hystereis parameters and saves them in 3.0 specimen format file makes plots if option selected SYNTAX hysteresis_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input file, default is agm_measurements.txt -F: specify specimens.txt output file -WD: directory to output files to (default : current directory) Note: if using Windows, all figures will output to current directory -ID: directory to read files from (default : same as -WD) -P: do not make the plots -spc SPEC: specify specimen name to plot and quit -sav save all plots and quit -fmt [png,svg,eps,jpg] """ args = sys.argv fmt = pmag.get_named_arg('-fmt', 'svg') output_dir_path = pmag.get_named_arg('-WD', '.') input_dir_path = pmag.get_named_arg('-ID', "") if "-h" in args: print(main.__doc__) sys.exit() meas_file = pmag.get_named_arg('-f', 'measurements.txt') spec_file = pmag.get_named_arg('-F', 'specimens.txt') make_plots = True save_plots = False if '-P' in args: make_plots = False if '-sav' in args: save_plots = True pltspec = pmag.get_named_arg('-spc', 0) ipmag.hysteresis_magic(output_dir_path, input_dir_path, spec_file, meas_file, fmt, save_plots, make_plots, pltspec)
python
def main(): """ NAME hysteresis_magic.py DESCRIPTION calculates hystereis parameters and saves them in 3.0 specimen format file makes plots if option selected SYNTAX hysteresis_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input file, default is agm_measurements.txt -F: specify specimens.txt output file -WD: directory to output files to (default : current directory) Note: if using Windows, all figures will output to current directory -ID: directory to read files from (default : same as -WD) -P: do not make the plots -spc SPEC: specify specimen name to plot and quit -sav save all plots and quit -fmt [png,svg,eps,jpg] """ args = sys.argv fmt = pmag.get_named_arg('-fmt', 'svg') output_dir_path = pmag.get_named_arg('-WD', '.') input_dir_path = pmag.get_named_arg('-ID', "") if "-h" in args: print(main.__doc__) sys.exit() meas_file = pmag.get_named_arg('-f', 'measurements.txt') spec_file = pmag.get_named_arg('-F', 'specimens.txt') make_plots = True save_plots = False if '-P' in args: make_plots = False if '-sav' in args: save_plots = True pltspec = pmag.get_named_arg('-spc', 0) ipmag.hysteresis_magic(output_dir_path, input_dir_path, spec_file, meas_file, fmt, save_plots, make_plots, pltspec)
[ "def", "main", "(", ")", ":", "args", "=", "sys", ".", "argv", "fmt", "=", "pmag", ".", "get_named_arg", "(", "'-fmt'", ",", "'svg'", ")", "output_dir_path", "=", "pmag", ".", "get_named_arg", "(", "'-WD'", ",", "'.'", ")", "input_dir_path", "=", "pmag", ".", "get_named_arg", "(", "'-ID'", ",", "\"\"", ")", "if", "\"-h\"", "in", "args", ":", "print", "(", "main", ".", "__doc__", ")", "sys", ".", "exit", "(", ")", "meas_file", "=", "pmag", ".", "get_named_arg", "(", "'-f'", ",", "'measurements.txt'", ")", "spec_file", "=", "pmag", ".", "get_named_arg", "(", "'-F'", ",", "'specimens.txt'", ")", "make_plots", "=", "True", "save_plots", "=", "False", "if", "'-P'", "in", "args", ":", "make_plots", "=", "False", "if", "'-sav'", "in", "args", ":", "save_plots", "=", "True", "pltspec", "=", "pmag", ".", "get_named_arg", "(", "'-spc'", ",", "0", ")", "ipmag", ".", "hysteresis_magic", "(", "output_dir_path", ",", "input_dir_path", ",", "spec_file", ",", "meas_file", ",", "fmt", ",", "save_plots", ",", "make_plots", ",", "pltspec", ")" ]
NAME hysteresis_magic.py DESCRIPTION calculates hystereis parameters and saves them in 3.0 specimen format file makes plots if option selected SYNTAX hysteresis_magic.py [command line options] OPTIONS -h prints help message and quits -f: specify input file, default is agm_measurements.txt -F: specify specimens.txt output file -WD: directory to output files to (default : current directory) Note: if using Windows, all figures will output to current directory -ID: directory to read files from (default : same as -WD) -P: do not make the plots -spc SPEC: specify specimen name to plot and quit -sav save all plots and quit -fmt [png,svg,eps,jpg]
[ "NAME", "hysteresis_magic", ".", "py" ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/programs/hysteresis_magic.py#L12-L53
train
NAME hysteresis_magic. py
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8('\060' + chr(0b1101111) + chr(0b110001) + '\066' + '\064', 0o10), nzTpIcepk0o8('\x30' + chr(0b11010 + 0o125) + chr(49) + chr(0b1010 + 0o51) + chr(0b110100), 0b1000), nzTpIcepk0o8('\x30' + chr(111) + chr(182 - 132) + chr(0b100110 + 0o20), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(0b1001 + 0o51) + chr(0b110100) + chr(695 - 646), 0o10), nzTpIcepk0o8(chr(48) + '\x6f' + '\061' + chr(355 - 300) + chr(49), 0o10), nzTpIcepk0o8(chr(1476 - 1428) + '\157' + '\x33' + chr(0b110000) + chr(0b101000 + 0o10), 34954 - 34946), nzTpIcepk0o8(chr(0b110000) + chr(0b100 + 0o153) + chr(0b110011) + '\060' + chr(0b111 + 0o57), 0o10), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\x32' + chr(2270 - 2221) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(48) + '\157' + '\x31' + chr(0b110111) + '\065', 0b1000), nzTpIcepk0o8(chr(0b11000 + 0o30) + '\157' + '\x36' + '\x33', 0b1000), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b101000 + 0o13) + chr(50) + chr(0b110011), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(51) + chr(55) + chr(0b110010), ord("\x08")), nzTpIcepk0o8(chr(0b10001 + 0o37) + chr(111) + chr(0b0 + 0o61) + '\x34', 7551 - 7543), nzTpIcepk0o8(chr(0b10101 + 0o33) + chr(8651 - 8540) + chr(53), 1422 - 1414), nzTpIcepk0o8(chr(1713 - 1665) + chr(4128 - 4017) + chr(1107 - 1058) + chr(1391 - 1339) + chr(0b10011 + 0o43), 0b1000), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x33' + chr(147 - 99) + '\x31', 42387 - 42379), nzTpIcepk0o8(chr(48) + '\157' + chr(1488 - 1439) + chr(0b110101) + chr(0b10 + 0o61), 0b1000), nzTpIcepk0o8('\060' + chr(111) + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x36' + chr(50), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(49) + '\x31' + chr(54), ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + chr(0b101000 + 0o12) + chr(1478 - 1430) + chr(0b11101 + 0o25), 50318 - 50310), nzTpIcepk0o8('\060' + '\157' + chr(0b110001) + chr(0b110001) + '\x37', 0o10), nzTpIcepk0o8(chr(340 - 292) + chr(0b1011110 + 0o21) + chr(0b110001) + chr(0b110100) + chr(0b11111 + 0o22), 0o10), nzTpIcepk0o8('\060' + chr(4694 - 4583) + chr(0b101101 + 0o5) + '\x30' + chr(51), ord("\x08")), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + '\066' + chr(60 - 5), ord("\x08")), nzTpIcepk0o8(chr(2239 - 2191) + chr(0b1101111) + '\061' + chr(0b110011) + chr(2247 - 2197), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(362 - 312) + chr(0b110101) + chr(49), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(2185 - 2131) + chr(53), 31079 - 31071), nzTpIcepk0o8(chr(960 - 912) + chr(111) + '\062' + chr(2302 - 2248) + chr(49), 0b1000), nzTpIcepk0o8(chr(2259 - 2211) + '\157' + chr(0b0 + 0o62) + '\x35' + chr(0b101110 + 0o7), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(781 - 729) + chr(621 - 568), 34142 - 34134), nzTpIcepk0o8(chr(48) + '\157' + chr(50) + chr(0b110011 + 0o4) + '\067', 0b1000), nzTpIcepk0o8(chr(0b1100 + 0o44) + chr(1463 - 1352) + chr(0b110011) + chr(0b110100) + chr(0b1 + 0o63), 0o10), nzTpIcepk0o8('\x30' + chr(0b1101111) + '\x31' + chr(0b11010 + 0o27) + chr(1709 - 1658), 0o10), nzTpIcepk0o8('\060' + chr(5985 - 5874) + chr(51) + chr(54) + chr(1231 - 1182), 0b1000), nzTpIcepk0o8('\060' + chr(0b100111 + 0o110) + chr(1281 - 1232) + chr(0b11111 + 0o23) + chr(0b1010 + 0o53), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(0b110001) + chr(0b110010) + '\065', 8), nzTpIcepk0o8(chr(0b110000) + chr(111) + chr(51) + chr(0b101011 + 0o12) + chr(0b110010), 0o10), nzTpIcepk0o8(chr(0b10011 + 0o35) + chr(0b11110 + 0o121) + chr(50) + chr(0b110101) + '\061', 8), nzTpIcepk0o8(chr(48) + chr(0b1011010 + 0o25) + '\x34' + chr(0b111 + 0o56), 8)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b101100 + 0o4) + chr(0b111000 + 0o67) + chr(53) + '\x30', ord("\x08"))] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'Z'), '\x64' + chr(0b1100101) + '\x63' + chr(11163 - 11052) + chr(100) + chr(0b10011 + 0o122))(chr(0b1100001 + 0o24) + chr(116) + chr(0b1011010 + 0o14) + '\x2d' + chr(797 - 741)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def BXHXH_QeD6rL(): eemPYp2vtTSr = bpyfpu4kTbwL.ajIDWyXMBa3b JummcHpaNLEw = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y:{\xd5'), chr(100) + chr(8597 - 8496) + chr(99) + chr(111) + chr(100) + chr(3203 - 3102))(chr(0b10 + 0o163) + chr(116) + chr(102) + chr(0b101101) + chr(56)), roI3spqORKae(ES5oEprVxulp(b'\x07*q'), '\144' + chr(701 - 600) + chr(0b1100011) + chr(0b1101111) + chr(100) + chr(0b1001000 + 0o35))('\x75' + chr(1680 - 1564) + chr(0b1010110 + 0o20) + chr(0b101101) + chr(0b111000))) YtDhZvF7VzwC = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y\x0bR'), '\144' + chr(0b1010 + 0o133) + chr(0b1100011) + '\x6f' + chr(7013 - 6913) + '\x65')(chr(4931 - 4814) + chr(0b100000 + 0o124) + chr(0b1001100 + 0o32) + '\055' + chr(0b10010 + 0o46)), roI3spqORKae(ES5oEprVxulp(b'Z'), '\x64' + chr(101) + chr(6226 - 6127) + chr(4818 - 4707) + chr(0b1000100 + 0o40) + chr(101))(chr(8393 - 8276) + chr(116) + chr(102) + '\x2d' + chr(0b100111 + 0o21))) KADebXAR9grB = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y\x15R'), chr(762 - 662) + '\145' + chr(0b110001 + 0o62) + '\x6f' + '\144' + chr(0b1100101))(chr(0b1110101) + chr(0b1110100) + chr(0b1100110) + chr(0b11011 + 0o22) + '\070'), roI3spqORKae(ES5oEprVxulp(b''), chr(100) + chr(0b1001110 + 0o27) + '\143' + chr(111) + chr(0b11011 + 0o111) + chr(0b1100101))('\165' + chr(0b1110100) + chr(3070 - 2968) + chr(0b101101) + chr(0b111000))) if roI3spqORKae(ES5oEprVxulp(b'Y4'), chr(100) + chr(357 - 256) + chr(0b1100011) + chr(111) + chr(0b10 + 0o142) + chr(0b1100101))(chr(9181 - 9064) + chr(0b1110100) + '\146' + '\x2d' + chr(0b111000)) in eemPYp2vtTSr: v8jsMqaYV6U2(roI3spqORKae(BXHXH_QeD6rL, roI3spqORKae(ES5oEprVxulp(b'\r:S\xc4\x08\x91\xaf\xda\x12B\x84\xae'), chr(100) + chr(0b101100 + 0o71) + chr(99) + chr(7628 - 7517) + chr(100) + chr(0b11010 + 0o113))(chr(117) + chr(0b11 + 0o161) + chr(102) + chr(45) + chr(56)))) roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'.)d\xcb\x1a\x95\x8a\xbe\x0e@\x92\xc2'), '\x64' + chr(0b1100101) + '\143' + chr(0b1101111) + chr(5368 - 5268) + chr(5597 - 5496))('\x75' + chr(0b1101 + 0o147) + chr(102) + '\055' + chr(56)))() rHPU8oONrR4n = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y:'), chr(100) + chr(101) + '\143' + chr(10085 - 9974) + chr(5645 - 5545) + '\x65')(chr(0b1110101) + chr(10219 - 10103) + chr(4048 - 3946) + chr(0b101101) + chr(1307 - 1251)), roI3spqORKae(ES5oEprVxulp(b'\x199w\xd2\x0c\xb2\xa3\xe2\x18]\xa7\x89"q\x1e\xb5'), chr(5414 - 5314) + '\145' + chr(0b1100011 + 0o0) + chr(111) + '\x64' + '\x65')(chr(0b1000000 + 0o65) + chr(116) + chr(0b1100110) + chr(0b101 + 0o50) + chr(56))) QJgeTIOanow9 = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y\x1a'), chr(6539 - 6439) + '\x65' + chr(2942 - 2843) + chr(10269 - 10158) + chr(6980 - 6880) + chr(101))(chr(117) + chr(116) + chr(0b1100110) + chr(0b101101) + chr(1463 - 1407)), roI3spqORKae(ES5oEprVxulp(b'\x07,s\xc2\x10\xad\xa3\xe1\x0e\x1d\xa7\x82x'), chr(6692 - 6592) + chr(101) + chr(0b1010011 + 0o20) + '\x6f' + chr(0b1100100) + chr(1652 - 1551))(chr(0b1100110 + 0o17) + chr(5227 - 5111) + '\x66' + chr(45) + chr(56))) xMF4aPRocaG1 = nzTpIcepk0o8(chr(821 - 773) + chr(0b1101111) + chr(0b110001), ord("\x08")) bxxuZm4I6LgY = nzTpIcepk0o8(chr(48) + chr(0b1011 + 0o144) + '\x30', 48379 - 48371) if roI3spqORKae(ES5oEprVxulp(b'Y\x0c'), chr(7288 - 7188) + chr(101) + '\143' + chr(10689 - 10578) + chr(0b1100100) + chr(0b11100 + 0o111))(chr(4663 - 4546) + chr(0b1110010 + 0o2) + chr(0b1100110) + '\055' + '\070') in eemPYp2vtTSr: xMF4aPRocaG1 = nzTpIcepk0o8('\060' + chr(0b100100 + 0o113) + '\060', 8) if roI3spqORKae(ES5oEprVxulp(b'Y/w\xd7'), chr(0b1100100) + chr(0b1000101 + 0o40) + '\x63' + chr(0b100000 + 0o117) + chr(100) + chr(0b1100101))(chr(117) + chr(116) + chr(0b1000110 + 0o40) + chr(1318 - 1273) + chr(0b1010 + 0o56)) in eemPYp2vtTSr: bxxuZm4I6LgY = nzTpIcepk0o8('\060' + chr(4111 - 4000) + chr(0b100101 + 0o14), 8) DafvJs_zqETJ = hUcsWwAd0nE_.get_named_arg(roI3spqORKae(ES5oEprVxulp(b'Y/f\xc2'), '\x64' + chr(101) + chr(9124 - 9025) + '\157' + chr(100) + '\145')('\x75' + chr(0b1110100) + '\x66' + '\055' + chr(0b100000 + 0o30)), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + '\060', 8)) roI3spqORKae(GL09QZtbvKPg, roI3spqORKae(ES5oEprVxulp(b'\x1c%e\xd5\x1c\xb2\xa3\xfc\x14@\x8c\x97mb\x0f\xa2'), chr(2256 - 2156) + chr(2635 - 2534) + chr(0b1100011) + '\157' + chr(6504 - 6404) + chr(0b110010 + 0o63))(chr(0b110100 + 0o101) + '\164' + chr(0b111110 + 0o50) + chr(0b101001 + 0o4) + chr(0b10011 + 0o45)))(YtDhZvF7VzwC, KADebXAR9grB, QJgeTIOanow9, rHPU8oONrR4n, JummcHpaNLEw, bxxuZm4I6LgY, xMF4aPRocaG1, DafvJs_zqETJ)
PmagPy/PmagPy
pmagpy/find_pmag_dir.py
get_data_files_dir
def get_data_files_dir(): """ Find directory with data_files (sys.prefix or local PmagPy/data_files) and return the path. """ if 'data_files' in os.listdir(sys.prefix): return os.path.join(sys.prefix, 'data_files') else: return os.path.join(get_pmag_dir(), 'data_files')
python
def get_data_files_dir(): """ Find directory with data_files (sys.prefix or local PmagPy/data_files) and return the path. """ if 'data_files' in os.listdir(sys.prefix): return os.path.join(sys.prefix, 'data_files') else: return os.path.join(get_pmag_dir(), 'data_files')
[ "def", "get_data_files_dir", "(", ")", ":", "if", "'data_files'", "in", "os", ".", "listdir", "(", "sys", ".", "prefix", ")", ":", "return", "os", ".", "path", ".", "join", "(", "sys", ".", "prefix", ",", "'data_files'", ")", "else", ":", "return", "os", ".", "path", ".", "join", "(", "get_pmag_dir", "(", ")", ",", "'data_files'", ")" ]
Find directory with data_files (sys.prefix or local PmagPy/data_files) and return the path.
[ "Find", "directory", "with", "data_files", "(", "sys", ".", "prefix", "or", "local", "PmagPy", "/", "data_files", ")", "and", "return", "the", "path", "." ]
c7984f8809bf40fe112e53dcc311a33293b62d0b
https://github.com/PmagPy/PmagPy/blob/c7984f8809bf40fe112e53dcc311a33293b62d0b/pmagpy/find_pmag_dir.py#L13-L21
train
Find the directory with data_files and return the path.
GiP5xwVCF98Z,B3LV8Eo811Ma,bIsJhlpYrrU2,UtiWT6f6p9yZ,sY2ClS3bs_Vs,cXy7eDEmqBLX,WBIJpxagI_Bm,oiYQtqKByLVy,pKtZbyLPTF7M,N5KuUvtbiyqB,Y8CO_HpFZe1H,lFpHwHL3xiEO,QT_5wdIFQ3WX,gn988v5t9NEf,dVZxwLTOCtbO,RjQP07DYIdkf,Wun5u3i1rn23,m64e4RQAlmFd,zfo2Sgkz3IVJ,aWb0eXvJHTT7,s2y8nAB4S7UF,znAfcqx_89tO,ZnHlCcECsuOK,TdYHRT1SBW60,mBmBrDJUSN6g,Awc2QmWaiVq8,fPFTJxVnGShv,Kqv3Zaj1M9P0,uKsHT175xV8E,ah0DLMBSEU5j,EsFcqWRT9elq,d9st0HqZDng1,knUxyjfq07F9,Fc8q2OvvlH7d,KSw3AkHkJy1a,JD7LadPikpPw,VwkB9reRDydR,aHxuT4bIDdeg,Qn0k4xGfJpuL,NfwEQ1VKf5DV,WdoB9EK8ABTr,Y1otPTwLRJvi,zsedrPqY_EmW,CJFGX4uBWMak,DB9Ra8FNEf7o,DHq8A6v2Wg4n,Migy1gLCcYvQ,IAGRfZDRyjN_,ze1AhR_jfpze,ej204HIOxzoZ,_1qUu0gKi9gH,Wa8JM2k53wi5,aFaxROHyT7UJ,ZOdpVDJPWn4I,LqOf4dRsAg72,K3alqetBMgas,ZtIuyIq3ta7g,UIHY5MV5X5uS,C60ELahXqfKV,FB4_7GjVy3pW,wXIYU_4UfQFa,jZIjKu8IFANs,REazVyvp6OIp,pZy5DBJ8WJod,aP29ipGsOVzf,YikXQdxs3VoO,UBvEeZympYSz,mRTjFWUmjlQA,QhZRiM1qvaW7,WbNHlDKpyPtQ,z18h6aCn31dg,oxjHmqoBrCHG,GA4ANb_Tki5v,LdFlJR2ssk3y,gCu7Qd75URN1,yfEeqQiUoqWT,zGgTE_CdZfvi,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2,zQBGwUT7UU8L,DvlSWc3qeAuL,qX60lO1lgHA5,ZQUt7vS8_3kI,VF4pKOObtlPc,D6JeCyjJUA8O,fBqfYi7uj_uC,TVUhqOt5_BbS,WtdkIpFeYozM,MdkNqd1bagO6,QNQS9e6tJqMV,typojWN5Phrq,gufQJgTAhMnI,uPAcezIXzQNA,i739myaCTbWD,AtYHTsImz86v,pWZq9QOaZbhU,lI5UiuqoXdKZ,qZ4DivK_Doaa,znjnJWK64FDT,iJbw0iNQ06Xw,Jq33HEV_XqZE,_kV_Bomx8PZ4,Z5xOfqIptFuc,_9cznYtBZk6k,ZurjcUL1ssA8,qEahrGEDF7Tq,jLW6pRf2DSRk,q33KG3foQ_CJ,PNaRkv8AjHWU,roI3spqORKae,CFUos7dinCa7,dRKdVnHPFq7C,dMJNtLk2mncQ,Mq8h41ilRngb,vgO67Nkl7Kt9,maLnLg8O5zPT,QnTXOd5N96r1,nzTpIcepk0o8,suIjIS24Zkqw,CmsH_0IVxIiZ,b8MSkfijeeBr,ftfygxgFas5X,xM0vTMWcJQBa,H4NoA26ON7iG,y0cCpS6dh4OT,VVP82lOIz6CD,KV9ckIhroIia,D2M3XQk26HKr,XURpmPuEWCNF,ltB3XhPy2rYf,mxgO6GAb3Xup,llEg6op6Lr8F,DnU3Rq9N5ala,RmKXV0QRcrJP,JEroPXRTriYU,v8jsMqaYV6U2,X1QyyvXSAOQt,PWTqT_PKIfuW,bbT2xIe5pzk7,VWshwTzZfwvC,DoS4vLAglV8A,sOS7b2Ofrbne,Bvi71nNyvlqO,lCf1uzpaIUMv,nDEnDEV3Lc5Z,V3OlOVg98A85,WsP3Nc3n6e0b,N9zlRy29S1SS,oclC8DLjA_lV,CO2YiXoIEhJY,nfNqtJL5aRaY,MJ07XsN5uFgW,cL4sFo6RhVJa,TxMFWa_Xzviv,bpTSxj4JFQ8o,zL_YcxPEZPhm,yfEeqQiUoqWT,OHWDi_URd_WF,NKGkaWkPPkT2,AYtDRlqeP0tq,vQqJeSQfHM0X,FUdwyfT9sfj2=ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EncodingWarning,EnvironmentError,Exception,False,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,None,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,True,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,WindowsError,ZeroDivisionError,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,aiter,all,anext,any,ascii,bin,bool,breakpoint,bytearray,bytes,callable,chr,classmethod,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,exit,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,isinstance,issubclass,iter,len,license,list,locals,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,vars,zip,__builtins__,__cached__,__doc__,__file__,__loader__,__name__,__package__,__spec__ ES5oEprVxulp = lambda R7ltlgvcKSD4: QNQS9e6tJqMV([bI5jsQ9OkQtj ^ [nzTpIcepk0o8(chr(0b100011 + 0o15) + chr(0b1101111) + chr(0b110010) + chr(1396 - 1348) + chr(50), 0b1000), nzTpIcepk0o8(chr(0b110000) + '\x6f' + '\067', 0o10), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(0b110001) + chr(2248 - 2194) + '\061', 22948 - 22940), nzTpIcepk0o8('\060' + chr(111) + chr(0b1100 + 0o50), ord("\x08")), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110001) + chr(0b101110 + 0o4) + '\062', 0b1000), nzTpIcepk0o8('\x30' + chr(0b101001 + 0o106) + chr(0b110000 + 0o1) + '\063' + '\x36', 5891 - 5883), nzTpIcepk0o8(chr(0b10110 + 0o32) + chr(111) + chr(0b101110 + 0o3) + chr(52) + chr(0b100000 + 0o25), 0b1000), nzTpIcepk0o8(chr(1639 - 1591) + chr(0b1101111) + chr(0b100011 + 0o20) + chr(0b11111 + 0o24) + '\060', 0b1000), nzTpIcepk0o8(chr(0b100001 + 0o17) + '\x6f' + chr(52) + chr(0b10 + 0o64), 60287 - 60279), nzTpIcepk0o8(chr(0b110000) + '\x6f' + chr(51) + '\067' + chr(50), 0o10), nzTpIcepk0o8('\060' + chr(3946 - 3835) + chr(0b110011) + '\x37' + '\067', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(9075 - 8964) + chr(0b110011) + chr(667 - 618) + '\x32', 0o10), nzTpIcepk0o8(chr(0b1 + 0o57) + chr(0b1010001 + 0o36) + chr(91 - 41) + '\060' + chr(148 - 99), ord("\x08")), nzTpIcepk0o8(chr(0b11101 + 0o23) + chr(3626 - 3515) + '\063' + chr(0b10110 + 0o40) + '\x30', ord("\x08")), nzTpIcepk0o8('\060' + chr(111) + '\062' + '\067' + chr(0b110111), 0o10), nzTpIcepk0o8(chr(1034 - 986) + '\x6f' + chr(0b101101 + 0o6) + '\x36' + chr(49), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(794 - 742) + chr(55), 0b1000), nzTpIcepk0o8(chr(48) + chr(0b11111 + 0o120) + chr(0b101001 + 0o11) + chr(0b100001 + 0o20) + chr(1123 - 1070), 61507 - 61499), nzTpIcepk0o8(chr(2060 - 2012) + chr(0b1001000 + 0o47) + chr(1954 - 1903) + chr(0b1100 + 0o47), 0b1000), nzTpIcepk0o8(chr(0b11100 + 0o24) + chr(9908 - 9797) + '\x33' + chr(0b0 + 0o60) + chr(0b101011 + 0o12), 0o10), nzTpIcepk0o8(chr(48) + chr(111) + chr(0b110101) + '\x36', 0b1000), nzTpIcepk0o8(chr(2006 - 1958) + chr(0b11111 + 0o120) + chr(0b110111) + '\066', 64526 - 64518), nzTpIcepk0o8(chr(48) + chr(111) + '\061' + chr(0b110001 + 0o3) + '\x36', ord("\x08")), nzTpIcepk0o8(chr(48) + chr(0b11100 + 0o123) + chr(76 - 26) + '\064' + chr(0b110000 + 0o1), 30847 - 30839), nzTpIcepk0o8('\x30' + '\157' + chr(388 - 338) + '\x36' + '\x30', 37303 - 37295), nzTpIcepk0o8(chr(0b101 + 0o53) + '\157' + chr(0b110 + 0o53), 0b1000), nzTpIcepk0o8(chr(0b100010 + 0o16) + '\157' + chr(1471 - 1420) + chr(50) + chr(0b110011), 0b1000), nzTpIcepk0o8(chr(48) + '\157' + chr(0b110011) + chr(1558 - 1503) + chr(0b11100 + 0o25), 20357 - 20349), nzTpIcepk0o8('\x30' + chr(6253 - 6142) + chr(257 - 208) + chr(1779 - 1728) + chr(0b110011), ord("\x08")), nzTpIcepk0o8('\x30' + '\x6f' + chr(49) + chr(0b10011 + 0o36), ord("\x08")), nzTpIcepk0o8(chr(0b110000) + chr(0b1101111) + chr(0b1110 + 0o45) + chr(0b110010) + chr(0b110111), 0o10), nzTpIcepk0o8(chr(782 - 734) + '\157' + chr(0b110010) + '\x33' + chr(49), 0b1000), nzTpIcepk0o8(chr(2112 - 2064) + chr(6933 - 6822) + chr(50) + '\x34' + '\061', 8), nzTpIcepk0o8(chr(0b110000) + '\157' + chr(662 - 611) + chr(0b11100 + 0o30) + chr(0b110100), 0o10), nzTpIcepk0o8(chr(48) + chr(0b101101 + 0o102) + chr(54) + chr(2741 - 2687), 0b1000), nzTpIcepk0o8(chr(48) + '\x6f' + chr(0b11111 + 0o22) + chr(0b110111) + chr(0b110010), 0o10), nzTpIcepk0o8('\x30' + chr(111) + chr(0b110010) + chr(0b110010) + chr(0b1001 + 0o53), ord("\x08")), nzTpIcepk0o8('\060' + chr(0b1101111) + '\x32' + chr(0b110010) + chr(0b11111 + 0o27), 0o10), nzTpIcepk0o8('\060' + '\x6f' + chr(0b110001) + chr(0b10 + 0o62) + '\x32', 0o10), nzTpIcepk0o8(chr(1414 - 1366) + chr(0b1101011 + 0o4) + '\x32' + chr(53) + chr(0b1101 + 0o43), 0o10)][ZlbFMSG8gCoF % nzTpIcepk0o8(chr(0b110000) + chr(111) + '\x35' + chr(48), 59526 - 59518)] for (ZlbFMSG8gCoF, bI5jsQ9OkQtj) in _kV_Bomx8PZ4(R7ltlgvcKSD4)]) def rFFUeiYWzOhx(pOp6HxxfV61L, pXRQUD7VR93J): try: return zGgTE_CdZfvi(pOp6HxxfV61L + roI3spqORKae(ES5oEprVxulp(b'\xac'), '\144' + chr(101) + chr(4114 - 4015) + chr(111) + '\x64' + '\145')(chr(0b1110101) + chr(0b1110100) + chr(102) + chr(0b1000 + 0o45) + chr(0b111000)) + pXRQUD7VR93J) except fPFTJxVnGShv: return zGgTE_CdZfvi(pOp6HxxfV61L) def juH8bEIIu3wi(): if roI3spqORKae(ES5oEprVxulp(b'\xe6f\x05e\r8\x0c\xb4C\x89'), chr(0b1100100) + '\x65' + chr(0b101110 + 0o65) + chr(4534 - 4423) + '\x64' + chr(0b1100101))(chr(0b1001000 + 0o55) + '\x74' + '\146' + '\055' + chr(0b111000)) in roI3spqORKae(aHUqKstZLeS6, roI3spqORKae(ES5oEprVxulp(b'\xeen\x02p67\x17'), chr(4335 - 4235) + chr(0b101010 + 0o73) + '\x63' + '\157' + chr(4106 - 4006) + chr(7209 - 7108))(chr(117) + chr(116) + '\x66' + chr(45) + chr(56)))(roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd8M\x06^5?-\x9d\x11\xc8\xaf\xa5'), '\x64' + chr(7319 - 7218) + chr(8243 - 8144) + chr(0b1101111) + '\144' + chr(0b1100101))(chr(117) + chr(0b1010101 + 0o37) + chr(0b1100110) + chr(0b101000 + 0o5) + chr(0b111000)))): return roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xdb3\x08Ik\x1c\x06\xber\xb9\xb1\xbb'), chr(0b1100100) + chr(0b1100101) + chr(0b1000101 + 0o36) + chr(111) + chr(0b0 + 0o144) + chr(101))('\165' + chr(2536 - 2420) + chr(0b1011010 + 0o14) + chr(0b111 + 0o46) + chr(56)))(roI3spqORKae(bpyfpu4kTbwL, roI3spqORKae(ES5oEprVxulp(b'\xd8M\x06^5?-\x9d\x11\xc8\xaf\xa5'), chr(0b1100100) + chr(8426 - 8325) + chr(99) + chr(0b1001101 + 0o42) + chr(0b1100100) + chr(0b1100101))(chr(117) + chr(116) + chr(8920 - 8818) + chr(0b101101) + '\x38')), roI3spqORKae(ES5oEprVxulp(b'\xe6f\x05e\r8\x0c\xb4C\x89'), chr(6185 - 6085) + '\x65' + '\143' + '\157' + chr(0b100010 + 0o102) + chr(101))(chr(9664 - 9547) + chr(116) + chr(0b11011 + 0o113) + '\x2d' + chr(705 - 649))) else: return roI3spqORKae(aHUqKstZLeS6.path, roI3spqORKae(ES5oEprVxulp(b'\xdb3\x08Ik\x1c\x06\xber\xb9\xb1\xbb'), '\x64' + '\x65' + chr(0b1100010 + 0o1) + chr(0b1101111) + '\x64' + '\x65')('\x75' + chr(116) + chr(0b1100110) + chr(0b101101) + chr(0b111000)))(yHaMk1orkXON(), roI3spqORKae(ES5oEprVxulp(b'\xe6f\x05e\r8\x0c\xb4C\x89'), chr(7537 - 7437) + chr(0b1100101) + chr(0b1100011) + chr(0b1101111) + chr(0b1100100) + '\145')(chr(0b1110101) + '\164' + chr(0b1100110) + chr(566 - 521) + chr(0b111000)))