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

aiidateam / aiida_core / 4884
69%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 09 Jan 2019 05:56PM UTC
Jobs 4
Files 412
Run time 31min
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
4884

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

78 of 78 new or added lines in 12 files covered. (100.0%)

25231 of 36553 relevant lines covered (69.03%)

2.46 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4884.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 09 Jan 2019 05:56PM UTC 0
61.99
Travis Job 4884.5
6 4884.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 09 Jan 2019 06:02PM UTC 0
61.9
Travis Job 4884.6
7 4884.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 09 Jan 2019 06:24PM UTC 0
61.01
Travis Job 4884.7
8 4884.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 09 Jan 2019 06:11PM UTC 0
60.96
Travis Job 4884.8
Source Files on build 4884
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4884
  • Pull Request #2376
  • PR Base - provenance_redesign (#4883)
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