Closed handwerkerd closed 9 months ago
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
e91e16f
) 90.96% compared to head (043a9d2
) 90.96%.
Files | Patch % | Lines |
---|---|---|
mapca/mapca.py | 90.90% | 2 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thank you @handwerkerd.
I will have a look later today.
Okay, so I don't know how we can fix the circular import issue to avoid using the relative import.
Do you think it's a critical change @handwerkerd?
I have already removed the unused img
variable from transform()
.
I'm not sure. Locally I'm seeing the error Relative import found Flake8(ABS101)
. It's passing the CircleCI style_check so we don't need to solve this now, but it might be an issue in the near-ish future. tedana
doesn't have anything like this in its __init__.py
so maybe there's a way it's not necessary. When I just got rid of it, problems arose, so it's not that simple.
In checking stuff, I also noticed I didn't update the testing files for style errors & that's fixed in the most recent push (along with added _version.py
to .gitignore
I do see one issue locally that might need to be resolved. In my various messing with things, mapca
is not generating the correct output version info. mapca._version=='0+unknown'
When I run pip install -e .'[all]'
it generates a new _version.py
file but something isn't working.
Okay, I just realized both the relative import and the versioning issues were very silly mistakes.
I noticed we couldn't just remove the dot from the relative import, because it would be trying to import the mapca/
folder. Instead, we had to aim for the mapca.py
in that folder: import mapca.mapca
. Like I said, a silly mistake.
Regarding the versioning, a similar mistake was made. When importing __version__
we were targeting mapca
and not the _version.py
file, which is the one that actually contains the version.
Anyway, those two issues are now fixed. I will approve the PR and will let you merge if you think it's ready.
Closes #63
pyproject.toml
config.yml
(First time I've done this so make sure I didn't mess anything up)config.yml
, but it messed something up so I changed it back.The Flake8 issues were slightly more annoying than just running
Black
. Most were things like removing capital letters from variable names and cleaning up docstrings. Most variable name changes were simple, but one was confusing.Lambda
needed the capital letter removed, butlamba
has other meanings so I changed it tolamba_var
. Also I had to change allprint
statements with.format()
or%
to f-strings.There are two style issues I haven't solved yet:
__init__.py
has a relative import of.mapca
and just changing that tomapca
doesn't seem to solve it.img
. I can fix this one, but wanted to make sure this isn't a sign something else is wrong.