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

aiidateam / aiida_core / 4884 / 6
69%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 09 Jan 2019 06:02PM UTC
Files 412
Run time 1min
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

09 Jan 2019 05:42PM UTC coverage: 61.905% (-0.08%) from 61.989%
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

Pull #2376

travis-ci

web-flow
Simplify loading of node class from type string

The correct node sub class that should be used to load a node from the
database is determined by the type string stored in the type column. The
only classes that can legally exist in a database, and therefore be
loaded, are defined in `aiida-core`. Therefore, using the entry point
system to map the type string onto an actual ORM class is no longer
necessary. We rename the `aiida.plugins.loader.load_plugin` function to
the more correct `load_node_class`, which given a type string, will
return the corresponding ORM node sub class.

Note that the whole machinery around generating type and query strings
and loading the nodes based on them is still somewhat convoluted and
contains hacks for two reasons:

 1) Data is not yet moved within the `aiida.orm.node` sub module and as
    a result gets the `data.Data.` type string, which will not match the
    `node.Node.` type when sub classing in queries.

 2) CalcJobProcesses are defined by sub classing JobCalculation
    Until the user directly define a Process sub class that uses the
    `CalcJobNode` as its node class, exceptions will have to be made.

If these two issues are addressed, a lot of the code around type strings
can be simplified and cleaned up.
Pull Request #2376: Define correct `type` string for `CalcJobNode` instances

22628 of 36553 relevant lines covered (61.9%)

0.62 hits per line

Source Files on job 4884.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 15
  • Source Changed 14
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 821
  • Travis Job 4884.6
  • 607723c4 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on fix_1603_plugin_loader (#4883.5)
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