Skip to content

Commit b293786

Browse files
authored
Fix typos (#372)
* Fixed some typos * More spell checking with aspell
1 parent 522ab33 commit b293786

15 files changed

+35
-34
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Code
3030

3131
Docs
3232
----
33+
* [Crozzers](https://github.com/Crozzers)
3334
* [EJEP](https://github.com/EJEP)
3435
* [Franzqat](https://github.com/franzqat)
3536
* [Harmon758](https://github.com/Harmon758)

pyowm/agroapi10/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def with_img_type(self, image_type):
180180

181181
def with_preset(self, preset):
182182
"""
183-
Returns the seach results having the specified preset
183+
Returns the search results having the specified preset
184184
185185
:param preset: the desired image preset (valid values are provided by the
186186
`pyowm.agroapi10.enums.PresetEnum` enum)

pyowm/commons/tile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def geoocoords_to_tile_coords(cls, lon, lat, zoom):
9292
@classmethod
9393
def tile_coords_to_bbox(cls, x, y, zoom):
9494
"""
95-
Calculates the lon/lat estrema of the bounding box corresponding to specific tile coordinates. Output coodinates
95+
Calculates the lon/lat estrema of the bounding box corresponding to specific tile coordinates. Output coordinates
9696
are in degrees and in the Mercator Projection (http://en.wikipedia.org/wiki/Mercator_projection)
9797
9898
:param x: the x tile coordinates

pyowm/utils/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def to_UNIXtime(timeobject):
134134
def ISO8601_to_UNIXtime(iso):
135135
"""
136136
Converts an ISO8601-formatted string in the format
137-
``YYYY-MM-DD HH:MM:SS+00:00`` to the correspondant UNIXtime
137+
``YYYY-MM-DD HH:MM:SS+00:00`` to the correspondent UNIXtime
138138
139139
:param iso: the ISO8601-formatted string
140140
:type iso: string

pyowm/weatherapi25/historian.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def wind_series(self):
9292

9393
def max_temperature(self, unit='kelvin'):
9494
"""Returns a tuple containing the max value in the temperature
95-
series preceeded by its timestamp
95+
series preceded by its timestamp
9696
9797
:param unit: the unit of measure for the temperature values. May be
9898
among: '*kelvin*' (default), '*celsius*' or '*fahrenheit*'
@@ -114,7 +114,7 @@ def max_temperature(self, unit='kelvin'):
114114

115115
def min_temperature(self, unit='kelvin'):
116116
"""Returns a tuple containing the min value in the temperature
117-
series preceeded by its timestamp
117+
series preceded by its timestamp
118118
119119
:param unit: the unit of measure for the temperature values. May be
120120
among: '*kelvin*' (default), '*celsius*' or '*fahrenheit*'
@@ -157,7 +157,7 @@ def average_temperature(self, unit='kelvin'):
157157

158158
def max_humidity(self):
159159
"""Returns a tuple containing the max value in the humidity
160-
series preceeded by its timestamp
160+
series preceded by its timestamp
161161
162162
:returns: a tuple
163163
:raises: ValueError when the measurement series is empty
@@ -167,7 +167,7 @@ def max_humidity(self):
167167

168168
def min_humidity(self):
169169
"""Returns a tuple containing the min value in the humidity
170-
series preceeded by its timestamp
170+
series preceded by its timestamp
171171
172172
:returns: a tuple
173173
:raises: ValueError when the measurement series is empty
@@ -186,7 +186,7 @@ def average_humidity(self):
186186

187187
def max_pressure(self):
188188
"""Returns a tuple containing the max value in the pressure
189-
series preceeded by its timestamp
189+
series preceded by its timestamp
190190
191191
:returns: a tuple
192192
:raises: ValueError when the measurement series is empty
@@ -196,7 +196,7 @@ def max_pressure(self):
196196

197197
def min_pressure(self):
198198
"""Returns a tuple containing the min value in the pressure
199-
series preceeded by its timestamp
199+
series preceded by its timestamp
200200
201201
:returns: a tuple
202202
:raises: ValueError when the measurement series is empty
@@ -215,7 +215,7 @@ def average_pressure(self):
215215

216216
def max_rain(self):
217217
"""Returns a tuple containing the max value in the rain
218-
series preceeded by its timestamp
218+
series preceded by its timestamp
219219
220220
:returns: a tuple
221221
:raises: ValueError when the measurement series is empty
@@ -225,7 +225,7 @@ def max_rain(self):
225225

226226
def min_rain(self):
227227
"""Returns a tuple containing the min value in the rain
228-
series preceeded by its timestamp
228+
series preceded by its timestamp
229229
230230
:returns: a tuple
231231
:raises: ValueError when the measurement series is empty

sphinx/contributing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Contributing
22

3-
Contributing is easy anwd welcome
3+
Contributing is easy and welcome
44

55
You can contribute to PyOWM in a lot of ways:
66

77
- reporting a reproducible defect (eg. bug, installation crash, ...)
88
- make a wish for a reasonable new feature
99
- increase the test coverage
1010
- refactor the code
11-
- improve PyOWM reach on platforms (eg. bundle it for Linux distros, managers, oding, testing, packaging, reporting issues) are welcome!
11+
- improve PyOWM reach on platforms (eg. bundle it for Linux distros, managers, coding, testing, packaging, reporting issues) are welcome!
1212

1313
And last but not least... use it! Use PyOWM in your own projects, as [lots of people already do](https://github.com/csparpa/pyowm/wiki/Community-Projects-using-PyOWM).
1414

@@ -26,9 +26,9 @@ That's simple: what you need to do is just open a new issue on GitHub.
2626

2727
## Bug reports - general principles
2828
In order to allow the community to understand what the bug is, *you should provide as much information as possible* on it.
29-
Vague or succint bug reports are not useful and will very likely result in follow ups needed.
29+
Vague or succinct bug reports are not useful and will very likely result in follow ups needed.
3030

31-
*Only bugs related to PyOWM will be addressed*: it might be that you're using PyOWM in a broader context (eg. a webapplication)
31+
*Only bugs related to PyOWM will be addressed*: it might be that you're using PyOWM in a broader context (eg. a web application)
3232
so bugs affecting the broader context are out of scope - unless they are caused in chain to PyOWM issues.
3333

3434
Also, please do understand that we can only act on *reproducible bugs*: this means that a bug does not exist if it is
@@ -74,7 +74,7 @@ just run:
7474

7575
`pip install -r dev-requirements.txt`
7676

77-
It is adviced that you do it on a [virtualenv](https://virtualenv.pypa.io/en/stable/).
77+
It is advised that you do it on a [virtualenv](https://virtualenv.pypa.io/en/stable/).
7878

7979
## Guidelines for code branching
8080
Simple ones:

sphinx/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ If you already have PyOWM 2.x installed and want to upgrade to safely update it
239239
$ pip install --upgrade pyowm>=2.0,<3.0
240240
241241
242-
Get the lastest development version
242+
Get the latest development version
243243
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
244244

245245
You can install the development trunk with _pip_:

sphinx/v3/agro-api-usage-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Read on to discover what you can do with it.
3232

3333
A polygon represents an area on a map upon which you can issue data queries. Each polygon has a unique ID, an optional
3434
name and links back to unique OWM ID of the User that owns that polygon. Each polygon has an area that is expressed
35-
in hacres, but you can also get it in squared kilometers:
35+
in acres, but you can also get it in squared kilometers:
3636

3737
```python
3838
pol # this is a pyowm.agro10.polygon.Polygon instance
@@ -133,7 +133,7 @@ Soil data is updated twice a day.
133133

134134
This is the real meat in Agro API: the possibility to obtain **satellite imagery** right upon your polygons!
135135

136-
### Overwiew
136+
### Overview
137137

138138
Satellite Imagery comes in 3 formats:
139139
- **PNG images**
@@ -416,7 +416,7 @@ Currently only PNG and GEOTIFF imagery is available
416416

417417
### Supported color palettes
418418
Supported color palettes are provided by the `pyowm.agroapi10.enums.PaletteEnum` enumerator which returns strings,
419-
each one representing a color palette for NDVI imges:
419+
each one representing a color palette for NDVI images:
420420

421421
```python
422422
from pyowm.agroapi10.enums import PaletteEnum

sphinx/v3/air-pollution-api-usage-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ max_sample = coi.get_co_sample_with_highest_vmr()
5959
min_sample = coi.get_co_sample_with_lowest_vmr()
6060
```
6161

62-
If you want to know if a COIndex refers to the future - aka: is a forecast - wth respect to the
62+
If you want to know if a COIndex refers to the future - aka: is a forecast - with respect to the
6363
current timestamp, then use the `is_forecast()` method
6464

6565

@@ -119,9 +119,9 @@ oz.get_reference_time()
119119
oz.get_reception_time()
120120
```
121121

122-
If you want to know if an Ozone measurement refers to the future - aka: is a forecast - wth respect to the
122+
If you want to know if an Ozone measurement refers to the future - aka: is a forecast - with respect to the
123123
current timestamp, then use the `is_forecast()` method
124124

125125

126126
### Querying Nitrogen dioxide (NO2) and Sulfur Dioxide (SO2) data
127-
This works exactly as for O2 adata - please refer to that bit of the docs
127+
This works exactly as for O2 data - please refer to that bit of the docs

sphinx/v3/alerts-api-usage-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ am.delete_alert_for(trigger, alert)
8989
This is the Alert API object model:
9090

9191
- *Trigger*: collection of alerts to be met over specified areas and within a specified time frame according to specified weather params conditions
92-
- *Condition*: rule for matching a weather measuerment with a specified threshold
92+
- *Condition*: rule for matching a weather measurement with a specified threshold
9393
- *Alert*: whenever a condition is met, an alert is created (or updated) and can be polled to verify when it has been met and what the actual weather param value was.
9494
- *Area*: geographic area over which the trigger is checked
9595
- *AlertChannel*: as OWM plans to add push-oriented alert channels (eg. push notifications), we need to encapsulate this into a specific class
@@ -283,8 +283,8 @@ A Trigger is the local proxy for the corresponding entry on the OWM API: Trigger
283283
`pyowm.alertapi30.alertmanager.AlertManager` instances.
284284

285285
Each Trigger has these attributes:
286-
- start_after_millis: _with resepect to the time when the trigger will be crated on the Alert API_, how many milliseconds after should it begin to be checked for conditions matching
287-
- end_after_millis: _with resepect to the time when the trigger will be crated on the Alert API_, how many milliseconds after should it end to be checked for conditions matching
286+
- start_after_millis: _with respect to the time when the trigger will be created on the Alert API_, how many milliseconds after should it begin to be checked for conditions matching
287+
- end_after_millis: _with respect to the time when the trigger will be created on the Alert API_, how many milliseconds after should it end to be checked for conditions matching
288288
- alerts: a list of `pyowm.alertapi30.alert.Alert` instances, which are the alerts that the trigger has fired so far
289289
- conditions: a list of `pyowm.alertapi30.condition.Condition` instances
290290
- area: a list of `pyowm.utils.geo.Geometry` instances, representing the geographic area on which the trigger's conditions need to be checked

0 commit comments

Comments
 (0)