mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-07 15:43:08 +00:00
Make git save an option for when code is downloaded instead of cloned
This commit is contained in:
parent
b4f3d35f91
commit
ebe1a4c87b
@ -79,6 +79,9 @@ steps4StopCondition = 7
|
|||||||
# If True, print diagnostics when the block is not available
|
# If True, print diagnostics when the block is not available
|
||||||
diagnostics = False
|
diagnostics = False
|
||||||
|
|
||||||
|
# True to save git diff and git commit
|
||||||
|
saveGit = False
|
||||||
|
|
||||||
def nextShape():
|
def nextShape():
|
||||||
for run, fr, class1ratio, chi, vpn1, vpn2, blockSize, nn, netDegree, bwUplinkProd, bwUplink1, bwUplink2 in itertools.product(
|
for run, fr, class1ratio, chi, vpn1, vpn2, blockSize, nn, netDegree, bwUplinkProd, bwUplink1, bwUplink2 in itertools.product(
|
||||||
runs, failureRates, class1ratios, chis, validatorsPerNode1, validatorsPerNode2, blockSizes, numberNodes, netDegrees, bwUplinksProd, bwUplinks1, bwUplinks2):
|
runs, failureRates, class1ratios, chis, validatorsPerNode1, validatorsPerNode2, blockSizes, numberNodes, netDegrees, bwUplinksProd, bwUplinks1, bwUplinks2):
|
||||||
|
|||||||
1
study.py
1
study.py
@ -70,6 +70,7 @@ def study():
|
|||||||
dir = "results/"+execID
|
dir = "results/"+execID
|
||||||
if not os.path.exists(dir):
|
if not os.path.exists(dir):
|
||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
|
if config.saveGit:
|
||||||
with open(dir+"/git.diff", 'w') as f:
|
with open(dir+"/git.diff", 'w') as f:
|
||||||
subprocess.run(["git", "diff"], stdout=f)
|
subprocess.run(["git", "diff"], stdout=f)
|
||||||
with open(dir+"/git.describe", 'w') as f:
|
with open(dir+"/git.describe", 'w') as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user