-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pdal opals notebook #67
Conversation
…l_opals_notebook
…l_opals_notebook
…s and added test_pdal_maintain_metadata
…l_opals_notebook
Codecov Report
@@ Coverage Diff @@
## main #67 +/- ##
==========================================
+ Coverage 85.59% 85.71% +0.11%
==========================================
Files 13 13
Lines 1090 1120 +30
==========================================
+ Hits 933 960 +27
- Misses 157 160 +3
Continue to review full report at Codecov.
|
You somehow removed the LFS pointers and added the data files as non-LFS content. That would need to be reverted... |
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.
I made some comments, mostly minor. However, there is one major showstopper for tomorrow's meeting: I looked at the visualization output and I am not sure we are seeing the expected result (results too similar compared to Bernhard's presentation). I need more time to investigate that, so I would postpone the merge.
@@ -144,3 +144,4 @@ dmypy.json | |||
|
|||
# Cython debug symbols | |||
cython_debug/ | |||
adaptivefiltering/data/uls_thingstaette.las |
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.
Should be removed, this is only your local setup of where to place the file.
"source": [ | ||
"# Opals Example Notebook\n", | ||
"This notebook is a short example of the Opals utilities provided by `adaptivefiltering`.\n", | ||
"If you have not worked with `adaptivefiltering` before please have a look at the `demo.ipynb`.\n", |
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.
demo.ipynb
does not exist anymore
"outputs": [], | ||
"source": [ | ||
"dataset = adaptivefiltering.DataSet(filename=\"data/uls_thingstaette.las\")\n", | ||
"adaptivefiltering.opals.set_opals_directory(\"/home/gwydion/SSC/Opals/opals_2.4.0\")" |
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.
Please remove this line.
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"dataset = adaptivefiltering.DataSet(filename=\"data/uls_thingstaette.las\")\n", |
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.
This should not have the data/
prefix as we will not ship it in the data directory of adaptivefiltering
.
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"opals_dataset_3.show_hillshade(resolution=0.5, classification=asprs[\"ground\"])" |
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.
Why exactly does the resolution differ on example 3?
"source": [ | ||
"# Pdal Example Notebook\n", | ||
"This notebook is a short example of the Pdal utilities provided by `adaptivefiltering`.\n", | ||
"If you have not worked with `adaptivefiltering` before please have a look at the `demo.ipynb`.\n", |
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.
Same here.
"outputs": [], | ||
"source": [ | ||
"pipeline_1 = adaptivefiltering.load_filter(\"Example_filter/Example_pdal_1.json\")\n", | ||
"pipeline_2 = adaptivefiltering.load_filter(\"Example_filter/Example_pdal_1.json\")\n", |
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.
This loads the same filter 3 times!
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"dataset_3.show_hillshade(resolution=0.5, classification=asprs[\"ground\"])" |
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.
Same question here.
@@ -1,4 +1,6 @@ | |||
[pytest] | |||
testpaths = tests jupyter | |||
testpaths = tests jupyter |
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.
unnecessary whitespace change
filterwarnings = | ||
ignore::DeprecationWarning | ||
addopts = --ignore jupyter/opals_example.ipynb |
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.
Weird whitespace.
Fixed opals to pdal conversion by introducing a class variable
spatial_ref
. When creating a pdal filter this is automatically set, only when creating a opals filter an extra step is taken and the spatial reference data is extracted with a pdal reader.