Skip to content

Commit

Permalink
IDL comparison tests for contribution functions for various ions (#257)
Browse files Browse the repository at this point in the history
* add test for comparing GoT output to IDL

* ignore more warnings, add optional dependency for running idl tests

* more routines from SSW gen that are needed for running the idl comparison tests

* add cached results of idl comparison tests

* move save function to helpers

* move import

* unpin sphinx

* read_chianti_version now returns packaging.version.Version

* refactor requires_dbase_version marker

* both = and == resolve to np.equal in marker

* added a function for retrieving idl test data

* ignore tests in the idl dir for coverage

* more attempts to ignore the idl tests in coverage

* refactor idl test fixtures such that they use the test data if it is not present

* add test data for comparing to IDL outputs

* generate hash table for whole database

* add asdf to test dependencies

* fix version limit on test

* use only base filename for hash key

* refactor how hashes are handled to account for unreadable files
  • Loading branch information
wtbarnes committed Jan 19, 2024
1 parent 2d8e308 commit 586984f
Show file tree
Hide file tree
Showing 46 changed files with 1,547 additions and 257 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ repos:
- id: check-ast
- id: check-case-conflict
- id: trailing-whitespace
exclude: ".*(.fits|.fts|.fit|.txt|.pro)$"
exclude: ".*(.fits|.fts|.fit|.txt|.pro|.asdf|.json)$"
- id: check-yaml
- id: debug-statements
- id: check-added-large-files
- id: end-of-file-fixer
exclude: ".*(.fits|.fts|.fit|.txt|.pro|.bib|tca.*)$"
exclude: ".*(.fits|.fts|.fit|.txt|.pro|.asdf|.json|.bib|tca.*)$"
- id: mixed-line-ending
exclude: ".*(.fits|.fts|.fit|.txt|.bib|tca.*)$"
exclude: ".*(.fits|.fts|.fit|.txt|.bib|.pro|.asdf|.json|tca.*)$"

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prune fiasco/test/idl/data
prune fiasco/test/idl/ssw_gen_functions

0 comments on commit 586984f

Please sign in to comment.