mirror of
https://github.com/JHUAPL/SIMoN.git
synced 2026-01-09 14:57:56 -05:00
black . -l 79
Former-commit-id: aa4366d836072c442919fbca3b091a089fab5f32
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user