Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
9add1817
Commit
9add1817
authored
Apr 12, 2022
by
iker_martin
Browse files
Cambios en recopiladores y analizador para permitir nuevos valores de salida
parent
96024bc5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Analysis/MallTimes.py
View file @
9add1817
...
...
@@ -183,4 +183,8 @@ dfA = pd.DataFrame(dataA, columns=columnsA)
dfA
.
to_csv
(
name
+
'G.csv'
)
dfB
=
pd
.
DataFrame
(
dataB
,
columns
=
columnsB
)
#Poner en TC el valor real y en TH el necesario para la app
cond
=
dfB
.
TH
!=
0
dfB
.
loc
[
cond
,
[
'TC'
,
'TH'
]]
=
dfB
.
loc
[
cond
,
[
'TH'
,
'TC'
]].
values
dfB
.
to_csv
(
name
+
'M.csv'
)
Analysis/analyser.ipynb
View file @
9add1817
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Analysis/iterTimes.py
View file @
9add1817
...
...
@@ -117,7 +117,7 @@ if len(sys.argv) < 2:
if
len
(
sys
.
argv
)
>=
3
:
BaseDir
=
sys
.
argv
[
2
]
print
(
"Searching in directory: "
+
BaseDir
)
else
:
else
:
#FIXME
BaseDir
=
sys
.
argv
[
2
]
if
len
(
sys
.
argv
)
>=
4
:
...
...
Analysis/joinDf.py
0 → 100644
View file @
9add1817
import
sys
import
glob
import
numpy
as
numpy
import
pandas
as
pd
if
len
(
sys
.
argv
)
<
3
:
print
(
"The files name is missing
\n
Usage: python3 joinDf.py resultsName1.csv resultsName2.csv csvOutName"
)
exit
(
1
)
if
len
(
sys
.
argv
)
>=
4
:
print
(
"Csv name will be: "
+
sys
.
argv
[
3
]
+
".csv"
)
name
=
sys
.
argv
[
3
]
else
:
name
=
"dataJOINED"
df1
=
pd
.
read_csv
(
sys
.
argv
[
1
]
)
df2
=
pd
.
read_csv
(
sys
.
argv
[
2
]
)
frames
=
[
df1
,
df2
]
df3
=
pd
.
concat
(
frames
)
df3
=
df3
.
drop
(
columns
=
df3
.
columns
[
0
])
df3
.
to_csv
(
name
+
'.csv'
)
Write
Preview
Supports
Markdown
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