2017-03-14 14:06:18 +00:00
|
|
|
class Biogeme < Formula
|
|
|
|
desc "Maximum likelihood estimation of choice models"
|
|
|
|
homepage "http://biogeme.epfl.ch"
|
2017-03-14 14:06:18 +00:00
|
|
|
url "http://biogeme.epfl.ch/distrib/biogeme-2.6a.tar.gz"
|
|
|
|
sha256 "f6de0ea12f83ed183f31a41b9a56d1ec7226d2305549fb89ea7b1de8273ede49"
|
2017-03-14 14:06:18 +00:00
|
|
|
|
2017-03-15 09:00:58 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "57b8dc37a3f62f8158019ba7ed16955d84603e9d5544bf8ec43ca1b7f2c8ff5b" => :sierra
|
|
|
|
sha256 "747a09308ea2475fc2d1e4823a352c1f5c10fadab1d88bf7250cd78c59a326ee" => :el_capitan
|
|
|
|
sha256 "2f15fe2bc8ccf24889fdb13eba6f8e9299e55a277fa06417dc556802bb40e385" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-03-14 14:06:18 +00:00
|
|
|
depends_on :python3
|
|
|
|
depends_on "gtkmm3"
|
|
|
|
|
|
|
|
def install
|
2017-03-14 14:06:18 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2017-03-14 14:06:18 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"minimal.py").write <<-EOS.undent
|
|
|
|
from biogeme import *
|
|
|
|
rowIterator('obsIter')
|
|
|
|
BIOGEME_OBJECT.SIMULATE = Enumerate({'Test':1},'obsIter')
|
|
|
|
EOS
|
|
|
|
(testpath/"minimal.dat").write <<-EOS.undent
|
|
|
|
TEST
|
|
|
|
1
|
|
|
|
EOS
|
|
|
|
system bin/"pythonbiogeme", "minimal", "minimal.dat"
|
|
|
|
end
|
|
|
|
end
|