Skip to main content

Import the logging library.

import repsci

Create an experiment. A unique directory will be created with the experiment name, a timestamp, and the current git hash.

exp_name = "hello_world"
exp = repsci.Experiment(exp_name)

Get the logger and write a log message.

log = exp.get_logger()
log.debug("Hello, World!")

Create an output file in the unique output directory.

filename = exp.get_filename('output.csv')
with open(filename, "wb") as f:
    f.write("Hello, World\n")

The state of python's random number generator is stored in random_state.bin in pickle format. This state can be used to reproduce the output of randomized scripts.

The Experiment constructor also has some optional parameters:

  • config: a configparser object, which will exported to the output directory.
  • output_dir: the subdirectory of the current directory to place experiment directories in.
  • suffix: a string to append to the end of the trial's directory.

Metadata

Release files for repsci-elplatt 1.1.1

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

Source distribution (sdist)

Source distribution for repsci-elplatt 1.1.1
File Size Uploaded Provenance Actions
repsci-elplatt-1.1.1.tar.gz 1.5 kB Without provenance Details for repsci-elplatt-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for repsci-elplatt 1.1.1
File Interpreter ABI Platform Actions
repsci_elplatt-1.1.1-py3-none-any.whl Python 3 none any Details for repsci_elplatt-1.1.1-py3-none-any.whl

Total release size: 4.2 kB

Release files / repsci-elplatt-1.1.1.tar.gz

Download URL repsci-elplatt-1.1.1.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72bafdee6eeff64f118eacbd2573f888ef4919b8d34e4782e6d7916be0071042
BLAKE2b-256 checksum
How to use checksums
f877dfdc065f0ee62a1e37795704870dac4d562e94b5e92d15dc32cf2e3addda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.2

Release files / repsci_elplatt-1.1.1-py3-none-any.whl

Download URL repsci_elplatt-1.1.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ebade73ca3bae412a9b408cf5ea5b8bc881af4e4cd6ddbea8805f5d12573df
BLAKE2b-256 checksum
How to use checksums
0eff26c020776e868cd9f02c6dfc2a8921d63103dd505dcfc890e3f99d9407a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.2

Security for repsci-elplatt 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

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