Skip to content

Commit

Permalink
Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Feb 12, 2024
1 parent 7b20265 commit d7bad29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/var_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,7 @@ def forward_transform(self, lvar_lname, rvar_lname, rvar_indices, lvar_indices,
# end if
rhs_term = self.__unit_transforms[0].format(var=rhs_term, kind=kind)
# end if
cspace = ' '*(24-len(lhs_term))
return f"{lhs_term}{cspace} = {rhs_term}"
return f"{lhs_term} = {rhs_term}"

def reverse_transform(self, lvar_lname, rvar_lname, rvar_indices, lvar_indices,
adjust_hdim=None, flip_vdim=None):
Expand Down Expand Up @@ -1024,8 +1023,7 @@ def reverse_transform(self, lvar_lname, rvar_lname, rvar_indices, lvar_indices,
# end if
rhs_term = self.__unit_transforms[1].format(var=rhs_term, kind=kind)
# end if
cspace = ' '*(30-len(lhs_term))
return f"{lhs_term}{cspace} = {rhs_term}"
return f"{lhs_term} = {rhs_term}"

def _get_kind_convstrs(self, var1_kind, var2_kind, run_env):
"""Attempt to determine if no transformation is required (i.e., if
Expand Down

0 comments on commit d7bad29

Please sign in to comment.