Changeset 603 for mds-and-trees
- Timestamp:
- 08/28/16 18:34:15 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mds-and-trees/mds_plot.py
r602 r603 150 150 151 151 def main(filename, dimensions=3, outname="", jitter=0, separator='\t'): 152 dimensions = int(dimensions)153 152 distances,labels = read_file(filename, separator) 154 153 embed = compute_mds(distances, dimensions) … … 170 169 args = parser.parse_args() 171 170 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.