Skip to content

Commit 7c7dc9b

Browse files
committed
fmt: Organise imports
1 parent cc36401 commit 7c7dc9b

File tree

7 files changed

+23
-28
lines changed

7 files changed

+23
-28
lines changed

.idea/feat-multiple-darshan-files.iml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

drishti/handlers/handle_darshan.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
#!/usr/bin/env python3
2+
import abc
3+
import csv
24
import dataclasses
5+
import datetime
36
import io
7+
import os
48
import shlex
5-
import csv
69
import shutil
710
import subprocess
8-
import os
911
import sys
12+
import time
1013
import typing
1114
from dataclasses import dataclass, field
12-
from typing import Optional
13-
import abc
14-
from typing import List
15+
from typing import List, Optional
1516

1617
import darshan
17-
import pandas as pd
18-
import datetime
1918
import darshan.backend.cffi_backend as darshanll
20-
from packaging import version
21-
from rich import print
22-
from rich.padding import Padding
23-
2419
import includes.config as config
2520
import includes.module as module
26-
from includes.module import Panel, insights_total
27-
from includes.module import HIGH, WARN, RECOMMENDATIONS
21+
import pandas as pd
22+
from includes.module import HIGH, RECOMMENDATIONS, WARN, Panel, insights_total
23+
2824
# from includes.module import *
2925
from includes.parser import args
30-
import time
26+
from packaging import version
27+
from rich import print
28+
from rich.padding import Padding
3129

3230

3331
def is_available(name):

drishti/handlers/handle_recorder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
import time
55

66
import pandas as pd
7+
from includes.module import *
78
from recorder_utils import RecorderReader
89
from recorder_utils.build_offset_intervals import build_offset_intervals
910

10-
from includes.module import *
11-
1211

1312
def get_accessed_files(reader):
1413
ranks = reader.GM.total_ranks

drishti/includes/config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#!/usr/bin/env python3
22

3-
import os
43
import json
4+
import os
55

6+
from includes.parser import *
67
from rich.console import Console, Group
78
from rich.padding import Padding
89
from rich.panel import Panel
9-
from rich.terminal_theme import TerminalTheme
10-
from rich.terminal_theme import MONOKAI
11-
12-
from includes.parser import *
13-
10+
from rich.terminal_theme import MONOKAI, TerminalTheme
1411

1512
RECOMMENDATIONS = 0
1613
HIGH = 1

drishti/includes/module.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env python3
22

3-
import datetime
43
import csv
4+
import datetime
55
import time
6+
67
import pandas as pd
8+
from includes.config import *
79
from rich import box
810
from rich.syntax import Syntax
9-
from includes.config import *
1011

1112
'''
1213
Before calling the functions below

drishti/reporter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
# from includes.parser import * # imports {'parser', 'args', 'argparse'} # TODO: Is next line enuf
88
from includes.parser import args
99

10-
11-
1210
'''
1311
|- handler_darshan -|
1412
| |

0 commit comments

Comments
 (0)