pycoustic 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl

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.
pycoustic/weather.py CHANGED
@@ -4,8 +4,8 @@ import datetime as dt
4
4
 
5
5
 
6
6
  appid = ""
7
- with open("tests/openweather_app_id.txt") as f:
8
- appid = f.readlines()[0]
7
+ # with open("tests/openweather_app_id.txt") as f:
8
+ # appid = f.readlines()[0]
9
9
 
10
10
  w_dict = {
11
11
  "start": "2022-09-16 12:00:00",
@@ -1,17 +1,19 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pycoustic
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary:
5
5
  Author: thumpercastle
6
6
  Author-email: tony.ryb@gmail.com
7
- Requires-Python: >=3.12,<4.0
7
+ Requires-Python: >=3.11.9,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.12
10
10
  Classifier: Programming Language :: Python :: 3.13
11
11
  Requires-Dist: numpy (==2.2.6)
12
12
  Requires-Dist: openpyxl (==3.1.5)
13
13
  Requires-Dist: pandas (==2.2.3)
14
+ Requires-Dist: plotly (==6.1.2)
14
15
  Requires-Dist: requests (>=2.32.4,<3.0.0)
16
+ Requires-Dist: streamlit (>=1.46.1,<2.0.0)
15
17
  Description-Content-Type: text/markdown
16
18
 
17
19
  # pycoustic - Toolkit for Analysing Noise Survey Data
@@ -70,6 +72,7 @@ pip install pycoustic
70
72
  ```
71
73
  4. **Analyse the Survey Data**
72
74
  The following are methods of the Survey() object representing the typical use cases for acoustic consultants in the UK.
75
+
73
76
  ### Survey.resi_summary()
74
77
  This method provides a summary of the measurement data for residential projects, with a focus on typical assessment procedures in the UK.
75
78
  It presents A-weighted Leqs for each day and night period (and evenings, if enabled), as well as the nth-highest LAmax during each night-time period.
@@ -79,21 +82,26 @@ pip install pycoustic
79
82
  **lmax_n** *Int* *(default 10)* The nth-highest value to present.\
80
83
  **lmax_t** *Str* *(default "2min")* The time period T over which Lmaxes are presented. This must be equal to or longer than the period of the raw data.
81
84
 
82
- ## Survey.modal_l90()
85
+ ## Survey.modal()
83
86
  Compute the modal L90 for daytime, evening (if enabled) and night-time periods. By default, this is set to T=60min for (23:00 to 07:00) periods, and T=15min for night-time (23:00 to 07:00) periods, as per BS 4142:2014.
84
87
 
88
+ ## Survey.counts()
89
+ Returns the L90 counts for daytime, evening and night-time periods. You can also choose to include other columns.
90
+
85
91
  ## Survey.lmax_spectra()
86
92
  Compute the Lmax Event spectra for the nth-highest Lmax during each night-time period.\
87
93
  **Note** the date presented alongside the Lmax event is actually the starting date of the night-time period. i.e. an Lmax event with a stamp of 20/12/2024 at 01:22 would actually have occurred on 21/12/2024 at 01:22. These stamps can also sometimes be out by a minute (known bug).
88
94
 
89
- ## Survey.typical_leq_spectra()
95
+ ## Survey.leq_spectra()
90
96
  Compute the Leq spectra for daytime, evening (if enabled) and night-time periods. This will present the overall Leqs across the survey, not the Leq for each day.
91
-
97
+
92
98
  ## Survey.weather()
93
99
  Returns a pandas dataframe of the weather history over the course of your survey.
94
100
  Requires an **api_key** argument. This method makes a call to the OpenWeatherMap OneCall API (see https://openweathermap.org/api). You need to sign up and pass your API key as a string to the weather() method.
95
101
 
96
-
102
+ ## Survey.weather_summary()
103
+ Returns a pandas dataframe summary of the weather history, comprising maximum, minimum and mean values.
104
+ You must have called Survey.weather() at least once before to get the summary.
97
105
 
98
106
  ### Other methods
99
107
  ### Known issues
@@ -2,7 +2,7 @@ pycoustic/__init__.py,sha256=jq9Tzc5nEgXh8eNf0AkAypmw3Dda9A-iSy-tyFaTksA,89
2
2
  pycoustic/log.py,sha256=HNdS2hKKbUdqY7iAMj9QJqoI9r4ZtJ7GCXnIx8XpTH4,17145
3
3
  pycoustic/survey.py,sha256=KTNCt4kV63Dq06RCbh9G9Nl8Frk8NsTt6AhxiMIEixg,17746
4
4
  pycoustic/tkgui.py,sha256=YAy5f_qkXZ3yU8BvB-nIVQX1fYwPs_IkwmDEXHPMAa4,13997
5
- pycoustic/weather.py,sha256=_fA62mZxBCoQcIe_gziQ2WgDaWqr4cIW_6YqTXmz_is,3747
6
- pycoustic-0.1.6.dist-info/METADATA,sha256=4K-HhUHP4yxvKveG9TzZRxIxDPmU13s6_9Cae8dmH8E,7987
7
- pycoustic-0.1.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
- pycoustic-0.1.6.dist-info/RECORD,,
5
+ pycoustic/weather.py,sha256=3FIzpp3jniA1SRObMCnKsobVFZxJX5gpugsAWA3bH8o,3751
6
+ pycoustic-0.1.7.dist-info/METADATA,sha256=SEdgTvtyNxGVcgYFKrjwIh0TZw5gUzHoc_GRGaxkykg,8413
7
+ pycoustic-0.1.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
+ pycoustic-0.1.7.dist-info/RECORD,,