Code Monkey home page Code Monkey logo

evodcinv's Introduction

EvoDCinv

examples/evodcinv.png

EvoDCinv is a Python package that provides functions to calculate and invert dispersion curves using different evolutionary algorithms.

Version:1.0.0
Author:Keurfon Luu
Web site:https://github.com/keurfonluu/evodcinv
Copyright:This document has been placed in the public domain.
License:EvoDCinv is released under the MIT License.

NOTE: EvoDCinv has been implemented in the frame of my Ph. D. thesis. If you find any error or bug, or if you have any suggestion, please don't hesitate to contact me.

Installation

The recommended way to install EvoDCinv is through pip (internet required):

pip install evodcinv

Otherwise, download and extract the package, then run:

python setup.py install

Troubleshooting on Windows

A Fortran compiler is required to install this package. While it is straightforward on Unix systems, it can be quite a pain on Windows. We recommend installing Anaconda that contains all the required packages to install FTeikPy on Windows systems.

  1. Download MinGW 64 bits (choose x86_64-posix-sjlj) and extract the archive in your drive root.

  2. Add MinGW to your system path:

    C:\<Your MinGW directory>\bin

  3. Create the file distutils.cfg in <Your Python directory path>\Lib\distutils with the following content to use MinGW compiler:

[build]
compiler=mingw32
  1. Open a terminal and install libpython:
conda install libpython

If you got the error:

Error: ValueError: Unknown MS Compiler version 1900

You may need to manually patch the file cygwinccompiler.py located in:

<Your Python directory path>\Lib\distutils

by replacing:

self.dll_libraries = get_msvcr()

in lines 157 and 318 by (be careful with indentation):

pass

You should also patch the file mingw32ccompiler.py located in:

<Your Python directory path>\Lib\site-packages\numpy\distutils

by commenting out from lines 96 to 104:

#        msvcr_success = build_msvcr_library()
#        msvcr_dbg_success = build_msvcr_library(debug=True)
#        if msvcr_success or msvcr_dbg_success:
#            # add preprocessor statement for using customized msvcr lib
#            self.define_macro('NPY_MINGW_USE_CUSTOM_MSVCR')
#
#        # Define the MSVC version as hint for MinGW
#        msvcr_version = '0x%03i0' % int(msvc_runtime_library().lstrip('msvcr'))
#        self.define_macro('__MSVCRT_VERSION__', msvcr_version)

Related works

  • StochOPy: StochOPy (STOCHastic OPtimization for PYthon) provides user-friendly routines to sample or optimize objective functions with the most popular algorithms.

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.