Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data-CAT 0.2.2 #23

Merged
merged 2 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
This project adheres to `Semantic Versioning <http://semver.org/>`_.


0.2.2
*****
* Updated the documentation (see https://github.com/nlesc-nano/CAT/pull/123).


0.2.1
*****
* Store the ``__version__`` of CAT, Nano-CAT and Data-CAT in the hdf5 file.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


##############
Data-CAT 0.2.1
Data-CAT 0.2.2
##############

Data-CAT is a databasing framework for the Compound Attachment Tools package (CAT_).
Expand Down
2 changes: 1 addition & 1 deletion dataCAT/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The **Data-CAT** version."""

__version__ = '0.2.1'
__version__ = '0.2.2'
16 changes: 3 additions & 13 deletions dataCAT/context_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def filename(self) -> AnyStr:

@property
def write(self) -> bool:
""":class:`bool`: Get whether or not :attr:`~FileManagerABC.filename` should be written to when closing the context manager.""" # noqa: E501
""":class:`bool`: Get whether or not :attr:`.filename` should be written to when closing the context manager.""" # noqa: E501
return self._write

@final
Expand Down Expand Up @@ -127,17 +127,7 @@ def __exit__(self, exc_type: Optional[Type[BaseException]],


class OpenYaml(FileManagerABC[AnyStr, Settings]):
"""Context manager for opening and closing job settings (:attr:`.Database.yaml`).

Attributes
----------
filename : str
The path+filename to the database component.

write : bool
Whether or not the database file should be updated after closing this instance.

"""
"""Context manager for opening and closing job settings (:attr:`.Database.yaml`)."""

def __enter__(self) -> Settings:
"""Open the :class:`.OpenYaml` context manager, importing :attr:`.settings`."""
Expand All @@ -157,7 +147,7 @@ def __exit__(self, exc_type: Optional[Type[BaseException]],


class OpenLig(FileManagerABC[AnyStr, DFProxy]):
"""Context manager for opening and closing the ligand database (:attr:`.Database.csv_lig`)."""
"""Context manager for opening and closing the ligand database (:attr:`Database.csv_lig`)."""

def __enter__(self) -> DFProxy:
"""Open the :class:`.OpenLig` context manager, importing :attr:`.df`."""
Expand Down
Loading