All notable changes to this project will be documented in this file.
0.2.3 - 2024-12-05
- Add
central
to shortname columns
&
and|
withNone
return originalQ
. Previously,Q(...) | None
would return a query that evaluated toTrue
everywhere.
- List defined operators on
Q
(&
,|
,~
,==
) in the docstring ofCombineQMixin
.
- ensure that
&
and|
withNone
return originalQ
.
0.2.2 - 2024-12-03
- (utils) Add better update func for pandas
- Order of sub-/superlevel inference
- Don't ignore present sub-/superlvl cols
0.2.1 - 2024-11-29
- If an LNL of a patient was unobserved (i.e., all diagnoses
None
), then the methodly.combine()
returnsNone
for that patient's LNL. Fixes #13
- Change the doctest of
ly.combine()
to check whether #13 was fixed.
0.2.0 - 2024-11-14
- Can now combine
Q
withNone
to yieldQ
again. - Add
contains
operator toC
,Q
objects. This calls pandas'str.contains
method.
- Fix wrong name in doctests
- [breaking] Add, rename, delete several methods:
LyDatasetConfig
is now justLyDataset
- the
path
property is nowpath_on_disk
- the
get_url()
method has been removed - the
get_description()
method has been removed - added
get_content_file()
method to fetch and store remove content load()
was renamed toget_dataframe()
- the
repo
argument was changed torepo_name
- (utils) [breaking] Rename
enhance
func toinfer_and_combine_levels
.
- [breaking] Two unused funcs for markdown processing were removed
- (load) [breaking] Drop
join_datasets
, since it's not needed. All it did was runpd.concat(...)
.
0.1.2 - 2024-10-31
- (load) Fix a bug where datasets with multiple subsites (e.g.
2024-umcg-hypopharynx-larynx
) would cause an error because of a missingmaxsplit=2
argument.
0.1.1 - 2024-10-31
- (load) add
get_repo()
method that fetches remote repository information for a `LyDatasetConfig - (load) make authentication more flexible
- (utils) put sub-/superlevel inference in its own utility function
0.1.0 - 2024-10-28
- (utils) Add often needed
enhance
function to complete sub-/superlevel involvement and infer maximum likelihood status.
- Avoid
KeyError
ininfer_superlevels
- Add link to release 0.0.4
infer_su(b|per)levels
skips inferring involvement of sub-/super LNLs that are already present- (load) Rename
skip_disk
touse_github
- (query) Rename
in_
toisin
forC
object
0.0.4 - 2024-10-11
- [breaking] Make several helper functions private (e.g.,
_max_likelihood()
) - (utils) Add more shortname columns, like
surgery
for("patient", "#", "neck_dissection")
- (load) Allow search for datasets at different locations on disk
- (query) Add
C
object for easierQ
creation - (query) Add
in_
toC
object - (validate) Add
transform_to_lyprox
function
- (load) Resolve circular import of
_repo
- Add intersphinx mapping to pandera
- Expand module docstrings
- Update
README.md
with library examples
- Fix failure due to changing order of items in set
- (validate) Add args to renamed validation
- Import useful stuff as top-level
- Make
main()
funcs private
- (load) [breaking]
load_dataset()
not needed, one can just usenext(load_datasets())
0.0.3 - 2024-10-01
- Add method to infer sublevel involvement #2
- Add method to infer superlevel involvement #2
- (load) Allow loading from different repository and/or reference (tag, commit, ...) #4
- Make
align_diagnoses()
safer - Make
combine()
method work as intended - (load) Year may be equal to current year, not only smaller
- Make accessor method docstring more detailed
- Mention panda's
update()
in methods
- Add documentation link to metadata
- Add changelog
- Remove pyright setting (where from?)
- Ignore B028 ruff rule
- Fix inconsistent method name
- Branch '2-infer-sub-and-super-level-involvement' into 'dev'. Closes #2
- Branch '4-allow-loading-from-different-tagsrevisions' into 'dev'. Closes #4
- Rename some temporary variables
- (load) Unused defined error class
0.0.2 - 2024-09-27
- Add some basic logging
- Add
percent
andinvert
to portion
- Ensure intersphinx links work
- Add doctest to
join_datasets()
- Update pre-commit hooks
- Remove dev deps
- Switch to pydantic for dataset definition
- Shorten accessor name to
ly
- Make load funcs/methods clean & consistent
0.0.1 - 2024-08-05
Initial implementation of the lyDATA library.