Closed jschaeff closed 2 years ago
Can someone test this new aggregator ?
@kbouk thank you for volunteering :) Let me know how it goes in this issue.
Hello @jschaeff ,,
I installed the new version (pip3 install eida-statistics-aggregator), however when running it I get the following error (using python 3.6.9):
_eida_stats_aggregator --output-directory aggregates fdsnws_request.log.2022-06-11.bz2 Parsing fdsnws_request.log.2022-06-11.bz2 [------------------------------------] 0% Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/fdsnnetextender/fdsnnetextender.py", line 31, in extend dateparam = date(year=int(date_string), month=1, day=1) ValueError: invalid literal for int() with base 10: '2013-02-15'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/eida_stats_aggregator", line 11, in
The function datetime.date.fromisoformat() has been introduced in Python 3.7
Do you think the program should be python3.6 compatible ?
If it's only this error, it would be nice to make it 3.6 compatible. Probably a simple replacement with strptime
could be enough.
It would be enough. It's just soo less fun :)
@kbouk you have to upgrade a dependency of this project : fdsnnetextender == 3.2.0 Can you give it another try ?
Hello @jschaeff,
Yes it works fine now with python 3.6. I am attaching some outputs. 2022-06-12_2022-06-12.json.gz 2022-06-12_2022-06-13.json.gz
Thank you @kbouk I was able to ingest the result on my development environment. There was no temporary network in your example, and I would like to test the aggregator with some usage stats from temporary network. I validated that there is no regression bug though.
@all can someone test the new aggregator whith temporary networks involved ?
I validated also with temporary networks. The fix is ready to hit the production.
The aggregator identifies networks only with 2 letters. This is wrong.
Commit 86a36cf7 fixes this.