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

Feature/add workflow name to log file #70

Merged
merged 5 commits into from
Oct 12, 2021
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
2 changes: 1 addition & 1 deletion aicssegmentation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__email__ = "[email protected]"
# Do not edit this string manually, always use bumpversion
# Details in CONTRIBUTING.md
__version__ = "0.3.0"
__version__ = "0.4.1"


def get_module_version():
Expand Down
10 changes: 8 additions & 2 deletions aicssegmentation/workflow/batch_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,17 @@ def write_log_file_summary(self):
Write a log file to the output folder.
"""
if self._processed_files == 0:
report = "There were no files to process in the input directory"
report = (
f"There were no files to process in the input directory to process \n "
f"Using the Workflow: {self._workflow_definition.name}"
)
else:

files_processed = self._processed_files - self._failed_files
report = f"{files_processed}/{self._processed_files} files were successfully processed."
report = (
f"{files_processed}/{self._processed_files} files were successfully processed \n "
f"Using the Workflow: {self._workflow_definition.name}"
)
self._write_to_log_file(report)

def _format_image_to_3d(self, image: AICSImage) -> np.ndarray:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.0
current_version = 0.4.1
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@
url="https://github.com/AllenCell/aicssegmentation",
# Do not edit this string manually, always use bumpversion
# Details in CONTRIBUTING.rst
version="0.3.0",
version="0.4.1",
zip_safe=False,
)