roc-film 1.15.0__tar.gz → 1.15.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {roc_film-1.15.0 → roc_film-1.15.1}/PKG-INFO +1 -1
  2. {roc_film-1.15.0 → roc_film-1.15.1}/pyproject.toml +1 -1
  3. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/descriptor.json +3 -3
  4. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/cdf_postpro.py +1 -1
  5. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/merge_tcreport.py +2 -2
  6. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/tests.py +18 -18
  7. {roc_film-1.15.0 → roc_film-1.15.1}/LICENSE +0 -0
  8. {roc_film-1.15.0 → roc_film-1.15.1}/README.md +0 -0
  9. {roc_film-1.15.0 → roc_film-1.15.1}/roc/__init__.py +0 -0
  10. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/__init__.py +0 -0
  11. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/commands.py +0 -0
  12. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/config/__init__.py +0 -0
  13. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/constants.py +0 -0
  14. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/exceptions.py +0 -0
  15. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/__init__.py +0 -0
  16. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/cat_solo_hk.py +0 -0
  17. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/check_dds.py +0 -0
  18. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/db_to_anc_bia_sweep_table.py +0 -0
  19. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/dds_to_l0.py +0 -0
  20. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/export_solo_coord.py +0 -0
  21. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/file_handler.py +0 -0
  22. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/l0_to_hk.py +0 -0
  23. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_bia_current.py +0 -0
  24. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_bia_sweep.py +0 -0
  25. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_sbm.py +0 -0
  26. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_surv.py +0 -0
  27. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/make_daily_tm.py +0 -0
  28. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/merge_tmraw.py +0 -0
  29. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/parse_dds_xml.py +0 -0
  30. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tasks/set_l0_utc.py +0 -0
  31. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/__init__.py +0 -0
  32. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/cdf_compare.py +0 -0
  33. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/hdf5_compare.py +0 -0
  34. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_dds_to_l0.py +0 -0
  35. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_dds_to_tc.py +0 -0
  36. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_dds_to_tm.py +0 -0
  37. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_film.py +0 -0
  38. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_l0_to_hk.py +0 -0
  39. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_bia.py +0 -0
  40. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_sbm.py +0 -0
  41. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_surv.py +0 -0
  42. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tests/test_metadata.py +0 -0
  43. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/__init__.py +0 -0
  44. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/dataset_tasks.py +0 -0
  45. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/file_helpers.py +0 -0
  46. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/l0.py +0 -0
  47. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/metadata.py +0 -0
  48. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/skeleton.py +0 -0
  49. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/tools.py +0 -0
  50. {roc_film-1.15.0 → roc_film-1.15.1}/roc/film/tools/xlsx2skt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: roc-film
3
- Version: 1.15.0
3
+ Version: 1.15.1
4
4
  Summary: RPW FILe Maker (FILM): Plugin to make RPW L0, L1 and HK data files
5
5
  License: CECILL-2.1
6
6
  Author: Xavier Bonnin
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "roc-film"
7
- version = "1.15.0"
7
+ version = "1.15.1"
8
8
  readme = "README.md"
9
9
  license = "CECILL-2.1"
10
10
  repository = "https://gitlab.obspm.fr/ROC/Pipelines/Plugins/FILM"
@@ -6,10 +6,10 @@
6
6
  "description": "RPW FILe Maker (FILM): Plugin to make RPW L0, L1 and HK data files"
7
7
  },
8
8
  "release": {
9
- "version": "1.15.0",
10
- "date": "2025-04-29",
9
+ "version": "1.15.1",
10
+ "date": "2025-06-02",
11
11
  "author": "Xavier Bonnin <xavier.bonnin@obspm.fr>, ROC Team <roc.support@sympa.obspm.fr>",
12
- "modification": "Add -compressnonepoch to cdfconvert in cdf_postpro",
12
+ "modification": "Hotfix in merge_tcreport",
13
13
  "url": "https://gitlab.obspm.fr/ROC/Pipelines/Plugins/FILM"
14
14
  },
15
15
  "tasks": [
@@ -310,7 +310,7 @@ class CdfPostPro(Task):
310
310
 
311
311
  # Build command to run cdfconvert with subprocess.run
312
312
  cmd = list([self.cdfconvert, cdf_file, cdf_file])
313
- # overwrite existing file
313
+ # overwrite the existing file
314
314
  cmd.append("-delete")
315
315
  # Force some CDF features
316
316
  cmd.append("-network")
@@ -239,7 +239,7 @@ class MergeTcReport(Task):
239
239
  # Make sure that returned output_tcreport_list is a list
240
240
  # (If only one PktTcReportListElement is found in the XML
241
241
  # the xml_to_dict method returns a collections.OrderedDict() instance).
242
- if isinstance(output_tcreport_list, collections.OrderedDict):
242
+ if type(output_tcreport_list) is not list:
243
243
  output_tcreport_list = [output_tcreport_list]
244
244
 
245
245
  # return output as a dictionary of packet execution date keywords
@@ -249,7 +249,7 @@ class MergeTcReport(Task):
249
249
  key = datetime.strptime(
250
250
  current_tcreport["ExecutionTime"], TIME_ISO_STRFORMAT
251
251
  ).date()
252
- except Exception as e:
252
+ except (KeyError, TypeError, ValueError) as e:
253
253
  logger.warning(f"Cannot get ExecutionTime for {current_tcreport}")
254
254
  logger.debug(e)
255
255
  if current_tcreport not in self.failed_tcreport:
@@ -1054,9 +1054,9 @@ class TestFilmFileProd(CommandTestCase):
1054
1054
  dirs_cmp.report()
1055
1055
 
1056
1056
  # ensure that we have the same files in both directories
1057
- assert (len(dirs_cmp.left_only) == 0) and (
1058
- len(dirs_cmp.right_only) == 0
1059
- ), "Different files in expected and generated output directories!"
1057
+ assert (len(dirs_cmp.left_only) == 0) and (len(dirs_cmp.right_only) == 0), (
1058
+ "Different files in expected and generated output directories!"
1059
+ )
1060
1060
 
1061
1061
  for filename in self.get_diff_files(dirs_cmp):
1062
1062
  # compare only cdf files with differences
@@ -1083,9 +1083,9 @@ class TestFilmFileProd(CommandTestCase):
1083
1083
  result = {}
1084
1084
 
1085
1085
  # compare the difference dict with the expected one
1086
- assert (
1087
- result == {}
1088
- ), f"Differences between expected output and the command output: {pformat(result)}"
1086
+ assert result == {}, (
1087
+ f"Differences between expected output and the command output: {pformat(result)}"
1088
+ )
1089
1089
 
1090
1090
  @pytest.mark.parametrize(
1091
1091
  "idb_source,idb_version",
@@ -1185,9 +1185,9 @@ class TestFilmFileProd(CommandTestCase):
1185
1185
  dirs_cmp.report()
1186
1186
 
1187
1187
  # ensure that we have the same files in both directories
1188
- assert (len(dirs_cmp.left_only) == 0) and (
1189
- len(dirs_cmp.right_only) == 0
1190
- ), "Different files in expected and generated output directories!"
1188
+ assert (len(dirs_cmp.left_only) == 0) and (len(dirs_cmp.right_only) == 0), (
1189
+ "Different files in expected and generated output directories!"
1190
+ )
1191
1191
 
1192
1192
  for filename in self.get_diff_files(dirs_cmp):
1193
1193
  # compare only cdf files with differences
@@ -1214,9 +1214,9 @@ class TestFilmFileProd(CommandTestCase):
1214
1214
  result = {}
1215
1215
 
1216
1216
  # compare the difference dict with the expected one
1217
- assert (
1218
- result == {}
1219
- ), f"Differences between expected output and the command output: {pformat(result)}"
1217
+ assert result == {}, (
1218
+ f"Differences between expected output and the command output: {pformat(result)}"
1219
+ )
1220
1220
 
1221
1221
  @pytest.mark.parametrize(
1222
1222
  "idb_source,idb_version",
@@ -1299,9 +1299,9 @@ class TestFilmFileProd(CommandTestCase):
1299
1299
  dirs_cmp.report()
1300
1300
 
1301
1301
  # ensure that we have the same files in both directories
1302
- assert (len(dirs_cmp.left_only) == 0) and (
1303
- len(dirs_cmp.right_only) == 0
1304
- ), "Different files in expected and generated output directories!"
1302
+ assert (len(dirs_cmp.left_only) == 0) and (len(dirs_cmp.right_only) == 0), (
1303
+ "Different files in expected and generated output directories!"
1304
+ )
1305
1305
 
1306
1306
  for filename in self.get_diff_files(dirs_cmp):
1307
1307
  # compare only cdf files with differences
@@ -1328,6 +1328,6 @@ class TestFilmFileProd(CommandTestCase):
1328
1328
  result = {}
1329
1329
 
1330
1330
  # compare the difference dict with the expected one
1331
- assert (
1332
- result == {}
1333
- ), f"Differences between expected output and the command output: {pformat(result)}"
1331
+ assert result == {}, (
1332
+ f"Differences between expected output and the command output: {pformat(result)}"
1333
+ )
File without changes
File without changes
File without changes