fix(phenotypes): Correct GCS path construction#816
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #816 +/- ##
==========================================
- Coverage 95.97% 92.08% -3.90%
==========================================
Files 47 49 +2
Lines 4699 4939 +240
==========================================
+ Hits 4510 4548 +38
- Misses 189 391 +202 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jonbrenas
left a comment
There was a problem hiding this comment.
It looks correct to me. CodeCov is having fits at times, it can mostly be ignored. More importantly, I would recommend to use inheritance (say from AnophelesSampleMetadata) to avoid having to redefine private fields (such as _url) that are going to be inferred from the Ag3 constructor anyways.
|
Hi @jonbrenas , from typing import TYPE_CHECKING
if TYPE_CHECKING:
_url: str
_fs: fsspec.AbstractFileSystem
# ... other expected fieldsThis avoids redefining private fields (they're only declared for type checking) while preventing the inheritance conflicts. Do you think this approach is acceptable, or would you prefer I investigate the inheritance issues further? |
|
Thanks @mohamed-laarej. If type-checking works, go with that. We will have to modify the code to use inheritance at some point (to make sure that the package stays (somewhat) consistent) but there are better things for you to spend your time on. |
|
Hi @jonbrenas , I've implemented the |
b4810b7 to
6dfba05
Compare
Re: issue #815