Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 83167be

Browse files
author
Ehsan Totoni
committed
refactor IO code to new folder
1 parent b2f378a commit 83167be

24 files changed

Lines changed: 64 additions & 1305 deletions

hpat/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
from hpat.utils import cprint, distribution_report
2020
import hpat.compiler
2121
import hpat.io
22+
import hpat.io.np_io
2223
import hpat.hiframes.pd_timestamp_ext
2324
import hpat.hiframes.boxing
2425
import hpat.config
2526
import hpat.timsort
2627
from hpat.decorators import jit
2728

2829
if hpat.config._has_xenon:
29-
from hpat.xenon_ext import read_xenon, xe_connect, xe_open, xe_close
30+
from hpat.io.xenon_ext import read_xenon, xe_connect, xe_open, xe_close
3031

3132
multithread_mode = False
3233

hpat/compiler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
from numba.ir_utils import guard, get_definition
1414
from numba.inline_closurecall import inline_closure_call, InlineClosureCallPass
1515
from hpat import config
16+
import hpat.io
1617
if config._has_h5py:
17-
from hpat import pio
18+
from hpat.io import pio
1819

1920
# workaround for Numba #3876 issue with large labels in mortgage benchmark
2021
from llvmlite import binding

hpat/compiler.py.orig

Lines changed: 0 additions & 289 deletions
This file was deleted.

hpat/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
_has_xenon = False
3434
else:
3535
_has_xenon = True
36-
import hpat.xenon_ext
36+
import hpat.io.xenon_ext

0 commit comments

Comments
 (0)