Repository navigation
v0.2.0
What's Changed
Description of all the modifications
- Added unittest for most of the functions that are present in the
lexicode. - The
array_to_image_kwargsdefault value was assigned asNonewhich would give error in the case wherearray_to_image_kwargswasn't provided by the user. So, we modified it so thatarray_to_image_kwargsdefaults to an empty dictionary instead ofNone. - Modified the
validate_input, so that when one tries to validatetime_range, with it being eitherdatetime,numberor a mix of it, thetime_rangeis still validated. - Updated different functions, so that now
time_rangeis appropriately validated and the values insidetime_rangeis modified so that the final type of each element oftime_rangeis a datetime object withUTCas a time-zone. - Modified
__init__.pyfile:
a) Changed frompkg_resourcesto `importlib.metadata``
b) Added:
from .lexi import (
validate_input,
download_files_from_github,
get_lexi_data,
get_spc_prams,
get_exposure_maps,
get_sky_backgrounds,
get_lexi_images,
array_to_image,
)
- Modified
lexi.py:
a) Removed:
from lexi import __version__, __doc__
# Add the docstring to the package
__doc__ = __doc__
# Add the version to the package
__version__ = __version__
to avoid circular import error.
- 82 add unittests by @qudsiramiz in #84
Full Changelog: v0.1.0...v0.2.0