Skip to content

Commit 6de71ed

Browse files
authored
chore: change name to hepconvert (#53)
* Changed name in code * formatting * update new function * more name changes and adjustments to docs * Changed readthedocs setup * fixing tests
1 parent ff97a75 commit 6de71ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+266
-978
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# odapt
1+
# hepconvert
22

33
[![Actions Status][actions-badge]][actions-link]
44
[![Documentation Status][rtd-badge]][rtd-link]
@@ -12,55 +12,55 @@
1212
<!-- SPHINX-START -->
1313

1414
<!-- prettier-ignore-start -->
15-
[actions-badge]: https://github.com/zbilodea/odapt/workflows/CI/badge.svg
16-
[actions-link]: https://github.com/zbilodea/odapt/actions
17-
[conda-badge]: https://img.shields.io/conda/vn/conda-forge/odapt
18-
[conda-link]: https://github.com/conda-forge/odapt-feedstock
15+
[actions-badge]: https://github.com/zbilodea/hepconvert/workflows/CI/badge.svg
16+
[actions-link]: https://github.com/zbilodea/hepconvert/actions
17+
[conda-badge]: https://img.shields.io/conda/vn/conda-forge/hepconvert
18+
[conda-link]: https://github.com/conda-forge/hepconvert-feedstock
1919
[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github
20-
[github-discussions-link]: https://github.com/zbilodea/odapt/discussions
21-
[pypi-link]: https://pypi.org/project/odapt/
22-
[pypi-platforms]: https://img.shields.io/pypi/pyversions/odapt
23-
[pypi-version]: https://img.shields.io/pypi/v/odapt
24-
[rtd-badge]: https://readthedocs.org/projects/odapt/badge/?version=latest
25-
[rtd-link]: https://odapt.readthedocs.io/en/latest/
20+
[github-discussions-link]: https://github.com/zbilodea/hepconvert/discussions
21+
[pypi-link]: https://pypi.org/project/hepconvert/
22+
[pypi-platforms]: https://img.shields.io/pypi/pyversions/hepconvert
23+
[pypi-version]: https://img.shields.io/pypi/v/hepconvert
24+
[rtd-badge]: https://readthedocs.org/projects/hepconvert/badge/?version=latest
25+
[rtd-link]: https://hepconvert.readthedocs.io/en/latest/
2626

27-
The odapt library is a bridge between columnar file formats, currently **ROOT, and Parquet** and soon eventually include **Feather, and HDF5.** It aims to simplify file conversions in Python, replacing what is usually a multi-step process with one line of code, with builtin features for managing large datasets and choosing compression levels.
27+
The hepconvert library is a bridge between columnar file formats, currently **ROOT, and Parquet** and soon eventually include **Feather, and HDF5.** It aims to simplify file conversions in Python, replacing what is usually a multi-step process with one line of code, with builtin features for managing large datasets and choosing compression levels.
2828

2929
# Installation
3030

31-
odapt can be installed from [PyPI](https://pypi.org/project/odapt) using pip:
31+
hepconvert can be installed from [PyPI](https://pypi.org/project/hepconvert) using pip:
3232

3333
```bash
34-
pip install odapt
34+
pip install hepconvert
3535
```
3636

3737
# Getting started
3838

3939
```python
40-
import odapt as od
40+
import hepconvert
4141

4242
# To merge two or more root files with TTrees,
4343
# and add together any histograms:
44-
od.merge_root("destination.root",
44+
hepconvert.merge_root("destination.root",
4545
["ttree_file1.root", "ttree_file2.root"])
4646

4747

48-
# To add merge files with only histograms:
49-
od.add_histograms("destination.root",
48+
# To add root files with only histograms:
49+
hepconvert.add_histograms("destination.root",
5050
["hist_file1.root", "hist_file2.root"])
5151

5252
```
5353

54-
To run ``hadd_and_merge`` from the command line:
54+
To run ``merge_root`` from the command line:
5555

5656
```bash
57-
odapt hadd-and-merge [options] [OUT_FILE] [IN_FILES]
57+
hepconvert merge-root [options] [OUT_FILE] [IN_FILES]
5858
```
5959

60-
To run ``hadd``:
60+
To run ``add_histograms``:
6161

6262
```bash
63-
odapt add [options] [OUT_FILE] [IN_FILES]
63+
hepconvert add [options] [OUT_FILE] [IN_FILES]
6464
```
6565

6666
Find details on each function's CLI options on the readthedocs.

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
import os
1111
import sys
1212

13-
sys.path.insert(0, os.path.abspath("../../odapt/"))
13+
sys.path.insert(0, os.path.abspath("../../hepconvert/"))
1414

1515

16-
project = "odapt"
16+
project = "hepconvert"
1717
copyright = "2023, Zoë Bilodeau"
1818
author = "Zoë Bilodeau"
1919
release = "1.1.1"
@@ -35,3 +35,5 @@
3535

3636
# Additional stuff
3737
master_doc = "index"
38+
39+
# exec(open("prepare_docstrings.py").read(), dict(globals()))
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
hepconvert.copy_root
2+
====================
3+
4+
Defined in `hepconvert.copy_root <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/copy_root.py>`__ on `line 13 <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/copy_root.py#L13>`__.
5+
6+
.. autofunction:: hepconvert.copy_root.copy_root
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: copy_root
3+
:hidden:
4+
5+
hepconvert.copy_root (module) <hepconvert.copy_root>
6+
hepconvert.copy_root.copy_root <hepconvert.copy_root.copy_root>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
hepconvert.add_histograms
2+
=========================
3+
4+
Defined in `hepconvert.histogram_adding <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/histogram_adding.py>`__ on `line 374 <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/histogram_adding.py#L374>`__.
5+
6+
.. autofunction:: hepconvert.histogram_adding.add_histograms
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: histogram_adding
3+
:hidden:
4+
5+
hepconvert.histogram_adding (module) <hepconvert.histogram_adding>
6+
hepconvert.histogram_adding.add_histograms <hepconvert.histogram_adding.add_histograms>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
hepconvert.merge_root
2+
=====================
3+
4+
Defined in `hepconvert.merge <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/merge.py>`__ on `line 11 <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/merge.py#L11>`__.
5+
6+
.. autofunction:: hepconvert.merge.merge_root

docs/source/hepconvert.merge.toctree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: merge
3+
:hidden:
4+
5+
hepconvert.merge (module) <hepconvert.merge>
6+
hepconvert.merge.merge_root <hepconvert.merge.merge_root>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
hepconvert.parquet_to_root
2+
==========================
3+
4+
Defined in `hepconvert.parquet_to_root <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/parquet_to_root.py>`__ on `line 9 <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/parquet_to_root.py#L9>`__.
5+
6+
.. autofunction:: hepconvert.parquet_to_root.parquet_to_root
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: parquet_to_root
3+
:hidden:
4+
5+
hepconvert.parquet_to_root (module) <hepconvert.parquet_to_root>
6+
hepconvert.parquet_to_root.parquet_to_root <hepconvert.parquet_to_root.parquet_to_root>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
hepconvert.root_to_parquet
2+
==========================
3+
4+
Defined in `hepconvert.root_to_parquet <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/root_to_parquet.py>`__ on `line 9 <https://github.com/zbilodea/hepconvert/blob/5ac970e6e8c7118aa4ff53da106ed5cdd603e538/src/hepconvert/root_to_parquet.py#L9>`__.
5+
6+
.. autofunction:: hepconvert.root_to_parquet.root_to_parquet
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: root_to_parquet
3+
:hidden:
4+
5+
hepconvert.root_to_parquet (module) <hepconvert.root_to_parquet>
6+
hepconvert.root_to_parquet.root_to_parquet <hepconvert.root_to_parquet.root_to_parquet>

docs/source/hepconvert.toctree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. toctree::
2+
:caption: Detailed Reference
3+
:hidden:
4+
5+
hepconvert (module) <hepconvert>
6+
hepconvert.merge.merge_root

docs/source/index.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. odapt documentation master file, created by
1+
.. hepconvert documentation master file, created by
22
sphinx-quickstart on Tue Dec 5 14:19:03 2023.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
@@ -10,28 +10,28 @@
1010
:hidden:
1111

1212

13-
Welcome to odapt's documentation!
14-
=================================
13+
Welcome to hepconvert's documentation!
14+
======================================
1515

16-
``odapt`` is an easy-to-use converter tool for columnar file formats ROOT, Parquet, Feather, and HDF5.
16+
``hepconvert`` is an easy-to-use converter tool for columnar file formats ROOT, Parquet, Feather, and HDF5.
1717
This package aims to allow users to higher control of file conversions (memory management, compression settings, etc.)
1818
all from one function call. We are adding new features at user request, so please share your ideas on our
19-
`github page <https://github.com/zbilodea/odapt/discussions/categories/ideas>`__!
19+
`github page <https://github.com/zbilodea/hepconvert/discussions/categories/ideas>`__!
2020

2121
How to install
2222
==============
23-
odapt can be installed `from PyPI <https://pypi.org/project/odapt>`__ using pip.
23+
hepconvert can be installed `from PyPI <https://pypi.org/project/hepconvert>`__ using pip.
2424

2525
.. code-block:: bash
2626
27-
pip install odapt
27+
pip install hepconvert
2828
29-
odapt is not yet available using conda.
29+
hepconvert is not yet available using conda.
3030

3131
Motivation
3232
**********
3333
Many users are all writing similar blocks of code each time they need to convert columnar files. It takes time to learn how to use different I/O packages,
34-
write code, and work through bugs that may come up in this sometimes finicky process. ``odapt`` allows users to find and call just one function.
34+
write code, and work through bugs that may come up in this sometimes finicky process. ``hepconvert`` allows users to find and call just one function.
3535

3636
Limitations:
3737
************

docs/source/main.toctree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
:caption: Main Interface
33
:hidden:
44

5-
odapt.parquet_to_root.parquet_to_root
6-
odapt.root_to_parquet.root_to_parquet
7-
odapt.copy_root.copy_root
8-
odapt.merge.hadd_and_merge
9-
odapt.histogram_adding.hadd
5+
hepconvert.parquet_to_root.parquet_to_root
6+
hepconvert.root_to_parquet.root_to_parquet
7+
hepconvert.copy_root.copy_root
8+
hepconvert.merge.merge_root
9+
hepconvert.histogram_adding.add_histograms

docs/source/odapt.copy_root.copy_root.rst

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

docs/source/odapt.copy_root.toctree

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

docs/source/odapt.histogram_adding.hadd.rst

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

docs/source/odapt.histogram_adding.toctree

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

docs/source/odapt.merge.hadd_and_merge.rst

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

docs/source/odapt.merge.toctree

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

docs/source/odapt.parquet_to_root.parquet_to_root.rst

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

docs/source/odapt.parquet_to_root.toctree

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

docs/source/odapt.root_to_parquet.root_to_parquet.rst

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

docs/source/odapt.root_to_parquet.toctree

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

docs/source/odapt.toctree

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

0 commit comments

Comments
 (0)