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

Drop casting to int in units table and introduce fine control over null values in units_table #989

Merged
merged 37 commits into from
Aug 14, 2024

Conversation

h-mayorquin
Copy link
Collaborator

Should close ##960 should come after #985

Base automatically changed from drop_for_good to main August 13, 2024 14:42
@h-mayorquin h-mayorquin marked this pull request as ready for review August 14, 2024 20:14
nwbfile = io.read()
self._test_analyzer_write(self.single_segment_analyzer, nwbfile)
self.assertIn("ElectricalSeriesRaw", nwbfile.acquisition)
# def test_write_sorting_analyzer_to_file(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the plan here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move those to add_methods. There is an error there that I can't really pin down but the test is too wide for me to figure it out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So to clarify, your source code changes here break a current test for write_sorting_analyzer, but we don't know why so the plan is to comment it out and debug separately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. I will solve that after The function write_sorting_analyzer is doing too many things. I want to break appart those tests to the format of the other adds where we test the construction of the nwbfile separated from the wriging and not all bundled up like we do here.

@CodyCBakerPhD CodyCBakerPhD enabled auto-merge (squash) August 14, 2024 20:46
@CodyCBakerPhD CodyCBakerPhD merged commit 40d786a into main Aug 14, 2024
35 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the drop_casting_to_int_in_units_table branch August 14, 2024 22:21
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.25%. Comparing base (b9507bf) to head (510df49).
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #989      +/-   ##
==========================================
- Coverage   91.43%   91.25%   -0.19%     
==========================================
  Files         127      127              
  Lines        7540     7555      +15     
==========================================
  Hits         6894     6894              
- Misses        646      661      +15     
Flag Coverage Δ
unittests 91.25% <100.00%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/neuroconv/tools/spikeinterface/__init__.py 100.00% <ø> (ø)
...c/neuroconv/tools/spikeinterface/spikeinterface.py 95.10% <100.00%> (-0.02%) ⬇️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants