- Sample test files are in the folder:
/test-data/
- TimeSeriesEqualizer class accepts list of instances of Datapoint class.
- Datapoint class has two attributes: timestamp and value.
- List of instances of Datapoint class is generated from the input file within FileHandler class.
- TimeSeriesEqualizer class has acceptance test set up in the file:
Acceptance_Test_TimeSeriesEqualizer.py
- Acceptance test is based on provided 4 sample files and rejections on duplicate data remark.
- I have used Python 3.11
- No external libraries were used, only standard Python libraries.
- 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.
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
execute Acceptance_Test_TimeSeriesEqualizer.py
python3 Acceptance_Test_TimeSeriesEqualizer.py