Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error if no contexts #154

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Error if no contexts #154

merged 4 commits into from
Dec 5, 2024

Conversation

ehwenk
Copy link
Collaborator

@ehwenk ehwenk commented Mar 13, 2024

Fixing two small tests errors:

  • error is no contexts
  • test for unit_in in unit_conversions.csv isn't correct - we don't expect this behaviour always.

Should merge in, because I'd already forgotten I'd fixed the contexts error once and just did it a second time...

solves issue #150
Remove check for units in unit_conversions - this isn't expected. The `unit_in` field can also be a data.csv column. Or there can be units that are used, but happen to not be in the unit_conversions because there aren't any instances where they require converting.

Noted in  issue #146 as well.
@ehwenk ehwenk merged commit 129dcf5 into develop Dec 5, 2024
3 checks passed
@ehwenk ehwenk deleted the error-if-no-contexts branch December 5, 2024 20:36
ehwenk added a commit that referenced this pull request Dec 19, 2024
-    traits.build paper published in Sep 2024 in Ecological Informatics (DOI: 10.1016/j.ecoinf.2024.102773)
-    Minor updates to ontology, which is now version 1.0.0
-    Added standard error and standard deviation as value types
    Moved functions to austraits package and made austraits package a dependancy
    Renamed some of the functions that are now moved to austraits package
        bind_databases <-- build_combine
        convert_df_to_list <-- util_df_to_list
        convert_list_to_df1 <-- util_list_to_df1
        convert_list_to_df2 <-- util_list_to_df2
    Renamed functions still also assigned their old name, with a deprecation warning indicating the new name
    plot_trait_distribution_beeswarm, trait_pivot_longer and trait_pivot_wider had been in both austraits and traits.build packages and have now been removed from traits.build
    Import new austraits function flatten_database (had been suggested to be database_create_combined_table)
    Refactoring of test functions used by dataset_test
    Added tests using the dataset_test function, so it is checked explicitly by traits.build (run on Example datasets)
    Minor bug fixes

Issues addressed since last traits.build release:

Issue #150 & Issue #154 (error if no contexts)
Issue #179 (incorrect test written that flagged an error if input/output units identical)
Issue #171 (SE required as a value type)
Issue #131 (remove duplicate functions)
Issue #183 (deprecated function still being used)
Issue #185 (context table columns mis-ordered, dataset test failing)
Issue #143 (add dataset_test tests)
---------

Co-authored-by: Daniel Falster <[email protected]>
Co-authored-by: Fonti Kar <[email protected]>
Co-authored-by: Sophie Yang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants