Autoformat python to fix lint errors (#1470)

* Autoformat python to fix lint errors

* Fix lint errors not caught by black
This commit is contained in:
Matt Weiden
2020-05-12 13:19:38 -07:00
committed by GitHub
parent e55595cc55
commit 730410c5e1
10 changed files with 50 additions and 55 deletions
+2 -2
View File
@@ -264,7 +264,7 @@ class CxgAdaptor(DataAdaptor):
# function to get the embedding
# this function to iterate through embeddings.
def get_embedding_names(self):
with ServerTiming.time(f"layout.lsuri"):
with ServerTiming.time("layout.lsuri"):
pemb = self.get_path("emb")
embeddings = [os.path.basename(p) for (p, t) in self.lsuri(pemb) if t == "array"]
if len(embeddings) == 0:
@@ -311,7 +311,7 @@ class CxgAdaptor(DataAdaptor):
A = self.open_array(ax)
schema_hints = json.loads(A.meta["cxg_schema"]) if "cxg_schema" in A.meta else {}
if type(schema_hints) is not dict:
raise TypeError(f"Array schema was malformed.")
raise TypeError("Array schema was malformed.")
cols = []
for attr in A.schema: