|
185 | 185 | } |
186 | 186 | ], |
187 | 187 | "source": [ |
188 | | - "\n", |
189 | 188 | "ax = plot_coeval_slice(\n", |
190 | 189 | " delta_x,\n", |
191 | 190 | " box_len,\n", |
192 | 191 | " transform2slice=coeval2slice_x(idx=15),\n", |
193 | 192 | " title=\"Slice in x-direction\",\n", |
194 | | - " v_x=delta_x[15,...]*un.m / un.s,\n", |
195 | | - " v_y=delta_x[15,...]*un.m / un.s,\n", |
| 193 | + " v_x=delta_x[15, ...] * un.m / un.s,\n", |
| 194 | + " v_y=delta_x[15, ...] * un.m / un.s,\n", |
196 | 195 | " quiver_decimate_factor=3,\n", |
197 | 196 | ")" |
198 | 197 | ] |
|
232 | 231 | ], |
233 | 232 | "source": [ |
234 | 233 | "plot_coeval_slice(\n", |
235 | | - " delta_x.value*un.mK, box_len, transform2slice=coeval2slice_y(), title=\"Slice in y-direction\"\n", |
| 234 | + " delta_x.value * un.mK,\n", |
| 235 | + " box_len,\n", |
| 236 | + " transform2slice=coeval2slice_y(),\n", |
| 237 | + " title=\"Slice in y-direction\",\n", |
236 | 238 | ")" |
237 | 239 | ] |
238 | 240 | }, |
|
530 | 532 | }, |
531 | 533 | { |
532 | 534 | "cell_type": "code", |
533 | | - "execution_count": 17, |
| 535 | + "execution_count": null, |
534 | 536 | "metadata": {}, |
535 | 537 | "outputs": [], |
536 | 538 | "source": [ |
537 | | - "from tuesday.core import lc2slice_x, lc2slice_y, plot_redshift_slice" |
| 539 | + "from tuesday.core import lc2slice_x, lc2slice_y, plot_lightcone_slice" |
538 | 540 | ] |
539 | 541 | }, |
540 | 542 | { |
541 | 543 | "cell_type": "code", |
542 | | - "execution_count": 18, |
| 544 | + "execution_count": null, |
543 | 545 | "metadata": {}, |
544 | 546 | "outputs": [ |
545 | 547 | { |
|
564 | 566 | } |
565 | 567 | ], |
566 | 568 | "source": [ |
567 | | - "plot_redshift_slice(\n", |
| 569 | + "plot_lightcone_slice(\n", |
568 | 570 | " lc,\n", |
569 | 571 | " box_len,\n", |
570 | 572 | " lc_redshifts,\n", |
|
583 | 585 | }, |
584 | 586 | { |
585 | 587 | "cell_type": "code", |
586 | | - "execution_count": 19, |
| 588 | + "execution_count": null, |
587 | 589 | "metadata": {}, |
588 | 590 | "outputs": [ |
589 | 591 | { |
|
608 | 610 | } |
609 | 611 | ], |
610 | 612 | "source": [ |
611 | | - "plot_redshift_slice(\n", |
| 613 | + "plot_lightcone_slice(\n", |
612 | 614 | " lc,\n", |
613 | 615 | " box_len,\n", |
614 | 616 | " lc_redshifts,\n", |
|
628 | 630 | }, |
629 | 631 | { |
630 | 632 | "cell_type": "code", |
631 | | - "execution_count": 20, |
| 633 | + "execution_count": null, |
632 | 634 | "metadata": {}, |
633 | 635 | "outputs": [ |
634 | 636 | { |
|
653 | 655 | } |
654 | 656 | ], |
655 | 657 | "source": [ |
656 | | - "plot_redshift_slice(\n", |
| 658 | + "plot_lightcone_slice(\n", |
657 | 659 | " lc,\n", |
658 | 660 | " box_len,\n", |
659 | 661 | " lc_redshifts,\n", |
|
793 | 795 | "fig, ax = plt.subplots(1, 1, figsize=(18, 7))\n", |
794 | 796 | "\n", |
795 | 797 | "ax = tuesday.core.plot_power_spectrum(\n", |
796 | | - " ps1d,\n", |
797 | | - " at_k=0.05,\n", |
798 | | - " fontsize=20,\n", |
799 | | - " ax=ax,\n", |
800 | | - " color=f\"r\",\n", |
801 | | - " legend=f\"k ~ 0.05\",\n", |
802 | | - " legend_kwargs={\"frameon\": False},\n", |
803 | | - " logx=False,\n", |
804 | | - " logy=False,\n", |
805 | | - " )\n", |
| 798 | + " ps1d,\n", |
| 799 | + " at_k=0.05,\n", |
| 800 | + " fontsize=20,\n", |
| 801 | + " ax=ax,\n", |
| 802 | + " color=\"r\",\n", |
| 803 | + " legend=\"k ~ 0.05\",\n", |
| 804 | + " legend_kwargs={\"frameon\": False},\n", |
| 805 | + " logx=False,\n", |
| 806 | + " logy=False,\n", |
| 807 | + ")\n", |
806 | 808 | "\n", |
807 | 809 | "ax = tuesday.core.plot_power_spectrum(\n", |
808 | 810 | " all_analytic,\n", |
|
840 | 842 | "fig, ax = plt.subplots(1, 1, figsize=(18, 7))\n", |
841 | 843 | "\n", |
842 | 844 | "ax = tuesday.core.plot_power_spectrum(\n", |
843 | | - " ps1d,\n", |
844 | | - " fontsize=20,\n", |
845 | | - " ax=ax,\n", |
846 | | - " color=f\"r\",\n", |
847 | | - " at_k=at_k,\n", |
848 | | - " legend=f\"k ~ \"+str(at_k),\n", |
849 | | - " legend_kwargs={\"frameon\": False},\n", |
850 | | - " logx=False,\n", |
851 | | - " logy=False,\n", |
852 | | - " )\n", |
| 845 | + " ps1d,\n", |
| 846 | + " fontsize=20,\n", |
| 847 | + " ax=ax,\n", |
| 848 | + " color=\"r\",\n", |
| 849 | + " at_k=at_k,\n", |
| 850 | + " legend=\"k ~ \" + str(at_k),\n", |
| 851 | + " legend_kwargs={\"frameon\": False},\n", |
| 852 | + " logx=False,\n", |
| 853 | + " logy=False,\n", |
| 854 | + ")\n", |
853 | 855 | "\n", |
854 | 856 | "ax = tuesday.core.plot_power_spectrum(\n", |
855 | 857 | " all_analytic,\n", |
|
1064 | 1066 | ], |
1065 | 1067 | "metadata": { |
1066 | 1068 | "kernelspec": { |
1067 | | - "display_name": "21cmFAST", |
| 1069 | + "display_name": "tuesday", |
1068 | 1070 | "language": "python", |
1069 | 1071 | "name": "python3" |
1070 | 1072 | }, |
|
1078 | 1080 | "name": "python", |
1079 | 1081 | "nbconvert_exporter": "python", |
1080 | 1082 | "pygments_lexer": "ipython3", |
1081 | | - "version": "3.11.12" |
| 1083 | + "version": "3.12.6" |
1082 | 1084 | }, |
1083 | 1085 | "latex_envs": { |
1084 | 1086 | "LaTeX_envs_menu_present": true, |
|
0 commit comments