petitRADTRANS.config.configuration
==================================

.. py:module:: petitRADTRANS.config.configuration

.. autoapi-nested-parse::

   Manages the configuration files.



Attributes
----------

.. autoapisummary::

   petitRADTRANS.config.configuration.petitradtrans_config_parser


Classes
-------

.. autoapisummary::

   petitRADTRANS.config.configuration.PetitradtransConfigParser


Functions
---------

.. autoapisummary::

   petitRADTRANS.config.configuration.get_input_data_subpaths


Module Contents
---------------

.. py:class:: PetitradtransConfigParser(*args, **kwargs)

   Bases: :py:obj:`configparser.ConfigParser`


   Used to manage petitRADTRANS's configuration.


   .. py:attribute:: _instance
      :value: None



   .. py:attribute:: _directory


   .. py:attribute:: _config_file


   .. py:attribute:: _default_config


   .. py:method:: _make()
      :classmethod:


      Get the petitRADTRANS configuration directory, where the configuration file is stored.

      Returns:
          The configuration directory.



   .. py:property:: config_file

      Get the full path to the petitRADTRANS configuration file.

      Returns:
          The configuration filename.



   .. py:property:: default_config


   .. py:property:: directory


   .. py:method:: get_input_data_path() -> str


   .. py:method:: get_input_data_subpath(path, path_input_data=None, strict=True)


   .. py:method:: init_default()
      :classmethod:



   .. py:method:: load()

      Load the petitRADTRANS configuration file.



   .. py:method:: power_load()

      Load the petitRADTRANS configuration file. Generate it if necessary.



   .. py:method:: power_set(section, option, value)


   .. py:method:: power_update(new_config, repair_update=True)


   .. py:method:: save()


   .. py:method:: set_input_data_path(path: str)

      Update the configuration file of petitRADTRANS.

      Args:
          path: path to the petitRADTRANS input data file



   .. py:method:: set_default_file(file: str, path_input_data=None)


   .. py:method:: repair()


.. py:function:: get_input_data_subpaths() -> petitRADTRANS.utils.LockedDict

.. py:data:: petitradtrans_config_parser

