Skip to content

Commit

Permalink
remove f-string, to keep the compatibility with python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Jun 1, 2020
1 parent 2d69e21 commit 0b01eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smrt/core/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def Tb_as_dataframe(self, index_by_channel=False, **kwargs):
else:
if 'channel' not in tb.index.names:
raise SMRTError("No channel information is given in the result. Unable to index the result by channel.")
return tb.set_index(np.array([f"{channel}{pola}" for channel, pola in tb.index]))
return tb.set_index(np.array([str(channel) + str(pola) for channel, pola in tb.index]))

def TbV(self, **kwargs):
"""Return V polarization. Any parameter can be added to slice the results (e.g. frequency=37e9).
Expand Down

0 comments on commit 0b01eb2

Please sign in to comment.