Skip to main content

A small library to backport an OpenStudio OSM model to an older version.

Project description

openstudio-backporter

pypi python Build Status codecov

A small library to backport an OpenStudio OSM model to an older version.

Note: I am only adding backports as old as I need to. Contribution welcomed.

Install

pip install openstudio-backporter

Usage

CLI

A CLI feature is provided, that you can invoke via python -m openstudiobackporter

See python -m openstudiobackporter --help for the list of command line parameters and how to use it.

Example:

python -m openstudiobackporter \
       --to-version 3.8.0 \
       --save-intermediate \
       --verbose \
       /path/to/model3_10_0.osm

Library

You can also use it as a library:

from pathlib import Path
from openstudiobackporter import Backporter

backporter = Backporter(to_version="3.9.0", save_intermediate=False)
idf_file = backporter.backport_file(osm_path=Path("/path/to/model_3_10_0.osm"))

# or
model = openstudio.model.exampleModel()
idf_file = backporter.backport(idf_file=model) # or model.toIdfFile()

This is free software (MIT License) contributed by EffiBEM.

Leveraging software, EffiBEM specializes in providing new ways to streamline your workflows and create new tools that work with limited inputs for your specific applications. We also offer support and training services on BEM simulation engines (OpenStudio and EnergyPlus).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstudio_backporter-0.2.0.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstudio_backporter-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file openstudio_backporter-0.2.0.tar.gz.

File metadata

  • Download URL: openstudio_backporter-0.2.0.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openstudio_backporter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f98ede0d5f6f8917921690b1da9577514c08d864595ce13c9d660ad5fd1d5621
MD5 43d5b1b0a77674f43aa2ae3a66180ac9
BLAKE2b-256 4f9444ed873b77cd8ab92a74f8880f92e6f94e97bc5216b401308ad43e5526c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstudio_backporter-0.2.0.tar.gz:

Publisher: release.yml on jmarrec/openstudio-backporter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openstudio_backporter-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openstudio_backporter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be91c6d5fa646743056649097f45c9f9e806e06e99a345d8f902a7d6aec2f983
MD5 49b2da43c622d8fd46a36721e6452421
BLAKE2b-256 8bab1b0d87afe8914bcc11501a5442d6795285e02079b8ef6efd47234411a6d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstudio_backporter-0.2.0-py3-none-any.whl:

Publisher: release.yml on jmarrec/openstudio-backporter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page