Skip to content

Commit b147582

Browse files
authored
Merge pull request #28 from radionets-project/gpu
Gpu
2 parents 5ae0bbc + eaeb4f8 commit b147582

39 files changed

+1381
-1414
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
changelog:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

1919
- name: Check for news fragment
2020
if: ${{ ! contains( github.event.pull_request.labels.*.name, 'no-changelog-needed')}}
21-
uses: andstor/file-existence-action@v2
21+
uses: andstor/file-existence-action@v3
2222
with:
2323
files: ${{ env.FRAGMENT_NAME }}
2424
fail: true

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
matrix:
2121
include:
2222
- os: ubuntu-latest
23-
python-version: "3.9"
23+
python-version: "3.10"
2424
install-method: mamba
2525

2626
- os: ubuntu-latest
27-
python-version: "3.10"
27+
python-version: "3.11"
2828
install-method: mamba
2929
extra-args: ["codecov"]
3030

@@ -34,7 +34,7 @@ jobs:
3434
shell: bash -leo pipefail {0}
3535

3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
with:
3939
fetch-depth: 0
4040

@@ -44,11 +44,11 @@ jobs:
4444
PYTHON_VERSION: ${{ matrix.python-version }}
4545
run: |
4646
# setup correct python version
47-
sed -i -e "s/- python=.*/- python=$PYTHON_VERSION/g" environment.yml
47+
sed -i -e "s/- python.*/- python=$PYTHON_VERSION/g" environment.yml
4848
4949
- name: mamba setup
5050
if: matrix.install-method == 'mamba'
51-
uses: mamba-org/provision-with-micromamba@v14
51+
uses: mamba-org/setup-micromamba@v1
5252

5353
- name: Install dependencies
5454
run: |
@@ -66,18 +66,19 @@ jobs:
6666
py.test --cov --cov-report=xml
6767
6868
- name: Upload coverage to Codecov
69-
uses: codecov/codecov-action@v3
70-
if: contains(matrix.extra-args, 'codecov')
69+
uses: codecov/codecov-action@v4
70+
env:
71+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7172

7273
docs:
7374
runs-on: ubuntu-latest
7475
steps:
75-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@v4
7677
with:
7778
fetch-depth: 0
7879

7980
- name: Set up Python
80-
uses: actions/setup-python@v4
81+
uses: actions/setup-python@v5
8182
with:
8283
python-version: "3.10"
8384

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ repos:
1212
rev: 4.0.1
1313
hooks:
1414
- id: flake8
15-
args: [--max-line-length=88, "--extend-ignore=E203"]
15+
args: [--max-line-length=88, "--extend-ignore=E203,E741"]

CHANGES.rst

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
Pyvisgen v0.2.0 (2024-04-11)
2+
============================
3+
4+
5+
API Changes
6+
-----------
7+
8+
9+
Bug Fixes
10+
---------
11+
12+
- fix baseline num calculation
13+
- fix wavelength scaling
14+
- fix lm grid calculation
15+
- fix gridding so that it fits the numpy fft gridding [`#28 <https://github.com/radionets-project/pyvisgen/pull/28>`__]
16+
17+
18+
New Features
19+
------------
20+
21+
- implement GPU support for visibility calculations
22+
- new grid mode:
23+
- when more than one visibility falls into the same pixel, only the first is calculated
24+
- define grid before calculation
25+
- new dense mode:
26+
- calculate visibilities for a dense uv grid
27+
- simulate ideal interferometer response
28+
- add sensitivity cut in image space:
29+
- avoid calculation of pixel values below detection threshold
30+
- significantly speed-up simulations
31+
- add torch compile to RIME functions [`#28 <https://github.com/radionets-project/pyvisgen/pull/28>`__]
32+
33+
34+
Maintenance
35+
-----------
36+
37+
- delete unused code and relicts
38+
- change from numpy arrays to torch tensors
39+
- change some of the keywords to more common phrases inside the toml config
40+
- update default data_set.toml
41+
- delete old config examples
42+
- avoid torch einsum for better readability of the code [`#28 <https://github.com/radionets-project/pyvisgen/pull/28>`__]
43+
44+
45+
Refactoring and Optimization
46+
----------------------------
47+
48+
- refactor data classes (Visibilities, Baselines)
49+
- add observation class, which holds all relevant information
50+
- drop scan-wise splitting in visibilities calculations, but split all valid baselines equally
51+
- refactor RIME components (currently only uncorrupted available) [`#28 <https://github.com/radionets-project/pyvisgen/pull/28>`__]
52+
53+
54+
Pyvisgen v0.1.4 (2023-11-09)
55+
============================
56+
57+
58+
API Changes
59+
-----------
60+
61+
62+
Bug Fixes
63+
---------
64+
65+
- - fix shape of `num_ifs`
66+
- delete additional bin in masking
67+
- fix ra dec bug [`#25 <https://github.com/radionets-project/pyvisgen/pull/25>`__]
68+
69+
70+
New Features
71+
------------
72+
73+
- update ci:
74+
- change conda to mamba
75+
- install towncrier [`#24 <https://github.com/radionets-project/pyvisgen/pull/24>`__]
76+
77+
78+
Maintenance
79+
-----------
80+
81+
- - update readme [`#26 <https://github.com/radionets-project/pyvisgen/pull/26>`__]
82+
83+
- - add docstrings
84+
- delete unused files [`#27 <https://github.com/radionets-project/pyvisgen/pull/27>`__]
85+
86+
87+
Refactoring and Optimization
88+
----------------------------

config/astar.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

config/default.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
[sampling_options]
2-
mode = "basic"
2+
mode = "full"
3+
device = "cpu"
4+
seed = 1337
35
layout = "vla"
46
img_size = 128
57
fov_center_ra = [100, 110]
68
fov_center_dec = [30, 40]
7-
fov_size = 100 # max res 0.1
9+
fov_size = 100
810
corr_int_time = 30.0
911
scan_start = ["16-01-2020 00:04:01", "16-01-2020 08:59:59"]
1012
scan_duration = [60, 90]
11-
scans = [1, 2]
12-
interval_length = 360
13-
base_freq = 15.21e9
14-
frequsel = [0e8, 0.8e8, 1.44e8, 2.08e8]
13+
num_scans = [1, 2]
14+
scan_separation = 360
15+
ref_frequency = 15.21e9
16+
frequency_offsets = [0e8, 0.8e8, 1.44e8, 2.08e8]
1517
bandwidths = [6.4e7, 6.4e7, 6.4e7, 6.4e7]
16-
corrupted = true
18+
noisy = 0
19+
corrupted = false
20+
sensitivity_cut = 1e-6
1721

1822
[bundle_options]
19-
in_path = "build/skies/"
23+
in_path = "skies/"
2024
out_path_fits = "build/uvfits"
2125
out_path_gridded = "build/gridded"
2226
num_test_images = 500
2327
bundle_size = 100
2428
train_valid_split = 0.2
2529
grid_size = 128
26-
amp_phase = true
30+
grid_fov = 100
31+
amp_phase = false

config/test.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

config/vlba.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/changes/24.feature.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)