|
6 | 6 | # Refer to RULES.md for comprehensive format support rules, |
7 | 7 | # summarised below... |
8 | 8 | # |
| 9 | +# Formatting rules |
| 10 | +# ---------------- |
9 | 11 | # 1. The environment variable `DT_DATASET_FILENAME` will be set to |
10 | 12 | # a string value representing the filename of the dataset. |
11 | | -# i.e. 'data.sdf.gz'. If compressed it wil end with '.gz'. |
| 13 | +# i.e. 'data.sdf'. The formatters will not be presented with compressed |
| 14 | +# files. |
12 | 15 | # 2. The environment variable `DT_DATASET_INPUT_PATH` will be |
13 | 16 | # a directory you can find the file defined in part 1 |
14 | 17 | # 3. The environment variable `DT_DATASET_OUTPUT_PATH` will be |
15 | 18 | # a directory you can write to |
16 | 19 | # 4. The output path may not be empty, and the image must be aware of this |
17 | 20 | # possibility. The container must not remove any files (from the input or |
18 | 21 | # or output directory). |
| 22 | +# 5. If available, additional format variables will be presented, as text, |
| 23 | +# in the variable `DT_DATASET_EXTRA_VARIABLES`. |
19 | 24 | # |
20 | | -# 5. The optional environment variable `DT_DATASET_OUTPUT_FORMAT` will be set |
| 25 | +# Conversion |
| 26 | +# ---------- |
| 27 | +# As well as the above, when called upon to change file formats... |
| 28 | +# |
| 29 | +# 1. The optional environment variable `DT_DATASET_OUTPUT_FORMAT` will be set |
21 | 30 | # if a file format conversion, rather than data loading, is to be performed. |
22 | 31 | # This is expected be a MIME type supported by the image |
23 | | -# 6. If `DT_DATASET_OUTPUT_FORMAT` is set, the environment variable |
| 32 | +# 2. If `DT_DATASET_OUTPUT_FORMAT` is set, the environment variable |
24 | 33 | # `DT_DATASET_OUTPUT_FILENAME` will be set, i.e. 'data.sdf.gz'. |
25 | 34 | # The conversion process simply checks whether the filename ends '.gz' |
26 | 35 | # to determine whether compression (gzip) is required. The file must be |
|
0 commit comments