Skip to content

Commit

Permalink
add compacting (#25)
Browse files Browse the repository at this point in the history
* add compacting

* solve flake8 issues

* fix pagination size and solve state bug

* clean up compaction

* update max line length

* increase 120
  • Loading branch information
geeli123 authored Oct 31, 2024
1 parent 263647b commit c60cc1f
Show file tree
Hide file tree
Showing 20 changed files with 440 additions and 506 deletions.
Empty file added .flake8
Empty file.
12 changes: 0 additions & 12 deletions examples/compact_demo.py

This file was deleted.

8 changes: 4 additions & 4 deletions examples/read_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

from src.normalize.parquet_utils import read_data

begin = dt.datetime(2024, 8, 29)
end = dt.datetime(2024, 8, 30)
begin = dt.datetime(2024, 10, 10)
end = dt.datetime(2024, 10, 17)

uri = "s3://dataclinic-gtfs-rt/gtfs_norm/test/mta-subway-ace/trip-updates"
uri = "s3://dataclinic-gtfs-rt/norm/mdb-1630/trip-updates"
# uri = "s3://dataclinic-gtfs-rt/gtfs_norm/test/mta-subway-ace/vehicles"
# uri = "s3://dataclinic-gtfs-rt/gtfs_norm/test/mta-subway-alerts/"
s3_fs = s3fs.S3FileSystem(key="foo", secret="bar")
s3_fs = s3fs.S3FileSystem()
table = read_data(s3_fs, uri, begin, end)
df = table.to_pandas()
print(df)
Expand Down
76 changes: 0 additions & 76 deletions examples/test.py

This file was deleted.

77 changes: 0 additions & 77 deletions examples/write_bus.py

This file was deleted.

88 changes: 0 additions & 88 deletions examples/write_demo.py

This file was deleted.

2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 120
Loading

0 comments on commit c60cc1f

Please sign in to comment.