forked from M-Labs/artiq
language: clean up EmbeddingMap
This commit is contained in:
parent
0233e50d47
commit
ec8ee1e934
|
@ -3,7 +3,6 @@ from artiq.language.core import *
|
||||||
from artiq.language.environment import *
|
from artiq.language.environment import *
|
||||||
from artiq.language.units import *
|
from artiq.language.units import *
|
||||||
from artiq.language.scan import *
|
from artiq.language.scan import *
|
||||||
from artiq.language.embedding_map import *
|
|
||||||
from . import import_cache
|
from . import import_cache
|
||||||
|
|
||||||
__all__ = ["import_cache"]
|
__all__ = ["import_cache"]
|
||||||
|
@ -11,4 +10,3 @@ __all__.extend(core.__all__)
|
||||||
__all__.extend(environment.__all__)
|
__all__.extend(environment.__all__)
|
||||||
__all__.extend(units.__all__)
|
__all__.extend(units.__all__)
|
||||||
__all__.extend(scan.__all__)
|
__all__.extend(scan.__all__)
|
||||||
__all__.extend(embedding_map.__all__)
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
__all__ = [
|
|
||||||
'EmbeddingMap'
|
|
||||||
]
|
|
||||||
|
|
||||||
class EmbeddingMap:
|
class EmbeddingMap:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.object_inverse_map = {}
|
self.object_inverse_map = {}
|
||||||
|
@ -62,5 +58,3 @@ class EmbeddingMap:
|
||||||
|
|
||||||
def retrieve_str(self, key):
|
def retrieve_str(self, key):
|
||||||
return self.string_map[key]
|
return self.string_map[key]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue