Data access
Data access module.
Superclass containing some common attributes and helper functions used in multiple data access classes
DataAccess
dataclass
Bases: ABC
DataAccess superclass containing some common attributes and functionalities.
This superclass is used to show the type of methods to implement when creating a new data access class. The data access classes are used to convert raw data into well-defined classes and objects which can be used by the rest of the package.
Attributes:
Name | Type | Description |
---|---|---|
latitude_bounds |
tuple
|
Tuple specifying (latitude_min, latitude_max) |
longitude_bounds |
tuple
|
Tuple specifying (longitude_min, longitude_max) |
date_bounds |
tuple
|
Tuple specifying (datetime_min, datetime_max) |
Source code in src/pyelq/data_access/data_access.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
to_sensor(*args, **kwargs)
abstractmethod
Abstract method to convert raw data into a Sensor or SensorGroup object.
This method should be implemented to convert the raw data into a Sensor or SensorGroup object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*args |
Any
|
Variable length argument list of any type. |
()
|
**kwargs |
dict
|
Arbitrary keyword arguments |
{}
|
Source code in src/pyelq/data_access/data_access.py
42 43 44 45 46 47 48 49 50 51 52 |
|
to_meteorology(*args, **kwargs)
abstractmethod
Abstract method to convert raw data into a Meteorology or MeteorologyGroup object.
This method should be implemented to convert the raw data into a Meteorology or MeteorologyGroup object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*args |
Any
|
Variable length argument list of any type. |
()
|
**kwargs |
dict
|
Arbitrary keyword arguments |
{}
|
Source code in src/pyelq/data_access/data_access.py
54 55 56 57 58 59 60 61 62 63 64 |
|