Git Product home page Git Product logo

python-import-library's Introduction

Project Status

Continuous Build Status

New in Debrief

Supported by

The development of Debrief has been supported by Oxygen XML

Oxygen Logo

The development of Debrief has also been supported by the YourKit Java Profiler

YourKit Logo

python-import-library's People

Contributors

barissari avatar ianmayo avatar tahirs95 avatar

Watchers

 avatar  avatar  avatar

python-import-library's Issues

Demonstrator for supporting Units of Measurement

The existing API includes methods to store elements in a temporary structure prior to being pushed into the database.

We're going to modify this temporary structure, to ensure that data values that require units are represented accordingly. Examples of this are Speed and Direction. Each of these can take values with different types of units. Speed, for example could be expressed in metres/second or miles/hour.

This library allows the specification of values with units: https://pint.readthedocs.io/en/0.9/

Steps:

  1. Refactor RepLine into a separate module
  2. Rename RepLine to State
  3. Introduce setters for all optional entities (see which elements are optional/required in file titled State.sql
  4. Modify setters for Speed and Direction to take a quantity-with-units from Pint library
  5. Modify RepFile to parse quantities-with-units. The speed in the file is in Knots and the heading is in Degrees
  6. Modify getters for Speed and Direction to supply speed and direction in m/second and Radians.
  7. Introduce unit test (in Tests folder) to demonstrate creating quantity-with-units objects, and to test that setSpeed(valueInKnots) gets correctly converted for getSpeed() (in metres/second), and that setDirection(...) and getDirection() do correct conversion.

New project layout

We currently have a combination of source and non-source folders at the top level of our project.

I think we should find a Python project layout standard. Once the structure is agreed, we should refactor the project to match the new layout.

I'd like a proposal for a new project layout to be described in this document: https://docs.google.com/document/d/1fsunCg6MhjTP-EZGNpZmbh8CwKXIMjX72XGLUXJoTiY/edit#

Hopefully the proposal will link to online references/guides, to verify that we're following an established pattern.

I'd like this plan to also include a plan for the use of Python Packages, and where we require __init__.py files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.