Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmaelicke/scipolate
helper for running different scipy 2D interpolations
https://github.com/mmaelicke/scipolate
Last synced: about 2 months ago
JSON representation
helper for running different scipy 2D interpolations
- Host: GitHub
- URL: https://github.com/mmaelicke/scipolate
- Owner: mmaelicke
- License: gpl-3.0
- Created: 2019-03-12T08:39:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T09:47:27.000Z (over 5 years ago)
- Last Synced: 2024-10-15T18:50:55.504Z (3 months ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SciPolate
=========Scipolate offers a small helper class that can be used to perform
2D interpolation tasks using scipy. It is meant to be used as a common
interface to run and validate the task automated in the same way.Installation
============Install Scipolate using pip:
```bash
pip install scipolate
```Note
====Scipolate was originally a part of a interpolation web-app used in one of my
lectures. That means it was used in an API. Hence, the parameters are set in
one single JSON-like dictionary, which is un-pythonic.
For the same reason, the class does provide an output *Report* including the
result as a base64 encoded image. Nevertheless, the class can be used outside
of a web-application context. Mind that performance was not important during
development. In case you need a fast algorithm, use scipy directly, or
something like the [interpolation](https://pypi.org/project/interpolation/)
library.With the new version the Interpolation itself is outsourced into a class on
its own. All the image processing and transformation used for the reporting
tools in my web based applications, a class called `WebInterface` is implemented.Usage
=====There are two main interfaces that can be used:
* The *Interpolator* class, which is the core class performing the
interpolation.* The *WebInterface* class which is meant to be used in a API, as it takes the
arguments as JSON and returns JSON along with base64 encoded images.
Example
-------
An Example will follow.