volcan01010 / bng Goto Github PK
View Code? Open in Web Editor NEWPython functions to convert osgb36 (EPSG:27700) coordinates to/from 4, 6, 8, or 10 figure grid references
License: GNU General Public License v3.0
Python functions to convert osgb36 (EPSG:27700) coordinates to/from 4, 6, 8, or 10 figure grid references
License: GNU General Public License v3.0
As a BNG.py user, I want the typos in the README to be fixed so that I don't get confused about function names.
There are multiple places were "osgb" is misspelled as "osbg36". These should be fixed.
osbg36
strings are replaced with osgb36
As a BNG user, I want type hints on the function signatures so that my IDE can tell me what types to expect.
Adding type hints (https://realpython.com/lessons/type-hinting/) helps IDEs with autocompletion and gives users information about what inputs they are required to provide.
to_osgb36
has type hints on the function signaturefrom_osgb36
has type hints on the function signaturenumpy
is removed from requirements.txt. It is no longer needed.As a BNG.py developer, I want to use doctests to ensure that the documentation is correct.
Doctests run Python code given as examples in docstrings and confirms that the results are as expected.
https://docs.python.org/3/library/doctest.html
BNG has such code in the docstrings, but the tests have never been tried.
if '__name__' == '__main__'
section to allow easy running of doctestsAs a BNG user, I want the version numbers to be consistent so that I know which version I am using.
The version in setup.py
(1.0.5) is different to the version in bng.py
(1.0.3) is different to the released version (1.0.4).
The version number in bng.py
should be set to 1.0.5 and a release made of v1.0.5.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.