diff --git a/dist/teomim-0.0.148.tar.gz b/dist/teomim-0.0.149.tar.gz similarity index 51% rename from dist/teomim-0.0.148.tar.gz rename to dist/teomim-0.0.149.tar.gz index 45d9f59..4656d9f 100644 Binary files a/dist/teomim-0.0.148.tar.gz and b/dist/teomim-0.0.149.tar.gz differ diff --git a/docs/teomim.html b/docs/teomim.html index 6276262..87ac22b 100644 --- a/docs/teomim.html +++ b/docs/teomim.html @@ -122,7 +122,7 @@

Module teomim.teomim

self.asset_path = pkg_resources.resource_filename('teomim', 'assets/') - def set_model(specifier,path=None,gz=None): + def set_modelpath(specifier,path=None,gz=None): if gz: self.gz = gz if not path: @@ -348,7 +348,7 @@

Classes

self.asset_path = pkg_resources.resource_filename('teomim', 'assets/') - def set_model(specifier,path=None,gz=None): + def set_modelpath(specifier,path=None,gz=None): if gz: self.gz = gz if not path: @@ -533,6 +533,25 @@

Methods

self.featurenames = np.array(self.model.feature_names) +
+def set_modelpath(specifier, path=None, gz=None) +
+
+
+
+ +Expand source code + +
def set_modelpath(specifier,path=None,gz=None):
+    if gz:
+        self.gz = gz
+    if not path:
+        self.modelpath = glob.glob(self.asset_path+'/*'+specifier+'*')[0]
+    else:
+        self.modelpath = specifier
+    return self.modelpath
+
+
@@ -563,12 +582,13 @@

Index