File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1111from  glob  import  glob 
1212from  pathlib  import  Path 
1313from  pprint  import  pformat 
14- from  shutil  import  copyfile 
1514from  typing  import  NamedTuple  as  Struct 
1615
1716import  astropy .units  as  u 
@@ -202,15 +201,6 @@ def genparset(
202201
203202    if  holofile  is  not None :
204203        logger .info (f"Using holography file { holofile }  )
205-         mem_dir  =  os .getenv ("MEMDIR" , None )
206-         if  mem_dir  is  not None :
207-             logger .info (f"Copying holography file to { mem_dir }  )
208-             mem_path  =  Path (mem_dir )
209-             holo_copy  =  mem_path  /  holofile .name 
210-             if  not  holo_copy .exists ():
211-                 copyfile (holofile , holo_copy )
212-             holofile  =  holo_copy 
213- 
214204        parset  +=  f""" 
215205linmos.primarybeam      = ASKAP_PB 
216206linmos.primarybeam.ASKAP_PB.image = { holofile .resolve ().as_posix ()}  
Original file line number Diff line number Diff line change @@ -1143,11 +1143,16 @@ def main(
11431143        name = "pos_err" ,
11441144    )
11451145
1146+     if  outfile  is  not None :
1147+         catalogue_name  =  Path (outfile ).stem 
1148+     else :
1149+         catalogue_name  =  None 
1150+ 
11461151    # Add common columns 
11471152    rmtab ["rm_method" ] =  "RM Synthesis - Fractional polarization" 
11481153    rmtab ["telescope" ] =  "ASKAP" 
11491154    rmtab ["pol_bias" ] =  "2012PASA...29..214G" 
1150-     rmtab ["catalog" ] =  "Arrakis-DR1" 
1155+     rmtab ["catalog" ] =  catalogue_name 
11511156    rmtab ["ionosphere" ] =  "FRion" 
11521157    rmtab ["flux_type" ] =  "Peak" 
11531158    rmtab ["aperture" ] =  0  *  u .deg 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments