Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update data set creation routine #53

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions config/default_data_set.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,39 @@
mode = "full"
device = "cpu"
seed = 1337
layout = "vla"
img_size = 128
layout = "vlba"
img_size = 1024
fov_center_ra = [100, 110]
fov_center_dec = [30, 40]
fov_size = 100
fov_size = 0.24
corr_int_time = 30.0
scan_start = ["16-01-2020 00:04:01", "16-01-2020 08:59:59"]
scan_duration = [60, 90]
num_scans = [1, 2]
scan_start = ["01-01-1995 00:00:01", "01-01-2025 23:59:59"]
scan_duration = [20, 600]
num_scans = [6, 10]
scan_separation = 360
ref_frequency = 15.21e9
frequency_offsets = [0e8, 0.8e8, 1.44e8, 2.08e8]
bandwidths = [6.4e7, 6.4e7, 6.4e7, 6.4e7]
ref_frequency = 15.17600e9
frequency_offsets = [0e8, 1.28e8, 2.56e8, 3.84e8]
bandwidths = [1.28e8, 1.28e8, 1.28e8, 1.28e8]
noisy = 0
corrupted = false
sensitivity_cut = 1e-6

[polarisation_options]
mode = "none" # linear, circular, or "none"
delta = 45 # phase angle
amp_ratio = 0.5 # polarisation amplitude ratio
field_order = [0.01, 0.01] # (x, y) orders of the random polarisation field
field_scale = [0, 1] # scaling of the intensity of the polarisation field
field_threshold = "none"

[bundle_options]
in_path = "skies/"
out_path_fits = "build/uvfits"
out_path_gridded = "build/gridded"
file_prefix="train" # e.g. train, test, or valid. If "none", no prefix will be applied
in_path = "/path/to/input/data/"
out_path_fits = "/output/path/"
out_path_gridded = "/output/path/for/gridding/"
num_test_images = 500
bundle_size = 100
train_valid_split = 0.2
grid_size = 128
grid_fov = 100
grid_size = 1024
grid_fov = 0.24
amp_phase = false
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,19 @@ classifiers = [
requires-python = ">=3.10"

dependencies = [
"astroplan",
"astropy<=6.1.0",
"click",
"h5py",
"ipython",
"jupyter",
"matplotlib",
"natsort",
"numexpr",
"numpy",
"pandas",
"pre-commit",
"pytest",
"pytest-cov",
"scipy",
"toma",
"toml",
"torch",
"torch",
"tqdm",
]

Expand All @@ -59,6 +53,10 @@ tests = [
"tomli",
]

dev = [
"pre-commit",
]

docs = [
"graphviz",
"ipython",
Expand All @@ -79,7 +77,7 @@ docs = [
]

[project.scripts]
pyvisgen_create_dataset = "pyvisgen.simulation.scripts.create_dataset:main"
pyvisgen-simulate = "pyvisgen.simulation.scripts.create_dataset:main"

[tool.setuptools_scm]
write_to = "pyvisgen/_version.py"
Expand Down
6 changes: 3 additions & 3 deletions pyvisgen/gridding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from .gridder import (
from .gridder import ducc0_gridding, grid_data, grid_vis_loop_data
from .utils import (
calc_truth_fft,
convert_amp_phase,
convert_real_imag,
create_gridded_data_set,
ducc0_gridding,
grid_data,
open_data,
save_fft_pair,
)
Expand All @@ -16,6 +15,7 @@
"create_gridded_data_set",
"ducc0_gridding",
"grid_data",
"grid_vis_loop_data",
"open_data",
"save_fft_pair",
]
Loading
Loading