Skip to content

Commit

Permalink
Ready to publish the release v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aaghamohammadi committed Dec 20, 2023
1 parent 5f436b1 commit 38627b8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
Changelog
=========

Version 1.5.0
-------------

Release date: 2023-12-20

Added
^^^^^
- Added badges for CodeQL, pre-commit, and code style (black) in README.md, enhancing the visibility of code quality and style adherence.
- Implemented ``generate_optimal_orientation_json_report`` method for JSON report generation in ``ReportGenerator``.
- Developed ``generate_optimal_orientation_xml_report`` method in ``ReportGenerator`` for producing XML formatted reports.
- Expanded ``test_pysolorie.py`` with tests for JSON (``test_generate_optimal_orientation_json_report``) and XML (``test_generate_optimal_orientation_xml_report``) report generation.

Changed
^^^^^^^
- Updated ``plot_total_direct_irradiation`` method's ``ylabel`` argument to use "Megajoules per square meter" instead of "MW/m²" for clarity and accuracy in ``plotter.py``.
- Refactored ``plot_total_direct_irradiation`` in ``Plotter`` to use a private method for calculating optimal orientations, streamlining the plotting process.

Fixed
^^^^^
- Altered the ``Plotter`` methods to handle axis labels and titles through dynamic ``plot_kwargs``, making the labeling more robust and customizable.
- Harmonized and corrected unit values and labelings across the entire codebase and documentation for consistency and accuracy.
- Refined the ``ReportGenerator`` generate methods' docstrings, clearly specifying the return value unit as "Megajoules per square meter".
- Changed the calculation of the solar irradiance formula in ``SolarIrradiance`` from ``0.33`` to ``0.033`` to correct the eccentricity correction factor according to established astronomical equations.


Documentation
^^^^^^^^^^^^^
- Enhanced documentation in ``getting_started.rst`` with examples and instructions for the new JSON and XML report generation methods.
- Altered the representation of solar irradiance units in documentation to match the codebase changes.

Testing
^^^^^^^
- Enriched ``test_pysolorie.py`` with further assertions for newly added JSON and XML report functionalities, ensuring correct report file creation and data integrity.



Version 1.4.0
-------------
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pysolorie
version = 1.4.0
version = 1.5.0
description = Orientation Analysis of Solar Panel
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 38627b8

Please sign in to comment.