colrev.ops.upgrade.Upgrade
- class colrev.ops.upgrade.Upgrade(*, review_manager)[source]
Bases:
OperationUpgrade a CoLRev project
Methods
check_preconditionCheck the operation precondition
concludeConclude the operation (stop Docker containers)
decorateDecorator for operations
load_records_dictLoad the records dictionary from a file and parse it using the bibtex parser.
mainUpgrade a CoLRev project (main entrypoint)
notifyNotify the review_manager about the next operation
save_records_dictSave the records dictionary to a file and add it to the repository index.
Attributes
typerepo- check_precondition()
Check the operation precondition
- Return type:
None
- conclude()
Conclude the operation (stop Docker containers)
- Return type:
None
- classmethod decorate()
Decorator for operations
- Return type:
Callable
- load_records_dict()[source]
Load the records dictionary from a file and parse it using the bibtex parser.
- Return type:
dict
- Returns:
dict: The loaded records dictionary.
- notify(*, state_transition=True)
Notify the review_manager about the next operation
- Return type:
None