Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdata_app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Data
mdata_app
Commits
6b335474
Commit
6b335474
authored
1 year ago
by
Leah Tacke genannt Unterberg
Browse files
Options
Downloads
Patches
Plain Diff
base package mdata version update
parent
65f70e4c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pages/upload.py
+3
-2
3 additions, 2 deletions
pages/upload.py
poetry.lock
+234
-327
234 additions, 327 deletions
poetry.lock
pyproject.toml
+2
-2
2 additions, 2 deletions
pyproject.toml
with
239 additions
and
331 deletions
pages/upload.py
+
3
−
2
View file @
6b335474
...
...
@@ -6,6 +6,7 @@ import streamlit as st
from
mdata.file_formats.csv
import
read_machine_data
from
mdata.file_formats.csv.shared
import
HeaderFormatLiterals
from
mdata.file_formats.hdf
import
read_machine_data_h5
from
streamlit.runtime.uploaded_file_manager
import
UploadedFile
from
logic.switch_page
import
switch_page
...
...
@@ -41,13 +42,13 @@ def import_hdf(h5f):
# @st.experimental_memo
def
import_csv
(
hf
,
df
):
def
import_csv
(
hf
:
UploadedFile
,
df
:
UploadedFile
):
header_format
:
HeaderFormatLiterals
=
'
csv
'
if
'
csv
'
in
hf
.
type
:
header_format
=
'
csv
'
elif
'
json
'
in
hf
.
type
:
header_format
=
'
json
'
elif
'
y
am
l
'
in
hf
.
type
:
elif
'
octet-stre
am
'
in
hf
.
type
and
(
'
yaml
'
in
hf
.
name
or
'
yml
'
in
hf
.
name
)
:
header_format
=
'
yaml
'
assert
header_format
is
not
None
return
read_machine_data
(
hf
.
getvalue
(),
df
.
getvalue
(),
validity_checking
=
True
,
header_format
=
header_format
)
...
...
This diff is collapsed.
Click to expand it.
poetry.lock
+
234
−
327
View file @
6b335474
This diff is collapsed.
Click to expand it.
pyproject.toml
+
2
−
2
View file @
6b335474
...
...
@@ -13,13 +13,13 @@ python = "^3.11"
streamlit
=
"^1.25"
cvxopt
=
"^1.3"
# mdata = "^0.1.2"
mdata
=
{
git
=
"https://git-ce.rwth-aachen.de/machine-data/mdata.git"
,
branch
=
"
master
"
}
mdata
=
{
git
=
"https://git-ce.rwth-aachen.de/machine-data/mdata.git"
,
branch
=
"
release
"
}
#mdata = [
# { platform = "linux", git = "https://git-ce.rwth-aachen.de/leah.tgu/mdata.git", branch = "master" },
# { platform = "windows", path = "C:/Users/Leah/PycharmProjects/mdata", develop = true }
#]
seaborn
=
"^0.12.2"
plotly
=
"^5.1
5
"
plotly
=
"^5.1
6
"
tsdownsample
=
"^0.1.2"
[build-system]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment