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

aiidateam / aiida_core / 4938
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 18 Jan 2019 06:07PM UTC
Jobs 4
Files 394
Run time 7min
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
4938

Pull #2401

travis-ci

web-flow
Further simplification of node type string definition and loading

With the recent introduction of the `CalcJob` process, which no ensures
that also for job calculations, it is the `CalcJobNode` that gets stored
in the database, which has a type string just like all the other node
types. This made a lot of the old logic `aiida.plugins.loader` to
determine the correct `type` string for a `Node` (sub) class obsolete as
now all node classes are per definition internal to `aiida-core` and
have a type string that is based directly on their module path.

The few functions that remain, `get_type_string_from_class` that formats
the correct type string for a given `Node` class and the
`load_node_class` which can reload that class from the string have been
moved to `aiida.orm.utils.node` since it has no longer anything to do
with a "plugin".

Finally, by moving the `WorkflowNode`, `CalculationNode` and
`ProcessNode` classes in the `__init__` files of their respective
modules allows us to add further simplification to `load_node_class` as
well as making all these classes and their subclasses importable from
the `aiida.orm.node` module. Eventually, when `aiida.orm.data` is also
moved there, all classes can even be exposed directly on `aiida.orm` and
that is the deepest a user should ever go for they should need or be
allowed to import.
Pull Request #2401: Further simplification of node type string definition and loading

263 of 263 new or added lines in 42 files covered. (100.0%)

24016 of 34503 relevant lines covered (69.61%)

2.51 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4938.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 18 Jan 2019 06:07PM UTC 0
63.33
Travis Job 4938.5
6 4938.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 18 Jan 2019 06:11PM UTC 0
63.27
Travis Job 4938.6
7 4938.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 18 Jan 2019 06:10PM UTC 0
62.07
Travis Job 4938.7
8 4938.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 18 Jan 2019 06:13PM UTC 0
62.01
Travis Job 4938.8
Source Files on build 4938
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4938
  • Pull Request #2401
  • PR Base - provenance_redesign (#4928)
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