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

Planetary/PDS tools moving foward #45

Open
percurnicus opened this issue Jun 7, 2017 · 4 comments
Open

Planetary/PDS tools moving foward #45

percurnicus opened this issue Jun 7, 2017 · 4 comments
Assignees

Comments

@percurnicus
Copy link
Member

percurnicus commented Jun 7, 2017

@spacerockjock

I'm about to get stared on a mer_spect equivalent (exportable ROIS, polygon ROIs, multiple ROIs, etc.) and everything is pointing to the fact that both pdsview and pdsspect (temporary name...have not thought about the name...) should depend on the very similar models and (also repeated use of the histogram tool). Essentially, pdsspect will be a more complicated tool than pdsview and will subclass and reuse a lot of pdsview's classes and tools. I could do this by making a new package for pdsspect and making pdsview a dependency, create pdsspect within pdsview, or start a new package that will house pdsview, pystamps, pdsspect, and any other future tools we create and deprecate pdsview and pystamps. My problem with the first option is it will become clearer as I make pdsspect how pdsview can be refactored even more to make it easier to reuse code. Then I will have simultaneous development on the two projects and that points me to option 2 or 3. My problem with option 2 is then pdsview is not clear on its purpose. The way it is setup/named right now is it is a one tool package and it won't be clear that there are other tools available. Which leads me to option 3 which I think is most preferable. It will be clear on it's purposes, allow for tools to reuse and sublcass each other much more easily, and make it far easier for the tools to interact/launch each other. The main concern is this will cause some reorganization on PlanetaryPy and we will have to take pdsview of of pip. I don't want to make any decisions about these tools moving forward alone and would love input on what people think is best moving forward.

@godber
Copy link
Member

godber commented Jun 9, 2017

It's unclear what option 3 is. Are these the three options?

  1. make a new package for pdsspect and making pdsview a dependency
  2. create pdsspect within pdsview,
  3. start a new package that will house pdsview, pystamps, pdsspect, and any other future tools we create and deprecate pdsview and pystamps.

@godber
Copy link
Member

godber commented Jun 9, 2017

I think there is a 4th option. Create a library package shared by all three UI tools. As you're developing pyspect and identifying reusable code you extract it into this library, and modify pdsview to use the newly extracted code.

@percurnicus
Copy link
Member Author

Yes those are the three options but I like the fourth option!

@spacerockjock
Copy link

spacerockjock commented Jun 9, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants