diff --git a/.gitignore b/.gitignore index 373d2df..dc425eb 100644 --- a/.gitignore +++ b/.gitignore @@ -71,6 +71,13 @@ instance/ # Sphinx documentation docs/_build/ +# Autogenerated documentation +docs/source/modules.md + +# Sphinx default files +docs/Makefile +docs/make.bat + # PyBuilder .pybuilder/ target/ diff --git a/CITATION.cff b/CITATION.cff index bcb3918..0907bae 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -5,7 +5,7 @@ authors: - family-names: Kruse given-names: Nicolas orcid: "https://orcid.org/0000-0001-6758-2269" -version: 1.0.2 +version: 1.1.0 #date-released: "2025-04-01" #identifiers: # - description: This is the collection of archived snapshots of all versions of My Research Software diff --git a/README.md b/README.md index d3a22fe..164bccb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# pyhoff +# Pyhoff ## Description The pyhoff package allows you to read and write the most common @@ -43,15 +43,15 @@ bk.add_bus_terminals(KL2404, KL2424, KL9100, KL1104, KL3202, KL4004, KL9010) # Set 1. output of the first KL2404-type bus terminal to hi -KL2404.select(bk, 0).write_coil(1, True) +bk.select(KL2404, 0).write_coil(1, True) # read temperature from the 2. channel of the 2. KL3202-type # bus terminal -t = KL3202.select(bk, 1).read_temperature(2) +t = bk.select(KL3202, 1).read_temperature(2) print(f"t = {t:.1f} °C") # Set 1. output of the 1. KL4002-type bus terminal to 4.2 V -KL4002.select(bk, 0).set_voltage(1, 4.2) +bk.select(KL4002, 0).set_voltage(1, 4.2) ``` diff --git a/pyproject.toml b/pyproject.toml index 3641c9e..3644baa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyhoff" -version = "1.0.2" +version = "1.1.0" authors = [ { name="Nicolas Kruse", email="nicolas.kruse@nonan.net" }, ]