Mercurial > repos > greg > draw_amr_matrix
comparison draw_amr_matrix.py @ 14:c5e80637cf3d draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 28 Mar 2023 13:42:30 +0000 |
| parents | b1a7e04e6371 |
| children | 487a3c008812 |
comparison
equal
deleted
inserted
replaced
| 13:b1a7e04e6371 | 14:c5e80637cf3d |
|---|---|
| 195 # I have no idea why, but when running functional test with planemo | 195 # I have no idea why, but when running functional test with planemo |
| 196 # the value of amr_to_draw.shape[0] is 1 even though the tests use the | 196 # the value of amr_to_draw.shape[0] is 1 even though the tests use the |
| 197 # exact inputs when running outside of planeo that result in the value | 197 # exact inputs when running outside of planeo that result in the value |
| 198 # being 2. So we have to pass this in_test_mode flag in order to get | 198 # being 2. So we have to pass this in_test_mode flag in order to get |
| 199 # functional tests to work. | 199 # functional tests to work. |
| 200 if in_test_mode: | 200 if in_test_mode == 'true': |
| 201 shape_val = 0 | 201 shape_val = 0 |
| 202 else: | 202 else: |
| 203 shape_val = 1 | 203 shape_val = 1 |
| 204 if amr_to_draw.shape[0] > shape_val: | 204 if amr_to_draw.shape[0] > shape_val: |
| 205 ofh.write("\nDrawing AMR matrix...\n") | 205 ofh.write("\nDrawing AMR matrix...\n") |
