Skip to content

mod_gui_sb.py user manual

Ian Leiman edited this page Feb 9, 2018 · 2 revisions

Usage of mod_gui_sb.py

This is a simple GUI application to calculate MOD = Maximum Operating Depth for a breathing gas mix. It is dependent on PyQt5 for graphics. You need to have pyqt5 modules installed to your Python before you can use this. It uses nice spinbox widgets and is nicer to use than the parallel mod_gui_tk.py app which is based of tkinter.

You can start it by invoking command

python mod_gui_sb.py

You should see the following window popping up:

Maximum operating depth is calculated in meters for the mix at ppO2 you specify.

  • Enter O2% in percentage
  • Enter ppO2 in bar (ATA).
  • you can use the combobox widget to quickly select O2% for some common gases
  • EXIT button exits the application, so does closing the window

error checking

The spinboxes do not allow you to enter any insane values. The limits are:

  • O2% = [12% to 100%], increments of 1 %
  • ppO2 = [1.0 to 2.0], increments of 0.1

dependencies

  • The GUI uses PyQt5 widgets.
  • calculation depends on tmx_calc.py

PyQt5 is not included in Default Python installation and yuo will need to install is using pip.

Install Pyqt5

  • Windows: python -m pip install pyqt5
  • Linux: $ sudo pip3 install pyqt5

other variants

There are also variants based on tkinter, see: mod_gui_tk.py.

What is MOD?

See wikipedia for MOD details

Disclaimer

Use this application at your own risk, the author provides no guarantees about the correctness of the application, and assumes no liability for the use of it for any purpose!

  • In no event should you consider blending breathing gases without proper training!
  • In no event should you consider scuba diving with mixed gases without proper training!
  • Ignoring these warnings can cause your death or serious and permanent injuries!