esheldon / esutil

A variety of python utilities focusing on numerical, scientific, and astrophysical computing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matcher segfaults if a dummy HTM object isn't created first

erykoff opened this issue · comments

The following code snippet seg-faults (a fresh python instance):

import esutil
import numpy as np
m=esutil.htm.Matcher(10,np.array([10.0]),np.array([10.0]))

But initializing a dummy object first works:

import esutil
import numpy as np
h=esutil.htm.HTM(10)
m=esutil.htm.Matcher(10,np.array([10.0]),np.array([10.0]))

Fixed in master, please give it a try.

No more segfault!