Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CodeRed
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
Releases
Package Registry
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
M-29
Software
CodeRed
Commits
818ab3a9
Commit
818ab3a9
authored
5 years ago
by
Kai Sellschopp
Browse files
Options
Downloads
Patches
Plain Diff
since in this new version nothing seems to be reused as is, collect new things in a new folder
parent
1389ebc1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
new/adAtom.py
+4
-4
4 additions, 4 deletions
new/adAtom.py
new/boundaryCondition.py
+1
-0
1 addition, 0 deletions
new/boundaryCondition.py
new/codered.py
+10
-0
10 additions, 0 deletions
new/codered.py
new/workflow.py
+0
-0
0 additions, 0 deletions
new/workflow.py
with
15 additions
and
4 deletions
core
/adAtom.py
→
new
/adAtom.py
+
4
−
4
View file @
818ab3a9
...
...
@@ -25,12 +25,12 @@ class AdAtom:
self
.
add_boundary_condition
(
dc
)
def
add_angle_condition
(
self
,
neighbourA
,
neighbourB
,
angle_min
=
0.0
,
angle_max
=
180.0
,
center
=
1
):
if
center
==
0
:
def
add_angle_condition
(
self
,
neighbourA
,
neighbourB
,
angle_min
=
0.0
,
angle_max
=
180.0
,
center
=
self
):
if
center
==
0
or
center
==
self
:
ac
=
AngleCondition
(
neighbourA
,
self
,
neighbourB
,
angle_min
,
angle_max
)
elif
center
==
1
:
elif
center
==
1
or
center
==
neighbourA
:
ac
=
AngleCondition
(
self
,
neighbourA
,
neighbourB
,
angle_min
,
angle_max
)
elif
center
==
2
:
elif
center
==
2
or
center
==
neighbourB
:
ac
=
AngleCondition
(
neighbourA
,
neighbourB
,
self
,
angle_min
,
angle_max
)
else
:
print
(
"
ERROR! Invalid argument for center!
"
)
...
...
This diff is collapsed.
Click to expand it.
core
/boundaryCondition.py
→
new
/boundaryCondition.py
+
1
−
0
View file @
818ab3a9
...
...
@@ -79,6 +79,7 @@ class AngleCondition(BoundaryCondition):
numB
=
positionsB
.
shape
[
1
]
numC
=
positionsC
.
shape
[
1
]
#TODO: handle MemoryError
posA
=
positionsA
[:,:,
np
.
newaxis
,
np
.
newaxis
,:].
repeat
(
numB
,
axis
=
2
).
repeat
(
numC
,
axis
=
3
)
posB
=
positionsB
[:,
np
.
newaxis
,:,
np
.
newaxis
,:].
repeat
(
numA
,
axis
=
1
).
repeat
(
numC
,
axis
=
3
)
posC
=
positionsC
[:,
np
.
newaxis
,
np
.
newaxis
,:,:].
repeat
(
numA
,
axis
=
1
).
repeat
(
numB
,
axis
=
2
)
...
...
This diff is collapsed.
Click to expand it.
core
/codered.py
→
new
/codered.py
+
10
−
0
View file @
818ab3a9
...
...
@@ -158,3 +158,13 @@ class CodeRed:
print
(
"
Done! Generated {:d} structures in total.
"
.
format
(
len
(
self
.
combinations
)))
return
self
.
combinations
def
red
(
self
,
**
reduction_params
):
#TODO: process reduction_params to set up and execute the right reduction technique
# e.g. symmetry reduction, mesh projection reduction, soap distance reduction, ...
# generate informative output
print
(
"
Done! Reduced to {:d} structures in total.
"
.
format
(
len
(
self
.
combinations
)))
return
self
.
combinations
This diff is collapsed.
Click to expand it.
input_templates
/workflow.py
→
new
/workflow.py
+
0
−
0
View file @
818ab3a9
File moved
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