Skip to content

Commit 79025e3

Browse files
authored
Merge pull request #1 from xylar/cleanup
Clean up compliance checker
2 parents 6df3ec2 + 3e5f1a3 commit 79025e3

6 files changed

Lines changed: 1156 additions & 592 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The script checks the compliance of a simulation dataset according criteria, which are related to:
44

5-
* naming conventions
5+
* naming conventions
66
* admissible numerical values,
77
* spatial definition of the grid which differs according to the ice sheet (AIS vs GIS),
88
* time recording dependent of the experiments.
@@ -26,30 +26,30 @@ The code has been developed with python 3.9 and the following modules:
2626
* pandas
2727
* datetime
2828
* tqdm
29-
29+
3030
=> Conda users can install the **isscheck** environnment with the YML file [isschecker_env.yml](https://github.com/jbbarre/ISM_SimulationChecker/blob/main/isschecker_env.yml).
3131

3232
*************************************************
3333

3434
### Test the code
3535

36-
1. Conda users: activate the isschecker environnement: `> conda activate isschecker`.
37-
For others, be sure that the dependencies specified in the YML file [isschecker_env.yml] (https://github.com/jbbarre/ISM_SimulationChecker/blob/main/isschecker_env.yml) are installed.
38-
36+
1. Conda users: activate the isschecker environnement: `> conda activate isschecker`.
37+
For others, be sure that the dependencies specified in the YML file [isschecker_env.yml] (https://github.com/jbbarre/ISM_SimulationChecker/blob/main/isschecker_env.yml) are installed.
38+
3939
2. In a terminal, run the script: `> python compliance_checker.py`. A progression bar appears in the terminal and shows the progression.
40-
40+
4141
3. Without any changes, the script checks the `test` directory, which contains a single file. After processing the check, open the *compliance_checker_log.txt* file created in the `test` directory. The compliance checker raises errors because the test data is just a short extraction of a complete dataset.
42-
42+
4343
*************************************************
4444

4545
### How to launch a compliance check ?
4646

47-
1. In *compliance_checker.py*, specify the path of the directory to check by changing the value of the variable **source_path** and change the experiments tested from **experiments = experiments_ismip6** to **experiments = experiments_ismip6_ext** to test the new 2300 extensions. The compliance criteria csv file (*ismip6_criteria.csv*) must be located in the same directory as *compliance_checker.py* .
47+
1. In a terminal, run the script with the source path and experiment set:
48+
`> ./compliance_checker.py --source-path ./test --experiment-set ismip6`
4849

49-
2. In a terminal, run the script:
50-
`> python compliance_checker.py`.
50+
2. Use `--experiment-set ismip6_ext` to test the ISMIP6 extension (2300) experiment set.
5151

52-
3. The script creates a *compliance_checker_log.txt* file in the source_path, which reports the errors and warnings.
52+
3. The script creates a *compliance_checker_log.txt* file in the source path, which reports the errors and warnings.
5353

5454

5555

0 commit comments

Comments
 (0)