Skip to main content

Build Status Coverage Status PyPI version

exsu

Experiment support tools prepared for computer vision experiments. Output directory and spreadsheet file is managed by package.

  • Spreadsheet data and report images are stored into output directory
  • Images are reported according a selected severity
  • Common spreadseet containing complete history from all output directories can be produced
  • Version of particular python package can be reported in the spreadsheet
  • Repository status, git hash and dirty files can be reported in the spreadsheet

Write spreadsheet data

from pathlib import Path
import exsu

outputdir = Path("./test_report/")
commonsheet = Path("./test_report_common_spreadsheet.xlsx")

report = exsu.report.Report(outputdir=outputdir, additional_spreadsheet_fn=commonsheet)
report.add_cols_to_actual_row({"Col1": 25, "Col2": "test string", "Col5": 5})
report.add_cols_to_actual_row({"Col2": "prepsanu", "Col1": 26, "Col4": "ctyrka"})
report.finish_actual_row()

report.add_cols_to_actual_row({"Col1": 27, "Col2": "test string", "Col3": "trojka"})
report.finish_actual_row()

# Save all into `outputdir` and also into `commonsheet`
report.dump()

# new write to common excel
report.init()
report.add_cols_to_actual_row({"Col1": 28, "Col2": "new line to common", "Col7": 77})
report.finish_actual_row()
report.dump()

Write image data

Write image data into output directory

from pathlib import Path
import numpy as np
import exsu

outputdir = Path("./test_report/")
commonsheet = Path("./test_report_common_spreadsheet.xlsx")

fn = "test_image.png"
img = 50 + np.random.rand(100, 100) * 30
img[20:60, 20:60] += 100
img = img.astype(np.uint8)
report = exsu.report.Report(outputdir=outputdir, additional_spreadsheet_fn=commonsheet)
report.imsave(fn, img)

Git repository info

from pathlib import Path
import numpy as np
import exsu
report = exsu.report.Report(repodir=Path(__file__).parent.resolve())
report.finish_actual_row()
report.df

Output DataFrame

                               repo exsu id  ...  repo exsu dirty files
0  1da301da36cec0fb931f60dd9acca790ec715892  ...      exsu/git_tools.py

More than one repositories can be added with report.add_repo(repodir, reponame=None).

Automatically report versions of selected packages

The version of crucial packages can be reported with the data.

import exsu
report = exsu.report.Report(check_version_of=["numpy", "scipy"])
report.finish_actual_row()
report.df

Metadata

Release files for exsu 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exsu 0.6.0
File Size Uploaded
exsu-0.6.0.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exsu 0.6.0
File Interpreter ABI Platform
exsu-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.8 kB

Release files / exsu-0.6.0.tar.gz

Download URL exsu-0.6.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f932b4569b0430a394118b6115b678f9fc9722b4eb59aa53efc404a17921cb51
BLAKE2b-256 checksum
How to use checksums
abfe8922c0f0e775f40a7c1fc6a50334f5dc090de08e6d8e18addf64cf4efc8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / exsu-0.6.0-py3-none-any.whl

Download URL exsu-0.6.0-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
862a4c9d7a2c6f40e3af6f3b3c6d9cb8d0de861f323d04c7726b5b8bf0b234d7
BLAKE2b-256 checksum
How to use checksums
1f8361c26dfb54173db22022164c02d3b69df6360d1179315d9937e29a6738b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.4.11

1 release file

0.4.10

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page