Skip to content

Conversation

@tetov
Copy link
Contributor

@tetov tetov commented Dec 5, 2019

This is a new PR with the changes from #348 but cleaned up.

@gonzalocasas latest code review will be copied over to this PR.

What type of change is this?

  • New feature in a backwards-compatible manner.

Checklist

  1. Add the change to the CHANGELOG.md file in the Unreleased section under the most fitting heading: Added, Changed, Removed.
  2. Run all tests on your computer (i.e. invoke test).
  3. Add unit tests (especially important for algorithm implementations).

@tetov
Copy link
Contributor Author

tetov commented Dec 5, 2019

Checks fail because I test using a file that is not yet present in compas/data..

Copy link
Member

@tomvanmele tomvanmele left a comment

Choose a reason for hiding this comment

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

there is a lot going on in this PR.
perhaps we should focus on the base reader first?

Copy link
Member

@gonzalocasas gonzalocasas left a comment

Choose a reason for hiding this comment

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

Added some early feedback, but I assume you're still working on it because it's marked as draft, right?

Started moving tests from test_mesh to unit test files.
@tetov
Copy link
Contributor Author

tetov commented Dec 7, 2019

@gonzalocasas

Added some early feedback, but I assume you're still working on it because it's marked as draft, right?

I'll flag you when another review is needed, I need to move the tests and and resolve your comments above.

There are some open questions above I'd like answered as well :).

Todo list for me:

@tetov
Copy link
Contributor Author

tetov commented Dec 9, 2019 via email

@tetov
Copy link
Contributor Author

tetov commented Dec 9, 2019 via email

@tomvanmele
Copy link
Member

i think this PR is too big. perhaps we should split off the base reader and get that sorted first. also, perhaps this is useful for binary/not binary https://github.com/audreyr/binaryornot

@tetov
Copy link
Contributor Author

tetov commented Dec 12, 2019

I've moved my other changes to another branch on my fork to make the scope of this PR more limited.

I'll work through the remaining pointers for base_reader and update the PR (tonight hopefully).

To add to this PR:

Future PR's:

  • Update file reader modules to use base_reader (one PR per module)

@tomvanmele
Copy link
Member

test fails on number of lines check of ply_ascii

@tetov
Copy link
Contributor Author

tetov commented Dec 13, 2019

test fails on number of lines check of ply_ascii

Working on it :)

@tomvanmele tomvanmele marked this pull request as ready for review December 17, 2019 11:43
@tetov
Copy link
Contributor Author

tetov commented Dec 17, 2019 via email

------
bool
True file signature for file type is found in file or if file type
lacks file signature.
Copy link
Member

Choose a reason for hiding this comment

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

True if correct file signature for file type is found in file, or if file type has no signature.

Copy link
Member

@tomvanmele tomvanmele left a comment

Choose a reason for hiding this comment

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

nearly there

@tomvanmele
Copy link
Member

last changes and then we can merge

@tetov
Copy link
Contributor Author

tetov commented Dec 17, 2019

last changes and then we can merge

I got a warning from autosummary because it couldn't find BaseReader. I guess it's because it's not imported in init.py. I removed the entry.

Also, I tried interactive rebase but since I merged with master earlier I'm worried about squashing other commits as well. Maybe you could use Github's solution with my last commit msg?

@tetov tetov changed the title WIP Base reader, refactor and pathlib support Base reader, refactor and pathlib support Dec 17, 2019
@tomvanmele tomvanmele merged commit a1923fd into compas-dev:master Dec 18, 2019
@tetov tetov deleted the base_reader branch December 18, 2019 13:24
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.

3 participants