Alexandra K. Diem

Personal Website.
Mitzis, I am so happy and grateful that I could ride this adventure with you nutters! I'm still amazed by how well we fit together and always looked out for each other. Always together from the start, always together across the finish line. Most of you I met for the first time on the way to the opening event and we left others with the impression that we'd been riding together for years. I couldn't have hoped for a better team spirit on this journey. I really hope that we get the chance to do something crazy like this again 😘❤️
.
📸 @radrace photobox by @christophmannhardt
.
.
.
#mitziandfriends #radrace #tourdefriends #tourdefriends3 #tdf #storyoftheday #oneobsession #photooftheday #worldbybike #outsideisfree #fromwhereiride #cycling #womencycling #ladieseditioncc #landevei #utno #vegtur Watch out, #mitzitrain coming through! 🚴‍♀️💨🔥
.
.
.
#mitziandfriends #radrace #tourdefriends #tourdefriends3 #tdf #storyoftheday #oneobsession #photooftheday #worldbybike #outsideisfree #fromwhereiride #cycling #womencycling #ladieseditioncc #landevei #utno #vegtur And that's it for the 669 km and 9500 m elevation that made up this year's @radrace #tourdefriends3 from Augsburg to Feltre! I left it all out on the tracks, but I couldn't resist trying to muster up the last remaining power for a bike lift photo at the finish line 😅 #oneobsession I really don't know if I'm rather happy that we all made it as a team and always looked out for each other #mitziandfriends, or whether I'm rather sad that it's all over. How about a #tourdefriends in Norway soon? 😁
.
.
.
#radrace #tdf #storyoftheday #photooftheday #worldbybike #outsideisfree #fromwhereiride #cycling #womencycling #ladieseditioncc #landevei #utno #vegtur #mitzipower ist too cool for you. #uffeuffe
.
📸 photobox by @christophmannhardt
.
.
.
#mitziandfriends #radrace #tourdefriends #tourdefriends3 #tdf #storyoftheday #oneobsession #photooftheday #worldbybike #outsideisfree #fromwhereiride #cycling #womencycling #ladieseditioncc #landevei #utno #vegtur

Using eval() and configparser to convert units

Working with medical data means that I often have to convert between SI units and (outside of the medical community) lesser known units, such as Pa and mmHg for pressure. To simplify unit conversions and non-dimensionalsation for myself, I use a .cfg file that contains both unit conversions and parameters, which can be read by the eval() function.

The [Units] section is parsed first and entries are added to a dictionary iteratively. Each value is parsed using eval() with the dictionary. This means that previously encountered entries are automatically evaluated.

Below is a simple example of a .cfg file containing units and parameters and the corresponding code to parse the file.