biogeme 2.5 (new formula)
Closes #11079. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
cb1f5dc97f
commit
fc480372da
1 changed files with 30 additions and 0 deletions
30
Formula/biogeme.rb
Normal file
30
Formula/biogeme.rb
Normal file
|
@ -0,0 +1,30 @@
|
|||
class Biogeme < Formula
|
||||
desc "Maximum likelihood estimation of choice models"
|
||||
homepage "http://biogeme.epfl.ch"
|
||||
url "http://biogeme.epfl.ch/distrib/biogeme-2.5.tar.gz"
|
||||
sha256 "88548e99f4f83c24bf7ddb8e0de07588adc2bec515569c56e816ed5b20a624b3"
|
||||
|
||||
depends_on :python3
|
||||
depends_on "gtkmm3"
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--enable-python",
|
||||
"--enable-bison",
|
||||
"--enable-gui"
|
||||
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
|
Loading…
Reference in a new issue