livelike 1.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- livelike-1.5.1/.ci/py311_livelike_latest.yaml +41 -0
- livelike-1.5.1/.ci/py311_livelike_oldest.yaml +41 -0
- livelike-1.5.1/.ci/py312_livelike_latest.yaml +41 -0
- livelike-1.5.1/.ci/py312_pandas2_livelike_latest.yaml +41 -0
- livelike-1.5.1/.ci/py313_livelike_latest.yaml +41 -0
- livelike-1.5.1/.ci/py314_livelike_dev.yaml +51 -0
- livelike-1.5.1/.ci/py314_livelike_latest.yaml +41 -0
- livelike-1.5.1/.ci/py314_pandas2_livelike_latest.yaml +41 -0
- livelike-1.5.1/.github/workflows/continuous_integration.yml +87 -0
- livelike-1.5.1/.github/workflows/release_to_pypi.yml +45 -0
- livelike-1.5.1/.gitignore +38 -0
- livelike-1.5.1/.pre-commit-config.yaml +10 -0
- livelike-1.5.1/LICENSE +47 -0
- livelike-1.5.1/NOTICE +24 -0
- livelike-1.5.1/PKG-INFO +243 -0
- livelike-1.5.1/README.md +179 -0
- livelike-1.5.1/codecov.yml +23 -0
- livelike-1.5.1/livelike/__init__.py +132 -0
- livelike-1.5.1/livelike/_attribution.py +760 -0
- livelike-1.5.1/livelike/acs.py +1919 -0
- livelike-1.5.1/livelike/attribution.py +48 -0
- livelike-1.5.1/livelike/config.py +484 -0
- livelike-1.5.1/livelike/data/2010_Census_Tract_to_2010_PUMA.zip +0 -0
- livelike-1.5.1/livelike/data/2020_Census_Tract_to_2020_PUMA.zip +0 -0
- livelike-1.5.1/livelike/data/PUMA2010_PUMA2020_crosswalk.csv +6971 -0
- livelike-1.5.1/livelike/data/census2010_tract_geography_changes.zip +0 -0
- livelike-1.5.1/livelike/data/constraints.csv +516 -0
- livelike-1.5.1/livelike/data/rel_ct_2020.parquet +0 -0
- livelike-1.5.1/livelike/est.py +163 -0
- livelike-1.5.1/livelike/homesim.py +236 -0
- livelike-1.5.1/livelike/multi.py +393 -0
- livelike-1.5.1/livelike/pums.py +2138 -0
- livelike-1.5.1/livelike/sae.py +170 -0
- livelike-1.5.1/livelike/tests/attribution_eval_data/eval_data_household.parquet +0 -0
- livelike-1.5.1/livelike/tests/attribution_eval_data/eval_data_person.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/README.md +59 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/almat.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/est_g2.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/est_ind.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/pums_segment_ids.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100100/sporder.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/README.md +59 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/almat.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/est_g2.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/est_ind.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/pums_segment_ids.parquet +0 -0
- livelike-1.5.1/livelike/tests/buildup_0100200/sporder.parquet +0 -0
- livelike-1.5.1/livelike/tests/conftest.py +175 -0
- livelike-1.5.1/livelike/tests/notebook_pmedm_solutions/notebook_pmedm_solutions.pkl +0 -0
- livelike-1.5.1/livelike/tests/pop_synthesis_input/gph.csv +12 -0
- livelike-1.5.1/livelike/tests/pop_synthesis_input/gpp.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/commute.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/emp_stat.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/grade.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/group_quarters_pop.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/housing_units.csv +12 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/occhu.csv +12 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/population.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/school.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/sex.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/sexcw.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/sexnaics.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/sexocc.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/tenure_vehicles.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/travel.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/veh_occ.csv +26 -0
- livelike-1.5.1/livelike/tests/prepared_constraints/worked.csv +26 -0
- livelike-1.5.1/livelike/tests/puma/est_bg.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/est_ind.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/est_trt.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/se_bg.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/se_trt.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/sporder.parquet +0 -0
- livelike-1.5.1/livelike/tests/puma/wt.parquet +0 -0
- livelike-1.5.1/livelike/tests/super_tract_expected/super_tract_expected.zip +0 -0
- livelike-1.5.1/livelike/tests/supplementary_api_wrapper_extracts/ext1.parquet +0 -0
- livelike-1.5.1/livelike/tests/supplementary_api_wrapper_extracts/ext2.parquet +0 -0
- livelike-1.5.1/livelike/tests/supplementary_api_wrapper_extracts/ext3.parquet +0 -0
- livelike-1.5.1/livelike/tests/supplementary_api_wrapper_extracts/ext4.parquet +0 -0
- livelike-1.5.1/livelike/tests/test_acs_build_acs_sf_inputs.py +215 -0
- livelike-1.5.1/livelike/tests/test_acs_build_puma.py +80 -0
- livelike-1.5.1/livelike/tests/test_acs_build_puma_incremental.py +91 -0
- livelike-1.5.1/livelike/tests/test_acs_cache.py +74 -0
- livelike-1.5.1/livelike/tests/test_acs_constraint_ordering.py +1893 -0
- livelike-1.5.1/livelike/tests/test_acs_constraint_uni_pop_errors.py +124 -0
- livelike-1.5.1/livelike/tests/test_acs_extract_geographies.py +194 -0
- livelike-1.5.1/livelike/tests/test_acs_extract_pums.py +174 -0
- livelike-1.5.1/livelike/tests/test_acs_get_vre_tables.py +11 -0
- livelike-1.5.1/livelike/tests/test_acs_helpers.py +94 -0
- livelike-1.5.1/livelike/tests/test_acs_puma_super_tracts.py +158 -0
- livelike-1.5.1/livelike/tests/test_acs_select_constraints.py +666 -0
- livelike-1.5.1/livelike/tests/test_acs_supplementary_api_wrappers.py +50 -0
- livelike-1.5.1/livelike/tests/test_attribution.py +948 -0
- livelike-1.5.1/livelike/tests/test_est.py +193 -0
- livelike-1.5.1/livelike/tests/test_homesim.py +161 -0
- livelike-1.5.1/livelike/tests/test_homesim_pop_synthesis.py +120 -0
- livelike-1.5.1/livelike/tests/test_multi_extract_pums.py +147 -0
- livelike-1.5.1/livelike/tests/test_multi_make_pumas.py +40 -0
- livelike-1.5.1/livelike/tests/test_multi_make_replicate_pumas.py +101 -0
- livelike-1.5.1/livelike/tests/test_multi_synthesize.py +90 -0
- livelike-1.5.1/livelike/tests/test_notebook_solutions.py +84 -0
- livelike-1.5.1/livelike/tests/test_pums.py +708 -0
- livelike-1.5.1/livelike/tests/test_utils.py +40 -0
- livelike-1.5.1/livelike/utils.py +39 -0
- livelike-1.5.1/livelike.egg-info/PKG-INFO +243 -0
- livelike-1.5.1/livelike.egg-info/SOURCES.txt +131 -0
- livelike-1.5.1/livelike.egg-info/dependency_links.txt +1 -0
- livelike-1.5.1/livelike.egg-info/requires.txt +47 -0
- livelike-1.5.1/livelike.egg-info/top_level.txt +1 -0
- livelike-1.5.1/notebooks/basic_usage.ipynb +1536 -0
- livelike-1.5.1/notebooks/basic_usage_2020s.ipynb +2073 -0
- livelike-1.5.1/notebooks/basic_usage__pums_replicates.ipynb +619 -0
- livelike-1.5.1/notebooks/multi_puma.ipynb +542 -0
- livelike-1.5.1/notebooks/tract_supertract_2019.ipynb +1653 -0
- livelike-1.5.1/notebooks/tract_supertract_2023.ipynb +2189 -0
- livelike-1.5.1/publication_materials/README.md +42 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/ensembles_usrse_2025.ipynb +3025 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/py312_livelike_usrse_2025_env.yaml +34 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_bg_est.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_bg_moe.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_household.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_person.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_trt_est.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/constraints_4701501_trt_moe.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/vre_2023_47_B01001.parquet +0 -0
- livelike-1.5.1/publication_materials/usrse_2025/notebook/replicate_demo_cache/vre_2023_47_B11002.parquet +0 -0
- livelike-1.5.1/pyproject.toml +118 -0
- livelike-1.5.1/setup.cfg +4 -0
- livelike-1.5.1/utilities/prep_test_build_puma.py +58 -0
- livelike-1.5.1/utilities/prep_test_notebook_solutions.py +192 -0
- livelike-1.5.1/utilities/regenerate_test_data.sh +4 -0
- livelike-1.5.1/utilities/regenerate_test_puma_super_tracts.ipynb +142 -0
- livelike-1.5.1/utilities/run_tests.sh +3 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py311_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.11
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- git
|
|
16
|
+
- jax>=0.4.31
|
|
17
|
+
- jaxlib>=0.4.31
|
|
18
|
+
- jaxopt>=0.8.3
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas
|
|
24
|
+
- pip
|
|
25
|
+
- pyarrow
|
|
26
|
+
- pygris
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py311_livelike_oldest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.11
|
|
10
|
+
- awkward=2.6.2
|
|
11
|
+
- ca-certificates>=2025.10.5 # see gh#97
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas=1.1
|
|
15
|
+
- git
|
|
16
|
+
- jax>=0.4.31
|
|
17
|
+
- jaxlib>=0.4.31
|
|
18
|
+
- jaxopt>=0.8.3
|
|
19
|
+
- libpysal=4.12.1
|
|
20
|
+
- multiprocess>=0.70.15
|
|
21
|
+
- networkx=3.2.1
|
|
22
|
+
- numpy=1.26.4
|
|
23
|
+
- pandas=2.2.1
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy=1.12.0
|
|
28
|
+
- shapely=2.0
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py312_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.12
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- jax>=0.5.3
|
|
16
|
+
- jaxlib>=0.5.3
|
|
17
|
+
- jaxopt>=0.8.3
|
|
18
|
+
- git
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py312_pandas2_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.12
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- jax>=0.5.3
|
|
16
|
+
- jaxlib>=0.5.3
|
|
17
|
+
- jaxopt>=0.8.3
|
|
18
|
+
- git
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas=2
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py313_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.13
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- git
|
|
16
|
+
- jax>=0.5.3
|
|
17
|
+
- jaxlib>=0.5.3
|
|
18
|
+
- jaxopt>=0.8.3
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#########################################################################################
|
|
2
|
+
# Install all versions from ** bleeding edge git repo or nightly builds where possible **
|
|
3
|
+
#########################################################################################
|
|
4
|
+
|
|
5
|
+
name: py312_livelike_dev
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.12
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- dill
|
|
13
|
+
- cython
|
|
14
|
+
- deprecation
|
|
15
|
+
- geos
|
|
16
|
+
- git
|
|
17
|
+
- multiprocess
|
|
18
|
+
- pip
|
|
19
|
+
- pyarrow
|
|
20
|
+
# tests
|
|
21
|
+
- pre-commit
|
|
22
|
+
- pytest
|
|
23
|
+
- pytest-cov
|
|
24
|
+
- pytest-xdist
|
|
25
|
+
- ruff
|
|
26
|
+
- setuptools_scm
|
|
27
|
+
- tqdm
|
|
28
|
+
- watermark
|
|
29
|
+
# pip installations
|
|
30
|
+
- pip:
|
|
31
|
+
# nightly build versions
|
|
32
|
+
- --pre \
|
|
33
|
+
--extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple \
|
|
34
|
+
--extra-index-url https://pypi.org/simple
|
|
35
|
+
- awkward
|
|
36
|
+
- jax>=0.5.3
|
|
37
|
+
- jaxlib>=0.5.3
|
|
38
|
+
- jaxopt>=0.8.3
|
|
39
|
+
- matplotlib
|
|
40
|
+
- networkx
|
|
41
|
+
- numpy
|
|
42
|
+
- pandas
|
|
43
|
+
- scipy
|
|
44
|
+
- shapely
|
|
45
|
+
# bleeding edge versions
|
|
46
|
+
- git+https://github.com/geopandas/geopandas.git@main
|
|
47
|
+
- git+https://github.com/pysal/libpysal.git@main
|
|
48
|
+
- git+https://github.com/walkerke/pygris.git@main
|
|
49
|
+
# bleeding Likeness ecosystem
|
|
50
|
+
- git+https://github.com/likeness-pop/likeness-vitals.git@develop
|
|
51
|
+
- git+https://github.com/likeness-pop/pymedm.git@develop
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py314_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.14
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- git
|
|
16
|
+
- jax>=0.5.3
|
|
17
|
+
- jaxlib>=0.5.3
|
|
18
|
+
- jaxopt>=0.8.3
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#########################################################################
|
|
2
|
+
# Install all versions from ** conda through micromamba where possible **
|
|
3
|
+
#########################################################################
|
|
4
|
+
|
|
5
|
+
name: py314_pandas2_livelike_latest
|
|
6
|
+
channels:
|
|
7
|
+
- conda-forge
|
|
8
|
+
dependencies:
|
|
9
|
+
- python=3.14
|
|
10
|
+
- awkward
|
|
11
|
+
- ca-certificates
|
|
12
|
+
- deprecation
|
|
13
|
+
- dill
|
|
14
|
+
- geopandas
|
|
15
|
+
- git
|
|
16
|
+
- jax>=0.5.3
|
|
17
|
+
- jaxlib>=0.5.3
|
|
18
|
+
- jaxopt>=0.8.3
|
|
19
|
+
- libpysal
|
|
20
|
+
- multiprocess
|
|
21
|
+
- networkx
|
|
22
|
+
- numpy
|
|
23
|
+
- pandas=2
|
|
24
|
+
- pygris
|
|
25
|
+
- pip
|
|
26
|
+
- pyarrow
|
|
27
|
+
- scipy
|
|
28
|
+
- shapely
|
|
29
|
+
- tqdm
|
|
30
|
+
# tests
|
|
31
|
+
- pre-commit
|
|
32
|
+
- pytest
|
|
33
|
+
- pytest-cov
|
|
34
|
+
- pytest-xdist
|
|
35
|
+
- ruff
|
|
36
|
+
- setuptools_scm
|
|
37
|
+
- watermark
|
|
38
|
+
- pip:
|
|
39
|
+
# Likeness ecosystem <<< move to above conda section once pymedm available there
|
|
40
|
+
- likeness_vitals
|
|
41
|
+
- pymedm
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Continuous Integration
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [develop]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- "*"
|
|
10
|
+
schedule:
|
|
11
|
+
- cron: "59 23 * * *"
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
inputs:
|
|
14
|
+
version:
|
|
15
|
+
description: Manual CI Run
|
|
16
|
+
default: test
|
|
17
|
+
required: false
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
tests:
|
|
21
|
+
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
|
|
22
|
+
runs-on: ${{ matrix.os }}
|
|
23
|
+
timeout-minutes: 60
|
|
24
|
+
env:
|
|
25
|
+
CENSUS_API_KEY: ${{ secrets.CENSUS_API_KEY }}
|
|
26
|
+
strategy:
|
|
27
|
+
matrix:
|
|
28
|
+
os: [ubuntu-latest]
|
|
29
|
+
environment-file: [
|
|
30
|
+
py311_livelike_oldest,
|
|
31
|
+
py311_livelike_latest,
|
|
32
|
+
py312_livelike_latest,
|
|
33
|
+
py312_pandas2_livelike_latest,
|
|
34
|
+
py313_livelike_latest,
|
|
35
|
+
py314_livelike_latest,
|
|
36
|
+
py314_pandas2_livelike_latest,
|
|
37
|
+
py314_livelike_dev,
|
|
38
|
+
]
|
|
39
|
+
include:
|
|
40
|
+
- environment-file: py314_livelike_latest
|
|
41
|
+
os: macos-latest # Apple Silicon
|
|
42
|
+
- environment-file: py314_pandas2_livelike_latest
|
|
43
|
+
os: macos-latest # Apple Silicon
|
|
44
|
+
fail-fast: false
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
defaults:
|
|
48
|
+
run:
|
|
49
|
+
shell: bash -l {0}
|
|
50
|
+
|
|
51
|
+
steps:
|
|
52
|
+
- name: checkout repo
|
|
53
|
+
uses: actions/checkout@v6
|
|
54
|
+
with:
|
|
55
|
+
fetch-depth: 0 # Fetch all history for all branches and tags.
|
|
56
|
+
|
|
57
|
+
- name: setup micromamba
|
|
58
|
+
uses: mamba-org/setup-micromamba@v2
|
|
59
|
+
with:
|
|
60
|
+
environment-file: .ci/${{ matrix.environment-file }}.yaml
|
|
61
|
+
micromamba-version: "latest"
|
|
62
|
+
|
|
63
|
+
- name: install package
|
|
64
|
+
run: "pip install -e . --no-cache-dir --no-deps"
|
|
65
|
+
|
|
66
|
+
- name: spatial versions
|
|
67
|
+
run: 'python -c "import geopandas; geopandas.show_versions();"'
|
|
68
|
+
|
|
69
|
+
- name: run tests
|
|
70
|
+
run: |
|
|
71
|
+
pytest \
|
|
72
|
+
livelike/ \
|
|
73
|
+
--verbose \
|
|
74
|
+
-r a \
|
|
75
|
+
--numprocesses logical \
|
|
76
|
+
--color yes \
|
|
77
|
+
--cov livelike \
|
|
78
|
+
--cov-append \
|
|
79
|
+
--cov-report term-missing \
|
|
80
|
+
--cov-report xml . \
|
|
81
|
+
--env ${{ matrix.environment-file }} \
|
|
82
|
+
--local False
|
|
83
|
+
|
|
84
|
+
- name: codecov
|
|
85
|
+
uses: codecov/codecov-action@v5
|
|
86
|
+
with:
|
|
87
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Publish to PyPI / GitHub
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "v*"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-n-publish:
|
|
11
|
+
name: Build and publish to PyPI
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write # MANDATORY for trusted publishing to PyPI
|
|
15
|
+
contents: write # MANDATORY for the Github release action
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v6
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Set up Python
|
|
23
|
+
uses: actions/setup-python@v6
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.x"
|
|
26
|
+
|
|
27
|
+
- name: Build source and wheel distributions
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install --upgrade build twine
|
|
31
|
+
python -m build
|
|
32
|
+
twine check --strict dist/*
|
|
33
|
+
|
|
34
|
+
- name: Create Release Notes
|
|
35
|
+
uses: actions/github-script@v8
|
|
36
|
+
with:
|
|
37
|
+
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
38
|
+
script: |
|
|
39
|
+
await github.request(`POST /repos/${{ github.repository }}/releases`, {
|
|
40
|
+
tag_name: "${{ github.ref }}",
|
|
41
|
+
generate_release_notes: true
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
- name: Publish distribution to PyPI
|
|
45
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
temp/*
|
|
2
|
+
acs_cache/*
|
|
3
|
+
acs_cache/temp.txt
|
|
4
|
+
acs_cache/.ipynb_checkpoints/*
|
|
5
|
+
notebooks/livelike_acs_cache/*
|
|
6
|
+
notebooks/replicate_demo_cache/*
|
|
7
|
+
|
|
8
|
+
.coverage*
|
|
9
|
+
|
|
10
|
+
*.swp
|
|
11
|
+
*.pyc
|
|
12
|
+
.rope*
|
|
13
|
+
.ipynb_checkpoints/*
|
|
14
|
+
.ipynb_checkpoints
|
|
15
|
+
*/.ipynb_checkpoints/*
|
|
16
|
+
demo/.ipynb_checkpoints/*
|
|
17
|
+
.DS_Store
|
|
18
|
+
*.egg
|
|
19
|
+
*.egg-info
|
|
20
|
+
dist
|
|
21
|
+
build
|
|
22
|
+
eggs
|
|
23
|
+
parts
|
|
24
|
+
bin
|
|
25
|
+
var
|
|
26
|
+
sdist
|
|
27
|
+
develop-eggs
|
|
28
|
+
.installed.cfg
|
|
29
|
+
lib
|
|
30
|
+
lib64
|
|
31
|
+
__pycache__
|
|
32
|
+
|
|
33
|
+
*.log
|
|
34
|
+
|
|
35
|
+
*.coverage
|
|
36
|
+
coverage.xml
|
|
37
|
+
|
|
38
|
+
*censusapikey.txt*
|
livelike-1.5.1/LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Copyright (c) 2025, UT-Battelle, LLC and Battelle Memorial Institute.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Open Source License:
|
|
5
|
+
|
|
6
|
+
Subject to the conditions of this License, UT-Battelle, LLC and Battelle
|
|
7
|
+
Memorial Institute hereby grant, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), a
|
|
9
|
+
perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
10
|
+
copyright license to use, copy, modify, merge, publish, distribute, and/or
|
|
11
|
+
sublicense copies of the Software.
|
|
12
|
+
|
|
13
|
+
1. Redistributions of Software must retain the above open source license grant,
|
|
14
|
+
copyright and license notices, this list of conditions, and the disclaimer
|
|
15
|
+
listed below. Changes or modifications to, or derivative works of the
|
|
16
|
+
Software must be noted with comments and the contributor and organization’s
|
|
17
|
+
name. If the Software is protected by a proprietary trademark owned by
|
|
18
|
+
UT-Battelle, LLC or Battelle Memorial Institute or the Department of Energy,
|
|
19
|
+
then derivative works of the Software may not be distributed using the
|
|
20
|
+
trademark without the prior written approval of the trademark owner.
|
|
21
|
+
|
|
22
|
+
2. Neither the names of Licensor nor the Department of Energy may be used to
|
|
23
|
+
endorse or promote products derived from this Software without their specific
|
|
24
|
+
prior written permission.
|
|
25
|
+
|
|
26
|
+
3. The Software, with or without modification, must include the following
|
|
27
|
+
acknowledgment: "This product includes software produced by UT-Battelle, LLC
|
|
28
|
+
under Contract No. DE-AC05-00OR22725 and Battelle Memorial Institute under
|
|
29
|
+
Contract No. DE-AC05-76RL01830 with the Department of Energy.”
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
-------------------------------------------------------------------------------
|
|
34
|
+
|
|
35
|
+
DISCLAIMER:
|
|
36
|
+
|
|
37
|
+
UT-BATTELLE, LLC, BATTELLE MEMORIAL INSTITUTE, AND THE GOVERNMENT MAKE NO
|
|
38
|
+
REPRESENTATIONS AND DISCLAIM ALL WARRANTIES, BOTH EXPRESSED AND IMPLIED.
|
|
39
|
+
THERE ARE NO EXPRESS OR IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
|
|
40
|
+
A PARTICULAR PURPOSE, OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY
|
|
41
|
+
PATENT, COPYRIGHT, TRADEMARK, OR OTHER PROPRIETARY RIGHTS, OR THAT THE SOFTWARE
|
|
42
|
+
WILL ACCOMPLISH THE INTENDED RESULTS OR THAT THE SOFTWARE OR ITS USE WILL NOT
|
|
43
|
+
RESULT IN INJURY OR DAMAGE. THE USER ASSUMES RESPONSIBILITY FOR ALL
|
|
44
|
+
LIABILITIES, PENALTIES, FINES, CLAIMS, CAUSES OF ACTION, AND COSTS AND
|
|
45
|
+
EXPENSES, CAUSED BY, RESULTING FROM OR ARISING OUT OF, IN WHOLE OR IN PART
|
|
46
|
+
THE USE, STORAGE OR DISPOSAL OF THE SOFTWARE.
|
|
47
|
+
|
livelike-1.5.1/NOTICE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Disclaimer:
|
|
2
|
+
|
|
3
|
+
This material was prepared as an account of work sponsored by an agency of the
|
|
4
|
+
United States Government. Neither the United States Government nor the United
|
|
5
|
+
States Department of Energy, nor UT-Battelle, nor Battelle Memorial Institute
|
|
6
|
+
nor any of their employees, nor any jurisdiction or organization that has
|
|
7
|
+
cooperated in the development of these materials, makes any warranty, express
|
|
8
|
+
or implied, or assumes any legal liability or responsibility for the accuracy,
|
|
9
|
+
completeness, or usefulness or any information, apparatus, product, software,
|
|
10
|
+
or process disclosed, or represents that its use would not infringe privately
|
|
11
|
+
owned rights.
|
|
12
|
+
|
|
13
|
+
Reference herein to any specific commercial product, process, or service by
|
|
14
|
+
trade name, trademark, manufacturer, or otherwise does not necessarily
|
|
15
|
+
constitute or imply its endorsement, recommendation, or favoring by the United
|
|
16
|
+
States Government or any agency thereof, or UT Batelle or Battelle Memorial
|
|
17
|
+
Institute. The views and opinions of authors expressed herein do not
|
|
18
|
+
necessarily state or reflect those of the United States Government or any
|
|
19
|
+
agency thereof.
|
|
20
|
+
|
|
21
|
+
OAK RIDGE NATIONAL LABORATORY
|
|
22
|
+
operated by UT-BATTELLE for the
|
|
23
|
+
UNITED STATES DEPARTMENT OF ENERGY
|
|
24
|
+
under Contract DE-AC05-00OR22725
|