Code Monkey home page Code Monkey logo

datareport's People

Contributors

terhorstd avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

datareport's Issues

list of available yaml-loaders in ruamel

the --help output gives the possibility to specify an alternative loader with --yaml-loader, but except for the given default no other possible values are given.

cannot load `datetime` objects

when loading a yaml file using tags like

- !!python/object/apply:datetime.timedelta [0, 7200, 0]

the loader raises an exception:

INFO:root:loading 'data' from '../all.yaml'...
Traceback (most recent call last):
  File ".../bin/reporter", line 10, in <module>
    sys.exit(main())
  File ".../lib/python3.6/site-packages/datareport/reporter.py", line 139, in main
    data[dataid] = dataloader(open(datafilename, 'r'))
  File ".../lib/python3.6/site-packages/ruamel/yaml/main.py", line 266, in load
    return constructor.get_single_data()
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 104, in get_single_data
    return self.construct_document(node)
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 114, in construct_document
    for dummy in generator:
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 605, in construct_yaml_seq
    data.extend(self.construct_sequence(node))
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 196, in construct_sequence
    for child in node.value]
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 196, in <listcomp>
    for child in node.value]
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 159, in construct_object
    data = constructor(self, node)
  File ".../lib/python3.6/site-packages/ruamel/yaml/constructor.py", line 631, in construct_undefined
    node.start_mark)
ruamel.yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:python/object/apply:datetime.timedelta'
  in "../all.yaml", line 2, column 5

update readme

The README file still has some old instructions about the installation of a shell alias. That has to be removed

logging for --list data fields

log messages for list data fields have list syntax

INFO:root:loading '['data']' entry from '../Issues/860/issue'...

should be

INFO:root:loading 'data' entry from '../Issues/860/issue'...

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.