-
Notifications
You must be signed in to change notification settings - Fork 0
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
task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg pyproject.toml
(first pass)
#222
task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg pyproject.toml
(first pass)
#222
Conversation
@@ -31,7 +34,7 @@ def get(database_session, pointCloudId: int) -> PointCloud: | |||
:param pointCloudId: int | |||
:return: PointCloud | |||
""" | |||
point_cloud = database_session.query(PointCloud).get(pointCloudId) | |||
point_cloud = database_session.get(PointCloud, pointCloudId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
def test_process_shapefile_missing_additional_files(shapefile_fixture): | ||
with pytest.raises(fiona.errors.DriverError): | ||
_, _ = next(VectorService.process_shapefile(shapefile_fixture, additional_files=[])) | ||
with pytest.raises(pyogrio.errors.DataSourceError): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
geoapi/utils/lidar.py
Outdated
las_file = laspy.read(input_file) | ||
min_point = _transform_to_geojson( | ||
proj4=proj4, point=tuple(las_file.header.mins[:3]) | ||
) | ||
max_point = _transform_to_geojson( | ||
proj4=proj4, point=tuple(las_file.header.maxs[:3]) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c936c72
to
b9e8bbb
Compare
e291538
to
e23719b
Compare
e23719b
to
3b2e1e5
Compare
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
celery = "5.2.3" | ||
python = "^3.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Co-authored-by: Nathan Franklin <[email protected]>
@@ -69,14 +69,13 @@ def get_bounding_box_2d(filePaths: List[str]) -> MultiPolygon: | |||
for input_file in filePaths: | |||
proj4 = getProj4(input_file) | |||
|
|||
las_file = laspy.file.File(input_file, mode="r-") | |||
las_file = laspy.read(input_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add lazrs
python package. looks like in the new laspy a backed needs to be installed. i installed lazrs and all works well with that locally. I'm investigating why the unit tests didn't pick that up (maybe the files we use to test this function don't trigger the error: "LaspyException: No LazBackend selected, cannot decompress data" ).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, i see the issue and added a unit test. we were never testing any compressed files (ie. laz). we had some files that had .laz ending but they were uncompressed. i got a PR targeting this branch and adding a unit test. see #224
Co-authored-by: Nathan Franklin <[email protected]>
* python black formatting; flake8 on everything * task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg `pyproject.toml` (first pass) (#222) * upgrade python to 3.11; reorg Dockerfiles; reorg pyproject * update github actions to 3.11; formatting * gh actions dev dependenceis * upgrade packages * move laspy to main group; fix conda env name * fix tests * fix packages * fix initdb * upgrade packages; update import * resolve sqalchemy warnings * sqlalchemy 2.x syntax * laspy upgrades * update test; add rabbitmq healthcheck * use poetry flake8 and black * update workflows * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * add make build-dev instruction to readme * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * update gh action pg * add lazrs --------- Co-authored-by: Nathan Franklin <[email protected]> * Revert "task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg `pyproject.toml` (first pass) (#222)" This reverts commit 404e8d9. --------- Co-authored-by: Nathan Franklin <[email protected]>
…ect.toml` (first pass) (#225) * python black formatting; flake8 on everything * upgrade python to 3.11; reorg Dockerfiles; reorg pyproject * update github actions to 3.11; formatting * gh actions dev dependenceis * upgrade packages * move laspy to main group; fix conda env name * fix tests * fix packages * fix initdb * upgrade packages; update import * resolve sqalchemy warnings * sqlalchemy 2.x syntax * laspy upgrades * update test; add rabbitmq healthcheck * use poetry flake8 and black * update workflows * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * add make build-dev instruction to readme * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * update gh action pg * add lazrs * task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg `pyproject.toml` (first pass) (#222) * upgrade python to 3.11; reorg Dockerfiles; reorg pyproject * update github actions to 3.11; formatting * gh actions dev dependenceis * upgrade packages * move laspy to main group; fix conda env name * fix tests * fix packages * fix initdb * upgrade packages; update import * resolve sqalchemy warnings * sqlalchemy 2.x syntax * laspy upgrades * update test; add rabbitmq healthcheck * use poetry flake8 and black * update workflows * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * add make build-dev instruction to readme * Update devops/docker-compose.local.yml Co-authored-by: Nathan Franklin <[email protected]> * update gh action pg * add lazrs --------- Co-authored-by: Nathan Franklin <[email protected]> * Revert "task/WG-379: upgrade python to 3.11; reorg Dockerfiles; reorg `pyproject.toml` (first pass) (#222)" This reverts commit 404e8d9. * hotfix: add unit test using compressed laz file (#224) * Add compressed laz file Changed some file names as the previous .laz files were uncompressed. * Add lidar_medium_subset_las1pt2_utmzone13N_compressed.laz * Fix formatting --------- Co-authored-by: Sal Tijerina <[email protected]> --------- Co-authored-by: Nathan Franklin <[email protected]>
Overview:
make build-dev
Related Jira tickets: