black . -l 79

Former-commit-id: aa4366d836072c442919fbca3b091a089fab5f32
This commit is contained in:
Michael T. Kelbaugh
2020-03-19 17:04:06 -04:00
parent a2f71bc5ee
commit 1ed2b0c732
3 changed files with 15 additions and 4 deletions

View File

@@ -47,7 +47,9 @@ class InnerWrapper(OuterWrapper):
elif self.incstep > 1:
logging.warning(f"incstep {self.incstep}: thermo_water not found")
demand = Water_Demand_Simulation(self.countypop, self.rate, self.thermo_water)
demand = Water_Demand_Simulation(
self.countypop, self.rate, self.thermo_water
)
results = {
"water_demand": {

View File

@@ -556,7 +556,9 @@ class OuterWrapper(ABC):
disagg_name=dagg,
)
message["payload"][item]["data"] = data
message["payload"][item]["unit"] = schema["properties"][item]["properties"]["data"].get("unit", "")
message["payload"][item]["unit"] = schema[
"properties"
][item]["properties"]["data"].get("unit", "")
message["payload"][item]["granularity"] = dest_gran
except ValidationError:
@@ -674,7 +676,9 @@ class OuterWrapper(ABC):
disagg_name=dagg,
)
message["payload"][item]["data"] = data
message["payload"][item]["unit"] = schema["properties"][item]["properties"]["data"].get("unit", "")
message["payload"][item]["unit"] = schema[
"properties"
][item]["properties"]["data"].get("unit", "")
message["payload"][item]["granularity"] = dest_gran
self.validated_schemas[name] = message["payload"]

View File

@@ -155,7 +155,12 @@ def plot_mongo_doc(
plot_height=plot_height,
x_axis_location=None,
y_axis_location=None,
tooltips=[("Name", "@name"), ("ID", "@identifier"), ("Value", "@value{(0.000 a)}"), coords_tuple],
tooltips=[
("Name", "@name"),
("ID", "@identifier"),
("Value", "@value{(0.000 a)}"),
coords_tuple,
],
)
fig.grid.grid_line_color = None
fig.hover.point_policy = "follow_mouse"