From 991c0d9004edc30d794b2f0204212fd6544e338c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikolas=20F=C3=B6rster?= Date: Thu, 9 Dec 2021 12:56:53 +0100 Subject: [PATCH] bump version to 0.3.0 --- CHANGELOG.md | 17 ++++++++++++++++- setup.py | 2 +- sphinx/conf.py | 2 +- sphinx/transistordatabase.rst | 2 +- transistordatabase/databaseClasses.py | 7 +++---- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f9fe79..0dafa88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,22 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.3.0] - 2021-12-09 +### Added +- NEW: Option to add own measurements to the database +- Add function export_all_datasheets() +- #61: Add Keys to add R_DS,ON vs. junction temperature +- #62: Add Keys for Gate Charge Curve +- #63: Add Keys for Safe-Operating-Area + +### Updated +- #59: simplify the usage of tdb.load('transistorname') instead of tdb.load({'name': 'transistorname'}) + +### Bugfixes +- #51: Mutable List in export_plecs +- #58: Fix some units displayed in virtual datasheet +- #66: Cannot get the corresponding datasheet according to the procedures in the tutorial +- #67: Problem when exporting all transistors from the database to virtual datasheet ## [0.2.14] - 2021-11-02 diff --git a/setup.py b/setup.py index 7035c2e..908794d 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ "Documentation": "https://upb-lea.github.io/transistordatabase/main/transistordatabase.html", "Source Code": "https://github.com/upb-lea/transistordatabase", }, - version='0.2.14', + version='0.3.0', zip_safe=False, data_files=[('', ['CHANGELOG.md'])] ) diff --git a/sphinx/conf.py b/sphinx/conf.py index 6375cbc..bfae145 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -21,7 +21,7 @@ author = 'LEA-UPB' # The full version, including alpha/beta/rc tags -release = '0.2.14' +release = '0.3.0' # -- General configuration --------------------------------------------------- diff --git a/sphinx/transistordatabase.rst b/sphinx/transistordatabase.rst index 3ce0400..0ea4bbb 100644 --- a/sphinx/transistordatabase.rst +++ b/sphinx/transistordatabase.rst @@ -17,4 +17,4 @@ General methods ************************** .. automodule:: transistordatabase.databaseClasses - :members: csv2array,merge_curve,print_TDB,connect_TDB,connect_local_TDB,load,update_from_fileexchange,import_json,r_g_max_rapid_channel_turn_off + :members: csv2array,merge_curve,print_TDB,connect_TDB,connect_local_TDB,load,update_from_fileexchange,import_json,r_g_max_rapid_channel_turn_off, export_all_datasheets diff --git a/transistordatabase/databaseClasses.py b/transistordatabase/databaseClasses.py index 58d9022..e8fbd77 100644 --- a/transistordatabase/databaseClasses.py +++ b/transistordatabase/databaseClasses.py @@ -953,7 +953,7 @@ def calc_object_i_e(self, e_on_off_rr: str, r_g: float, t_j: float, v_supply: fl :type t_j: float :param v_supply: supply voltage of interest :type v_supply: float - :param normalize_t_to_v: a normalize value used to evalute cartesian distance + :param normalize_t_to_v: a normalize value used to evaluate cartesian distance :type normalize_t_to_v: float :raises Exception: When given gate resistance exceeds the existing maximum @@ -1565,7 +1565,7 @@ def export_matlab(self) -> None: # Note: Dict must be cleaned from 'None's to np.nan (= NaN in Matlab) # see https://stackoverflow.com/questions/35985923/replace-none-in-a-python-dictionary - transistor_clean_dict = json.loads(dict_str, object_pairs_hook=dict_clean) + transistor_clean_dict = json.loads(dict_str, object_pairs_hook=dict2matlab) transistor_clean_dict['file_generated'] = f"{datetime.datetime.today()}" transistor_clean_dict['file_generated_by'] = "https://github.com/upb-lea/transistordatabase", @@ -5399,7 +5399,6 @@ def load(transistor: [str, dict], collection_name: str = "local"): print(e.args[0]) - def convert_dict_to_transistor_object(db_dict: dict) -> Transistor: """ Converts a dictionary to a transistor object. @@ -5615,7 +5614,7 @@ def r_g_max_rapid_channel_turn_off(v_gsth: float, c_ds: float, c_gd: float, i_of # Export helper functions -def dict_clean(input_dict: dict) -> dict: +def dict2matlab(input_dict: dict) -> dict: """ Cleans a python dict and makes it compatible with matlab