Commit 5e6c9de7 authored by Hugo Buddelmeijer's avatar Hugo Buddelmeijer
Browse files

Two scripts to study the htm module:

- simplecrash.py usually causes a segfault in the htm module
- nocrash.py performs similar actions that do not crash the module
parent 79dcbf4e
"""
This is a simple test using the htm module. This script
does not crash.
See simplecrash.py for a similar example that usually does crash.
"""
import htm
# Look up a trixel on level 7. A level above 6 never seems to crash
# the module.
t=htm.lookup(7,39.,131.)
print(t)
htm.htm_get_edges(7,t)
# A level of 1 often crashes the module. Some trixels never seem
# to crash, like this one.
t=htm.lookup(1,89.,131.)
htm.htm_get_edges(1,t)
"""
This is a simple script that usually crashes the htm module with
a segfault. See nocrash.py for script that usually does not crash.
"""
# Querying a trixel on level 1 often crashes, but not always.
import htm
t=htm.lookup(1,89.,231.)
htm.htm_get_edges(1,t)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment