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
b21fad9c
Commit
b21fad9c
authored
11 months ago
by
Gokhan OZBULAK
Committed by
André Anjos
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Modified comments for better qa
#60
parent
f7618f2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mednet/scripts/upload.py
+20
-1
20 additions, 1 deletion
src/mednet/scripts/upload.py
with
20 additions
and
1 deletion
src/mednet/scripts/upload.py
+
20
−
1
View file @
b21fad9c
...
...
@@ -21,7 +21,12 @@ from .click import ConfigCommand
logger
=
setup
(
__name__
.
split
(
"
.
"
)[
0
],
format
=
"
%(levelname)s: %(message)s
"
)
def
get_config
():
"""
Returns an instance of the Gitlab object for remote operations.
"""
"""
Return an instance of the Gitlab object for remote operations.
Returns
-------
Gitlab entry and credential.
"""
cfg
=
pathlib
.
Path
(
os
.
path
.
expanduser
(
"
~/.python-gitlab.cfg
"
))
if
cfg
.
exists
():
...
...
@@ -37,6 +42,20 @@ def get_config():
return
gl
,
config
def
create_temp_copy
(
source
,
target
):
"""
Create a copy of original file in temp folder.
Parameters
----------
source
Source file.
target
Target file.
Returns
-------
Path to target file in temp folder.
"""
temp_dir
=
tempfile
.
gettempdir
()
target
=
os
.
path
.
join
(
temp_dir
,
target
)
shutil
.
copy2
(
source
,
target
)
...
...
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