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

update default dipole data #344

Merged
merged 1 commit into from
May 31, 2021

Conversation

rythorpe
Copy link
Contributor

Updates our ground-truth dipole data generated by default.json to address removal of rounding error in cell positioning in #314.

@rythorpe
Copy link
Contributor Author

Is this the right idea @jasmainak?

@jasmainak
Copy link
Collaborator

yeah, this looks fine. Do the tests on the other branch pass with this?

@@ -23,7 +23,7 @@
0.550 -0.6139 -0.0003 -0.6136
0.575 -0.6146 -0.0003 -0.6143
0.600 -0.6153 -0.0003 -0.6150
0.625 -0.6159 -0.0003 -0.6156
0.625 -0.6160 -0.0003 -0.6156
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are these numbers only up to 4th decimal place? Isn't Python numerical accuracy greater?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is just the rounding convention we've always used when writing to dipole .txt files.

Copy link
Collaborator

Choose a reason for hiding this comment

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

right, but our precision for comparison is apparently higher than this. Something to think about in the future. Also, yet another reason to move away from text files. The more precision you add, the more bulky it becomes. Because each character is stored as an ASCII rather than the whole number as a floating point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. What would be a better format?

Copy link
Collaborator

Choose a reason for hiding this comment

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

npy / hdf5 / mat ...

see this for example: bids-standard/bep021#1 (comment)

@rythorpe
Copy link
Contributor Author

yeah, this looks fine. Do the tests on the other branch pass with this?

Yep!

@jasmainak jasmainak merged commit b5ff77c into jonescompneurolab:test_data May 31, 2021
@jasmainak
Copy link
Collaborator

Thanks @rythorpe !

@rythorpe rythorpe deleted the test_data branch May 31, 2021 19:49
@rythorpe rythorpe restored the test_data branch May 31, 2021 19:50
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.

2 participants