Upgrade NAS-API to v2.0:
we use an abstract class NASBenchMetaAPI to define the spec of an API; it can be inherited to support different kinds of NAS API, while keep the query interface the same.
This commit is contained in:
		| @@ -112,6 +112,7 @@ class Structure: | ||||
|  | ||||
|   @staticmethod | ||||
|   def str2structure(xstr): | ||||
|     if isinstance(xstr, Structure): return xstr | ||||
|     assert isinstance(xstr, str), 'must take string (not {:}) as input'.format(type(xstr)) | ||||
|     nodestrs = xstr.split('+') | ||||
|     genotypes = [] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user