Saravanan666/pypi-org huggingface dataset:
Package: meshplex
Fast tools for simplex meshes.Compute all sorts of interesting points, areas, and volumes in simplex (triangle,
tetrahedral, n-simplex) meshes of any dimension, with a focus on efficiency. Useful in
many contexts, e.g., finite-element and finite-volume computations.InstallationInstall meshplexfrom PyPIwithpip install meshplexFor full usage of meshplex, you require a license. Licenses for personal and
academic use can be purchasedhere. For more info, seehere.Quickstartmeshplex can compute the following data:importmeshplex# create a simple Mesh instancepoints=[[0.0,0.0],[1.0,0.0],[0.0,1.0]]cells=[[0,1,2]]mesh=meshplex.Mesh(points,cells)# or read it from a file# mesh = meshplex.read("pacman.vtk")# triangle volumes, heightsprint(mesh.cell_volumes)print(mesh.signed_cell_volumes)print(mesh.cell_heights)# circumcenters, centroids, incentersprint(mesh.cell_circumcenters)print(mesh.cell_centroids)print(mesh.cell_incenters)# circumradius, inradius, cell qualityprint(mesh.cell_circumradius)print(mesh.cell_inradius)print(mesh.q_radius_ratio)# d * inradius / circumradius (min 0, max 1)# control volumes, centroidsprint(mesh.control_volumes)print(mesh.control_volume_centroids)# covolume/edge length ratiosprint(mesh.ce_ratios)# count Delaunay violationsprint(mesh.num_delaunay_violations)# removes some cellsmesh.remove_cells([0])For triangular meshes (MeshTri), meshplex also has some mesh manipulation routines:mesh.show()# show the meshmesh.angles# compute anglesmesh.flip_until_delaunay()# flips edges until the mesh is DelaunayFor a documentation of all classes and functions, seereadthedocs.(For mesh creation, check outthis list).PlottingTrianglesimportmeshplexmesh=meshplex.read("pacman.vtk")mesh.show(# show_coedges=True,# control_volume_centroid_color=None,# mesh_color="k",# nondelaunay_edge_color=None,# boundary_edge_color=None,# comesh_color=(0.8, 0.8, 0.8),show_axes=False,)Tetrahedraimportnumpyasnpimportmeshplex# Generate tetrahedronpoints=np.array([[1.0,0.0,-1.0/np.sqrt(8)],[-0.5,+np.sqrt(3.0)/2.0,-1.0/np.sqrt(8)],[-0.5,-np.sqrt(3.0)/2.0,-1.0/np.sqrt(8)],[0.0,0.0,np.sqrt(2.0)-1.0/np.sqrt(8)],])/np.sqrt(3.0)cells=[[0,1,2,3]]# Create mesh objectmesh=meshplex.MeshTetra(points,cells)# Plot cell 0 with control volume boundariesmesh.show_cell(0,# barycenter_rgba=(1, 0, 0, 1.0),# circumcenter_rgba=(0.1, 0.1, 0.1, 1.0),# circumsphere_rgba=(0, 1, 0, 1.0),# incenter_rgba=(1, 0, 1, 1.0),# insphere_rgba=(1, 0, 1, 1.0),# face_circumcenter_rgba=(0, 0, 1, 1.0),control_volume_boundaries_rgba=(1.0,0.0,0.0,1.0),line_width=3.0,)
Package: meshpro
Mesh tools for professionals.MeshPro is a Python library and command-line tool for mesh I/O and mesh manipulation.It supports all mesh formats supported bymeshio.Install MeshPro withpip install meshproandretrieve a license key.The full API documentation ishere.You can then use the command-line toolmeshproconvertinput.mshoutput.vtk# convert between two formatsmeshproinfoinput.xdmf# show some info about the meshmeshprocompressinput.vtu# compress the mesh filemeshprodecompressinput.vtu# decompress the mesh filemeshprobinaryinput.msh# convert to binary formatmeshproasciiinput.msh# convert to ASCII formator use MeshPro in Python withimportmeshproMeshPro featuresMeshPro meshes work exactly likemeshiomeshes, and they have a few extras:importmeshpro# create meshmesh=meshpro.Mesh([[0.0,0.0],[1.0,0.0],[1.0,1.0],[0.0,1.0]],[("triangle",[[0,1,2],[0,2,3]])],)# or read it in# mesh = meshpro.read("mesh.vtk")# remove duplicate points and take care of the indexingmesh.deduplicate_points(tol=1.0e-10)# remove all points which aren't referenced in any cellmesh.remove_orphaned_points()# remove a number of points or cells# mesh.remove_points(mask)# mesh.remove_cells(mask)# add boundary cellsmesh.add_boundary_cells()# add outer normals as cell datamesh.add_outer_normals()Other mesh manipulation tools are these:importmeshpro# extract boudnary meshboundary_mesh=boundary_meshmeshpro.extract_boundary_mesh(mesh)# merge some meshesmesh=meshpro.merge_meshes([mesh1,mesh2,mesh3])submesh=meshpro.extract_submesh(mesh,point_mask,cell_mask)submeshes=meshpro.split_cell_sets(mesh,store_orig_node_ids_as="gid")LicenseMeshPro is a commercial product. You need toacquire
a licenseto use it. Trial licenses are available.
Package: mesh-sandbox
MESH SandboxMESH sandbox for local testing ofNHS Digital's MESH API.InstallationExample usepippipinstallmesh-sandboxSTORE_MODE=fileMAILBOXES_DATA_DIR=/tmp/meshuvicornmesh_sandbox.api:app--reload--port8700--workers=1curlhttp://localhost:8700/healthdocker composeversion:'3.9'services:mesh_sandbox:build:context:https://github.com/NHSDigital/mesh-sandbox.git#refs/tags/v1.0.4ports:-"8700:443"deploy:restart_policy:condition:on-failuremax_attempts:3healthcheck:test:curl -ksf https://localhost/health || exit 1interval:3stimeout:10senvironment:-SHARED_KEY=TestKey-SSL=yes#      - STORE_MODE=file  # store mode file will persist data to diskvolumes:# mount a different mailboxes.jsonl to pre created mailboxes-./src/mesh_sandbox/store/data/mailboxes.jsonl:/app/mesh_sandbox/store/data/mailboxes.jsonl:ro-./src/mesh_sandbox/test_plugin:/app/mesh_sandbox/plugins:ro# you can mount a directory if you want access the stored messages#      - ./messages:/tmp/mesh_store# you can also mount different server cert and key if using ssl and you need a trusted certificate#      - ./mycert.pem:/tmp/server-cert.pem:ro#      - ./mycert.key:/tmp/server-cert.key:roGuidance for contributorscontributing
Package: meshtastic
Meshtastic PythonOverviewA Python client for use with Meshtastic devices.
This small library (and example application) provides an easy API for sending and receiving messages over mesh radios.
It also provides access to any of the operations/data available in the device user interface or the Android application.
Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.Getting Started GuideDocumentation/API ReferenceStats
Package: meshtastic2hass
Meshtastic to Home Assistant (Hass)A Python client for use with Meshtastic devices. The client connects to a mesh radio via USB serial port. Telemetry and position messages from the mesh are published to an MQTT broker and further into Home Assistant. All MQTT entities will by auto discovered in Home Assistant.Usageusage:meshtastic2hass[-h]--devDEV--mqtt-hostMQTT_HOST[--mqtt-portMQTT_PORT]--mqtt-userMQTT_USER--mqtt-passwordMQTT_PASSWORD[--mqtt-topic-prefixMQTT_TOPIC_PREFIX][--version]ConnectsMeshtasticradiosviaMQTTtoHomeAssistant(Hass).

options:-h,--helpshowthishelpmessageandexit--configCONFIGPathtoconfigurationfileinTOMLformat.--devDEVThedevicetheMeshtasticdeviceisconnectedto,i.e./dev/ttyUSB0--mqtt-hostMQTT_HOSTTheMQTTbrokerhostnameorIP.--mqtt-portMQTT_PORTTheMQTTbrokerport.--mqtt-userMQTT_USERTheMQTTbrokerusername.--mqtt-passwordMQTT_PASSWORDTheMQTTbrokerpassword.--mqtt-topic-prefixMQTT_TOPIC_PREFIXTheMQTTtopicprefix.--versionshowprogram'sversionnumberandexit
Package: meshtastic-mqtt
meshtastic-mqttA python script to translate Meshtastic MQTT location messages into a plain format that other systems can easily understand.  Currently takes position data and submits it to a Traccar instance, also publishes battery levels and environmental plugin temperatures and humidity readings to mqtt as raw values.The latest build of Meshtastic-device has support for publishing decrypted payloads, which you'll need in order to use this script.There's a few config definitions at the top of meshtastic-mqtt.py that you'll need to change for your MQTT server.There are some comments in meshtastic-mqtt.py that detail the tweaks needed to make this run under AppDaemon in Home Assistant.
Package: meshutility
MeshUtilityA collection of python utilities for mesh processing.Install withpip install meshutility==0.0.2A simple tutorial is availablehere.Functions & Modulescolormap_vertex_color: assign vertex color to visualize a scalar field defined on mesh.cut_along_curve: cut a mesh along a vertex chain.ff_graph: face-face graph of mesh.get_scalar_field_on_resampled_points: given a scalar field defined on a triangular mesh, get field values on resampled points.IsoCurvemodule: extract isocurves on a scalar field defined on a manifold triangular mesh.pygeodesicmodule (C++): geodesic for triangular meshes.exact geodesic by Danil Kirsanov.fast marching, may use different speed on each face.pyisocurvemodule (C++): almost the same asIsoCurveabove.pyremeshmodule (C++): incremental isotropic remeshing.pyshapeopmodule (C++): a partial binding of ShapeOp.read_obj_lines: read polyline from aWavefront .obj file.remove_unreferenced_vertices: remove unreferenced vertices.sphere_cvt: iteratively approximate centroidal Voronoi tessellation (CVT) on the unit sphere (kind of uniform sampling).split_connected_components: split connected components.split_mesh, split_mesh_complete: split a mesh by inserting new vertices defined on mesh edges.write_obj_lines: write polyline as a Wavefront .obj file that can be open with MeshLab.vv_graph: vertex-vertex graph of mesh.Build from Sourceseebuild.md
Package: meshwell
MeshwellProject is under active development, stay tuned for improved features, documentation, and releases!Meshwell is a Python wrapper aroundGMSHthat provides:(1) a Prism class that simplifies, to the point of automating, the definition of solids from arbitrary (multi)polygons with "buffered" extrusions;(2) a simple API where such Prisms and regular GMSH OCC objects are specified in an ordered dictionary of mesh priority, and whose keys are then used to label the mesh entities and their interfaces unambiguously;For instance:See the documentation for more information and examples. If you encounter a big, you can make an issue so we can improve the software over time. Contributions are also welcome, see open issues for current bugs and requested features.BackgroundThis code was originally developed to define meshes out of the GDSII descriptions of integrated photonic circuits. A particularity of such devices is rich 2.5D topology, featuring multiple layers of smooth curves in the plane and etching profiles vertically.  Maxwell's equations (hence the name) are solved on these geometries to study how light propagates. It is also of critical interest to simulate how this is affected under other physical effects that can be resolved through finite-element or finite-volume analysis.Related projectsgdsfactory: open-source plugin-rich layout software; meshwell is the backend togplugins' gmsh modulefemwell: open-source scikit-fem based finite-element simulations, with emphasis on photonicsDEVSIM: open-source finite-volume simulator, with emphasis on semiconductor TCADOther notable GMSH Python interfaces:gmsh: the gmsh Python API itself has significantly improved over the yearspygmsh: manipulate Python objects instead of gmsh entity tagsobjectgmsh: class wrappers around entitiesgyptis: uses basic gmsh for photonic geometriesAcknowledgementsSimon Bilodeau (Princeton): maintainerHelge Gehring (Google X): beta testing, use cases, bug fixes, improvementsJoaquin Matres Abril (Google X): code improvementsNiko Savola (Google): beta testing, use cases, bug fixes, improvements
Package: meshx
meshxA simple tool to convert mesh created from Gmsh to XDMF for use in FEniCS. This work is derived from the work done during myGSoC projectand is based on the followingsnippet of codemade byMichal Habera.Getting StartedTo use this tool you have to use the docker imageprovided here. It has all the correct version of different libraries that are supported by this tool.InstallingYou can install this with the following commands:sudo -H pip install meshxRunningRun the following in the directory which contains the.mshfile.meshx plate.mshExample problem:cd demo/poisson_problem
meshx plate.mshThis command will give you 2 folders -mesh - This folder will contain the data that we will use in the script i.e, the XDMF files for different entities of mesh and the JSON file containing the corresponding tag names and tag values.sub_domains - This folder will contain the XDMF files of different subdomains marked. These files can be visualised in Paraview for validating the correctness of the marked subdomain.python3 main.pyNotesThis repository is tested with the Docker imageprovided here. This Docker image has all the correct version of libraries required for this tool. If you want to use this tool with your Docker image then please install all the different libraries mentioned in the above repository.DevelopmentInstall the repository in editable mode for development. Go to the root folder containingsetup.pyand run the following in terminal.sudo-Hpipinstall-e.AuthorsAbhinav GuptaMeenu Krishnan
Package: meshzoo
When generating meshes for FEM/FVM computations, sometimes your geometry is so simple
that you don't need a complex mesh generator (likepygmsh,MeshPy,mshr,pygalmesh,dmsh),
but something simple and fast that makes use of the structure of the domain. Enter
meshzoo.InstallationInstall meshzoofrom PyPIwithpip install meshzooHow to get a licenseLicenses for personal and academic use can be purchasedhere.
You'll receive a confirmation email with a license key.
Install the key withplm add <your-license-key>on your machine and you're good to go.For commercial use, please contactsupport@mondaytech.com.ExamplesTriangleimportmeshzoobary,cells=meshzoo.triangle(8)# corners = np.array(#     [#         [0.0, -0.5 * numpy.sqrt(3.0), +0.5 * numpy.sqrt(3.0)],#         [1.0, -0.5, -0.5],#     ]# )# points = np.dot(corners, bary).T# Process the mesh, e.g., write it to a file using meshio# meshio.write_points_cells("triangle.vtk", points, {"triangle": cells})Rectangleimportmeshzooimportnumpyasnppoints,cells=meshzoo.rectangle_tri(np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11),variant="zigzag",# or "up", "down", "center")points,cells=meshzoo.rectangle_quad(np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11),cell_type="quad4",# or "quad8", "quad9")Regular polygonmeshzoo.ngon(4, 8)meshzoo.ngon(6, 8)meshzoo.ngon(9, 8)importmeshzoopoints,cells=meshzoo.ngon(5,11)Diskmeshzoo.disk(4, 8)meshzoo.disk(6, 8)meshzoo.disk(9, 8)The disk meshes are inflations of regular polygons.importmeshzoopoints,cells=meshzoo.disk(6,11)points,cells=meshzoo.disk_quad(10,cell_type="quad4")# or "quad8", "quad9"Möbius stripimportmeshzoopoints,cells=meshzoo.moebius(num_twists=1,nl=60,nw=11)Sphere (surface)importmeshzoopoints,cells=meshzoo.uv_sphere(num_points_per_circle=20,num_circles=10,radius=1.0)points,tri,quad=meshzoo.geo_sphere(num_points_per_circle=20,num_circles=10,radius=1.0)Spheres can also be generated by refining the faces ofplatonic
solidsand then "inflating" them. meshzoo
implements a few of them. The sphere generated from the icosahedron has the
highest-quality (most equilateral) triangles.All cells are oriented such that its normals point outwards.meshzoo.tetra_sphere(10)meshzoo.octa_sphere(10)meshzoo.icosa_sphere(10)Ball (solid)importmeshzoopoints,cells=meshzoo.ball_tetra(10)points,cells=meshzoo.ball_hexa(10)Tubeimportmeshzoopoints,cells=meshzoo.tube(length=1.0,radius=1.0,n=30)Cubeimportmeshzooimportnumpyasnppoints,cells=meshzoo.cube_tetra(np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11))points,cells=meshzoo.cube_hexa(np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11),np.linspace(0.0,1.0,11))
Package: mesi
MesiMesi is a tool to measure the similarity in a many-to-many fashion of long-form
documents like Python source code or technical writing. The output can be useful
in determining which of a collection of files are the most similar to each
other.InstallationPython 3.9+ andpipxare recommended, although
Python 3.6+ and/orpipwill also work.pipxinstallmesiIf you'd like to test out Mesi before installing it, use the remote execution
feature ofpipx, which will temporarily download Mesi and run it in an
isolated virtual environment.pipxrunmesi--helpUsageFor a directory structure that looks like:projects
├── project-one
│   ├── pyproject.toml
│   ├── deliverables
│   │   └── python_program.py
│   └── README.md
├── project-two
│   ├── pyproject.toml
│   ├── deliverables
│   │   └── python_program.py
│   └── README.md
│where similarity should be measured between each project'sdeliverables/python_program.pyfile, run the command:mesiprojects/*/deliverables/python_program.pyA lower distance in the produced table equates to a higher degree of similarity.See the help menu (mesi --help) for additional options and configuration.AlgorithmsThere are many algorithms to choose from when comparing string similarity! Mesi
implements all thealgorithmsprovided byTextDistance. In generallevenshteinis never a bad choice, which is why it is the default.Table FormatsMesi usestabulatefor table
formatting. The table format can be configured with the--table-formatoption
to one of the formatslistedin tabulate's
documentation.DependenciesMesi uses two primary dependencies for text similarity calculation:polyleven, andTextDistance. Polyleven is the default,
as its singular implementation ofLevenshtein
distancecan be faster in
most situations. However, if a different edit distance algorithm is requested,
TextDistance's implementations will be used.Bugs/RequestsPlease use theGitHub issue
trackerto submit bugs or request
new features, options, or algorithms.LicenseDistributed under the terms of theGPL v3license, mesi is free and
open source software.
Package: mesita
mesitamesita is a library for printing tables in the terminal.You can use it to print a table and customize the cells with different font styles and colors.mesita is also good for diffing two tables and comparing differences.  You can print tables side-by-side or even mix two tables into one.mesita is leveraged by unit testing libraries like chispa and beavis.Format strings in the TerminalHere's how to print a string that's bold and blue in the Terminal:mesita.format_string("Adelaide",["bold","blue"])Print table comparisonsSuppose you have the following tables that are similar.  Here is the first table:+-----------+------+------------+-----------------+
| City name | Area | Population | Annual Rainfall |
+-----------+------+------------+-----------------+
|  Adelaide | 1295 |  1158259   |      600.5      |
|  Brisbane | 5905 |  1857594   |      1146.4     |
+-----------+------+------------+-----------------+Here is the other table:+-----------+------+------------+-----------------+
| City name | Area | Population | Annual Rainfall |
+-----------+------+------------+-----------------+
|  Adelaide | 1300 |  1158259   |      600.5      |
|  Brisbane | 5905 |  1857594   |       1148      |
+-----------+------+------------+-----------------+Tables as two columnsHere's how to print the tables as two columns:field_names1 = ["City name", "Area", "Population", "Annual Rainfall"]
rows1 = [
    ["Adelaide", 1295, 1158259, 600.5],
    ["Brisbane", 5905, 1857594, 1146.4]
]
rows2 = [
    ["Adelaide", 1300, 1158259, 600.5],
    ["Brisbane", 5905, 1857594, 1148]
]
m = Mesita(field_names1, rows1, rows2, ["nc"], ["red", "bold"], lambda x, y: x == y)
print("\n" + m.as_columns())Tables side-by-sideHere's how to print the tables side-by-side:m=Mesita(field_names1,rows1,rows2,["nc"],["red","bold"],lambdax,y:x==y)print("\n"+m.side_by_side())Tables combined into oneAnd here's how to print the tables combined into a single table:m=Mesita(field_names,rows1,rows2,["nc"],["red","bold"],lambdax,y:x==y)print("\n"+m.smush())
Package: mesma
MESMA is both a QGIS plugin and stand-alone python package that implements the MESMA (Multiple Endmember Spectral
Mixture Analysis) unmixing algorithm in the field of Remote Sensing.It is based on VIPER Tools: a software package written for ENVI/IDL and released in 2007.
Several updates have been released since and now it has been ported to PyQGIS in the period 2017 - 2020.
The original VIPER Tools is now split over two python/QGIS tools:Spectral Library ToolandMESMA.Spectral Library Toolprovides the following:Creating spectral libraries interactively (selecting spectra from an image or using regions of interest) and managing
the metadata (developed by HU Berlin)Optimizing spectral libraries with Iterative Endmember Selection, Ear-Masa-Cob or CRESWebsite: <https://spectral-libraries.readthedocs.io>Repository:https://bitbucket.org/kul-reseco/spectral-librariesMESMAprovides the following:Running SMA and MESMA (with multi-level fusion, stable zone unmixing, …)Post-processing of the MESMA results (visualisation tool, shade normalisation, …)Website: <https://mesma.readthedocs.io>Repository:https://bitbucket.org/kul-reseco/mesmaThe software has now been developed in the open source environment to encourage further development of the tool.PLEASE GIVE US CREDITWhen using the MESMA tool, please use the following citation:Crabbé, A. H., Somers, B., Roberts, D. A., Halligan, K., Dennison, P., Dudley, K. (2020).MESMA QGIS Plugin (Version x) [Software]. Available from https://bitbucket.org/kul-reseco/mesma.ACKNOWLEDGEMENTSThe software and user guide are based on VIPER Tools 2.0 (UC Santa Barbara, VIPER Lab):
Roberts, D. A., Halligan, K., Dennison, P., Dudley, K., Somers, B., Crabbe, A., 2018, Viper Tools User Manual,
Version 2, 91 pp.MESMA is also using two python packages developed by Benjamin Jakimow and Andreas Rabe:QGISPluginSupport (Benjamin Jakimow, HU Berlin):https://bitbucket.org/jakimowb/qgispluginsupporthub-datacube (Andreas Rabe, HU Berlin):https://bitbucket.org/hu-geomatics/hub-datacubeThis revision is funded primarily through BELSPO (the Belgian Science Policy Office) in the framework
of the STEREO III Programme – Project LUMOS - SR/01/321.Logo’s were created for free athttps://logomakr.com.SOFTWARE LICENSEThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the License, or any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.You should have received a copy of the GNU General Public License (COPYING.txt). If not see www.gnu.org/licenses.
Package: mesmer
mesmerPackage to calculate the log probability of foregrounds.DescriptionGiven a dataset $\mathbf{d}$, this package calculates, and samples from, the maximum
likelihood set of foreground parameters, $P(\mathbf{\theta}}\mathbf{d})$.This approach has been used in these papers:Simulated forecasts for primordial B-mode searches in ground-based experimentsThe Simons Observatory: Science goals and forecastsRemoval of Galactic foregrounds for the Simons Observatory primordial gravitational wave searchUseageAn example note bookis in thenotebooksfolder.To add SEDs, editthe SED functions file. The likelihood is defined inthe likelihood file.LicenseThis project is Copyright (c) Ben Thorne and licensed under
the terms of the BSD 3-Clause license. This package is based upon
theAstropy package templatewhich is licensed under the BSD 3-clause license. See the licenses folder for
more information.