Skip to content

Delete circular references in close. Avoid call to build_point_refs - #48

Merged
hobu merged 5 commits into
laspy:masterfrom
silyko:master
Mar 29, 2017
Merged

hobu merged 5 commits into
laspy:masterfrom
silyko:master

Conversation

@silyko

@silyko silyko commented Apr 19, 2016

Copy link
Copy Markdown
Contributor

Will try to be a little more memory friendly by deleting objects in base.FileManager which holds references to self, before the FileManager is set to None in file.File.close.
Also try to avoid building the long list of point_refs in FileManager. This seems to be only used in a few methods, which should perhaps be updated or deprecated?

@silyko

silyko commented May 13, 2016

Copy link
Copy Markdown
Contributor Author

Have also implemented a r- open mode, which won't construct the point map. This means that only the header is available - also for compressed files. This can be useful, e.g. to open compressed files in some automated processing system, read number of points and extent, and only then decide if one wants to call File.reopen(mode=r). Or whether some subtiling with laszip is needed first.

This at least makes sense for me, in some use cases that I have.

@grantbrown

Copy link
Copy Markdown
Collaborator

Thanks, I'll add this to the list of things to review. Sorry I've been so slow to merge these changes, I've been pretty swamped dealing with end of semester duties.

@kbevers

kbevers commented Dec 23, 2016

Copy link
Copy Markdown
Contributor

I had a look at this. Seems fine to me and I also have use cases where the "r-" flag makes sense.

@silyko I'll merge this if you fix the conflict in laspytest/test_laspy.py/ and a section to the docs about the "r-" flag.

@silyko

silyko commented Jan 1, 2017

Copy link
Copy Markdown
Contributor Author

Great! Will fix the conflict - at some point in the coming weeks :)

@hobu hobu closed this Mar 28, 2017
@hobu hobu reopened this Mar 28, 2017
@hobu

hobu commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

Can you get this deconflicted and the Travis tests passing this week? We are going to have a 1.5.0 release on Friday 31 Mar.

@hobu hobu added this to the 1.5 milestone Mar 28, 2017
@silyko

silyko commented Mar 28, 2017

Copy link
Copy Markdown
Contributor Author

Been pretty busy lately, sorry for the delay. But if it still seems relevant I should be able to fix this probably by tomorrow. Shouldn't take so long.

@hobu

hobu commented Mar 28, 2017

Copy link
Copy Markdown
Contributor

Shouldn't take so long.

Excellent. Appreciate the PR, sorry it's taken so long to get it incorporated.

@silyko

silyko commented Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

So - seems to be OK.

@hobu
hobu merged commit d2452d1 into laspy:master Mar 29, 2017
@hobu hobu modified the milestones: 1.5, 1.7.0 May 9, 2019
@kbevers kbevers removed this from the 1.7.0 milestone Mar 13, 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.

4 participants