Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Mar 20, 2024
1 parent 10be686 commit 35108c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 20 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ requires-python = ">=3.9"
dependencies = [
'pandas',
'numpy',
'dask',
'dask[distributed]',
'dask>=2024.3.0',
'dask[distributed]>=2024.3.0',
'pyarrow',
'pyvo',
'scipy',
Expand Down
1 change: 0 additions & 1 deletion src/tape/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .analysis import * # noqa
from .ensemble import * # noqa
#from .ensemble_frame import * # noqa
from .expr import * # noqa
from .timeseries import * # noqa
from .ensemble_readers import * # noqa
Expand Down
26 changes: 9 additions & 17 deletions tests/tape_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,31 +304,23 @@ def parquet_ensemble_with_divisions():
"""Create an Ensemble from parquet data."""
ens = Ensemble(client=False)

source_ddf = dd.read_parquet("tests/tape_tests/data/source/test_source.parquet",
calculate_divisions=True).repartition(npartitions=3)
object_ddf = dd.read_parquet("tests/tape_tests/data/object/test_object.parquet",
calculate_divisions=True).repartition(npartitions=2)
source_ddf = dd.read_parquet(
"tests/tape_tests/data/source/test_source.parquet", calculate_divisions=True
).repartition(npartitions=3)
object_ddf = dd.read_parquet(
"tests/tape_tests/data/object/test_object.parquet", calculate_divisions=True
).repartition(npartitions=2)

ens.from_dask_dataframe(source_ddf,
ens.from_dask_dataframe(
source_ddf,
object_ddf,
id_col="ps1_objid",
time_col="midPointTai",
band_col="filterName",
flux_col="psFlux",
err_col="psFluxErr",
sorted=True,)
"""
ens.from_parquet(
"tests/tape_tests/data/source/test_source.parquet",
"tests/tape_tests/data/object/test_object.parquet",
id_col="ps1_objid",
time_col="midPointTai",
band_col="filterName",
flux_col="psFlux",
err_col="psFluxErr",
sort=True,
sorted=True,
)
"""

return ens

Expand Down

0 comments on commit 35108c3

Please sign in to comment.