Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
6dac8286
Project 'biosignal/software/mednet' was moved to 'medai/software/mednet'. Please update any links and bookmarks that may still have the old path.
Commit
6dac8286
authored
11 months ago
by
Gokhan OZBULAK
Browse files
Options
Downloads
Patches
Plain Diff
Import modules when necessary
#60
.
parent
cf7ca43e
No related branches found
No related tags found
No related merge requests found
Pipeline
#86368
failed
11 months ago
Stage: qa
Stage: test
Stage: doc
Stage: dist
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mednet/scripts/upload.py
+7
-8
7 additions, 8 deletions
src/mednet/scripts/upload.py
with
7 additions
and
8 deletions
src/mednet/scripts/upload.py
+
7
−
8
View file @
6dac8286
...
...
@@ -2,16 +2,8 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
import
configparser
import
json
import
os
import
pathlib
import
shutil
import
tempfile
import
click
import
gitlab
import
mlflow
from
clapper.click
import
ResourceOption
,
verbosity_option
from
clapper.logging
import
setup
...
...
@@ -27,6 +19,8 @@ def _get_gitlab_config():
-------
Gitlab entry and credential.
"""
import
gitlab
import
configparser
cfg
=
pathlib
.
Path
(
"
~/.python-gitlab.cfg
"
).
expanduser
()
if
cfg
.
exists
():
...
...
@@ -56,6 +50,8 @@ def _create_temp_copy(source, target):
-------
Path to target file in temp folder.
"""
import
shutil
import
tempfile
temp_dir
=
pathlib
.
Path
(
tempfile
.
gettempdir
())
target
=
temp_dir
/
target
...
...
@@ -120,6 +116,9 @@ def upload(
**
_
,
# ignored
)
->
None
:
# numpydoc ignore=PR01
"""
Upload results from an experiment folder.
"""
import
os
import
json
import
mlflow
logger
.
info
(
"
Getting Gitlab credentials for accessing to MLFlow server...
"
)
gitlab
,
config
=
_get_gitlab_config
()
...
...
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