mirror of https://github.com/VLSIDA/OpenRAM.git
Return empty string instead of None when no grid type
This commit is contained in:
parent
72dc1c58da
commit
be79789097
|
|
@ -34,7 +34,6 @@ class grid_cell:
|
||||||
if self.min_cost > 0:
|
if self.min_cost > 0:
|
||||||
return self.min_cost
|
return self.min_cost
|
||||||
|
|
||||||
|
|
||||||
def get_type(self):
|
def get_type(self):
|
||||||
type_string = ""
|
type_string = ""
|
||||||
|
|
||||||
|
|
@ -50,7 +49,5 @@ class grid_cell:
|
||||||
if self.path:
|
if self.path:
|
||||||
type_string += "P"
|
type_string += "P"
|
||||||
|
|
||||||
if type_string != "":
|
return type_string
|
||||||
return type_string
|
|
||||||
|
|
||||||
return None
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue