Skip to content

Commit

Permalink
translation formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongkindofdoctor committed May 23, 2024
1 parent db32fd5 commit 7af53fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ def translate_coord(self, coord, class_dict=None, log=_log) -> dict:
f' by translate_coord')
else:
new_coord = [lut1.values()][0]

if hasattr(coord, 'is_scalar') and coord.is_scalar:
coord_name = ""
if new_coord.get('name', None):
Expand All @@ -331,6 +330,7 @@ def translate_coord(self, coord, class_dict=None, log=_log) -> dict:
else:
new_coord = dc.replace(coord,
**(util.filter_dataclass(new_coord, coord)))

return new_coord

def translate(self, var, from_convention: str):
Expand Down

0 comments on commit 7af53fe

Please sign in to comment.