Giter Club home page Giter Club logo

smetrics's Introduction

SMetrics

Scientific library to quantify the difference between two images (2D or 3D).

Build locally

do::
python3 setup.py build_ext --inplace

Building from source

Building from source is required to work on a contribution (bug fix, new feature, code or documentation improvement).

  1. Use Git to check out the latest source from the smetrics repository on GitLab.:

    git clone git://github.com/sylvainprigent/smetrics.git  # add --depth 1 if your connection is slow
    cd smetrics
    

    If you plan on submitting a pull-request, you should clone from your fork instead.

  2. Install a compiler with OpenMP_ support for your platform.

  3. Optional (but recommended): create and activate a dedicated virtualenv_ or `conda environment`_.

  4. Install Cython_ and build the project with pip in :ref:`editable_mode`:

    pip install cython
    pip install --verbose --no-build-isolation --editable .
    
  5. Check that the installed scikit-learn has a version number ending with .dev0:

    python -c "import smetrics; print(smetrics.__version__)"
    

Note

You will have to run the pip install --no-build-isolation --editable . command every time the source code of a Cython file is updated (ending in .pyx or .pxd). Use the --no-build-isolation flag to avoid compiling the whole project each time, only the files you have modified.

Create a wheel

do:

python3 setup.py bdist_wheel

Testing

run tests by running:

pytest smetrics

or

python3 -m pytest smetrics

Profiling

python -m cProfile -o out_profile script_name.py cprofilev -f out_profile

Build documentation

without example gallery:

cd doc
make

with the example gallery (may take a while):

cd doc
make html

smetrics's People

Watchers

James Cloos avatar Sylvain Prigent avatar  avatar

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.