This changes manada so that the random source galaxy rotation angle is also recorded in the metadata.
In particular, this:
Modifies draw_phi so it takes no arguments and always draws a random angle, just like sample_indices always draws a random index.
Adds new function fill_catalog_i_phi_defaults which picks a random galaxy index (if one is not provided), and picks a random phi or 0 (if one is not provided), depending on source_parameters['random_rotation']. (Maybe the function could be named better?)
Makes the corresponding (minor) changes to generate.py and draw_source to support these changes.
This changes manada so that the random source galaxy rotation angle is also recorded in the metadata.
In particular, this:
draw_phi
so it takes no arguments and always draws a random angle, just likesample_indices
always draws a random index.fill_catalog_i_phi_defaults
which picks a random galaxy index (if one is not provided), and picks a random phi or 0 (if one is not provided), depending onsource_parameters['random_rotation']
. (Maybe the function could be named better?)generate.py
anddraw_source
to support these changes.