Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inventario
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Luis Gordillo Ruiz
inventario
Commits
b22b01ef
Commit
b22b01ef
authored
Jun 04, 2025
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
algunos cambios en formatos
parent
0e2d6d75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
dinamyc.py
+11
-7
No files found.
dinamyc.py
View file @
b22b01ef
...
@@ -329,6 +329,9 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
...
@@ -329,6 +329,9 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
# el otro está en un segundo nivel, dentro de la estructura "sample" y sube al primer nivel
# el otro está en un segundo nivel, dentro de la estructura "sample" y sube al primer nivel
# mediante la función json_normalize y después el rename lo convierte en un simple patient_visit_id.
# mediante la función json_normalize y después el rename lo convierte en un simple patient_visit_id.
# La razón por la que se desecha el dato del nivel exterior y se conserva el interior es
# que todos los pacientes tienen el primero pero solo los que se hicieron muestra para microbiota tienen el segundo.
microbiota_data
=
visitas_datos
[
etapaSel
-
1
][
"patient_visit_id"
]
.
count
()
microbiota_data
=
visitas_datos
[
etapaSel
-
1
][
"patient_visit_id"
]
.
count
()
multi
=
go
.
Figure
()
multi
=
go
.
Figure
()
...
@@ -336,7 +339,7 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
...
@@ -336,7 +339,7 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
multi
.
add_trace
(
go
.
Indicator
(
multi
.
add_trace
(
go
.
Indicator
(
value
=
100
*
len
(
comidas_data
.
index
)
/
Total_incluidos
,
value
=
100
*
len
(
comidas_data
.
index
)
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.
90
,
1
]},
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.
60
,
0.7
]},
title
=
{
'text'
:
"Comidas"
},
title
=
{
'text'
:
"Comidas"
},
mode
=
modes
,
mode
=
modes
,
number
=
numbers
,
number
=
numbers
,
...
@@ -359,7 +362,7 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
...
@@ -359,7 +362,7 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
multi
.
add_trace
(
go
.
Indicator
(
multi
.
add_trace
(
go
.
Indicator
(
value
=
100
*
microbiota_data
/
Total_incluidos
,
value
=
100
*
microbiota_data
/
Total_incluidos
,
# value = min_microbiota,
# value = min_microbiota,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.
6
,
0.7
]},
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.
5
,
0.6
]},
title
=
{
'text'
:
"Microbiota"
},
title
=
{
'text'
:
"Microbiota"
},
mode
=
modes
,
mode
=
modes
,
number
=
numbers
,
number
=
numbers
,
...
@@ -367,9 +370,10 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
...
@@ -367,9 +370,10 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
))
))
multi
.
add_trace
(
go
.
Indicator
(
multi
.
add_trace
(
go
.
Indicator
(
value
=
100
*
len
(
visitas_data
.
index
)
/
Total_incluidos
,
value
=
100
*
len
(
visitas_data
.
index
)
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:[
0.
5
,
0.6
]},
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:[
0.
9
,
1.0
]},
title
=
{
'text'
:
"Visitas"
},
title
=
{
'text'
:
"Visitas"
},
mode
=
modes
,
mode
=
modes
,
number
=
numbers
,
number
=
numbers
,
...
@@ -404,10 +408,10 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
...
@@ -404,10 +408,10 @@ def update_charts(etapaSel,min_comidas, min_glucosa, medidaDet, etapaDet, visita
detalle_figura
=
{
detalle_figura
=
{
"data"
:
[
"data"
:
[
{
{
#
"x": temp["paciente"],
"x"
:
temp
[
"paciente"
],
"
x
"
:
temp
[
medCadena
],
"
y
"
:
temp
[
medCadena
],
"type"
:
"histogram"
,
#
"type": "histogram",
"xticks"
:
temp
[
"paciente"
],
#
"xticks": temp["paciente"],
"histnorm"
:
"percent"
,
"histnorm"
:
"percent"
,
"name"
:
"Comidas"
,
"name"
:
"Comidas"
,
#"orientation": "v",
#"orientation": "v",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment