Commit graph

10 commits

Author SHA1 Message Date
Frank Fenor
c9e391bca6
ParameterDTO: Don't overwrite $unit if it's not empty 2024-03-31 20:42:03 +02:00
Frank Fenor
f8db489c0d
Bring $value_text2 to a defined state 2024-03-31 11:47:46 +02:00
Frank Fenor
1a66ef1cfe
ParameterDTO: Add micro unit prefix 2024-03-31 11:39:38 +02:00
Frank Fenor
283ec725d6
Move improved range detection from LCSCProvider to ParameterDTO class
Improve numeric value detection by moving extra info to value_text
2024-03-31 11:38:41 +02:00
frank-f
e8bc93f67a
Fix RegEx to handle negative values and Ohms without prefix (#530)
* Fix RegEx to include negative values

* Update RegEx to handle Ω without prefix

* Update RegEx to include %

* Handle plus/minus values as range

* Fix copy&paste error

* Change minimum value to negative

* Escape decimal point and add slash to valid unit characters to be able to pick up for example "ppm/°C"

* Skip empty values
2024-02-24 22:48:38 +01:00
Jan Böhmer
d600cb4b9a Improved parsing of parameters. Values with unit and ranges get now properly parsed into the Part-DB structures 2024-02-22 23:22:52 +01:00
Jan Böhmer
8ea92ef330 Added tests for DTOConverter 2023-07-15 18:18:35 +02:00
Jan Böhmer
94a26ae75a Allow to extract ranges from paramaters 2023-07-15 01:41:29 +02:00
Jan Böhmer
f9fdae9de9 Added an TME data provider 2023-07-15 01:01:20 +02:00
Jan Böhmer
716a56979d Added basic possibilty to create parts based on infoProviders 2023-07-09 23:31:40 +02:00