Skip to content

Commit

Permalink
pick location from config
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed May 20, 2024
1 parent a6f4673 commit 153edea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fimutil/ralph/fim_helper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from typing import Tuple, List, Dict, Any, Set
import logging
import re
Expand Down Expand Up @@ -309,6 +310,10 @@ def site_to_fim(site: Site, address: str, config: Dict = None) -> SubstrateTopol
loc = None
if address is not None:
loc = Location(postal=address)
loc.to_latlon()

if config and config.get(site.name) and config.get(site.name).get('location'):
loc = Location.from_json(json_string=json.dumps(config.get(site.name).get('location')))

topo = SubstrateTopology()

Expand Down

0 comments on commit 153edea

Please sign in to comment.