Skip to main content

FDS Runner using openbcl/fds-dockerfiles

Project description

Tests Codecov Last Commit

Python Implementation License

PyPI Development Status Wheel PyPI - Downloads

xFDS

Tool for executing FDS runs with fds-dockerfiles.

Docker

Do you have FDS installed on your machine? Do you know where the FDS executable is located? Do you know what version it is? If you installed FDS and Pathfinder, you might have multiple versions of FDS on your machine, but which one do you use?

xFDS leverages the power of Docker to give you acess to all the versions of FDS without having to manage the different versions of FDS yourself. Best of all, you don't have to change or install anything when FDS has a new release!

Once xFDS is installed, all you have to do is navigate to your file and type xfds run. It will locate the first FDS file in the directory and run it with the latest version of FDS!

~/tests/data/fds$ ls
test.fds
~/tests/data/fds$ xfds run
docker run --rm --name test-1b6d0d27-2cce-4555-a827-4b31d0e03215 -v /tests/data/fds:/workdir openbcl/fds:6.7.7 fds test.fds

Usage

Run xfds --help to see available commands. For help on a specific command, run xfds <command> --help. See USAGE.md for more.

Features

Auto-detect FDS file in directory

If you're in a directory containing an FDS file, xFDS will find the FDS file without you specifying it. This is best when each FDS model has its own directory. If multiple FDS files are in the directory, only the first file found will be executed.

If no FDS file is found, xFDS will put you into an interactive session with the directory mounted inside the Docker container. If no directory is specified, the current working directory will be used.

Latest version of FDS always available.

xFDS will always default to the latest version thanks to how the Docker images are created, but you're always welcome to use an older version of FDS if needed. See fds-dockerfiles for supported versions.

Always know what FDS version you're using.

xFDS will inject the FDS version into the container name so there's no question what version of FDS is running. xFDS will also append a globally unique ID so there's no conflicts in having multipe containers running.

Runs in Background

Fire and forget. Unless you use the interactive mode, xFDS will run your model in a container and free up the terminal for you to keep working.

Installation

Prerequisites

To use xFDS, you must have the following installed on your workstation:

  • Docker: Needed to run fds-dockerfiles images
  • Python: Needed to run pipx
  • pipx: Needed to install xFDS

Docker will allow you to run any suported version of FDS without installing it on your machine.

pipx allows you to install and run Python applications in isolated environments. This means that xFDS will be available anywhere on your machine and will not interfere with other Python projects or installations.

Install xFDS

Once Docker, Python, and pipx are installed, install xFDS with the following command:

pipx install xfds

License

xFDS is licensed under the MIT License. FDS is public domain and fds-dockerfiles is released under the MIT License. Since this is a light wrapper for both projects, it only seems appropriate to release xFDS for public use.

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

xfds-0.2.0.tar.gz (12.7 kB view hashes)

Uploaded source

Built Distribution

xfds-0.2.0-py3-none-any.whl (14.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page