diff options
author | Zachary Sloan | 2013-08-07 18:39:09 -0500 |
---|---|---|
committer | Zachary Sloan | 2013-08-07 18:39:09 -0500 |
commit | 8993b25262b7fc565c1be3548660a66afd4c3530 (patch) | |
tree | f04ee0f8c61ade5702f8561fc9fbf0e0594d47c9 /wqflask/base/trait.py | |
parent | cf42e71c07efc772c15956b75db374f0f2849cac (diff) | |
download | genenetwork2-8993b25262b7fc565c1be3548660a66afd4c3530.tar.gz |
Fixed things with the dataset dropdowns and mRNA datasets
Improved the templates for a couple pages related to changing user
password, etc
Diffstat (limited to 'wqflask/base/trait.py')
-rwxr-xr-x | wqflask/base/trait.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py index a1e6b0d3..c893c887 100755 --- a/wqflask/base/trait.py +++ b/wqflask/base/trait.py @@ -322,7 +322,7 @@ class GeneralTrait(object): #print(" mike: {} -> {} - {}".format(field, type(trait_info[i]), trait_info[i])) holder = trait_info[i] if isinstance(trait_info[i], basestring): - holder = unicode(trait_info[i], "utf8") + holder = unicode(trait_info[i], "utf8", "ignore") setattr(self, field, holder) if self.dataset.type == 'Publish': @@ -603,4 +603,4 @@ class GeneralTrait(object): else: ZValue = 0.5*log((1.0+self.correlation)/(1.0-self.correlation)) ZValue = ZValue*sqrt(self.overlap-3) - self.p_value = 2.0*(1.0 - reaper.normp(abs(ZValue))) + self.p_value = 2.0*(1.0 - reaper.normp(abs(ZValue)))
\ No newline at end of file |