Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update seda url #384

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geosnap/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def seda(
], "`standardize` argument must be either 'cs' for cohort-standardized or 'gcs' for grade-cohort-standardized"
fn = f"seda_{level}_{pooling}_{standardize}_4.1"
local_path = pathlib.Path(self.data_dir, "seda", f"{fn}.parquet")
remote_path = f"https://stacks.stanford.edu/file/druid:db586ns4974/{fn}.csv"
remote_path = f"https://stacks.stanford.edu/file/druid:xv742vh9296/{fn}.csv"
msg = (
"Streaming data from SEDA archive at <https://exhibits.stanford.edu/data/catalog/db586ns4974>.\n"
"Use `geosnap.io.store_seda()` to store the data locally for better performance"
Expand Down
6 changes: 3 additions & 3 deletions geosnap/io/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def store_seda(data_dir="auto", accept_eula=False):

You agree to acknowledge the Stanford Education Data Archive as the source of these data. In publications, please cite the data as:

Reardon, S. F., Ho, A. D., Shear, B. R., Fahle, E. M., Kalogrides, D., Jang, H., & Chavez, B. (2021). Stanford Education Data Archive (Version 4.1). Retrieved from http://purl.stanford.edu/db586ns4974.
Reardon, S. F., Ho, A. D., Shear, B. R., Fahle, E. M., Kalogrides, D., Jang, H., & Chavez, B. (2021). Stanford Education Data Archive (Version 4.1). Retrieved from http://purl.stanford.edu/xv742vh9296.

Subject to your compliance with the terms and conditions set forth in this Agreement, Stanford grants you a revocable, non-exclusive, non-transferable right to access and make use of the Data Sets.

Expand All @@ -74,7 +74,7 @@ def store_seda(data_dir="auto", accept_eula=False):
fn = f"seda_school_pool_{std}_4.1"
print(f"Downloading {fn}")
t = pd.read_csv(
f"https://stacks.stanford.edu/file/druid:db586ns4974/{fn}.csv",
f"https://stacks.stanford.edu/file/druid:xv742vh9296/{fn}.csv",
converters={"sedasch": str, "fips": str},
)
t.sedasch = t.sedasch.str.rjust(12, "0")
Expand All @@ -89,7 +89,7 @@ def store_seda(data_dir="auto", accept_eula=False):
fn = f"seda_geodist_{pooling}_{std}_4.1"
print(f"Downloading {fn}")
t = pd.read_csv(
f"https://stacks.stanford.edu/file/druid:db586ns4974/{fn}.csv",
f"https://stacks.stanford.edu/file/druid:xv742vh9296/{fn}.csv",
converters={"sedalea": str, "fips": str},
)
t.sedalea = t.sedalea.str.rjust(7, "0")
Expand Down