Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
matt authored and matt committed Oct 30, 2023
1 parent 786a862 commit 6757ee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lcls_tools/common/devices/yaml/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def _construct_information_from_element(
item.strip() for item in element["Beampath"].split(",") if item
],
"area": element["Area"],
"sum_l_meters": float(np.format_float_positional(sum_l_meters, precision=3))
"sum_l_meters": float(
np.format_float_positional(sum_l_meters, precision=3)
),
},
}

Expand Down
6 changes: 3 additions & 3 deletions lcls_tools/common/devices/yaml/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def _constuct_yaml_contents(self, area: str) -> dict:
area=area,
)
if magnets:
file_contents['magnets'] = magnets
file_contents["magnets"] = magnets
screens = self.generator.extract_screens(
area=area,
)
if screens:
file_contents['screens'] = screens
file_contents["screens"] = screens

if file_contents:
return file_contents
return None
Expand Down

0 comments on commit 6757ee4

Please sign in to comment.