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

Fix two failed unit tests and three mypy errors #85

Merged
merged 15 commits into from
Oct 29, 2024

Conversation

HannoSpreeuw
Copy link
Collaborator

Fixes #81 and #82

I guess this method is a remnant from the time that the parent class (DataAccessor) had self.header defined. This is apparently no longer the case.
Will also be tackled when we fix #56, i.e. then the entire ObjectContainer class may be removed.
It should have been 'casa.table' instead of 'aartfaac.table'. This explains why the unit test failed. That folder had not yet been copied into PySE from TraP.
At a later stage we may want to introduce a separate 'test/data/accessors' subdirectory, mimicking 'tkp/tests/data/accessors' in TraP.
Should fix #81. Also reformat to stay within 80 characters per line. Comments should start with '# ' (space included).
'accessors' subdirectory within 'test/data', to make the test data more manageable. This mimicks the original setup of test data in TraP.
'test/data'. Also following linter recommendation to turn instance method into static method.
within 'test/data'. Also some reformatting, adhering to the max. 80 characters per line protocol.
Skiping tests was a workaround until we decided how to handle
datasets.  We are simply adding them to the repo since they don't
change.
test/test_casatable.py Show resolved Hide resolved
test/test_detection.py Outdated Show resolved Hide resolved
test/test_detection.py Outdated Show resolved Hide resolved
test/test_fitsblob.py Outdated Show resolved Hide resolved
@HannoSpreeuw
Copy link
Collaborator Author

Not sure if this PR should precede #87 .

PR #87 has a lot of numpy.--> np.conversions, not sure if these can cause any issues.

@suvayu
Copy link
Collaborator

suvayu commented Oct 29, 2024

Not sure if this PR should precede #87 .

I'll do an offline merge, in case there are conflicts.

@suvayu
Copy link
Collaborator

suvayu commented Oct 29, 2024

Ah no, I misunderstood the PR. I'll merge this first, then we can look at #87 if there are conflicts.

@suvayu suvayu merged commit 452572c into master Oct 29, 2024
6 checks passed
@suvayu suvayu deleted the fix_two_failed_unit_tests_and_three_mypy_errors branch October 29, 2024 11:58
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.

Fix failing tests moved from TraP
2 participants