File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 77import logging
88import os
99import shlex
10- import uuid
1110import warnings
1211from glob import glob
1312from pathlib import Path
1413from pprint import pformat
15- from shutil import copyfile
1614from typing import NamedTuple as Struct
1715
1816import astropy .units as u
@@ -203,17 +201,6 @@ def genparset(
203201
204202 if holofile is not None :
205203 logger .info (f"Using holography file { holofile } -- setting removeleakge to true" )
206- mem_dir = os .getenv ("MEMDIR" , None )
207- if mem_dir is not None :
208- logger .info (f"Copying holography file to { mem_dir } " )
209- mem_path = Path (mem_dir )
210- holofile_name = str (uuid .uuid1 ()) + ".fits"
211- logger .info (f"Copying holography file to { holofile_name } " )
212- holo_copy = mem_path / holofile_name
213- if not holo_copy .exists ():
214- copyfile (holofile , holo_copy )
215- holofile = holo_copy
216-
217204 parset += f"""
218205linmos.primarybeam = ASKAP_PB
219206linmos.primarybeam.ASKAP_PB.image = { holofile .resolve ().as_posix ()}
You can’t perform that action at this time.
0 commit comments