Giter Club home page Giter Club logo

oedtools's Introduction

pcap-31-03-pcap-certified-associate-in-python-programming sc102-source-control-management-with-git

oedtools's People

Contributors

sr-murthy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oedtools's Issues

Conditionally required fields/columns

  • Currently, validation only applies to required (mandatory) columns - the exception MissingRequiredColumnError is raised whenever a column marked R in the respective schema is missing from a specific input file for that schema - but not conditionally required (CR) columns. CR columns such as deductibles and limits in, say, a loc. file, are required if there are policy financial terms applying to the locations relating to those columns, and there are some CR columns such as deductible and limit type and code columns which depend on the existence of deductible and limit columns.

  • Currently, querying the schemas (via oed columns info) does not allow querying for CR or O columns. Fixed by #11 and release 0.3.0.

Simplify validate CLI subcommand

The validate CLI command currently consists of separate sub-commands for validating headers (oed validate headers) and files (oed validate file). This could be simplified by removing the file subcommand entirely, and using file validation as the default option for validate (requiring just a -f option to specify the file path, with an addition --headers option required for header validation in the file.

Some valid Currency and Country codes rejected

Some custom codes for Currency and Country defined in the OED specification are rejected by the tool.

Currency: NIS (New Israeli Shekel) is rejected. Tested several historic codes which were all accepted correctly.
Country: All tested offshore codes (e.g. A1) are rejected. The other OED defined codes (XB, XE, XS, XW) are OK.

Using v0.3.2.

Use built-in `numbers` module to check for numeric type testing in `utils` module

There is some numeric type testing in the existing utils module, e.g. is_real_number

https://github.com/sr-murthy/oedtools/blob/master/oedtools/utils.py#L189

and also get_value

https://github.com/sr-murthy/oedtools/blob/master/oedtools/utils.py#L236

which should be replaced by the use of the built-in Python numbers hierarchy provided by the numbers module

https://docs.python.org/3/library/numbers.html#numbers.Number

For example, is_real_number(<val>) could be replaced by

isinstance(<val>, numbers.Real)

and complex number checking which at the moment uses isinstance(<val>, complex) is better implemented using

isinstance(<val>, numbers.Complex)

Replace/rename "values profile" with "data model"

  • Replace references to "values profile" in documentation with "data model" (for schemas and code, the replacements are: values.csv ~> data_model.csv, values_profile.json ~> data_model.json, values_profile ~> data_model.

Add docs

  • Add Sphinx docs + deploy docs

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.