Skip to content

Commit

Permalink
reorg pyterrier/java files to make more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney committed Jul 31, 2024
1 parent 8b27581 commit 9869fe3
Show file tree
Hide file tree
Showing 9 changed files with 466 additions and 469 deletions.
2 changes: 1 addition & 1 deletion pyterrier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# old name
Utils = utils

# will be set in terrier.java._post_init once java is loaded
# will be set in terrier.terrier.java once java is loaded
IndexRef = None


Expand Down
2 changes: 1 addition & 1 deletion pyterrier/anserini/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pyterrier as pt


configure = pt.java.config.register('pyterrier.anserini', {
configure = pt.java.register_config('pyterrier.anserini', {
'version': None,
})

Expand Down
6 changes: 2 additions & 4 deletions pyterrier/java/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from pyterrier.java import mavenresolver
from pyterrier.java._init import init, started, parallel_init, parallel_init_args, required, required_raise, before_init, autoclass, cast, legacy_init, JavaInitializer, CoreInit
from pyterrier.java import config
from pyterrier.java.config import configure
from pyterrier.java.utils import redirect_stdouterr, bytebuffer_to_array, JavaClasses, J, add_jar, add_package, set_memory_limit, set_redirect_io, add_option, set_log_level
from pyterrier.java.utils import JavaInitializer, init, started, parallel_init, parallel_init_args, required, required_raise, before_init, autoclass, cast, legacy_init, register_config, Configuration, JavaClasses
from pyterrier.java.core import CoreInit, configure, redirect_stdouterr, bytebuffer_to_array, J, add_jar, add_package, set_memory_limit, set_redirect_io, add_option, set_log_level

__all__ = [
'add_jar', 'add_option', 'add_package', 'autoclass', 'before_init', 'bytebuffer_to_array', 'cast', 'config',
Expand Down
289 changes: 0 additions & 289 deletions pyterrier/java/_init.py

This file was deleted.

52 changes: 0 additions & 52 deletions pyterrier/java/config.py

This file was deleted.

Loading

0 comments on commit 9869fe3

Please sign in to comment.