Skip to content

Commit

Permalink
do not enforce the formatting of the product version
Browse files Browse the repository at this point in the history
  • Loading branch information
gshiroma committed Sep 6, 2023
1 parent bdaa44b commit 6a952e0
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/rtc/h5_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,9 @@ def get_product_version(product_version_runconfig):
product_version: scalar
Product version
'''
if product_version_runconfig is None:
product_version = SOFTWARE_VERSION
return product_version
try:
product_version_float = float(product_version_runconfig)
product_version = f'{product_version_float:.1f}'
except ValueError:
product_version = product_version_runconfig
return product_version
if product_version_runconfig:
return product_version_runconfig
return SOFTWARE_VERSION


def create_hdf5_file(product_id, output_hdf5_file, orbit, burst, cfg,
Expand Down

0 comments on commit 6a952e0

Please sign in to comment.