Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
chemical_checker
Commits
4f2ea2a7
Commit
4f2ea2a7
authored
Feb 11, 2021
by
nsoler
Browse files
admin cc scripts
parent
3771a7c5
Pipeline
#2405
failed with stages
in 1 minute and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
package/scripts/export_Amodels.py
View file @
4f2ea2a7
# Nico 11 Feb 2021
# Nico 11 Feb 2021
# export sign1 models into the cc code repo directory:
# export sign1 models into the cc code repo directory:
import
os
,
shutil
,
glob
import
os
,
shutil
from
get_repo_version
import
cc_repo_version
from
get_repo_version
import
cc_repo_version
def
export_models
(
destination
,
cctype
=
'sign1'
,
cc_repo
=
None
):
def
export_models
(
destination
,
cctype
=
'sign1'
,
cc_repo
=
None
):
...
@@ -35,7 +34,8 @@ def export_models(destination, cctype='sign1', cc_repo=None):
...
@@ -35,7 +34,8 @@ def export_models(destination, cctype='sign1', cc_repo=None):
else
:
else
:
print
(
"Created directory"
,
dirtmp
)
print
(
"Created directory"
,
dirtmp
)
for
fichero
in
glob
.
glob
(
dirModels
):
for
fichero
in
os
.
listdir
(
dirModels
):
if
fichero
!=
'fit.ready'
:
if
fichero
!=
'fit.ready'
:
source
=
os
.
path
.
join
(
dirModels
,
fichero
)
source
=
os
.
path
.
join
(
dirModels
,
fichero
)
target
=
os
.
path
.
join
(
dirtmp
,
fichero
)
target
=
os
.
path
.
join
(
dirtmp
,
fichero
)
...
...
Write
Preview
Markdown
is supported
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