From 60a85e6be6acf27da6d3e30bebf4681901ea5ee0 Mon Sep 17 00:00:00 2001 From: Kumar-laxmi Date: Wed, 21 Feb 2024 11:58:53 +0530 Subject: [PATCH] Bowel sounds waveform integrated with the application and backend --- app/DashApp/Bowel/borborygmus_dash.py | 7 +- ...its_due_to_renal_arteries_stenosis_dash.py | 7 +- app/DashApp/Bowel/captement_dash.py | 7 +- app/DashApp/Bowel/constipation_dash.py | 7 +- app/DashApp/Bowel/crohns_disease_dash.py | 7 +- app/DashApp/Bowel/diarrhea_dash.py | 7 +- app/DashApp/Bowel/hyperactive_dash.py | 7 +- app/DashApp/Bowel/hypoactive_dash.py | 7 +- .../Bowel/irritable_bowel_syndrome_dash.py | 7 +- app/DashApp/Bowel/normal_bowel_dash.py | 7 +- .../normal_bowel_sound_with_bruits_dash.py | 7 +- app/DashApp/Bowel/paralytic_ileus_dash.py | 7 +- .../Bowel/peritoneal_friction_rub_dash.py | 7 +- app/DashApp/Bowel/ulcerative_colitis_dash.py | 7 +- app/__pycache__/views.cpython-311.pyc | Bin 136178 -> 136853 bytes app/templates/elements/Scripts/graphs.html | 111 ++++++++++++++++++ app/templates/index.html | 55 +-------- app/views.py | 1 + db.sqlite3 | Bin 262144 -> 262144 bytes test.ipynb | 43 +++++++ 20 files changed, 170 insertions(+), 138 deletions(-) create mode 100644 app/templates/elements/Scripts/graphs.html diff --git a/app/DashApp/Bowel/borborygmus_dash.py b/app/DashApp/Bowel/borborygmus_dash.py index 03fc3be8d..a299f46ab 100644 --- a/app/DashApp/Bowel/borborygmus_dash.py +++ b/app/DashApp/Bowel/borborygmus_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/borborygmus.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/bruits_due_to_renal_arteries_stenosis_dash.py b/app/DashApp/Bowel/bruits_due_to_renal_arteries_stenosis_dash.py index b6902685d..3a1a6824e 100644 --- a/app/DashApp/Bowel/bruits_due_to_renal_arteries_stenosis_dash.py +++ b/app/DashApp/Bowel/bruits_due_to_renal_arteries_stenosis_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/bruits_due_to_renal_arteries_stenosis.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/captement_dash.py b/app/DashApp/Bowel/captement_dash.py index c891cf22b..e70176dd9 100644 --- a/app/DashApp/Bowel/captement_dash.py +++ b/app/DashApp/Bowel/captement_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/capotement.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/constipation_dash.py b/app/DashApp/Bowel/constipation_dash.py index 39e17bb4d..21612e612 100644 --- a/app/DashApp/Bowel/constipation_dash.py +++ b/app/DashApp/Bowel/constipation_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/constipation.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/crohns_disease_dash.py b/app/DashApp/Bowel/crohns_disease_dash.py index c07ef72ec..d84b7e6c7 100644 --- a/app/DashApp/Bowel/crohns_disease_dash.py +++ b/app/DashApp/Bowel/crohns_disease_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/crohns_disease.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/diarrhea_dash.py b/app/DashApp/Bowel/diarrhea_dash.py index 426d7f172..855b6efe1 100644 --- a/app/DashApp/Bowel/diarrhea_dash.py +++ b/app/DashApp/Bowel/diarrhea_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/diarrhea.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/hyperactive_dash.py b/app/DashApp/Bowel/hyperactive_dash.py index 64484d293..5d4f1d217 100644 --- a/app/DashApp/Bowel/hyperactive_dash.py +++ b/app/DashApp/Bowel/hyperactive_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/hyperactive_sounds.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/hypoactive_dash.py b/app/DashApp/Bowel/hypoactive_dash.py index 01be19095..d2dd783f2 100644 --- a/app/DashApp/Bowel/hypoactive_dash.py +++ b/app/DashApp/Bowel/hypoactive_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/hypoactive_sounds.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/irritable_bowel_syndrome_dash.py b/app/DashApp/Bowel/irritable_bowel_syndrome_dash.py index 84b29ffe1..34d872e47 100644 --- a/app/DashApp/Bowel/irritable_bowel_syndrome_dash.py +++ b/app/DashApp/Bowel/irritable_bowel_syndrome_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/irritable_bowel_syndrome.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/normal_bowel_dash.py b/app/DashApp/Bowel/normal_bowel_dash.py index 6a3c659d9..5b76d9591 100644 --- a/app/DashApp/Bowel/normal_bowel_dash.py +++ b/app/DashApp/Bowel/normal_bowel_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/normal_bowel.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/normal_bowel_sound_with_bruits_dash.py b/app/DashApp/Bowel/normal_bowel_sound_with_bruits_dash.py index efd6f5712..69e022328 100644 --- a/app/DashApp/Bowel/normal_bowel_sound_with_bruits_dash.py +++ b/app/DashApp/Bowel/normal_bowel_sound_with_bruits_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/normal_bowel_sound_with_bruits.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/paralytic_ileus_dash.py b/app/DashApp/Bowel/paralytic_ileus_dash.py index 40bdab852..151e9f729 100644 --- a/app/DashApp/Bowel/paralytic_ileus_dash.py +++ b/app/DashApp/Bowel/paralytic_ileus_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/DashApp/Bowel/paralytic_ileus_dash.py' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/peritoneal_friction_rub_dash.py b/app/DashApp/Bowel/peritoneal_friction_rub_dash.py index 2a205b3ba..682e4fa72 100644 --- a/app/DashApp/Bowel/peritoneal_friction_rub_dash.py +++ b/app/DashApp/Bowel/peritoneal_friction_rub_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/static/audio/abdomen/peritoneal_friction_rub.wav' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/DashApp/Bowel/ulcerative_colitis_dash.py b/app/DashApp/Bowel/ulcerative_colitis_dash.py index 62ad176db..2c37c8d87 100644 --- a/app/DashApp/Bowel/ulcerative_colitis_dash.py +++ b/app/DashApp/Bowel/ulcerative_colitis_dash.py @@ -88,9 +88,4 @@ def loadAudioData(audioPath): ) def update_audio_data(audioPath): audioPath = 'app/DashApp/Bowel/ulcerative_colitis_dash.py' - duration = 0.887 - sample_rate = 44100 - if not audioPath: # If the input is empty, return zero values - return {'audio_data': [0] * int(duration * sample_rate), 'audio_duration': duration} # Assuming a small duration with zero values - else: - return loadAudioData(audioPath) + return loadAudioData(audioPath) diff --git a/app/__pycache__/views.cpython-311.pyc b/app/__pycache__/views.cpython-311.pyc index 518b6547949d0f3d06c7350f5fe7bef397a0cd5a..44429d88296349af2054e2d87b8a0465c862acca 100644 GIT binary patch delta 4863 zcmc(idu&tJ8Nhw7aqPSwkdOpILYx9lNaBR>Tu7W3X+p@0M}`SF$38c)gRkwJdkusQ zxvNm8im8KLI=Ab(t)qpp!rIN6Ql_bzwn^2HirA(}lciN!wSU;sjcyu$Ox@%A&b9Nx z1O@(>75{P`-}%n>opZkL9RK~A<>i}}oNL+H83y>we*JgS7jIw6DHd*A+Wc3NMzj1| zz(zo-D#H_oDFiLvr*pW+$J|Uo8;}z?eY%i4tb|@r@YI#OWy6=E$?ye z5ezhYR5TdK=SVZn88t&`FKHpI#6j9fJLwP&l0_R6izB2f-2j#B$$e-7erPVuyODnt z2EPqo{p0KolvoYIQpti;l1B{z;~C>o!)XEZ=1xAF)InEE-AlCgh{qR;ta(VJcZrh1 zha~nV{OcnJNIw}MgJg&d!>IhpgW6Pnk>(Ih!V{Jv<7U2ehsa@agp82SlcU5*i_ROI z$LLz%C@lsarzOA>v=r!~>wsf)J&@2cpqp+0dT2S2(h8tNHv-3LC2)dTfnHh#^wDR4 zlXMgCB;5>b@Y5~uPo_3tfK~&8v<4WWTY*!w7RYEFP@$_18f^8kSB$MfVNN{H9c1t~ zJt2n`7bS`}ULAeyrm!i(%Q+qrQYBdmsCr+%Cm2vvUx=u_U_ftL?O{Q00LJ8!UvjyFrzL-M?+qcNgd33`2r`-Y z^>$sMHG1)Fp}dcGuL%)G{L`w>QiFBUR5m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x0jR3-B&4SRm9|eqdWJA8jzhEo&jMwD1fBy< z0M7#v;054C0OyoYnfx+IK^UL|O+D&V6WgEw{0-p^0AW{KYZF3ly+z1Y3_B`6sxJwv z&~RV6d1xKzy%yS3Bf~K{F|xdb(6&PZ(4r#^-R5%6w#wgD}s)kukFfIaa~f!naaKVSZ-48nfDR3 zKUc$i${^*(>)l~wT=KS@Jk8c%1k%iHqskH(^>cCE(O0NFmZ7HarHg`i70RyxuM;Nb zWTw#33DieNHgv_qkNU}=LUCQ=BNUGQzf^?X0iT<0R%}Q`jjNiOGsrZ|rmO6gc zI+gfwB{SonE+JTwDW^QHeHQ5wB)9OaXe&6=%i_>u1Inl`S zWW%5K=+A$A^X1BMb0_3varg|5214bcnmlRoCeMU?*Z=vp91QmC9?-p|(J`B}^i&zyfzx5dd(n6Cq#^uou`5++vlWf;CZJ z@|1ZSP>0r4Tf=aGkNS)i;%(|@q!|2%>hxtRW9Prm*4o+m-)CyCTQhTKuCBCPsLWlx G-1;A#L4a8R diff --git a/app/templates/elements/Scripts/graphs.html b/app/templates/elements/Scripts/graphs.html new file mode 100644 index 000000000..e38207cae --- /dev/null +++ b/app/templates/elements/Scripts/graphs.html @@ -0,0 +1,111 @@ +{% load plotly_dash %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index e083a59a9..bf0cede43 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -164,60 +164,7 @@

- - - - - - - - - - - - - - - - - - - - - - - - + {% include 'elements/Scripts/graphs.html' %}
diff --git a/app/views.py b/app/views.py index f2ed03f08..8b6977e62 100644 --- a/app/views.py +++ b/app/views.py @@ -16,6 +16,7 @@ from .DashApp import blank_hbr_dash, ecg_dash, rsp_dash, comp_dash from .DashApp.Heart import mitral_dash, aortic_dash, pulmonary_dash, tricuspid_dash, erb_dash from .DashApp.Lung import LUL_dash, LML_dash, LLL_dash, RUL_dash, RML_dash, RLL_dash +from .DashApp.Bowel import borborygmus_dash, bruits_due_to_renal_arteries_stenosis_dash, captement_dash, constipation_dash, crohns_disease_dash, diarrhea_dash, hyperactive_dash, hypoactive_dash, irritable_bowel_syndrome_dash, normal_bowel_dash, normal_bowel_sound_with_bruits_dash, paralytic_ileus_dash, peritoneal_friction_rub_dash, ulcerative_colitis_dash # Define the signal hr_show, rr_show = 60, 15 # Initialize the Heart Rate and Breadth Rate diff --git a/db.sqlite3 b/db.sqlite3 index 6243bed96a34b1785473aecb6708eef9e44bd60e..921b56046e3d65399af17aa8ecbe62b6c59ec769 100644 GIT binary patch delta 2428 zcmb_ddu$X%7~h$1W@mQqRe1@ulv2y1#iPeTt5CpJ(p02^@+vVl*S+htxAy2AdspEM zcy}s~1T_@YwZ<3%S}dA~L3@dkpjD$nV-ce~4B&$b1vEm?iiwGPcg4__R{wCaf9&_o z?96_@?>E0+ES3?AWo)|*xtp^VAotrfzfVV(_E#0w#1_`idT>sCWbM+bx`tW)yOuw; zNV#XRGvsioOIF!kO%GJ9Ro6I!!Lq7`+REAffXC@@&ayjZ+8xC?j^a7aJLfoxr_U&w zT~svViGA(+kXXYz1!K&&btbGC_z0)dH)%=_Ng5VJ7xy z0bir>jT-VQp}vXpqhK2LMS=mv6ILJXOP(76Q*f=SXqwNfq&N5}d9p7*67*^}t~@&u z^07w=hP|u3jp6jt9}7Xjy5fRK+3CdhW1tXw0*#@t8dSn+pfR2PE>XG*KD0y)*h9i) zLB3V`P3n|dr47=9(javT@=S@iXxialKeAmWX5MWx0oU zqmgou9;Y3&jXp!y&{gyvnolj{vb>UXlD%XjsU}5a91-9wd;+b)Wq1-iPzss&Dn5jF zXX6O2#1qh;=s4Pswjz)Gjoc#d;V0yGQ8_BmU)l$AmddluW#-$>*mT0<7|>Q5v+2&Hde)uj-3KYnu6aG@T+09udf%!K@korn&OXyRgX*cd#`u=hpDg(>l>;eo25@VlW2Jld^Cxr zCiDunleUDd+2*s|ZJTHlt>>+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ya diff --git a/test.ipynb b/test.ipynb index 7d44b3a4c..ac7ba80ad 100644 --- a/test.ipynb +++ b/test.ipynb @@ -1773,6 +1773,49 @@ "print(\"Files created and code added successfully.\")\n" ] }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "normal_bowel_sound_with_bruits\n", + "constipation\n", + "bruits_due_to_renal_arteries_stenosis\n", + "paralytic_ileus\n", + "captement\n", + "hyperactive\n", + "normal_bowel\n", + "diarrhea\n", + "hypoactive\n", + "crohns_disease\n", + "irritable_bowel_syndrome\n", + "borborygmus\n", + "ulcerative_colitis\n", + "peritoneal_friction_rub\n" + ] + } + ], + "source": [ + "import os\n", + "\n", + "# Define the directory path\n", + "directory_path = 'app/DashApp/Bowel'\n", + "\n", + "# List all files in the directory\n", + "files = os.listdir(directory_path)\n", + "\n", + "# Filter out .py files and remove the \".py\" extension\n", + "py_files_without_extension = [file[:-8] for file in files if file.endswith('.py')]\n", + "\n", + "# Print the list of files\n", + "for file in py_files_without_extension:\n", + " print(file)" + ] + }, { "cell_type": "code", "execution_count": null,