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

add pysal integration/import test #44

Merged
merged 3 commits into from
Jan 5, 2020
Merged

add pysal integration/import test #44

merged 3 commits into from
Jan 5, 2020

Conversation

knaaptime
Copy link
Member

during pysal metapackage integration, we only need to test that the packages import, so this adds a simple test that does so.

this means we can skip the actual (long running) tests during pysal integration, as they are already run on the subpackages

@knaaptime knaaptime requested a review from sjsrey January 5, 2020 18:41
sac1 = geopandas.read_file(sac1.get_path("sacramentot2.shp"))
sac2 = geopandas.read_file(sac2.get_path("SacramentoMSA2.shp"))

return sac1, sac2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this return the raster so tests have it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the functions just use the path, so all it needs to do is check whether a raster is available at that location and it will be available when necessary

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is local_raster defined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 12

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind - i see it :->

sac1 = geopandas.read_file(sac1.get_path("sacramentot2.shp"))
sac2 = geopandas.read_file(sac2.get_path("SacramentoMSA2.shp"))

return sac1, sac2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind - i see it :->

tobler/tests/test_interpolators.py Outdated Show resolved Hide resolved
us os.path.join insted of hardcoded slash
@sjsrey sjsrey merged commit 4084676 into pysal:master Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants