Skip to content

Commit

Permalink
Fix data loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Nov 25, 2024
1 parent 52614b3 commit 1db5a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysquirrel/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _load(self) -> None:

for data_file in os.listdir(DATA_PATH):
for region_type, cls in region_class.items():
if data_file.startswith(region_type):
if data_file.startswith(region_type) and data_file.endswith("yaml"):
with open(DATA_PATH / data_file, "r", encoding="utf8") as f:
data = yaml.safe_load(f)
for region in data:
Expand Down

0 comments on commit 1db5a56

Please sign in to comment.