Saravanan666/pypi-org huggingface dataset:
Package: matexp
matexpThis program solves systems of differential equations for the NEURON simulator
using the matrix-exponential method of integration. This is a new method of
integration. The solution is faster and more accurate than NEURONs built
in "sparse" solver. This method is only applicable to systems which are linear
and time-invariant, such as Markov kinetic models. This method is also limited
to systems with one or two inputs.This program uses theNMODL file format(".mod" files).
The input kinetic model is an NMODL file, and the solution is written to a new NMODL file.For more information about how this program works seeDETAILS.md.InstallationPrerequisites:Compiler for the target system.CPU requiresg++Cuda requires thecupypython package.$ pip install matexpUsage$ matexp --help
usage: matexp [-h] [-v] [--plot] -t TIME_STEP [-c CELSIUS] [-e ERROR]
              [-i NAME MIN MAX] [--log [INPUT]] [--target {host,cuda}]
              [-f {32,64}]
              INPUT_PATH OUTPUT_PATH

positional arguments:
  INPUT_PATH            input filename for the unsolved NMODL file
  OUTPUT_PATH           output filename for the solution

options:
  -h, --help            show this help message and exit
  -v, --verbose         print diagnostic information, give twice for trace mode
  --plot                show the propagator matrix

simulation parameters:
  -t TIME_STEP, --time_step TIME_STEP
  -c CELSIUS, --celsius CELSIUS
                        default: 37°
  -e ERROR, --error ERROR
                        maximum error per time step. default: 10^-4

input specification:
  -i NAME MIN MAX, --input NAME MIN MAX
  --log [INPUT]         scale input logarithmically, for chemical concentrations

computer specification:
  --target {host,cuda}  default: host
  -f {32,64}, --float {32,64}
                        default: 64
Package: matfleet
matfleetIntroductionCurrently under development...Our Vision:We hope that this software can help you navigate with ease and proficiency in the following areas:First-principles calculations of materials, molecular dynamics, phase diagram phase field, thermodynamics and kinetics, finite element analysis, etc.High-throughput calculations of materialsMaterials genomicsMaterials informaticsMachine learning in materials scienceMaterials databasesPhase change materialsEnergy materialsTwo-dimensional materialsCondensed matter physicsOperation of small supercomputing clustersComputer software development frameworksDeveloperGuanjie Wang:gjwang.buaa@gmail.comTutorialConvert many pictures to one pdf file>>>pic2pdf-husage:pic2pdf[-h][-rREAD_FILEDIR][-wWRITE_FN][-dDIRECTION]testoptionalarguments:-h,--helpshowthishelpmessageandexit-rREAD_FILEDIR,--read_filedirREAD_FILEDIRreadfiledir-wWRITE_FN,--write_fnWRITE_FNwritefilename-dDIRECTION,--directionDIRECTIONdefault:horizen,true:verti
Package: matflow-abaqus
matflow-abaqusMatFlow extension for Abaqus.Change Log[0.1.2] - 2021.08.10AddedAdd support for the tasks:generate_MK_model,simulate_MK_deformation/FEandfind_forming_limit_curve.[0.1.1] - 2020.12.15Addedfunc_mapperfor tasks:generate_specimen_parts,generate_stepsinput_mapperfor tasksimulate_deformationcli_format_mapperformemoryexample workflow for modelling of a compact tension specimen loading[0.1.0] - 2020.11.16Initial release
Package: matflow-defdap
matflow-defdapMatflow extension for the Deformation Data Analysis in Python (DefDAP) package.This extension generates Python scripts that require the following Python packages to be installed:DefDAPhickle(version >=4.0.1)Change Log[0.1.8] - 2022.03.11AddedAdd creation of microstructure images with multiple phases from an EBSD map.Add check for non-indexed points when loading an EBSD map.ChangedOnly passscalefrom a DIC map if it exists.[0.1.7] - 2021.11.30ChangedUpdate bad point filtering inget_EBSD_imageto make sure no grain values < 0 are passed out.[0.1.6] - 2021.09.24ChangedAddquat_component_orderingkey toorientationssub-dict inEBSD_imageandDIC_imageoutput parameters.[0.1.5] - 2021.05.18AddedAdd implementation of taskload_microstructure, methodEBSD.ChangedUpdate for latest version of defdap (>0.93).Set default values for parameters in input map for taskload_microstructure, methodEBSD+DIC.[0.1.4] - 2021.01.19ChangedInget_DIC_image.pysnippet, returnorientationsdict item in a format used in other MatFlow extensions (and return as quaternions).[0.1.3] - 2021.01.07AddedAdd option to scale the microstructure image produced inget_DIC_imagesnippet.Apply rotation of hex unit cell from y // a2 in EBSD data to x // a1 expected by simulation inget_DIC_imagesnippet.FixedChange grain numbering to 0-indexed inget_DIC_imagesnippet.[0.1.2] - 2020.07.28AddedAdd filtering of "bad" voxels inget_DIC_imagesnippet.FixedA newmain_funcdecorator has been introduced, which allow snippets to contain utility functions, in addition to a main@main_func-decoration function, whose inputs and outputs will be parsed for generating the wrapper script.[0.1.1] - 2020.06.26FixedFix issue with including snippets in package data.[0.1.0] - 2020.06.26Initial release.
Package: matflow-demo-extension
matflow-demo-extensionDemonstration extension for Matflow.Change Log[0.1.3] - 2021.06.15AddedAdd more dummy tasks.[0.1.2] - 2021.01.11AddedAdd more dummy tasks to demonstrate parameter-modifying tasks.[0.1.1] - 2020.06.09ChangedAddexecutableparameter toget_versions(required by MatFlow).[0.1.0] - 2020.05.09Initial version.
Package: matflow-dream3d
matflow-dream3dMatflow extension for Dream3D.Change Log[0.1.2] - 2022.09.05AddedAdd option to specify preciseprecipitateswithingenerate_volume_element/from_statistics_dual_phase_orientations.[0.1.1] - 2022.08.08AddedAdd methodfrom_statistics_dual_phase_orientationsto taskgenerate_volume_element.[0.1.0] - 2021.10.26AddedInitial releaseAdd support for task:generate_volume_elementwith method:from_statistics.
Package: matflow-formable
matflow-formableMatflow extension for theFormablePython package, which provides tools for formability analysis in materials science.This extension generates Python scripts that require the following Python packages to be installed:formablehickle(version >=4.0.1)numpyChange Log[0.1.14] - 2022.08.08ChangedUse x-direction normal stress/strain in single crystal parameter optimisation instead of Von Mises to better align with experimental dataUse VonMises(VolumeAverage) in yield function fittingequivalent_plastic_strainmeasure instead of VolumeAverage(VonMises).[0.1.13] - 2022.03.18ChangedIn snippetoptimise_SC_parameters_LM, use VonMises(volume-averaged stress/strain) instead of volume-averaged(VonMises stress/strain).[0.1.12] - 2021.12.20AddedAddplastic_rangeparameter toget_tensile_testtask, which allows specifying the range of stress-strain data that should be considered in, for example, parameter fitting.[0.1.11] - 2021.11.09AddedAddcyclic_uniaxialload case method to taskgenerate_load_caseAddmixedload case method to taskgenerate_load_case[0.1.10] - 2021.08.07FixedFix extracting RVE data fromvolume_element_responsecreated from recent DAMASK-v3a3 update.[0.1.9] - 2021.08.06AddedAdd optionstrain_rate_modesfor taskgenerate_load_caseusing methodplane_strain.[0.1.8] - 2021.04.10ChangedSupportinitial_parametersandopt_parameters(i.e. optimisation parameters, including specifying bounds on yield function fitting).[0.1.7] - 2020.12.16AddedAdd support for task:get_tensile_testusing methodfrom_CSV.Add support for task:optimise_single_crystal_parametersusing methodlevenberg_marquardt.[0.1.6] - 2020.09.17FixedAdd missing package data to distribution[0.1.5] - 2020.09.17AddedAddfixed_parametersoption for yield function fitting.[0.1.4] - 2020.08.22FixedAllow different dump frequencies for each load case.[0.1.3] - 2020.08.22ChangedAdddump_frequencyto load case generators.[0.1.2] - 2020.06.09AddedAddfit_yield_functionChangedCompatibility changes for the next version of Matflow.[0.1.1] - 2020.05.11FixedEnsure function mapper functions returndicts[0.1.0] - 2020.05.09Initial version.
Package: matflow-neper
matflow-neperMatflow extension for neper.Change Log[0.1.3] - 2021.01.10FixedSynchronisefrom_damask_parsefunctions.[0.1.2] - 2021.01.10ChangedAdd unit cell alignment toorientationsdict item intesr_to_volume_elementfunction.[0.1.1] - 2020.12.07FixedFix installation error (lack or wheel)[0.1.0] - 2020.12.07Initial release.
Package: matgen
MatGen介绍在 Python 中快速构建矩阵的方法。软件功能基于numpy.stack的构造提供了两个语法糖类，分别是VerticalStacker和HorizontalStacker，以及对应的一个实例，分别是v_和h_。对v_和h_进行__getitem__访问，效果完全等同于numpy.vstack和numpy.hstack。示例>>>v_[np.array([1,2,3]),h_[[[4,5],[4,5]],[[6],[6]]],np.zeros((2,3)),np.eye(3)][[1.2.3.][4.5.6.][4.5.6.][0.0.0.][0.0.0.][1.0.0.][0.1.0.][0.0.1.]]基于 MATLAB 风格的解释器提供一个函数M_通过解析字符串的形式来构建矩阵，支持部分 MATLAB 语法和 Python 语法。该字符串的组成形式如下：[* * ... *;
 * * ... *;
     ...  ;
 * * ... *]其中*代表一个元素，该元素可以是一个数字，可以是上述的矩阵（矩阵嵌套），还可以是一个 python 表达式。注意，如果该 python 表达式包含[*]符号，会使解释器产生误解（这是由于两种语言风格混合在一起导致的），例如arr[1,2]，解释器不知道这里是两个元素还是对arr的切片。如果你想表达这是一个 python 表达式，请用括号将它们包括起来，即写成(arr[1,2])。示例>>>M_('[1 2 3; np.zeros((2, 2)), np.array([[1, 2]]).T]')[[1.2.3.][0.0.1.][0.0.2.]]
Package: matgrab
matgrabSearch and extract field names or variables from MATLAB .mat files and return a pandas DataframeinstallationPYPIpip install matgrabusagepythonimport matgrab
df = matgrab.mat2df("PATH","VARS")PATH may be a file path, directory path, or list of either
VARS may be a string or list of strings that correspond to field names of desired matlab variablesif your desired data is nested within another named data structure or array, that structure name must proceed the desired variable separated by a "."EEG.mat
├── dataset_description {string}
└── sub-D0048 {struct}
    ├── anat {struct}
    │   ├── T1w {string}
    │   └── CT {float}
    └── ieeg {array}
        ├── channels {column}
        └── values {column}To retrieve the values from the above mat file, the command would be:matgrab.mat2df("EEG.mat",["sub-D0048.anat.T1w","sub-D0048.anat.CT","sub-D0048.ieeg.channels","sub-D0048.ieeg.values"])
Package: math115utils
This package contains A115’s collection of clean and useful utilities for
mathematical manipulations. These utilities have been tried and tested in
multiple real world deployments and have proven useful in just many projects
where work with numbers or basic financial operations are required.The best way to learn about the provided utilities is to look at the
nicely commented source code and the comprehensive suite of unit tests.This package is used as one of several basic building blocks in multiple
other Python packages released as open-source by A115.Python 2.7 is required.For commercial support, seehttp://www.a115.bg/
Package: math22
This project provides 10 functions that can help mathematics computation and code evaluation.
Is_prime (num) function is used to judge whether a number is prime.  Input should be a number above zero and output is true or false.Function of is_square(num) is used to judge if a number is square number by commutating its square root. input should be a number above zero and result is true or false.The quad_equation_1unknown (a, b, c) function is used to compute the root of equation of two degree. 3 input values are coefficients of equation. the results are roots of quadratic equation with one unknown. If there is no solution for this equation, the result will be “none”. If all inputs are zero, the result will be “not an equation”The function of fib(num) is to compute the nth number in Fibonacci sequence .The functions [random _method1(len1), random_method2(len1) and random_all(len1)] can provide a random password with an input length of password. The function “random_method1” includes all letters (both upper case and lower case). The function “random_method2” includes all letters and numbers. The function “random_all” includes all printable characters (except whitespaces).The next function is “level(string1)” that is used to evaluate level of password. You should give a string object to the function and it will return the strength grade of this password. The levels from good to bad are [perfect, very good, very strong, average, low and too low]. It has an attach function “level_store” and it is only used to support the “level” function.The function of encode(st) is used to encode a string by using an encryption algorithm. Every character of this string will be replaced by next character in alphabet. The space will be replaced to the character “!”.(there is a new object too,but it's not completed)(version 2.1.7, 3rd January, 2020 add)
Function “line_equation_2unknown(a, b, u, c, d, v)”gives the root of a linear equation in two unknowns ”ax+by=u, cx+dy=v”.If it has no roots, the result will be none.
(version 2.2, 15st February, 2020 add)
Function "base_convert(before, after, num)" is used to convert the base of  from  to .
 must be a string. and  must be bigger than 1 and smaller than 63.The order is 0-9,a-z,A-Z.If there’s a new version, the descriptions of the new functions will be add into the text.This project is created by a 12-year-old student. You can send emails to2691475984@qq.comto contact with me.
Package: math2docx
math2docxOpen source Python library converting math formula to docxHow to install?pipinstallmath2docx==2.0.2Exampleimportmath2docx
fromdocximportDocumentdocument=Document()p=document.add_paragraph()#LaTex Math Formulalatex_=r"\cos (2\theta) = \cos^2 \theta - \sin^2 \theta"math2docx.add_math(p,latex_)document.save("new_file.docx")About of LaTex Math Formula FormatResults
Package: mathactive
"mathactive"Conversational math active learning.K-12 student can learn math from a chatbot that helps them actively solve math problems suitable to their skill level.QuickstartIf you have install python packages from source before, you will probably be able to follow these steps to get going quickly:pipinstall--upgradepipvirtualenvpoetry
gitclonegit@gitlab.com:tangbileai/community/mathactivecdmathactive
python-mvirtualenv.venvsource.venv/bin/activate||source.venv/Scripts/activate
pipinstall--editable.Utilitiesdefget_countq_start_step(difficulty=0.01):""" Predict the parameters of a quiz question generator based on the desired difficulty>>> get_start_step(difficulty=.02){'start': 0, 'step': 1}>>> get_start_step(difficulty=.03){'start': 0, 'step': 1}>>> get_start_step(difficulty=.04){'start': 10, 'step': 1}"""Directory structure├── docs
│   ├── AIMA approaches to creating a chatbot.md
│   ├── ...
├── pyproject.toml
├── README.md
├── scripts
│   ├── bump_version.py
│   ├── release.sh
│   └── requirements.txt
└── src
    └── mathactive
        ├── data
        │   └── difficulty_start_stop_step.csv
        ├── data.csv
        ├── db.sqlite3
        ├── generators.py
        ├── hints.py
        ├── machine.py
        ├── manage.py
        ├── microlessons
        │   ├── num_one.py
        │   └── utils.py
        ├── personalize.py
        ├── python_quiz.py
        ├── questions.py
        ├── utils.py
        ├── webapp
        │   ├── admin.py
        │   ├── apps.py
        │   ├── migrations
        │   ├── models.py
        │   ├── tests.py
        │   └── views.py
        └── website
            ├── asgi.py
            ├── settings.py
            ├── urls.py
            └── wsgi.py
Package: mathbox
MathboxOverviewA math toolbox without numpy and scipy.Usagepip install mathboxDownload from source code,export PYTHONPATH='/<path>/<to>/mathbox-py'. And then get into examples foldercd examples, install dependencies from requirements.txt (recommended in virtualenv) and runpython xxx.py.APIsTime-series 1D real dataPrerequisitiesAll the signals must be well interpolated.Cross-correlationmax_corr(obj, candidates, num, lag_max)obj - input: a list. The objective list whose correlated lists are concerned.cadidates - input: list of lists.num - input: a uint. Default is 1.lag_max - input: a uint. Default is 20. The lag refers to how far the series are offset, and its sign determines which series is shifted.The function returnsnumpieces of list fromcandidatesthat are most correlated to theobjlist. And the function will calculate the maximum correlation from -lag_max to +lag_max.Filtersmoving_median(signal, window)signal - input: a list.window - input: an int and the odd is recommended.moving_average(signal, window)signal - input: a list.window - input: an int.f_lowpass_filter(signal, T, n=3, f_min)signal - input: a list.T - input: sample period time.n - input: a unit. Get thenpieces of frequencies with the maximum amplitude.f_min - input: cut-off frequency.Outliers detectionnoise_outlier(noise, level)noise - input: a list. Signal should obey normal distribution. So it's better to choose a white noise as input.level - input: a unit. Default is 3 which means 3 sigma. Usually, it should be 1, 2, 3 or 6.Change points detectione_divisive(signal,jump,pvalue=0.05,permutations=100)signal - input: a list.jump - input: a unit. Jump controls the minimum distance between change points.pvalue - a float from 0~1.permutations - a uint. Default is 100 which means 100 times permutation test will be done to check whether the change point is really a chnage point.Utils
Package: mathcad2smath
mathcad2smathCommand tool to convert mathcad XMCD to XMCD with Smath Studio support.Usage:mathcad2smath [-h] [-o] [-r] [-d BASEDIR] [-p PREFIX] [-s SUFIX] [--ignore_custom]
              [-e ADD_EXTERNAL [ADD_EXTERNAL ...]] [--external_path EXTERNAL_PATH] [-f FILENAME]

Convert XMCD mathcad files into XMCD compatible with Smath Studio

optional arguments:
  -h, --help            show this help message and exit
  -o, --overwrite       Overwrite the output file if exist
  -r, --recursive       Find XMCD files recursively
  -d BASEDIR, --basedir BASEDIR
                        The basedir to convert the XMCD's file
  -p PREFIX, --prefix PREFIX
                        The prefix to output file
  -s SUFIX, --sufix SUFIX
                        The sufix to output file
  --ignore_custom       Include a "custom.sm" file into output XMCD directory with mathcad specific functions   
  -e ADD_EXTERNAL [ADD_EXTERNAL ...], --add_external ADD_EXTERNAL [ADD_EXTERNAL ...]
                        Add user externals files into output XMCD directory. Try to add a file relative to      
                        "external_path", then try to get the file as full path. If a "*" is used, try to add    
                        all SM file in "external_path"
  --external_path EXTERNAL_PATH
                        The path to user external files
  -f FILENAME, --filename FILENAME
                        Convert specific file
  --smath_path SMATH_PATH
                        Path to Smath Studio instalation, convert external files to SM when needed
  --save_as_sm          Save output file as SM fileThe "custom.sm" file has the "ceil" and "floor" function that is not defined in Smath Studio and define also a "Percent" variable, because the "%" char is translated as "Percent" when Smath import XMCD files.The SMATH_PATH is used to convert XMCD in SM file when there is a linked worksheet in file, because the "include" function in Smath only works with SM files. This is used also for save the converted file as SM with the "save_as_sm" option.
Package: mathco
MathCoCompanion for your Mathematical operationsMathCo is a Python Basic Library that can perform basic mathematical functions and operations. Easy to use.Install Mathco :pip install mathcoMathCo Github :Click this linkVersion Control :MathCo v0.3Why MathCo?As "MathCo", the name itself means, "Maths Companion", a guide to help you out for whatever operation do you need it.
We're at a constant rate of combining all mathematical operations in one module for ease of access and performance.
We want to keep libraries simpler and easier to use.ExamplesSimple Usage of Mathco LibraryfrommathcoimportBasicx=Basic()# Creates an instanceprint(x.add(1,2))# Gives out output as "3"Fibonacci SeriesfrommathcoimportFibonaccix=Fibonacci()print(x.series(5))Functions availableBasic()x.add(x,y): Adds two integersx.sub(x,y): Subtracts two integersx.mul(x,y): Multiply two integersx.div(x,y): Divides two integersFibonacci()x.series(n): Fibonacci Series ranging to "n"Extra DetailsLicense :GNU General Public License v3.0Modules Needed :None (for v0.0.3)Created with ❤️ by AbelR007
Package: math-command-line
mathI often find myself opening a python shell from the command line in order to do some quick math. Now I don't have to.Installation$pipinstallmathUsage$math1+12$math2**664Don't forget to use quotes for expression which contain bash special characters or spaces.$math"sin(1)**2 + cos(1)**2"1.0$math"(19*3 + 18*3 + 17*2 + 14*1) / 9"17.666666666666668
Package: mathcool
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: mathcrypto
MathCryptoMathCrypto is a library of useful funtions used in cryptography. Do not use this library for improving the security of your application, it is not safe or powerful enough to provide that.Available functions include:Multiplicative group operationsGenerate a group from modulus including group elements and generatorsGet inverse element any element of the groupGet element order of any element in groupMath functionsNumber primality checksClassic number modulus checkFermat's primality testEuler's Totient function (Phi)Euclidean algorithm (GCD)Simple number factorizationChinese Remainder TheoremExtended Euclidean AlgorithmFunctions from this library can be used to solve recreational mathematics, cryptographic and programming problems.InstallationMathCrypto is avalaible through Python Package Index (PyPI) usingpip. :foo@bar:~$python3-mpipinstall--upgrademathcryptoTo uninstall usingpip. :foo@bar:~$python3-mpipuninstallmathcryptoDocumentationYou can read the full documentationhere.DevelopmentSource code repository is available onGitHub. Feel free to contribute.Bug reportsand suggestions are welcome.Licensemathcrypto is licensed under theMIT License.