Skip to content

Commit 88adaaa

Browse files
committed
added a warning for auto-generated content
1 parent 41c1d73 commit 88adaaa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

quantities/constants/codata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED
2+
# ANY CHANGES MADE HERE WILL BE LOST
3+
14
physical_constants = {}
25

36
physical_constants['{220} lattice spacing of silicon'] = {'value': 192.0155762e-12, 'precision': 0.0000050e-12, 'units': 'm'}

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
data = data.split('\n')[10:-1]
1111

1212
with file('quantities/constants/codata.py', 'w') as f:
13+
f.write('# THIS FILE IS AUTOMATICALLY GENERATED\n')
14+
f.write('# ANY CHANGES MADE HERE WILL BE LOST\n\n')
1315
f.write('physical_constants = {}\n\n')
1416
for line in data:
1517
name = line[:55].rstrip().replace('mag.','magnetic')

0 commit comments

Comments
 (0)