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

aiidateam / aiida_core / 4885 / 5
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 10 Jan 2019 07:22AM UTC
Files 412
Run time 30s
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

10 Jan 2019 07:09AM UTC coverage: 61.96% (-0.03%) from 61.989%
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

push

travis-ci

web-flow
Simplify loading of node class from type string (#2376)

The type string of a `CalcJobNode` should now be just that of the
node class and not the sub class. Since the users are currently still
sub classing the node class and not a process class, we have to make
a special exception when generating the type string for the node.

Conversely, this type string, stored in the `type` column of the node,
should be used to load the `CalcJobNode` class when loading from
the database. 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.

22650 of 36556 relevant lines covered (61.96%)

0.62 hits per line

Source Files on job 4885.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 29
  • Source Changed 14
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 822
  • Travis Job 4885.5
  • 1e339c33 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on provenance_redesign (#4883.5)
  • Next Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on provenance_redesign (#4890.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