Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
13cacd04
Unverified
Commit
13cacd04
authored
Jun 03, 2020
by
Ignacio Pickering
Committed by
GitHub
Jun 03, 2020
Browse files
Make input more clear in example (#479)
parent
af600d19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/load_from_neurochem.py
examples/load_from_neurochem.py
+2
-2
No files found.
examples/load_from_neurochem.py
View file @
13cacd04
...
@@ -68,8 +68,8 @@ coordinates = torch.tensor([[[0.03192167, 0.00638559, 0.01301679],
...
@@ -68,8 +68,8 @@ coordinates = torch.tensor([[[0.03192167, 0.00638559, 0.01301679],
[
0.45554739
,
0.54289633
,
0.81170881
],
[
0.45554739
,
0.54289633
,
0.81170881
],
[
0.66091919
,
-
0.16799635
,
-
0.91037834
]]],
[
0.66091919
,
-
0.16799635
,
-
0.91037834
]]],
requires_grad
=
True
)
requires_grad
=
True
)
species
=
consts
.
species_to_tensor
(
'C
HHH
H'
).
unsqueeze
(
0
)
species
=
consts
.
species_to_tensor
(
[
'C
'
,
'H'
,
'H'
,
'H'
,
'
H'
]
).
unsqueeze
(
0
)
methane
=
ase
.
Atoms
(
'C
HHH
H'
,
positions
=
coordinates
.
squeeze
().
detach
().
numpy
())
methane
=
ase
.
Atoms
(
[
'C
'
,
'H'
,
'H'
,
'H'
,
'
H'
]
,
positions
=
coordinates
.
squeeze
().
detach
().
numpy
())
###############################################################################
###############################################################################
# Now let's compute energies using the ensemble directly:
# Now let's compute energies using the ensemble directly:
...
...
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