Skip to content
Snippets Groups Projects
Commit 96d28985 authored by AK's avatar AK
Browse files

some fixes for the container

parent 4ee1a00e
No related branches found
No related tags found
No related merge requests found
Pipeline #28607 passed
......@@ -251,7 +251,7 @@ RUN wget -q -O /WSRT_Measures.ztar \
rm /WSRT_Measures.ztar
# Some python stuff
RUN python3 -m pip install h5py pandas pyyaml astropy matplotlib scipy shapely bdsf ipython
RUN python3 -m pip install h5py pandas pyyaml astropy matplotlib scipy shapely bdsf ipython radio_beam scikit-learn
# cd /src && \
# git clone https://github.com/lofar-astron/PyBDSF.git && \
# cd /src/PyBDSF && \
......
......@@ -9,7 +9,7 @@ import sys
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
# from matplotlib.patches import Circle
import numpy as np
import subprocess
from subprocess import Popen as Process, TimeoutExpired, PIPE
......@@ -21,8 +21,8 @@ import logging
import yaml
import argparse
from astropy.coordinates import SkyCoord
from astropy.time import Time
# from astropy.coordinates import SkyCoord
# from astropy.time import Time
import astropy.units as u
from astropy.io import fits
......@@ -666,7 +666,7 @@ if __name__ == "__main__":
logging.info('Starting logger for {}'.format(__name__))
logger = logging.getLogger(__name__)
t0 = Time.now()
# t0 = Time.now()
parser = argparse.ArgumentParser(description='DDCal Inputs')
parser.add_argument('msin', help='MS file to process')
parser.add_argument('-c', '--config', action='store',
......@@ -680,6 +680,6 @@ if __name__ == "__main__":
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'imcal.yml')
# msin = args.msin
main(args.msin, outbase=args.outbase, steps=args.steps, cfgfile=configfile)
extime = Time.now() - t0
print("Execution time: {:.1f} min".format(extime.to("minute").value))
# extime = Time.now() - t0
# print("Execution time: {:.1f} min".format(extime.to("minute").value))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment