Code Monkey home page Code Monkey logo

otwrapy's Introduction

image

otwrapy is a collection of tools that simplify the task of wrapping external codes in a Python environment as well as parallelizing it. It is built on top of OpenTURNS, with its users as the target audience. Documentation is available here. The module provides :

  • An integrated progress bar for unit evaluation of a sample without parallelization.
  • A Parallelizer class that converts any ot.Function into a parallel wrapper using either multiprocessing, ipyparallel, joblib, pathos or dask SSHCluster.
  • A set of useful tools that simply recurrent tasks when writing code wrappers:
    • `TempWorkDir`: Context manager that gracefully creates a temporary working directory. It handles errors and has the option to cleanup upon exit.
    • `Debug`: Decorator that protects the decorated function into a try/except structure so that errors are logged. It is specially useful when you launch your code in a non interactive environment.
    • load_array and `dump_array`: Used for efficiently create and load backups with the option to compress with gzip.
    • `safemakedirs`: Create a directory without raising an exception if it exits.
    • `create_logger`: Return a logger with a FileHandler at a given logging level.

otwrapy comes from the experience of wrapping a lot of different external codes at Phimeca engineering. We are a company specialized in uncertainty treatment and we assist our clients introducing the probabilistic dimension in their so far deterministic studies.

otwrapy's People

Contributors

adumasphi avatar felipeam86 avatar jschueller avatar tupui avatar

Watchers

 avatar  avatar  avatar

otwrapy's Issues

otwrapy has no pip package

otwrapy has a conda package:

https://anaconda.org/conda-forge/otwrapy

but there is no pip package of otwrapy. This makes the setup for the PRACE training a little bit more complicated, as the other required dependencies are all packaged in pip:

https://github.com/mbaudin47/hpcuqtraining/

Once otwrapy has a pip package, all we have to do is add "otwrapy" to the requirements.txt.
More precisely, this makes the setup of the Circle CI system more complicated.
Therefore, a pip package of otwrapy would be highly appreciated: thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.