Electrostatics / APBS_Sphinx

APBS Rewrite
http://www.poissonboltzmann.org
1 stars 3 forks source link

Add debug flag to apbs.py #38

Closed keith923 closed 8 years ago

keith923 commented 8 years ago

Per the Python documentation, we should have a means to enable all of the asyncio debugging during development in order to identify common errors.

I suggest that we add a debug flag, e.g., --debug, in apbs.py.

keith923 commented 8 years ago

We covered the first two bullets on the debugging page:

The third one, "Configure the warnings module to display ResourceWarning warnings", requires some research to figure out how to do that.

keith923 commented 8 years ago

I think that third bullet can be accomplished by calling warnings.filterwarnings. See warnings filter for more information.

mtartakovsky commented 8 years ago

@keith923 I added warnings.simplefilter('default', ResourceWarning). Not sure if default is the setting we wanted to use.

keith923 commented 8 years ago

Perfect @mtartakovsky! Thanks!