Skip to content

Commit

Permalink
fix: fetch another test file
Browse files Browse the repository at this point in the history
  • Loading branch information
BobBorges committed Apr 19, 2024
1 parent d3584fb commit e31b84d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ jobs:

- name: Calculate and Plot MP coverage
run: |
curl -LO https://raw.githubusercontent.com/swerik-project/riksdagen-persons/main/test/data/baseline-n-mps-year.csv
mkdir test-data
curl -LO https://raw.githubusercontent.com/swerik-project/riksdagen-persons/main/test/data/baseline-n-mps-year.csv
mv baseline-n-mps-year.csv test-data/
curl -LO https://raw.githubusercontent.com/swerik-project/riksdagen-persons/main/test/data/session-dates.csv
mv session-dates.csv test-data/
echo '==='
ls -la
echo '---'
Expand Down
2 changes: 1 addition & 1 deletion readme/src/calculate-mp-coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main(args):
baseline_df = pd.read_csv(f"{metadata_location}/test-data/baseline-n-mps-year.csv")
baseline_df['year'] = baseline_df['year'].apply(lambda x: str(x)[:4])

dates = pd.read_csv("riksdagen-persons/test/data/session-dates.csv", sep=";")
dates = pd.read_csv(f"{metadata_location}/test-data/session-dates.csv", sep=";")
dates = dates[~dates['protocol'].isin(skip)]
dates = dates[~dates['date'].isin(["2021", "1977"])]

Expand Down

0 comments on commit e31b84d

Please sign in to comment.