Giter VIP home page Giter VIP logo

pystamps's People

Contributors

godber avatar percurnicus avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

planetarypy

pystamps's Issues

I dislike how the pystamps method works

In general I dislike how pystamps method works. I think it should take a list of files, directories or globs as its primary argument. It should loop over the elements of the list, test to see if the element is a directory, if so use it, if its a file, add it to the list of products and then last try and use it as a glob, add any products from that glob to the list of products. I think this argument parser should actually be extracted into a function.

def pystamps(args=None):
    """Run pystamps from python shell or command line with arguments"""
    try:
        if len(args.file) > 1:
            files = args.file
        elif len(args.file) == 1:
            if os.path.isdir(args.file[0]):
                files = glob(os.path.join(str(args.file[0]), '*'))
            elif os.path.isfile(args.file[0]):
                files = glob(str(args.file[0]))
        else:
            files = glob('*')
    except AttributeError:
        if os.path.isdir(args):
            files = glob(os.path.join('%s' % (args), '*'))
        elif args:
            files = glob(args)
        else:
            files = glob('*')

    image_set = ImageSet(files)
    display = MainWindow(image_set.images)
    sys.exit(app.exec_())

Fix scale of window for smaller screens

A scale of .1 is too small. Try finding a scale that looks good for both and make the scale depend on the screen size. See how scaling works on mer_stamps

Simplify button signal

See if you can connect using a lambda function like so:

self.next_channel = QtGui.QPushButton("Next")
self.next_channel.clicked.connect(lambda: self.switch_channel(1))

Make modify quality image toolbar

Make a pop-up window from the toolbar to modify quality image flag. Use double line color over a white border to signify the quality flag and that it is selected

Move image glob to pystamps

ImageSet should only take a list of images/filenames. Perform all the globbing/gathering of files in pystamps. This should allow for both command line arguments and python shell usage.

Use ImageViewCanvas(render='scene')

This might fix the lines that appear on the images when scrolling and eliminate the need to update the images when scrolling. Probably will have to disable scroll bars for each image as well during for loop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.