Peter Drake, he/him, LFHCfS 🔥 on Nostr: I set up my Python code to make sure that (a) we're in a clean git state and (b) we ...
I set up my Python code to make sure that (a) we're in a clean git state and (b) we haven't already run an experiment with the same ID number.
This has saved my bacon more than once, preventing either wasting days of computation or overwriting hard-won data.
#python #DefensiveProgramming #git
Published at
2023-08-13 00:16:52Event JSON
{
"id": "c135f5cf7a6360ca350df995b1d53a5d15c3047db12b71a70d01ef08725e03ba",
"pubkey": "aa48bbf6a37efdcb75f7a6f4dcd1d95b8998d2a9551802d5eaa1a6a3cda4a6fc",
"created_at": 1691885812,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"t",
"defensiveprogramming"
],
[
"t",
"git"
],
[
"proxy",
"https://qoto.org/users/peterdrake/statuses/110879428612112445",
"activitypub"
]
],
"content": "I set up my Python code to make sure that (a) we're in a clean git state and (b) we haven't already run an experiment with the same ID number.\n\nThis has saved my bacon more than once, preventing either wasting days of computation or overwriting hard-won data.\n\n#python #DefensiveProgramming #git",
"sig": "ea8495cce7ee64c85fed48389fbd6c91fed9ea20c022064da12df7f8801eb37f70bac7e64923c5370d0885463b84a12c44232f00a24c663567f68c68a3632d7c"
}