Skip to content

Commit

Permalink
0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaldb committed Feb 21, 2022
1 parent 00c2579 commit 2c2ad82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/vitaldb-pypi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="vitaldb",
version="0.1.9",
version="0.1.11",
author="Hyung-Chul Lee",
author_email="[email protected]",
description="VitalDB Python Libray",
Expand Down
7 changes: 4 additions & 3 deletions python/vitaldb-pypi/vitaldb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ def __init__(self, ipath, track_names=None, track_names_only=False, exclude=[],
dname_to_dids = {dev['name']: did for did, dev in vf.devs.items()}
dtname_to_trks = {trk['dtname']: trk for tid, trk in vf.trks.items()}
else: # 그 다음 파일 부터는 합쳐야 함
if abs(self.dtstart - vf.dtstart) > 48 * 3600:
# 모든 파일은 48시간 범위 이내에 있어야 한다.
if abs(self.dtstart - vf.dtstart) > 7 * 24 * 3600:
# 모든 파일은 7일 이내에 있어야 한다
continue

self.dtstart = min(self.dtstart, vf.dtstart)
Expand Down Expand Up @@ -1240,4 +1240,5 @@ def vital_trks(ipath):
#vals = vital_recs("https://vitaldb.net/samples/00001.vital", return_timestamp=True, return_pandas=True)
#print(vals)
vf = VitalFile("https://vitaldb.net/samples/00001.vital")
vf.to_wav('1.wav', ['SNUADC/ECG_II'], 500)
vf.crop(300, 360)
vf.to_wav('1.wav', ['SNUADC/ECG_II'], 44100)

0 comments on commit 2c2ad82

Please sign in to comment.