Skip to content

Commit

Permalink
Added Mockter to parser.identify_ess()
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Aug 11, 2024
1 parent 43a060e commit fe74a87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arc/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ def identify_ess(path: str) -> Optional[str]:
Optional[str]: The ESS.
"""
software = None
if path.endswith('.yml'):
content = read_yaml_file(path)
if isinstance(content, dict) and 'adapter' in content.keys():
return content['adapter']
with open(path, 'r') as f:
for _ in range(25):
line = f.readline()
Expand Down

0 comments on commit fe74a87

Please sign in to comment.