Changeset 522 for trunk


Ignore:
Timestamp:
03/01/05 09:10:55 (20 years ago)
Author:
vor010
Message:

Line finder - edge parameter workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplinefind.py

    r516 r522  
    7979        if not scan:
    8080           raise RuntimeError, 'Please give a correct scan'
     81 
     82        if isinstance(edge,int):
     83           edge=(edge,)
     84
    8185        from asap import _is_sequence_or_number as _is_valid
    8286
    8387        if not _is_valid(edge, int):
    84            raise RuntimeError, "Parameter 'edge' as to be an integer or \
    85            a pair of integers"
     88           raise RuntimeError, "Parameter 'edge' has to be an integer or \
     89           a pair of integers specified as a tuple"
    8690
    8791        if len(edge)>2:
Note: See TracChangeset for help on using the changeset viewer.