Changeset 603 for mds-and-trees


Ignore:
Timestamp:
08/28/16 18:34:15 (4 years ago)
Author:
oriona
Message:

Integer command line arguments converted to ints in main call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mds-and-trees/mds_plot.py

    r602 r603  
    150150
    151151def main(filename, dimensions=3, outname="", jitter=0, separator='\t'):
    152         dimensions = int(dimensions)
    153152        distances,labels = read_file(filename, separator)
    154153        embed = compute_mds(distances, dimensions)
     
    170169        args = parser.parse_args()
    171170        set_value = lambda value, default : default if value == None else value
    172         main(args.input, set_value(args.dim, 3), set_value(args.output, ""), set_value(args.j, 0), set_value(args.sep, "\t"))
     171        main(args.input, int(set_value(args.dim, 3)), set_value(args.output, ""), int(set_value(args.j, 0)), set_value(args.sep, "\t"))
Note: See TracChangeset for help on using the changeset viewer.