May. 14th, 2007
knitting meme
May. 14th, 2007 01:43 pmMark with bold the things you have knit at least once, with italics the ones you plan to do sometime, and leave the rest.
( kitting meme )
( kitting meme )
So I know I haven't written much about the trip. I will make an effort this week. I am waiting for Roger to post some more pictures on his photo blog, so I can point in that direction at the same time.
One interesting development was in regards to high fructose corn syrup, (which coincidentally
inhumandecency posted about recently as well). Some of you may be aware that I have been suffering from headaches, which for the most part I only noticed if I had had candy or soda beforehand. Since those were pretty much the only places I have significant refined sugar, I sort of just took at as I sign that I should avoid such.
When we were in Hong Kong though, I said to Roger that you think I would learn. It hurts when I have these things. Yet every once in a while it seems like a good idea anyways. When we arrived in Europe he suggested that I try the soda there, since apparently it is sweetened with cane sugar rather than corn syrup. Miracles of miracles, no headaches! I totally overindulged, but it was so novel to be able to have soda without suffering horribly. I am not sure of the reason exactly why my body would respond that way, but at least I know what to avoid now.
One interesting development was in regards to high fructose corn syrup, (which coincidentally
When we were in Hong Kong though, I said to Roger that you think I would learn. It hurts when I have these things. Yet every once in a while it seems like a good idea anyways. When we arrived in Europe he suggested that I try the soda there, since apparently it is sweetened with cane sugar rather than corn syrup. Miracles of miracles, no headaches! I totally overindulged, but it was so novel to be able to have soda without suffering horribly. I am not sure of the reason exactly why my body would respond that way, but at least I know what to avoid now.
Python Help
May. 14th, 2007 04:51 pmI am not sure that anyone here has experience with Python, but I am having some code issues. I am trying to create a loop that will create several iterations of the process combining different variables. The relevant part looks like this:
bulkcell = []
for a in (4.55, 5.2, 0.10):
for c in (2.8, 3.05, 0.05):
bulk append (a, 0, 0),
(0, a, 0)
(0, 0, c)])
bulkcell = ([(a, 0, 0)
(0, a, 0)
(0, 0, c)])
bulk.SetUnitCell(bulkcell)
The problem is that when I look at the file that it creates it tells me that the cell dimensions are 0.1X0.1X0.05, meaning that it is taking what I was thinking of as the step as the input instead of the range of numbers that I thought that it would. Also it only does this once; there are no other permutations.
I have been trying to look up similar looping code examples and instruction, but for the most part I am find examples that are integer only for indexing purposes. Can anyone help?
bulkcell = []
for a in (4.55, 5.2, 0.10):
for c in (2.8, 3.05, 0.05):
bulk append (a, 0, 0),
(0, a, 0)
(0, 0, c)])
bulkcell = ([(a, 0, 0)
(0, a, 0)
(0, 0, c)])
bulk.SetUnitCell(bulkcell)
The problem is that when I look at the file that it creates it tells me that the cell dimensions are 0.1X0.1X0.05, meaning that it is taking what I was thinking of as the step as the input instead of the range of numbers that I thought that it would. Also it only does this once; there are no other permutations.
I have been trying to look up similar looping code examples and instruction, but for the most part I am find examples that are integer only for indexing purposes. Can anyone help?