# HG changeset patch # User Frederic Bastien # Date 1212687986 14400 # Node ID ed70580f2324a506c2eff6d7d67c08c3245506dd # Parent fa8abc813bd21c759817c3ed56e0b2d79de74449 bugfix in FieldSubsetDataSet diff -r fa8abc813bd2 -r ed70580f2324 dataset.py --- a/dataset.py Thu Jun 05 11:47:44 2008 -0400 +++ b/dataset.py Thu Jun 05 13:46:26 2008 -0400 @@ -621,7 +621,8 @@ original_dataset=dataset if not fieldnames: fieldnames=dataset.fieldNames() - elif not fieldnames==dataset.fieldNames(): + elif not list(fieldnames)==list(dataset.fieldNames()): + #we must cast to list, othersize('x','y')!=['x','y'] dataset = FieldsSubsetDataSet(dataset,fieldnames) assert dataset.hasFields(*fieldnames) self.dataset=dataset