python functiontools_python 如何安装scitools包?

pip3 install scitools3

scitools在python3下已经改成scitools3了This is a new version of the SciTools library adapted for Python 3.

It is reorganized and not everything from the old package is still there.

Once most useful modules from SciTools have been ported to Python 3,

development on this site will probably cease, however I plan to then

continue maintaining these modules in a new Python Library: sciren.

For more information about sciren, please visit the website (that doesn't yet exist):

https://onnoeberhard.com/sciren

SciTools is a Python package containing lots of useful tools for

scientific computing in Python. The package is built on top of other

widely used packages such as NumPy, SciPy, ScientificPython, Gnuplot,

Matplotlib, VTK, and others. SciTools can be downloaded from

code.google.com/p/scitools.

The SciTools package contains a lot of modules:

- easyviz: package for unified Matlab-like plotting syntax

- basics: imports from numpy, scipy, scitools.numpyutils

- std: imports of basics and easyviz

- misc: many non-numerical convenience functions

- numpyutils: many numerical convenience functions

- StringFunction: turns string formulas into callable functions

- configdata: user-friendly access to Python config files

- filetable: read/write tabular data in files into/from arrays

- debug: useful functions for debugging

- pprint2: improvement of pprint for formatting control of floats

- multipleloop: makes a loop from all combinations of a set of parameters

- EfficiencyTable: nice table report from efficiency experiments

- globaldata: holds all global data in the scitools package

- sound: tools for easy sound generation and manipulation

- aplotter: curve plotting in pure ASCII

- Lumpy: visualization of the data structures in a Python program

Some modules and classes are closely related to and explained in the

text in the book "Python Scripting for Computational Science", by

H. P. Langtangen, 3rd edition, 2nd printing, Springer, 2009:

- NumPyDB: a simple database for holding NumPy arrays

- Regression: module for performing regression tests (also with floats)

- CanvasCoord: transformations between canvas and physical coordinates

- DrawFunction: enables users to draw a function (in Pmw.Blt plotting widget)

- FunctionSelector: Tk/Pmw-based widgets for selecting functions

- FuncDependenceViz: visualization of how functions vary with parameters

- ParameterInterface: a simplified GUI generator for simulation programs

- PrmDictBase: module for holding parameters in simulation programs

Some preliminary modules include

- BoxGrid: a structured grid in 1D, 2D, or 2D

- BoxField: a scalar or vector field over a BoxGrid

See the different modules for more detailed information.

The most convenient SciTools import statement reads::

from scitools.std import *

This statement imports from numpy, scipy (if available),

scitools.numpyutils (many numerical convenince functions), and all

Easyviz plotting capabilities. (See the documentation of

scitools.std for a precise list of imports implied by the

above statement.)

Many programmers prefer to avoid the "star import" above, which

has the disadvantage of filling up the global namespace with

a large number of names. The key import statement is then::

import scitools.std as st

All functions and modules must then be prefixed by ``st``:

``st.float_eq``, ``st.StringFunction``, ``st.plot``, etc.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值