Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



51 Commits

Repository files navigation

Code for masters thesis

Data generation

Run one of these files to generate data:

  • for fixed z_lens, fixed M, varying hole size rh, varying Lambda(graph 5)
  • for fixed z_lens, fixed hole size rh, varying M, varying Lambda (graph 8)

These two above are the most well written code, I tried to clean them up and add explanations.

The ones below are more messy, I didn't bother cleaning them up, but they were used for generating other things:

  • used for generating the errors graph (fig 6)
  • used for generating LTB graphs (things in Appendix A)

Modify main() for parameters (such as number of datapoints, output filename, etc, as necessary. Flat space is used as default. Change values of om_k in main() to generate data for curved space.

TODO: Some functions should be refactored out...

Analysis and generating plots has some miscellaneous functions used for plotting.

produce_plot.ipynb shows how to use the data generated by the various files. It generates the plots that are used in, again it has minimal customizability so to change anything please modify and reload.

ltb_plots.ipynb shows how to use the output of (data/ltb.csv) to generate the LTB plot in Appendix A.

Graphs for the mass, density, pressure of LTB are generated with ltb_graph() function in (see last part of produce_plot.ipynb).


  • shows an example of how to calculate intersection analytically for flat space as described in Section 3.3.1 (FRW region) in report, just look at the propagation in FRW at the start, everything else is probably not up to date.


MSci project stuffs






No releases published


No packages published