Returns a boolean that indicates whether PyMJCF debug mode is enabled.
()
| 67 | |
| 68 | |
| 69 | def debug_mode(): |
| 70 | """Returns a boolean that indicates whether PyMJCF debug mode is enabled.""" |
| 71 | global _DEBUG_MODE_ENABLED |
| 72 | if _DEBUG_MODE_ENABLED is None: |
| 73 | if FLAGS.is_parsed(): |
| 74 | _DEBUG_MODE_ENABLED = FLAGS.pymjcf_debug |
| 75 | else: |
| 76 | _DEBUG_MODE_ENABLED = FLAGS['pymjcf_debug'].default |
| 77 | return _DEBUG_MODE_ENABLED |
| 78 | |
| 79 | |
| 80 | def enable_debug_mode(): |
no outgoing calls
no test coverage detected
searching dependent graphs…