Skip to content

Commit

Permalink
return Channel Conversion object
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Aug 27, 2024
1 parent 114b943 commit 0aebf76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/asammdf/blocks/conversion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def inverse_conversion(conversion: ChannelConversionType | dict | None) -> v4b.C
"P6": a,
"conversion_type": v4c.CONVERSION_TYPE_RAT,
}
conv = v4b.ChannelConversion(**conv)

elif a == 0 and d == 0:

Expand All @@ -314,6 +315,7 @@ def inverse_conversion(conversion: ChannelConversionType | dict | None) -> v4b.C
"P6": -b,
"conversion_type": v4c.CONVERSION_TYPE_RAT,
}
conv = v4b.ChannelConversion(**conv)

else:
conv = None
Expand Down

0 comments on commit 0aebf76

Please sign in to comment.