LBNL-ETA / Adapter

The Adapter software is developed at the Energy Efficiency Standards Department and it provides a convenient data table loader from various formats such as xlsx, csv, db (sqlite database), and sqlalchemy. Its main feature is the ability to convert data tables identified in one main and optionally one or more additional input files into database tables and Pandas DataFrames for downstream usage in any compatible software.
1 stars 1 forks source link

reformat folder name with timestamp #28

Closed 0xd5dc closed 2 years ago

0xd5dc commented 2 years ago
utilize the adapter to generate folder names with a timestamp in two formats, short format(default), and long format. For example long format short format
prefix_2022_07_25-13h_50m abbr.ver._220725_1350
product_version_branch_2022_08_02_14h_01m p100_220802_1401
milicag commented 2 years ago

The run parameters table, Version field value, provides the string that goes before the date and time, in your example _220802_1401. Let us, for start, try to keep the approach to the version string that comes from the run_parameters table the same between the long and the short, just to make it a bit easier. It might be useful to look at optionally pulling the code version from the code itself. For example, add a kwarg to optionally pass the LCC version in.