Code Monkey home page Code Monkey logo

azely's Issues

Update docs

Update (or fix) the following docs.

  • Add description of default values in the azel module and the compute() function
  • Add example images of codes in README

Use case-insensitive query

Make sure that 'query', 'QUERY', and 'QuErY' are considered to be same.
Note that other parameters are still case-sensitive at this moment:
For example, frame='ICRS' is not allowed.

Update Flake8 config

  • Use minimum Flake8 config (.flake8)
  • Update codes to be compatible with the new config

Add feature of multiple objects

Add a utility function to parse queries of objects to an iterable. For example, the proposed function lists names of Messier objects in user.toml and all names in solar.toml:

for obj in func(['user:^M[0-9]+$', 'solar:*']):
    print(obj)
user:M1
user:M2
...
solar:Sun
solar:Moon
...

Then update the compute() function like:

for df in azely.compute(['user:^M[0-9]+$', 'solar:*'], 'Tokyo', ...):
    df.el.plot(ylim=(0, 90))

Note that the utility function must only be activated when obj is given as a list or a tuple and the return be a generator; otherwise obj is never parsed even if it is regex-like (i.e., with obj='solar:*', it tries to find an object whose names is * in user.toml).

Release v0.6.0

  • Update version numbers written in:
    • pyproject.toml
    • azely/__init__.py
    • docs/conf.py
    • tests/test_metadata.py
  • Remove docs/images/example.png
  • Update image URLs in README
    • use .../v0.6.0/docs/_static/*.svg instead of .../master/docs/_static/*.svg

Use today as a default value of time

  • Use time='today' as a default value of azely.compute() and azely.time.get_time()
  • Update docstrings that describe default time value
  • Update README

Add option for forcibly updating cache

Implement an option for forcibly updating cache
when query string is given with the special keyword (!).

import azely

# not updated (if cached value already exists)
location = azely.get_location("here")

# forcibly updated
location = azely.get_location("!here")

Update force-query feature

Use query='aaa!' instead of query='!aaa' to forcibly update information of an object or a location.

  • Update the cache_to decorator and get_* functions
  • Update related description in docstrings and README

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.