CE53 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ce53-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: CE53
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Civil engineering calculation library by Abdullah Zubair
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# CE53
|
|
10
|
+
|
|
11
|
+
A Python library for civil engineering calculations made my Abdullah Zubair 25-CE-53 from UET Taxila Pakistan.
|
|
12
|
+
|
|
13
|
+
CE53 provides simple, reusable functions for common civil engineering problems.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install CE53
|
ce53-0.1.0/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "CE53"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Civil engineering calculation library by Abdullah Zubair"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
|
|
13
|
+
[tool.hatch.build.targets.wheel]
|
|
14
|
+
packages = ["src/CE53"]
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .tape_corrections import temperature_correction
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
def temperature_correction(
|
|
2
|
+
measured_length,
|
|
3
|
+
temperature,
|
|
4
|
+
standard_temperature,
|
|
5
|
+
coefficient
|
|
6
|
+
):
|
|
7
|
+
"""
|
|
8
|
+
Calculate correction due to temperature variation.
|
|
9
|
+
|
|
10
|
+
Returns correction in the same length unit as measured_length.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
correction = (
|
|
14
|
+
coefficient
|
|
15
|
+
* measured_length
|
|
16
|
+
* (temperature - standard_temperature)
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
return correction
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from CE53.surveying.tape_corrections import temperature_correction
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def test_temperature_correction():
|
|
5
|
+
correction = temperature_correction(
|
|
6
|
+
measured_length=30,
|
|
7
|
+
temperature=40,
|
|
8
|
+
standard_temperature=20,
|
|
9
|
+
coefficient=11.5e-6
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
assert correction == 0.0069
|