Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Mar 10, 2019
1 parent fac8fc3 commit ac03712
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test:
- pytest
artifacts:
reports:
junit: report.xml
junit: project_novis/report.xml
only:
- branches
except:
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ingress:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
prometheus.io/probe: "true"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
host: "project-novis.local"
tls: true

Expand Down
9 changes: 0 additions & 9 deletions contrib/gen_callsign_prefix_to_country_map.py

This file was deleted.

6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Project-novis Documentation
=========================================
project-novis Documentation
===========================

We want to establish an open platform for ham radio related web services
everyone can participate.

.. warning:: Documentation is in an very early stage.
.. warning:: Documentation is in a very early stage.

Features
--------
Expand Down
14 changes: 11 additions & 3 deletions project_novis/callsign/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def extract_callsign(value: str) -> str:

def generate_aprs_passcode(callsign: str) -> int:
"""
Generate APRS passcode from callsign based on https://github.com/magicbug/PHP-APRS-Passcode/blob/master/aprs_func.php
Generate APRS passcode from callsign based on
https://github.com/magicbug/PHP-APRS-Passcode/blob/master/aprs_func.php
"""

hash_value = 0x73e2
Expand Down Expand Up @@ -209,7 +210,14 @@ def address_to_point(address: str, provider: str = "arcgis", session=None, use_c
return Point(g.lng, g.lat)


def address_to_grid_based_point(address: str, provider: str = "arcgis", session=None, use_cache: bool = True, high_accuracy: bool = True) -> Point:
def address_to_grid_based_point(address: str,
provider: str = "arcgis",
session=None,
use_cache: bool = True,
high_accuracy: bool = True) -> Point:
""" Return location of address but limit accuracy to center of grid square"""
grid = point_to_grid(address_to_point(address=address, provider=provider, session=session, use_cache=use_cache), high_accuracy=high_accuracy)
grid = point_to_grid(address_to_point(address=address,
provider=provider,
session=session,
use_cache=use_cache), high_accuracy=high_accuracy)
return grid_to_point(grid)

0 comments on commit ac03712

Please sign in to comment.