Git Product home page Git Product logo

ru102py's Issues

PyCharm terminal and .python-version

When using PyCharm as IDE .python-version file prevents me from opening terminal inside IDE with virtual environment activated.
So, I had to delete it.

Remove checks for Python 3.8, document that 3.8 or higher is needed and test on >3.8

The Makefile currently requires Python 3.8. Remove this hard requirement (probably also the .python-version file) and make sure that the environment builds and tests on Python >=3.8 (e.g. try with 3.9/10/11). Will require update to the README file to say what the minimum version of Python required is.

Removing tests for Python version in favour of documenting the minimum required Python version seems to be a better way to go now.

Update to use Redis Stack container.

Change the container used in the Docker compose file to be the Redis Stack one, when this has support for ARM... required for Apple M1 processors.

Incorrect max capacity update in SiteStatsDaoRedis._update_basic()

The current code (lines 52-54) sets the new maximum capacity to reading.wh_generated:

max_capacity = self.redis.hget(key, SiteStats.MAX_CAPACITY)
if not max_capacity or reading.current_capacity > float(max_capacity):
    self.redis.hset(key, SiteStats.MAX_CAPACITY, reading.wh_generated)

Instead, line 54 should set it to reading.current_capacity:

    self.redis.hset(key, SiteStats.MAX_CAPACITY, reading.current_capacity)

Add the option to use Redis via Docker Compose for this course.

Add a docker-compose.yml file that uses the RedisTimeSeries Docker container (https://hub.docker.com/r/redislabs/redistimeseries), and configure Redis in that container to persist data to a local folder named "redisdata". Here's an example file from another project that works like this (this one uses the redismod container but it's the same idea): https://github.com/redislabs-training/node-js-crash-course/blob/main/docker-compose.yml

This is part of our participation in Hacktoberfest 2021. Learn how to complete this issue here: https://developer.redis.com/hacktoberfest/

Need help or want to talk to us? Join us on Discord where we have a dedicated Hacktoberfest channel: https://discord.gg/ueQwKUh5Z3

Add a screenshot of the running application to the README

Update README.md to add a screenshot of the running application, showing the map view with the solar site markers on it. For this you will need to follow the instructions in the README to get the application running. The code to generate the markers is stubbed out on the master branch in this repo as it's an exercise for the training course that this repo is part of. To get the markers to draw so that you can take your screenshot, temporarily paste in the code from the solutions branch here:

def find_all(self, **kwargs) -> Set[Site]:

This is part of our participation in Hacktoberfest 2021. Learn how to complete this issue here: https://developer.redis.com/hacktoberfest/

Need help or want to talk to us? Join us on Discord where we have a dedicated Hacktoberfest channel: https://discord.gg/ueQwKUh5Z3

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.