Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
MDANSE
Commits
8ee250f2
Commit
8ee250f2
authored
Apr 05, 2017
by
eric pellegrini
Browse files
bug fix due to missing import in ElementsDatabaseEditor
bug fix when loading trajectory with unknown MMTK atoms
parent
60a019ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
MDANSE/GUI/ElementsDatabaseEditor.py
View file @
8ee250f2
...
...
@@ -35,7 +35,7 @@ import os
import
wx
import
wx.grid
as
wxgrid
from
MDANSE
import
ELEMENTS
from
MDANSE
import
ELEMENTS
,
PLATFORM
from
MDANSE.Core.Error
import
Error
from
MDANSE.Core.Singleton
import
Singleton
...
...
MDANSE/__init__.py
View file @
8ee250f2
...
...
@@ -52,3 +52,12 @@ from MMTK import Database
# The default database is still the MMTK one
Database
.
path
.
append
(
os
.
path
.
join
(
PLATFORM
.
package_directory
(),
'Data'
))
Database
.
path
.
append
(
os
.
path
.
join
(
PLATFORM
.
application_directory
(),
'mmtk_database'
))
# Update the database with user defined atom entries
import
glob
userDefinedAtoms
=
glob
.
glob
(
os
.
path
.
join
(
PLATFORM
.
application_directory
(),
'mmtk_database'
,
'Atoms'
,
'*'
))
for
atomFile
in
userDefinedAtoms
:
atomName
=
os
.
path
.
basename
(
atomFile
)
if
not
ELEMENTS
.
has_element
(
atomName
):
ELEMENTS
.
add_element
(
atomName
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment