• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida_core / 6532
74%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 28 Jun 2019 01:44PM UTC
Jobs 4
Files 392
Run time 22min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6532

Pull #3098

travis-ci

web-flow
Fix potential inefficiency in `aiida.tools.data.cif` converters

Recently, the `BackendNode` interface and implementation was changed
significantly with respect to attributes and extras. As a result, the
values on unstored nodes are not cleaned *until* the node is stored.
That means that unstored nodes can contain attributes and extras with
uncleaned values. For example an unstored `Dict` node can contained
stored `Float` nodes. This change becomes problematic in the
implementation of `_get_aiida_structure_pymatgen_inline` and
`_get_aiida_structure_ase_inline` of `aiida.tools.data.cif`. The
`parameters` keyword argument can be an unstored `Dict` node, if the
functions are run with `store_provenance=False`. Since it is unstored,
it can contain *stored* nodes for the values within them. For example,
the `site_tolerance` can be a stored `Float`. Since they are overloaded
native float objects, they can be passed to pymatgens `CifParser`
without it complaining. However, now whenever that class references the
value, since it is a stored node, the `ModelWrapper` will cause the
model instance to be refreshed from the database, which becomes
prohibitively expensive. Simply calling `clean_value` on the
`parameters` beforehand, will cause these nodes to be dereferenced into
their base values, which solves the issue.
Pull Request #3098: Fix potential inefficiency in `aiida.tools.data.cif` converters

5 of 5 new or added lines in 1 file covered. (100.0%)

23962 of 32393 relevant lines covered (73.97%)

2.74 hits per line

Jobs
ID Job ID Ran Files Coverage
5 6532.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 28 Jun 2019 01:44PM UTC 0
67.81
Travis Job 6532.5
6 6532.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 28 Jun 2019 01:49PM UTC 0
67.75
Travis Job 6532.6
7 6532.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 28 Jun 2019 01:48PM UTC 0
69.38
Travis Job 6532.7
8 6532.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 28 Jun 2019 01:49PM UTC 0
69.32
Travis Job 6532.8
Source Files on build 6532
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6532
  • Pull Request #3098
  • PR Base - develop (#6528)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc