text files on Unix should end with a new line character

This commit is contained in:
Martin Diehl 2021-11-30 11:04:41 +01:00
parent 84353ae545
commit 3a51e1119b
14 changed files with 17 additions and 15 deletions

View File

@ -1,4 +1,4 @@
[Parallel3]
mech isostrain
nconstituents 3
mapping sum # or 'parallel'
mapping sum # or 'parallel'

View File

@ -128,4 +128,4 @@ The Düsseldorf Advanced Material Simulation Kit</dc:description></cc:Work><cc:L
x2="351.76105"
y2="-85.616516"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1.2389388,141.61654)" /></defs></svg>
gradientTransform="translate(1.2389388,141.61654)" /></defs></svg>

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

@ -303,7 +303,9 @@ class Colormap(mpl.colors.ListedColormap):
'RGBPoints':colors
}]
json.dump(out,self._get_file_handle(fname,'json'),indent=4)
fhandle = self._get_file_handle(fname,'json')
json.dump(out,fhandle,indent=4)
fhandle.write('\n')
def save_ASCII(self,fname=None):

View File

@ -1287,4 +1287,4 @@
1.0
]
}
]
]

View File

@ -1 +1 @@
a40baead936c79dd4f86f84ad858b9fa
a40baead936c79dd4f86f84ad858b9fa

View File

@ -1 +1 @@
6fb37bd65934de859dd6b6e0191e7d64
6fb37bd65934de859dd6b6e0191e7d64

View File

@ -1 +1 @@
61953c35f61f3234b98d78a912e7dc83
61953c35f61f3234b98d78a912e7dc83

View File

@ -1 +1 @@
bb783bb80ff04dd435e814f4b82a3234
bb783bb80ff04dd435e814f4b82a3234

View File

@ -1 +1 @@
4f85d2613aa70622a2d5f49dc8bf2eb2
4f85d2613aa70622a2d5f49dc8bf2eb2

View File

@ -1 +1 @@
e1ca5306082fc3ab411f5ddab1a2e370
e1ca5306082fc3ab411f5ddab1a2e370

View File

@ -1 +1 @@
1641c3b3641e942ffc325d471bdfaf00
1641c3b3641e942ffc325d471bdfaf00

View File

@ -1 +1 @@
ba97286c5d95bf817143f7bb9cf58421
ba97286c5d95bf817143f7bb9cf58421

View File

@ -35,4 +35,4 @@ for lattice = lattice_types
print('-bestfit',strcat(int2str(p+1),'_',char(lattice),'.pdf'),'-dpdf')
close
end
end
end

View File

@ -388,9 +388,9 @@ class TestResult:
cur = hashlib.md5(f.read().encode()).hexdigest()
if update:
with open((ref_path/'export_VTK'/request.node.name).with_suffix('.md5'),'w') as f:
f.write(cur)
f.write(cur+'\n')
with open((ref_path/'export_VTK'/request.node.name).with_suffix('.md5')) as f:
assert cur == f.read()
assert cur == f.read()[:-1]
@pytest.mark.parametrize('mode',['point','cell'])
@pytest.mark.parametrize('output',[False,True])