Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CADET-RDM
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
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
IBG-1
ModSim
CADET
CADET-RDM
Commits
03ff2c33
Commit
03ff2c33
authored
1 year ago
by
Ronald Jäpel
Browse files
Options
Downloads
Patches
Plain Diff
v0.0.12
parent
9d3d051d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cadetrdm/repositories.py
+13
-0
13 additions, 0 deletions
cadetrdm/repositories.py
cadetrdm/version.py
+1
-1
1 addition, 1 deletion
cadetrdm/version.py
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
with
15 additions
and
2 deletions
cadetrdm/repositories.py
+
13
−
0
View file @
03ff2c33
...
...
@@ -5,12 +5,14 @@ import sys
import
traceback
from
datetime
import
datetime
import
shutil
import
time
import
zipfile
import
contextlib
import
glob
from
stat
import
S_IREAD
,
S_IWRITE
from
urllib.request
import
urlretrieve
from
ipylab
import
JupyterFrontEnd
from
tabulate
import
tabulate
import
pandas
as
pd
...
...
@@ -427,6 +429,17 @@ class BaseRepo:
:param add_all:
Option to add all changed and new files to git automatically.
"""
try
:
app
=
JupyterFrontEnd
()
print
(
"
Saving
"
,
end
=
""
)
# note: docmanager:save doesn't lock the python thread until saving is completed.
# Sometimes, new changes aren't completely saved before checks are performed.
# Waiting for 0.1 seconds seems to prevent that.
app
.
commands
.
execute
(
'
docmanager:save
'
)
time
.
sleep
(
0.1
)
print
(
""
)
except
:
pass
if
not
self
.
exist_uncomitted_changes
:
print
(
f
"
No changes to commit in repo
{
self
.
working_dir
}
"
)
return
...
...
This diff is collapsed.
Click to expand it.
cadetrdm/version.py
+
1
−
1
View file @
03ff2c33
version
=
"
0.0.1
1
"
version
=
"
0.0.1
2
"
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
03ff2c33
[metadata]
name
=
CADET-RDM
version
=
0.0.1
1
version
=
0.0.1
2
author
=
Ronald Jäpel
author_email
=
r.jaepel@fz-juelich.de
description
=
A solution for research data management
...
...
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