Coder Social home page Coder Social logo

hydro-cc's Introduction

1 Short explanation of the project.

  1. Sample test files are in the folder:
  /test-data/
  1. TimeSeriesEqualizer class accepts list of instances of Datapoint class.
  2. Datapoint class has two attributes: timestamp and value.
  3. List of instances of Datapoint class is generated from the input file within FileHandler class.
  4. TimeSeriesEqualizer class has acceptance test set up in the file:
   Acceptance_Test_TimeSeriesEqualizer.py    
  1. Acceptance test is based on provided 4 sample files and rejections on duplicate data remark.

2. General reamarks

  1. I have used Python 3.11
  2. No external libraries were used, only standard Python libraries.
  3. I assume that I don't understand all the details and context of the problem. My solution is based on the provided sample files and my understanding of the problem I manged to deduce from pdf and json files.

3. How to run the program from terminal

execute main.py with input file path as first argument and output file path as second argument

Example:
python3 main.py test-data/input-3 out3.json

4. How to run test suite from terminal

execute Acceptance_Test_TimeSeriesEqualizer.py

python3 Acceptance_Test_TimeSeriesEqualizer.py

hydro-cc's People

Contributors

ak-19 avatar

Watchers

 avatar

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.