Commit ad3cb6f
Allow Age Group reconciliation between disparate dataframes (#38)
* Generate stubs for Automated V&V Phase 1 (#22)
* first pass at stubbing
* lint
* refine
* Update src/vivarium_testing_utils/automated_validation/interface.py
Co-authored-by: Rajan Mudambi <11376379+rmudambi@users.noreply.github.com>
* change pass to notimplementederror
---------
Co-authored-by: Rajan Mudambi <11376379+rmudambi@users.noreply.github.com>
* Load data from simulation (#23)
* first pass at stubbing
* lint
* refine
* rudimentary data loading from sim
* lint
* add tests and test data
* adjust to epic
* fix a few names
* rename back to dataloader
* modify tests
* lint
* use set instead
* remove build.yml
* use pathlib
* lint
* make dataloader private
* add typing
* add enum
* make methods private
* fix error message
* undo add_comparison, which we will fix later
* punt DataSource to interface
* adjust tests
* Load From Artifact (#24)
* load key from artifact
* minor fixes
* add stub tests
* add test artifact
* lint
* remove top level import
* private attrs
* Add custom data upload (#25)
* add custom upload
* add series type
* adjust error message
* fix missing DataSource
* move raise test to get dataset
* add test for show raw dataset
* lint
* fix test
* copy going into and out of the cache
* lint
* adjust args
* add docstrings to "real" interface methods
* don't copy on cache miss
* wrap in new public method
* add error messages
* Basic Transformations (#26)
* add initial set of basis transformations
* use typevar
* lint
* add missing typing
* remove validation for now based on discussion
* delete validation
* remove import
* change LCT to dicts (#28)
* Reorganize Calculations (#30)
* add data_transformation folder
* add missing folder
* stub out pandera types (#31)
* Refactor test files (#29)
* add code changes
* add binary file changes
* add artifact parsing
* extract DRAW_PREFIX
* lint
* Add Measures for Incidence, Prevalence, Remission (#27)
* add pandera
* add basic calc for index alignment and data filtering
* stub schemas
* add Measures
* start interface for measures
* rename some schema types
* refactor measures
* organize
* specify FuzzyComparison
* add comparison base class
* revert to stub
* add datasets for sim and artifact
* add formatting tests
* bugfixes
* add tests
* make test data formatting consistent
* add tests of measure functions
* cleanup
* transform artifact data
* add artifact fixture
* remove old test dfs
* add tests for comparison
* minor fixes
* lint
* typing
* add docstring
* typing/cleanup
* add docstring
* isort
* use normal dicts instead of LCT
* refactor formatters
* address comments
* beef up tests
* add todos
* make ratio inherit from ABC
* Add Schemas to Data loading and calculation (#32)
* add code changes
* add binary file changes
* add artifact parsing
* add start of schema
* do simdata schema
* add schemas and schema tests
* unstash commit
* change to floats
* add new checks
* new typing
* change to simple float coerce
* revert calculations
* add checks to measures
* missed one
* Update src/vivarium_testing_utils/automated_validation/data_transformation/data_schema.py
Co-authored-by: Steve Bachmeier <23350991+stevebachmeier@users.noreply.github.com>
* change name
* add missing test
* simplify
* ensure index levels are correctly sorted
* address artifact data
* lint
* DRY code
---------
Co-authored-by: Steve Bachmeier <23350991+stevebachmeier@users.noreply.github.com>
* Refactor pandera to use SchemaModel decorators (#36)
* simplest fix
* remove some unused
* wrap decorator so I don't have to do to_schema() all the time
* remove unused imports
* add series to dataframe method
* add specific check for DrawData
* lint
* lint again
* refactor helpers into utils
* remove dupe comment
* move future import
* add shunt for other comparison methods
* basic untested sketch
* add age group draft
* actually raise
* add tests
* remove repr
* remove some unnecessary stuff
* Revert "basic untested sketch"
This reverts commit b3aae1f.
* Revert "add shunt for other comparison methods"
This reverts commit 06d6792.
* rebin magic
* lint
* VTU Mypy (#34)
* type hint for calculations
* in flux
* in progress
* do approximately half of typing
* removoe more series types
* lint
* data_loader
* type measures.py
* fix strats
* type test_interface
* type test_formatting
* type test_data_schema
* refactor patch
* lint
* remove fuzzy checker ignores
* "delete unused types.py file"
* merge changes from refactor and fix
* address comments
* remve ref ro 'fuzzy'
* move error up
* remove trailing commas
* change to collection
* empty commit
* lint
* remove unused import
* Wrapper for Comparison methods (#37)
* add shunt for other comparison methods
* basic untested sketch
* big fixes
* bug fix / rename
* Revert "bug fix / rename"
This reverts commit 9f048bd.
* Revert "big fixes"
This reverts commit 4cc09bb.
* Revert "basic untested sketch"
This reverts commit b3aae1f.
* add skipped tests
* add typing
* add default
* get initial age bins from artifact
* create age schemas in interface
* rename age group col
* refactor test
* do rebin with unstack and dot
* fix age group dunders
* try to load from artifact first
* refactor alignment
* lint
* refactor
* cleanup
* lint
* consolidate naming
* cleanup
* remove check given inconvenient dataframe
* clean up interface tests
* update comment
* stub tests
* remove configurable age groups
* refactor dataframe handling
* add to_dataframe
* replace with format_Dataframe
* special case pop.age_bins
* linting typing
* add more unit tests for age groups
* remove hard-coding of column names
* clean up age group tests
* add test add age groups
* remove align datasets
* typing linting
* add fixtures
* test calcs
* add age bins to artifact
* separate out vivarium deps into separate requirements
* refactor methods to be functions
* add logging statement
* add nonstandard artifact data
* add comments about standard cases
* lint
* change fn mocks
* improve docstrings
* add to test age docstrings
* add transformation log statement
* fix typo
* local import
* change mocking
---------
Co-authored-by: Rajan Mudambi <11376379+rmudambi@users.noreply.github.com>
Co-authored-by: Steve Bachmeier <23350991+stevebachmeier@users.noreply.github.com>1 parent 1d05518 commit ad3cb6f
File tree
12 files changed
+1038
-16
lines changed- src/vivarium_testing_utils/automated_validation
- data_transformation
- tests/automated_validation
- data_transformation
- data/artifacts
12 files changed
+1038
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
114 | | - | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | | - | |
| 132 | + | |
| 133 | + | |
121 | 134 | | |
122 | 135 | | |
123 | 136 | | |
| |||
0 commit comments