text: Search.setIndex({docnames:["index","pysixdesk.lib"],envversion:55,filenames:["index.rst","pysixdesk.lib.rst"],objects:{"pysixdesk.lib":{configbash:[1,0,0,"-"],constants:[1,0,0,"-"],dbadaptor:[1,0,0,"-"],dbtypedict:[1,0,0,"-"],fort2_tools:[1,0,0,"-"],gather:[1,0,0,"-"],generate_fort2:[1,0,0,"-"],machineparams:[1,0,0,"-"],preprocess:[1,0,0,"-"],pysixdb:[1,0,0,"-"],resultparser:[1,0,0,"-"],sixtrack:[1,0,0,"-"],study:[1,0,0,"-"],submission:[1,0,0,"-"],twiss_tools:[1,0,0,"-"],utils:[1,0,0,"-"],workspace:[1,0,0,"-"]},"pysixdesk.lib.configbash":{BashStudy:[1,1,1,""],num:[1,3,1,""],peel_str:[1,3,1,""]},"pysixdesk.lib.configbash.BashStudy":{initialize:[1,2,1,""],parse_bash_script:[1,2,1,""]},"pysixdesk.lib.dbadaptor":{DatabaseAdaptor:[1,1,1,""],MySQLDatabaseAdaptor:[1,1,1,""],SQLDatabaseAdaptor:[1,1,1,""]},"pysixdesk.lib.dbadaptor.DatabaseAdaptor":{"delete":[1,2,1,""],create_table:[1,2,1,""],drop_table:[1,2,1,""],insert:[1,2,1,""],insertm:[1,2,1,""],new_connection:[1,2,1,""],select:[1,2,1,""],setting:[1,2,1,""],update:[1,2,1,""]},"pysixdesk.lib.dbadaptor.MySQLDatabaseAdaptor":{check_user:[1,2,1,""],create_db:[1,2,1,""],create_table:[1,2,1,""],create_user:[1,2,1,""],fetch_tables:[1,2,1,""],grant:[1,2,1,""],insert:[1,2,1,""],insertm:[1,2,1,""],new_connection:[1,2,1,""],remove_user:[1,2,1,""],revoke:[1,2,1,""],setting:[1,2,1,""],show_grants:[1,2,1,""],update:[1,2,1,""]},"pysixdesk.lib.dbadaptor.SQLDatabaseAdaptor":{create_table:[1,2,1,""],fetch_tables:[1,2,1,""],insert:[1,2,1,""],insertm:[1,2,1,""],new_connection:[1,2,1,""],setting:[1,2,1,""],update:[1,2,1,""]},"pysixdesk.lib.dbtypedict":{MySQLDict:[1,1,1,""],SQLiteDict:[1,1,1,""],bigint_check:[1,3,1,""]},"pysixdesk.lib.fort2_tools":{Fort2Struct:[1,1,1,""],fort2_to_twiss:[1,3,1,""],read_fort2:[1,3,1,""],twiss_to_fort2:[1,3,1,""],write_fort2:[1,3,1,""]},"pysixdesk.lib.fort2_tools.Fort2Struct":{createDrift:[1,2,1,""],echoDimensions:[1,2,1,""],getIBlock:[1,2,1,""],getIDriftFromBlockName:[1,2,1,""],getISingEl:[1,2,1,""]},"pysixdesk.lib.gather":{download_from_boinc:[1,3,1,""],gather_results:[1,3,1,""],run:[1,3,1,""]},"pysixdesk.lib.generate_fort2":{add_aperture:[1,3,1,""],aperture_type:[1,3,1,""],assign_apertures:[1,3,1,""],checkNameLengths:[1,3,1,""],clean_apertures:[1,3,1,""],merge_survey:[1,3,1,""],read_survey:[1,3,1,""],rename_apertures:[1,3,1,""],run:[1,3,1,""]},"pysixdesk.lib.machineparams":{HLLHC:[1,1,1,""],LHC:[1,1,1,""],MachineConfig:[1,1,1,""],ParentMachine:[1,1,1,""]},"pysixdesk.lib.machineparams.MachineConfig":{parameters:[1,2,1,""]},"pysixdesk.lib.machineparams.ParentMachine":{parameters:[1,2,1,""]},"pysixdesk.lib.preprocess":{PreprocessJob:[1,1,1,""]},"pysixdesk.lib.preprocess.PreprocessJob":{dl_output:[1,2,1,""],madx_copy_mask:[1,2,1,""],madx_job:[1,2,1,""],madx_prep:[1,2,1,""],madx_run:[1,2,1,""],new_fort2:[1,2,1,""],push_to_db:[1,2,1,""],run:[1,2,1,""],sixtrack_check:[1,2,1,""],sixtrack_job:[1,2,1,""],sixtrack_prep_cfg:[1,2,1,""],sixtrack_prep_job:[1,2,1,""],sixtrack_run:[1,2,1,""],sixtrack_temp_folder:[1,2,1,""],write_oneturnresult:[1,2,1,""]},"pysixdesk.lib.pysixdb":{SixDB:[1,1,1,""]},"pysixdesk.lib.pysixdb.SixDB":{close:[1,2,1,""],create_table:[1,2,1,""],create_tables:[1,2,1,""],drop_table:[1,2,1,""],fetch_tables:[1,2,1,""],info_check:[1,2,1,""],insert:[1,2,1,""],insertm:[1,2,1,""],open:[1,2,1,""],remove:[1,2,1,""],select:[1,2,1,""],setting:[1,2,1,""],update:[1,2,1,""]},"pysixdesk.lib.resultparser":{aperture_losses:[1,3,1,""],collimation_losses:[1,3,1,""],final_sate:[1,3,1,""],init_state:[1,3,1,""],oneturn_sixtrack_results:[1,3,1,""],parse_file:[1,3,1,""],parse_results:[1,3,1,""],six_results:[1,3,1,""]},"pysixdesk.lib.sixtrack":{TrackingJob:[1,1,1,""]},"pysixdesk.lib.sixtrack.TrackingJob":{boinc_prep:[1,2,1,""],boinc_submit:[1,2,1,""],dl_output:[1,2,1,""],push_to_db:[1,2,1,""],run:[1,2,1,""],sixtrack_check_tracking:[1,2,1,""],sixtrack_job:[1,2,1,""],sixtrack_prep_cfg:[1,2,1,""],sixtrack_prep_job:[1,2,1,""],sixtrack_run:[1,2,1,""],sixtrack_temp_folder:[1,2,1,""]},"pysixdesk.lib.study":{SpecialDict:[1,1,1,""],Study:[1,1,1,""]},"pysixdesk.lib.study.SpecialDict":{clear_none:[1,2,1,""],fromkeys:[1,4,1,""],set:[1,2,1,""]},"pysixdesk.lib.study.Study":{collect_result:[1,2,1,""],custom_product_preprocess:[1,2,1,""],custom_product_sixtrack:[1,2,1,""],customize:[1,2,1,""],getval:[1,2,1,""],info:[1,2,1,""],init_boinc_dir:[1,2,1,""],name_conven:[1,2,1,""],pre_calc:[1,2,1,""],prepare_cr:[1,2,1,""],prepare_preprocess_input:[1,2,1,""],prepare_sixtrack_input:[1,2,1,""],purge_table:[1,2,1,""],submit:[1,2,1,""],update_db:[1,2,1,""]},"pysixdesk.lib.submission":{Cluster:[1,1,1,""],HTCondor:[1,1,1,""]},"pysixdesk.lib.submission.Cluster":{check_running:[1,2,1,""],download_from_spool:[1,2,1,""],prepare:[1,2,1,""],remove:[1,2,1,""],submit:[1,2,1,""]},"pysixdesk.lib.submission.HTCondor":{check:[1,2,1,""],check_format:[1,2,1,""],check_running:[1,2,1,""],download_from_spool:[1,2,1,""],prepare:[1,2,1,""],remove:[1,2,1,""],submit:[1,2,1,""]},"pysixdesk.lib.twiss_tools":{TwissStruct:[1,1,1,""],compare_aperture:[1,3,1,""],empty_aperture:[1,3,1,""],read_icosim_csv:[1,3,1,""],read_twiss:[1,3,1,""],split_line:[1,3,1,""],update_dict_entries:[1,3,1,""]},"pysixdesk.lib.twiss_tools.TwissStruct":{APER_COLUMNS:[1,5,1,""],APER_VALUES:[1,5,1,""],as_dict:[1,2,1,""]},"pysixdesk.lib.utils":{ProgressBar:[1,1,1,""],check:[1,3,1,""],check_fort3_block:[1,3,1,""],compress_buf:[1,3,1,""],concatenate_files:[1,3,1,""],condor_logger:[1,3,1,""],decompress_buf:[1,3,1,""],diff:[1,3,1,""],download_output:[1,3,1,""],exc_catch:[1,3,1,""],replace:[1,3,1,""]},"pysixdesk.lib.utils.ProgressBar":{update:[1,2,1,""]},"pysixdesk.lib.workspace":{WorkSpace:[1,1,1,""]},"pysixdesk.lib.workspace.WorkSpace":{init_study:[1,2,1,""],load_study:[1,2,1,""],show_studies:[1,2,1,""]},pysixdesk:{lib:[1,0,0,"-"]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","function","Python function"],"4":["py","classmethod","Python class method"],"5":["py","attribute","Python attribute"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:function","4":"py:classmethod","5":"py:attribute"},terms:{"10_job_nam":1,"catch":1,"class":1,"default":1,"float":1,"function":1,"int":1,"new":1,"return":1,"true":1,And:1,The:1,abc:1,absolut:1,action:1,add:1,add_apertur:1,added:1,adding:1,addit:1,after:1,all:1,also:1,ani:1,anyth:1,aper_1:1,aper_2:1,aper_3:1,aper_4:1,aper_column:1,aper_valu:1,apertur:1,aperture_loss:1,aperture_typ:1,apertyp:1,arg:1,argument:1,arrai:1,as_dict:1,assign:1,assign_apertur:1,aux:1,back:1,backtrack:1,bar:1,base:1,bash:1,bashstudi:1,batch_nam:1,beamlosspattern:1,befor:1,between:1,bigint:1,bigint_check:1,bloc:1,block:1,boinc:1,boinc_prep:1,boinc_submit:1,bool:1,buf:1,calcul:1,call:1,callabl:1,can:1,cancel:1,cartesian:1,check:1,check_format:1,check_fort3_block:1,check_run:1,check_us:1,checknamelength:1,checkpoint:1,class_nam:1,classmethod:1,clean:1,clean_apertur:1,clear_non:1,clone:1,close:1,cluster:1,cluster_id:1,clusterid:1,col:1,coll_scatt:1,collect:1,collect_result:1,collim:1,collimation_loss:1,column:1,command:1,compare_apertur:1,complet:1,compress:1,compress_buf:1,concaten:1,concatenate_fil:1,condit:1,condor_logg:1,config:1,conn:1,connect:1,contain:1,context:1,control:1,convent:1,coordin:1,copi:1,correct:1,creat:1,create_db:1,create_t:1,create_us:1,createdrift:1,csv:1,current:1,custom:1,custom_product_preprocess:1,custom_product_sixtrack:1,cwd:1,dat:1,data:1,databas:1,databaseadaptor:1,db_check:1,db_info:1,db_name:1,deal:1,debug:1,decompress:1,decompress_buf:1,defin:1,delet:1,des:1,dest:1,destin:1,destinaion:1,dict:1,dictionari:1,dictionnari:1,diff:1,difflib:1,dimens:1,dir:1,directori:1,disabl:1,disconnect:1,displai:1,dl_output:1,doc:1,doesn:1,don:1,done:1,doubl:1,download:1,download_from_boinc:1,download_from_spool:1,download_output:1,drift:1,drop:1,drop_tabl:1,dure:1,each:1,echodimens:1,element1:1,element2:1,element:1,empti:1,empty_apertur:1,end:1,enough:1,entri:1,error:1,example_studi:1,exc_act:1,exc_catch:1,except:1,exe:1,exe_arg:1,execut:1,exist:1,extra:1,f2sequenc:1,fail:1,fals:1,fc2:1,fetch:1,fetch_tabl:1,field:1,file1:1,file1_newnam:1,file1_oldnam:1,file2:1,file2_newnam:1,file2_oldnam:1,file:1,file_list:1,filenam:1,filenotfounderror:1,filter:1,final_s:1,final_st:1,finish:1,first:1,fix:1,flavour:1,folder:1,format:1,fort2_to_twiss:1,fort2struct:1,fort3:1,fort:1,fort_cfg:1,fort_fil:1,found:1,from:1,fromkei:1,fun:1,further:1,gather_result:1,gener:1,get:1,getiblock:1,getidriftfromblocknam:1,getisingel:1,getval:1,given:1,grant:1,group_nam:1,groupbi:1,gzip:1,handl:1,have:1,held:1,helper:1,here:1,hl10:1,hllhc:1,hold:1,home:1,host:1,how:1,htcondor:1,htcondor_run:1,htctondor:1,iSing:1,iblock:1,icosim:1,idl:1,ids:1,ignor:1,includ:1,index:[0,1],info:1,info_check:1,info_sec:1,inform:1,init_boinc_dir:1,init_st:1,init_studi:1,initi:1,initial_st:1,initialis:1,input:1,input_info:1,input_path:1,insert:1,insertm:1,interpol:1,invalid:1,item:1,iter:1,job:1,job_nam:1,job_path:1,jobtyp:1,keep:1,kei:1,key_info:1,kwarg:1,last:1,lattic:1,ldebug:1,leav:1,length:1,lens:1,level:1,lhc:1,lightweight:1,like:1,limi:1,limit:1,line:1,list:1,load:1,load_studi:1,loc:1,locat:1,log:1,logger:1,logic:1,lold:1,look:1,machin:1,machineconfig:1,madx:1,madx_copy_mask:1,madx_in:1,madx_job:1,madx_prep:1,madx_run:1,main:1,manag:1,mandatori:1,mani:1,mark:1,marker:1,mask:1,mask_fil:1,maximum:1,maxlen:1,merg:1,merge_survei:1,mfile:1,middl:1,miss:1,model:1,modifi:1,modul:0,module_path:1,monitor:1,more:1,mother1:1,mother2:1,move:1,multi:1,multipl:1,mysqldatabaseadaptor:1,mysqldict:1,mystudi:1,name:1,name_conven:1,necessari:1,need:1,new_connect:1,new_fort2:1,non:1,none:1,normal:1,num:1,number:1,object:1,offset:1,old:1,onc:1,one:1,ones:1,oneturn:1,oneturn_sixtrack_result:1,oneturnresult:1,onli:1,open:1,option:1,optionn:1,order:1,orderbi:1,ordereddict:1,origin:1,orign:1,other:1,otherwis:1,out:1,out_f:1,output:1,output_fil:1,output_path:1,page:0,pair:1,param:1,param_dict:1,paramet:1,parent:1,parentmachin:1,pars:1,parse_bash_script:1,parse_fil:1,parse_result:1,particl:1,pass:1,passwd:1,path:1,pattern:1,peel_str:1,per:1,perman:1,placehold:1,point:1,posit:1,postlin:1,pragma:1,pre_calc:1,pre_id:1,precis:1,prefix:1,prepar:1,prepare_cr:1,prepare_preprocess_input:1,prepare_sixtrack_input:1,preporcess:1,preprocessjob:1,print:1,privileg:1,proc_id:1,process:1,procid:1,product:1,progress:1,progressbar:1,provid:1,purge_t:1,push:1,push_to_db:1,python:1,queri:1,queue:1,quot:1,rais:1,ratio:1,read:1,read_fort2:1,read_icosim_csv:1,read_survei:1,read_twiss:1,recreat:1,reduc:1,redund:1,releas:1,remov:1,remove_us:1,renam:1,rename_apertur:1,reomv:1,replac:1,repres:1,reqlist:1,request:1,requir:1,resubmiss:1,resubmit:1,result:1,result_cf:1,result_t:1,retriev:1,revok:1,row:1,run:1,runtyp:1,same:1,sandbox:1,sanity_check:1,search:0,second:1,see:1,segment:1,select:1,self:1,sequenc:1,set:1,setup:1,shift:1,should:1,show:1,show_grant:1,show_studi:1,singl:1,six_result:1,six_stdout:1,sixdb:1,sixdesk:1,sixdeskenv:1,sixenv:1,sixtrack_check:1,sixtrack_check_track:1,sixtrack_job:1,sixtrack_prep_cfg:1,sixtrack_prep_job:1,sixtrack_run:1,sixtrack_temp_fold:1,some:1,sourc:1,source_prefix:1,specialdict:1,specifi:1,split:1,split_lin:1,spool:1,sqldatabaseadaptor:1,sqlitedict:1,standard:1,statu:1,stderr:1,stdout:1,store:1,str:1,string:1,stripe:1,struct:1,structur:1,study_000:1,study_001:1,study_002:1,study_nam:1,study_path:1,studypath:1,sub:1,submission_err:1,submit:1,submitt:1,suffix:1,sumbit:1,supress:1,suregion:1,surv_prec:1,survei:1,surveri:1,surviv:1,sustruct:1,symlink:1,symlink_par:1,system:1,tabl:1,table_info:1,table_nam:1,tables_kei:1,take:1,task:1,task_id:1,task_tabl:1,temp:1,temp_path:1,templat:1,temporari:1,test:1,than:1,thei:1,them:1,thi:1,those:1,tmpaperlimi:1,tmpname:1,tmpsequenc:1,tname:1,tomorrow:1,total:1,track:1,trackingjob:1,tran:1,transform:1,trial:1,turn:1,twiss:1,twiss_to_fort2:1,twissstruct:1,two:1,twstruct:1,typ:1,type:1,unexpand:1,unfininsh:1,unified_diff:1,uniqu:1,unique_id:1,updat:1,update_db:1,update_dict_entri:1,use:1,user:1,usernam:1,val:1,valu:1,variabl:1,veri:1,version:1,via:1,warn:1,when:1,where:1,whether:1,which:1,whith:1,width:1,workspace_nam:1,wrap:1,wrapper:1,write:1,write_fort2:1,write_oneturnresult:1,wu_id:1,xiaohan:1,zero:1,zip:1},titles:["Welcome to pysixdesk\u2019s documentation!","pysixdesk.lib package"],titleterms:{configbash:1,constant:1,content:1,dbadaptor:1,dbtypedict:1,document:0,fort2_tool:1,gather:1,generate_fort2:1,indic:0,lib:1,machineparam:1,modul:1,packag:1,preprocess:1,pysixdb:1,pysixdesk:[0,1],resultpars:1,sixtrack:1,studi:1,submiss:1,submodul:1,tabl:0,twiss_tool:1,util:1,welcom:0,workspac:1}})