"ufl.log.UFLException: Invalid cell 1.0"

You need to supply a minimal working example, as there is no way to reproduce your error. See Read before posting: How do I get my question answered? on guidelines for a minimal working example.