-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `Data` class defines the `source` property which allows to get and set the `source` attribute. It was designed to hold information on the source of the data if it came directly from an external database. Prior to `aiida-core` v1.0 it was possible to set this attribute directly through the constructor as a keyword argument, but due to the refactoring of the ORM, this was no longer possible. It went undetected because it was never tested and the two data types where this feature is typically used, the `UpfData` and `CifData`, implemented the keyword argument themselves, hiding the fact that `Data` no longer supported it. The `Data` constructor signature is updated to once again recognize the `source` keyword argument, and the custom implementation is removed from the `UpfData` and `CifData` plugins which now simply rely on the super class. A section is added to the "How to work with Data" section in the docs to document this feature and to recommend its usage when constructing data nodes by hand from external databases.
- Loading branch information
Showing
8 changed files
with
85 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83155d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'pytest-benchmarks:ubuntu-18.04,django'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.tests/benchmark/test_engine.py::test_workchain_local[basic-loop]
1.8475926434051226
iter/sec (stddev: 0.073821
)3.939000322730887
iter/sec (stddev: 0.057244
)2.13
tests/benchmark/test_engine.py::test_workchain_local[serial-wc-loop]
0.4840469274973136
iter/sec (stddev: 0.13224
)1.0119643034809538
iter/sec (stddev: 0.062996
)2.09
tests/benchmark/test_engine.py::test_workchain_daemon[threaded-calcjob-loop]
0.11455980629188288
iter/sec (stddev: 0.62339
)0.23008759838467183
iter/sec (stddev: 0.12608
)2.01
tests/benchmark/test_importexport.py::test_import[no-objects]
0.9325280990188525
iter/sec (stddev: 0.13076
)1.8653289856124962
iter/sec (stddev: 0.060490
)2.00
tests/benchmark/test_importexport.py::test_import[with-objects]
0.9061610709477295
iter/sec (stddev: 0.14016
)1.837667245498786
iter/sec (stddev: 0.042833
)2.03
tests/benchmark/test_nodes.py::test_store_backend
491.2941864754864
iter/sec (stddev: 0.0016128
)1311.8586722354637
iter/sec (stddev: 0.000046131
)2.67
tests/benchmark/test_nodes.py::test_store
107.6950364028528
iter/sec (stddev: 0.0038981
)266.27955614886065
iter/sec (stddev: 0.00024339
)2.47
tests/benchmark/test_nodes.py::test_store_with_object
48.49644674223217
iter/sec (stddev: 0.0047330
)104.18813886532936
iter/sec (stddev: 0.014142
)2.15
tests/benchmark/test_nodes.py::test_delete_backend
116.52076567541222
iter/sec (stddev: 0.0040502
)246.61716589957334
iter/sec (stddev: 0.00064268
)2.12
tests/benchmark/test_nodes.py::test_delete
23.94078732731629
iter/sec (stddev: 0.021801
)63.96033034992959
iter/sec (stddev: 0.0011335
)2.67
tests/benchmark/test_nodes.py::test_delete_with_object
23.40589224060146
iter/sec (stddev: 0.029405
)57.27830731291876
iter/sec (stddev: 0.017524
)2.45
This comment was automatically generated by workflow using github-action-benchmark.
CC: @chrisjsewell @giovannipizzi