Giter VIP home page Giter VIP logo

ems-display's People

Contributors

ethan-mccarthy avatar

Watchers

 avatar

ems-display's Issues

Retrieval of Maintenance Data on 1st of the Month Causes Error

On the DW shift of the first day of the month maintenanceData.py attempts to get the maintenance for the shift the night before (EM on the last day of the previous month) -- this causes an error relating to the index being out of range.

I think this is because the calculation to get the maintenance duty for the prior shift involves something along the lines of: (current shift - 1). This index normally functions fine, but on the first shift of the month, the subtraction results in the program attempting to get a dataframe entry that is at position "-1" which doesn't exist.

Maintenance duty displayed incorrectly from 0000 to 0700 hours

There's a logic issue where after midnight the program will get the maintenance data for the current date. Since the program is aware that it is still an EM (current time < 0700) the program will print the "EM" maintenance from the maintenance dataframe. However, since the current date has changed, the "EM" maintenance entry is actually the maintenance duty for the next EM crew.

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.