Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
apipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kutkin
apipeline
Commits
96d28985
Commit
96d28985
authored
Apr 12, 2022
by
AK
Browse files
Options
Downloads
Patches
Plain Diff
some fixes for the container
parent
4ee1a00e
No related branches found
No related tags found
No related merge requests found
Pipeline
#28607
passed
Apr 12, 2022
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
imcal.py
+6
-6
6 additions, 6 deletions
imcal.py
with
7 additions
and
7 deletions
Dockerfile
+
1
−
1
View file @
96d28985
...
...
@@ -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 && \
...
...
This diff is collapsed.
Click to expand it.
imcal.py
+
6
−
6
View file @
96d28985
...
...
@@ -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))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment