Skip to content

Commit

Permalink
bump version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gituser789 committed Dec 9, 2021
1 parent da0ff6a commit 991c0d9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])]
)
2 changes: 1 addition & 1 deletion sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion sphinx/transistordatabase.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 3 additions & 4 deletions transistordatabase/databaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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",

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 991c0d9

Please sign in to comment.