Mapping utilities.
Write the given object to the given filename in JSON format.
| Parameters: |
|
|---|
Read a JSON object from filename and return it.
| Parameter: | filename (string) – File from which to read. |
|---|---|
| Returns: | The object read from filename. |
| Return type: | primitive, list, dict |
Converts meters per second to miles per hour.
| Parameter: | meters_per_sec (numeric) – Speed to be converted, in m/s |
|---|---|
| Returns: | meters_per_sec converted to miles per hour. |
| Return type: | float |
Return a module object loaded from the given .py file.
This can load .pyc files, but you have to point it at the .py file.
| Parameter: | filename (string) – Filename (with optional path) of the .py file to load. |
|---|---|
| Returns: | The module object specified by the given .py file. |