Skip to content

Commit 51eed3d

Browse files
authored
Merge pull request #61 from PyAutoLabs/feature/mge-sigma-min-workspace-sweep
docs: floor MGE Gaussians at a tenth of the pixel scale
2 parents 9b771d1 + b04347d commit 51eed3d

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

notebooks/chapter_2_modeling/tutorial_5_linear_profiles.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@
452452
"source": [
453453
"total_gaussians = 30\n",
454454
"\n",
455-
"# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0\".\n",
455+
"# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0\".\n",
456456
"mask_radius = 3.0\n",
457-
"log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)\n",
457+
"log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)\n",
458458
"\n",
459459
"# By defining the centre here, it creates two free parameters that are assigned below to all Gaussians.\n",
460460
"\n",
@@ -560,9 +560,9 @@
560560
"source": [
561561
"total_gaussians = 30\n",
562562
"\n",
563-
"# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0\".\n",
563+
"# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0\".\n",
564564
"mask_radius = 3.0\n",
565-
"log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)\n",
565+
"log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)\n",
566566
"\n",
567567
"# By defining the centre here, it creates two free parameters that are assigned below to all Gaussians.\n",
568568
"\n",
@@ -621,9 +621,9 @@
621621
"source": [
622622
"total_gaussians = 10\n",
623623
"\n",
624-
"# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0\".\n",
624+
"# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0\".\n",
625625
"mask_radius = 3.0\n",
626-
"log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)\n",
626+
"log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)\n",
627627
"\n",
628628
"disk_gaussian_list = []\n",
629629
"\n",

scripts/chapter_2_modeling/tutorial_5_linear_profiles.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@
250250
"""
251251
total_gaussians = 30
252252

253-
# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0".
253+
# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0".
254254
mask_radius = 3.0
255-
log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)
255+
log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)
256256

257257
# By defining the centre here, it creates two free parameters that are assigned below to all Gaussians.
258258

@@ -325,9 +325,9 @@
325325
"""
326326
total_gaussians = 30
327327

328-
# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0".
328+
# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0".
329329
mask_radius = 3.0
330-
log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)
330+
log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)
331331

332332
# By defining the centre here, it creates two free parameters that are assigned below to all Gaussians.
333333

@@ -375,9 +375,9 @@
375375
"""
376376
total_gaussians = 10
377377

378-
# The sigma values of the Gaussians will be fixed to values spanning 0.01 to the mask radius, 3.0".
378+
# The sigma values of the Gaussians will be fixed to values spanning a tenth of the pixel scale to the mask radius, 3.0".
379379
mask_radius = 3.0
380-
log10_sigma_list = np.linspace(-2, np.log10(mask_radius), total_gaussians)
380+
log10_sigma_list = np.linspace(np.log10(dataset.pixel_scales[0] / 10.0), np.log10(mask_radius), total_gaussians)
381381

382382
disk_gaussian_list = []
383383

0 commit comments

Comments
 (0)