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
4dbb6f1f
Commit
4dbb6f1f
authored
Feb 14, 2021
by
nsoler
Browse files
before coming back to BCN
parent
c14f7629
Changes
1
Hide whitespace changes
Inline
Side-by-side
package/chemicalchecker/util/parser/calculate_A_spaces.py
View file @
4dbb6f1f
...
@@ -349,20 +349,23 @@ class Aspaces_prop_calculator(object):
...
@@ -349,20 +349,23 @@ class Aspaces_prop_calculator(object):
assert
space
+
'.001'
in
dictSpaces
.
keys
(),
print
(
"Sign0 for space"
,
space
,
"not fit!!"
)
assert
space
+
'.001'
in
dictSpaces
.
keys
(),
print
(
"Sign0 for space"
,
space
,
"not fit!!"
)
models_imported
=
False
models_imported
=
False
for
molset
in
(
'full'
):
sign0
=
self
.
cc
.
get_signature
(
'sign0'
,
molset
,
space
+
'.001'
)
# already fitted
sign0
=
self
.
cc
.
get_signature
(
'sign0'
,
'full'
,
space
+
'.001'
)
# already fitted
sign1
=
self
.
cc
.
get_signature
(
'sign1'
,
molset
,
space
+
'.001'
)
# will get converted to reference by the next fct
sign1
=
self
.
cc
.
get_signature
(
'sign1'
,
'full'
,
space
+
'.001'
)
# will get converted to reference by the next fct
sign1
.
clear
()
sign1
.
clear
()
# import models from the fit that took place in CC_repo 2020_XX
# import models from the fit that took place in CC_repo 2020_XX
if
not
models_imported
:
if
not
models_imported
:
self
.
cc
.
import_models_for_prediction
(
sign1
)
# Import model for this space
self
.
cc
.
import_models_for_prediction
(
sign1
)
# Import model for this space
models_imported
=
True
models_imported
=
True
destination
=
sign1
.
data_path
destination
=
sign1
.
data_path
if
not
os
.
path
.
exists
(
destination
):
if
not
os
.
path
.
exists
(
destination
):
print
(
"
\n
Predicting sign1"
,
molset
,
"for space"
,
space
,
'to'
,
destination
)
print
(
"
\n
Predicting sign1 full for space"
,
space
,
'to'
,
destination
)
sign1
.
predict
(
sign0
,
destination
=
destination
)
sign1
.
predict
(
sign0
,
destination
=
destination
)
# reference
sign1
.
save_reference
(
cpu
=
1
)
return
self
.
cc
return
self
.
cc
...
...
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