소스 검색

Bugfix

master
Lukas Prause 2 년 전
부모
커밋
9eabd701e4
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. +7
    -3
      plot_single_transmission_EM9190.py

+ 7
- 3
plot_single_transmission_EM9190.py 파일 보기

@@ -30,10 +30,14 @@ tex_fonts = {

def convert_cellid(value):
if isinstance(value, str):
return int(value.split(" ")[-1].replace("(", "").replace(")", ""))
try:
r = int(value.split(" ")[-1].replace("(", "").replace(")", ""))
return r
except Exception as e:
return -1
else:
return int(-1)

if __name__ == "__main__":
parser = ArgumentParser()
@@ -104,7 +108,7 @@ if __name__ == "__main__":
serial_df.index = pd.to_datetime(serial_df.index)
serial_df.sort_index()

print(serial_df["Cell_ID"])
#print(serial_df["Cell_ID"])

#serial_df["Cell_ID"] = serial_df["Cell_ID"].apply(
# lambda x: int(x.split(" ")[-1].replace("(", "").replace(")", "")))

Loading…
취소
저장