semvec/pypi-packages huggingface dataset:
map2model-loop3d 1.0.0
Perform topological analysis on 2D map data.
Requires Python: >=3.6

Author: Vitaliy Ogarko, vogarko@gmail.com

## To build map2model:

- If you want to install standalone map2model with Cmake, comment out the pybind11 include in map2model.cpp and parameters_reader.cpp and parameters_reader.h, and code after the main function in map2model.cpp.

mkdir build  
cd build  
cmake ..  
make

## To run:

./map2model ../Parfile

## Visualization of output

To visalize output images (.svg file) use e.g. a util 'display' (Linux), or Firefox.  
To visalize output graphs (.gml files) use e.g. yEd Graph Editor (cross-platform).  
In eEd program, to see a graph, choose e.g. Layout --> Organic.

## Input data format convertion

To convert shape files data to WKT data in UTM coordinates, use ogr2ogr util. Run script shp2csv.sh  
To convert a single point in lat/long coordinates to UTM use gdaltransform util as:  
gdaltransform -s_srs EPSG:4326 -t_srs EPSG:32750  
and then type the point coordinates separated by a space, and press Enter.

## Outputs description

An output image 'polygons_read.svg' shows all input polygons that were read, with marked clipping window.  
An output image 'polygons_clipped.svg' shows the result of clipping of the input polygons with the clipping window.  
An output graph 'graph_all.gml' shows topology for units, i.e., nodes correspond to units, and edges to unit contacts.  
An output graph 'graph_no_sills.gml' shows same info as 'graph_all.gml', but contacts with units of type 'sills' are excluded.
leetcode-tester 1.0.7
Local tester for Leetcode.
Requires Python: >=3.6.0

![img][pypi_version]

# leetcode_tester
在leetcode做题时，感觉提交代码时，效率受制于网络。Leetcode的编辑器环境也不是很顺手，常常急躁提交留下失败的提交记录。
遂简单写了个本地测试框架，方便在本地进行测试。

# 安装方法
```
pip install leetcode-tester
```

# 使用方法

## 使用示例

```
from leetcode_tester import Tester


class Solution():
    def sfc(self, *args):
        # TODO: write your code here
        # Example:
        return sum(args)


if __name__ == '__main__':
    solution = Solution()
    test = Tester(solution.sfc)
    # TODO: add test case here
    # Example:
    test.addTest(1, 2, 3)
    test.addTest(2, 4, 6)
    test.doTest()

```

Solution类可以选择从Leetcode的编辑器中复制而来。当然，有些额外的特殊类型，还是需要自己补充。  
Tester的addTest方法用于添加用例，最后一个入参会被作为期待结果，之前的参数会被作为入参传入Solution方法。

## 输出示例

```
Input: [1, 2, 3]
Expect: [3]
Result: [3]
Status: [RIGHT]
Exception: [None]
Cost: [7.152557373046875e-06]

Input: [2, 4, 6]
Expect: [6]
Result: [6]
Status: [RIGHT]
Exception: [None]
Cost: [3.0994415283203125e-06]

{'TOTAL': 2, 'RIGHT': 2, 'WRONG': 0, 'EXCEPTION': 0, 'TOTAL_COST': 1.0251998901367188e-05}
```

# TODO

> 持续整理LeetCode中遇到的额外类型，例如：ListNode、TreeNode，并将其固化在这个包里以供用户直接使用。  

[pypi_version]: https://img.shields.io/pypi/v/leetcode-tester.svg?style=flat