Max Temperatures ================ We have a number of temperatures mesured at various times for a set of ovens that belong to an industrial process. For example: .. literalinclude:: tmax_time_oven-test.txt :language: python3 :start-after: --input-ini :end-before: --input-fi where we have: - ``ovenL`` is a list of oven identifiers (:class:`str`) - ``tempL`` is a list of :class:`tuple` each with the measures taken at a specific time. The tuple has two components: the first is a :class:`str` with the time of measure, and the second is a :class:`list` with the temperature measures taken at that time in the same order of the ovens in ``ovenL``. You are required to implement the following functions in the module :mod:`tmax.py` (file :file:`tmax.py`): ----------------------------------------------------------------------------------- Maximum for each Time --------------------- The first function is .. py:function:: tmax_time_oven(ovenL, tempL) such that **given** ``ovenL`` and ``tempL`` as described above, **returns** a list where, for each time of measure, it includes the maximum temperature of all the ovens. Specifically, for each time of mesure of ``tempL``, and in the same order, this list must include a tuple with three components: the time (:class:`str`), the max temperature (:class:`float`) of all the temperatures taken at that time for the different ovens, and the oven identifier (:class:`str`) of that max temperature. In case that there is more than one oven with the max temperature, the first one is taken. For example, given the input lists above: .. literalinclude:: tmax_time_oven-test.txt :language: python3 :start-after: --output-ini :end-before: --output-fi Doctests are available at més tests al fitxer :download:`tmax_time_oven-test.txt `. ----------------------------------------------------------------------------------- Maximum for each Oven --------------------- .. py:function:: tmax_oven(ovenL, tempL) such that **given** ``ovenL`` and ``tempL`` as described above, **returns** a list where, for each oven, it includes the maximum temperature of all times of measure. Specificly, for each oven ``ovenL``, and in the same order, this list must include a tuple with two components: the oven id (:class:`str`), and the max temperature (:class:`float`). In case that there is no temperatrue measure for that oven the value will be 0.0. For example, given the input lists above: .. literalinclude:: tmax_oven-test.txt :language: python3 :start-after: --output-ini :end-before: --output-fi Doctests are available at més tests al fitxer :download:`tmax_oven-test.txt `.