From 33ec6f1556f0c29f599841b34944b834183eb1ab Mon Sep 17 00:00:00 2001 From: Calvin Date: Tue, 2 Apr 2013 11:32:57 -0400 Subject: Throw a proper exception if the linker cannot find libFSToolbox.so, and remove the ToDo section --- README.markdown | 9 --------- feast.py | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/README.markdown b/README.markdown index be68c37..cb46224 100644 --- a/README.markdown +++ b/README.markdown @@ -39,12 +39,3 @@ Demonstration See test/test.py for an example with uniform data and an image data set. The image data set was collected from the digits example in the Scikits-Learn toolbox. - -To Do -==== -1) Add a setup.py script that can manage the build and installation of the - Python interface to FEAST. -2) Add in the rest of the functionality to feast.py. Add subsequent - functionality into the demo. -3) Integrate the module into KBase! -4) Clean up the paths diff --git a/feast.py b/feast.py index 8fb5ce8..767d664 100644 --- a/feast.py +++ b/feast.py @@ -24,8 +24,7 @@ from ctypes import * try: libFSToolbox = CDLL("libFSToolbox.so"); except: - print "Error: could not find libFSToolbox" - exit() + raise Exception("Error: could not load libFSToolbox.so") def BetaGamma(data, labels, n_select, beta=1.0, gamma=1.0): -- cgit v1.2.3