pynbody.analysis.ionfrac.IonTableContext

pynbody.analysis.ionfrac.IonTableContext#

class pynbody.analysis.ionfrac.IonTableContext(ion_table)[source]#

Bases: SettingControl

Context manager for temporarily using a custom ionisation fraction table

__init__(ion_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.