Skip to content

Commit

Permalink
Merge pull request #384 from knaaptime/sedafix
Browse files Browse the repository at this point in the history
update seda url
  • Loading branch information
knaaptime authored Dec 8, 2023
2 parents 056738a + fe396aa commit d76a9c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit d76a9c4

Please sign in to comment.