roc-film 1.14.7__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.
- {roc_film-1.14.7 → roc_film-1.15.1}/PKG-INFO +1 -1
- {roc_film-1.14.7 → roc_film-1.15.1}/pyproject.toml +1 -1
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/descriptor.json +3 -3
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/cdf_postpro.py +2 -2
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/file_handler.py +8 -3
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/merge_tcreport.py +2 -2
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/tests.py +18 -18
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/file_helpers.py +1 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/LICENSE +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/README.md +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/commands.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/config/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/constants.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/exceptions.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/cat_solo_hk.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/check_dds.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/db_to_anc_bia_sweep_table.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/dds_to_l0.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/export_solo_coord.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/l0_to_hk.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_bia_current.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_bia_sweep.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_sbm.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/l0_to_l1_surv.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/make_daily_tm.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/merge_tmraw.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/parse_dds_xml.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tasks/set_l0_utc.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/cdf_compare.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/hdf5_compare.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_dds_to_l0.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_dds_to_tc.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_dds_to_tm.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_film.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_l0_to_hk.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_bia.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_sbm.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_l0_to_l1_surv.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tests/test_metadata.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/__init__.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/dataset_tasks.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/l0.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/metadata.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/skeleton.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/tools.py +0 -0
- {roc_film-1.14.7 → roc_film-1.15.1}/roc/film/tools/xlsx2skt.py +0 -0
@@ -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.
|
10
|
-
"date": "2025-
|
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": "Hotfix in
|
12
|
+
"modification": "Hotfix in merge_tcreport",
|
13
13
|
"url": "https://gitlab.obspm.fr/ROC/Pipelines/Plugins/FILM"
|
14
14
|
},
|
15
15
|
"tasks": [
|
@@ -310,12 +310,12 @@ 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")
|
317
317
|
cmd.append("-single")
|
318
|
-
cmd.append("-
|
318
|
+
cmd.append("-compressnonepoch")
|
319
319
|
cmd.append("-checksum md5")
|
320
320
|
cmd = " ".join(cmd)
|
321
321
|
|
@@ -6,6 +6,7 @@
|
|
6
6
|
import os
|
7
7
|
import shutil
|
8
8
|
import uuid
|
9
|
+
from pathlib import Path
|
9
10
|
|
10
11
|
from poppy.core.logger import logger
|
11
12
|
from poppy.core.task import Task
|
@@ -50,8 +51,8 @@ class MoveToProdDir(Task):
|
|
50
51
|
# shall be moved
|
51
52
|
products_dir = get_products_dir(self.pipeline)
|
52
53
|
|
53
|
-
# Ignore possible
|
54
|
-
ignore_patterns = [
|
54
|
+
# Ignore possible items in the output directory
|
55
|
+
ignore_patterns = []
|
55
56
|
|
56
57
|
if not products_dir:
|
57
58
|
logger.debug(
|
@@ -63,6 +64,10 @@ class MoveToProdDir(Task):
|
|
63
64
|
logger.debug(f"Moving {output_dir} into {products_dir}")
|
64
65
|
if safe_move(output_dir, target_dir, ignore_patterns=ignore_patterns):
|
65
66
|
logger.info(f"{output_dir} moved into {products_dir}")
|
67
|
+
# Finally remove any lock file from target_dir
|
68
|
+
for current_lock in Path(target_dir).glob("*.lock"):
|
69
|
+
current_lock.unlink(missing_ok=True)
|
70
|
+
logger.debug(f"{current_lock} deleted")
|
66
71
|
|
67
72
|
logger.debug(f"Task {self.job_id} completed")
|
68
73
|
|
@@ -92,7 +97,7 @@ class MoveFailedFiles(Task):
|
|
92
97
|
logger.debug(f"Task {self.job_id} is starting")
|
93
98
|
try:
|
94
99
|
self.setup_inputs()
|
95
|
-
except Exception:
|
100
|
+
except Exception: # noqa
|
96
101
|
logger.exception(f"Initializing inputs has failed for {self.job_id}!")
|
97
102
|
self.pipeline.exit()
|
98
103
|
return
|
@@ -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
|
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
|
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
|
-
|
1059
|
-
)
|
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
|
-
|
1088
|
-
)
|
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
|
-
|
1190
|
-
)
|
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
|
-
|
1219
|
-
)
|
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
|
-
|
1304
|
-
)
|
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
|
-
|
1333
|
-
)
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|