[CIG-SHORT] Simple patch for PyLith 1.0.1 when trying to change fault up_dir and normal_dir

Brad Aagaard baagaard at usgs.gov
Mon Aug 27 14:08:45 PDT 2007


There is a small bug in PyLith 1.0.1 associated with setting the 
fault "up_dir" and "normal_dir" properties for faults. We have updated the 
development version and will try to release a bugfix version as soon as 
possible. In the meantime, you can apply the following changes to fix this 
bug if you downloaded the binaries:

(1) Edit the file $PREFIX/src/pylith/pylith/faults/Fault.py file. Replace the 
lines
    self.upDir = self.inventory.upDir
    self.normalDir = self.inventory.normalDir
with
    self.upDir = map(float, self.inventory.upDir)
    self.normalDir = map(float, self.inventory.normalDir)

(2) Copy this file to $PREFIX/lib/python2.5/site-packages/pylith/faults 
(replacing the file that is there).

Brad


More information about the CIG-SHORT mailing list