Skip to content

Commit

Permalink
FEAT: Add FIndex demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 18, 2025
1 parent 91d747a commit 264ee5e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions faslr/demos/index/findex_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import os
import subprocess

from faslr.constants import (
ROOT_PATH,
SAMPLE_DB_DEFAULT_PATH
)


from faslr.index import FIndex

if os.path.exists(SAMPLE_DB_DEFAULT_PATH):
pass
else:
subprocess.run(['python', ROOT_PATH + '/samples/db/generate_sample_db.py'])

test_index = FIndex(from_id=1, db=SAMPLE_DB_DEFAULT_PATH)

print(test_index.df)

0 comments on commit 264ee5e

Please sign in to comment.