hera_sim.visibilities.pyuvsim_wrapper.UVSim

class hera_sim.visibilities.pyuvsim_wrapper.UVSim(quiet: bool = False)[source]

A wrapper around the pyuvsim simulator.

Parameters:

quiet – If True, don’t print anything.

Methods

compress_data_model(data_model)

Temporarily delete/remove data from the model to reduce memory usage.

estimate_memory(data_model)

Estimate the memory usage of the simulator in GB.

from_yaml(yaml_config)

Generate the simulator from a YAML file or dictionary.

restore_data_model(data_model)

Restore data from the model removed by compress_data_model().

simulate(data_model)

Simulate the visibilities.

validate(data_model)

Check that the data model complies with the assumptions of the simulator.

Attributes

diffuse_ability

Whether this particular simulator has the ability to simulate diffuse maps directly.

point_source_ability

Whether this particular simulator has the ability to simulate point sources directly.