Skip to content

Commit

Permalink
Fix build further.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Mar 17, 2023
1 parent 144c3c8 commit 511871d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smarts/sstudio/genscenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _build_graph(scenario: types.Scenario, base_dir: str) -> Dict[str, Any]:
artifact_path = os.path.join(base_dir, f"{dataset.name}.shf")
graph["traffic_histories"].append(artifact_path)

if scenario.scenario_metadata:
if scenario.scenario_metadata is not None:
graph["scenario_metadata"] = [os.path.join(base_dir, "scenario_metadata.json")]

return graph
Expand Down Expand Up @@ -335,7 +335,7 @@ def gen_scenario(
artifact_paths = build_graph["scenario_metadata"]
obj_hash = pickle_hash(scenario.scenario_metadata, True)
if _needs_build(
db_conn, scenario.traffic, artifact_paths, obj_hash, map_needs_rebuild
db_conn, scenario.scenario_metadata, artifact_paths, obj_hash, map_needs_rebuild
):
with timeit("scenario_metadata", logger.info):
gen_metadata(
Expand Down

0 comments on commit 511871d

Please sign in to comment.