pynbody.analysis.luminosity.SSPTableContext

pynbody.analysis.luminosity.SSPTableContext#

class pynbody.analysis.luminosity.SSPTableContext(ssp_table)[source]#

Bases: SettingControl

Context manager for temporarily using a custom SSP table

__init__(ssp_table)[source]#

Create a new setting control object

Parameters:
  • dictionary (dict) – The dictionary to control; this is modified in place.

  • key (str) – The key to modify

  • value (object) – The value to set the key to when creating or entering the with block.