Skip to content

Fixing minor issues with plugin-specific tests - #415

Open
shehadak wants to merge 20 commits into
integrate_corefrom
ks/fix-plugin-tests
Open

shehadak wants to merge 20 commits into
integrate_corefrom
ks/fix-plugin-tests

Conversation

@shehadak

Copy link
Copy Markdown
Collaborator

No description provided.

@shehadak
shehadak marked this pull request as draft December 19, 2023 05:13
@shehadak
shehadak force-pushed the ks/fix-plugin-tests branch from 5280445 to 36a4131 Compare December 19, 2023 06:23
@shehadak
shehadak marked this pull request as ready for review December 20, 2023 03:50

@mschrimpf mschrimpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For all functions using store we need the model_identifier -- otherwise it's not going to differentiate between different models.

I am also concerned with the many unexplained changes to scores and hashes -- these should not have changed, unless there is a very good reason.

Comment on lines +68 to +67
def get_firing_rates(model_identifier, model, region, stimulus_identifier, number_of_trials, in_rf):
affine_transformation = firing_rates_affine(model_identifier=model_identifier, model=model, region=region)
def get_firing_rates(model, region, stimulus_identifier, number_of_trials, in_rf):
affine_transformation = firing_rates_affine(model=model, region=region)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this will run into issues with store where it will re-use a previous model's stored firing rates since there is no more model_identifier to separate them. When you revert this, can you add a comment to better explain?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

a60bbc0 reverts model_identifier removals, and 4715a93 adds a comment to explain.

Comment on lines +99 to +98
def filter_receptive_fields(model_identifier, model, region, pos, rf_delta=RF_DELTA):
rf_pos, rf_map = map_receptive_field_locations(model_identifier=model_identifier, model=model, region=region)
def filter_receptive_fields(model, region, pos, rf_delta=RF_DELTA):
rf_pos, rf_map = map_receptive_field_locations(model=model, region=region)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same problem as above

Comment on lines +108 to +106
def map_receptive_field_locations(model_identifier, model: BrainModel, region):
def map_receptive_field_locations(model: BrainModel, region):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same problem as above -- need model_identifier

Comment on lines +157 to +155
def firing_rates_affine(model_identifier, model: BrainModel, region):
def firing_rates_affine(model: BrainModel, region):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same problem as above -- need model_identifier

Comment on lines +168 to +166
in_rf = filter_receptive_fields(model_identifier=model_identifier, model=model, region=region, pos=stim_pos)
in_rf = filter_receptive_fields(model=model, region=region, pos=stim_pos)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

as above

bucket="brainio-brainscore",
csv_sha1="4205eca54974da46accba7812fce25c1b6df58e0",
zip_sha1="ab07880a0770bd73f68bcd5fd34e6cd945ee17fc",
zip_sha1="3eacddfecd825b18026da3e4c749d5d1bc9213ed",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why did the hash change?

identifier="aru.Kuzovkin2018",
version_id="nk5w.m3N1D4fWg2PeY9_AJb5yY6UtPeM",
sha1="5fae8b283a043562ce9925d48ad99db151f39067",
sha1="c3787b30ffdc6816e245a8f8d8f2096d8bf85569",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why hash change?

Comment on lines +32 to +33
csv_sha1="a5990b24aea3e453756141cbe69a83304db72d0b",
zip_sha1="cca4d819d7743bdd4bf65c1cb2439fd0ec97543a",
csv_sha1="f40cbe9f385c2f391952bcc91cec3878a18f0bc4",
zip_sha1="9698c22f30b19d68bbb72195eaefbdf4a5899f57",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why hash change?

identifier="klab.Zhang2018search_obj_array",
version_id="EDRblSpQTmoaKRdiY4JEoQ.1UO8mo0Tk",
sha1="84400dc814b79df8d8eca99a557df5f741cce4b9",
sha1="9357581c4082de3ed5031c914468fd24c57ac9cf",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why hash change?

Comment on lines +22 to +23
csv_sha1="e9c2f6b35b84256242d257e8d36261aa26d3ed4a",
zip_sha1="d92dfb20a87bb9a015c77c2862a215e8fa4f2cc3",
csv_sha1="4808db57a59c44ee4900e2cf914e76bf42c61bcd",
zip_sha1="eab5e52730cc236e71e583a2c401208380dc8628",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why hash change?

@shehadak
shehadak force-pushed the ks/fix-plugin-tests branch 2 times, most recently from 6a14d42 to 4715a93 Compare January 3, 2024 16:09
@mschrimpf mschrimpf mentioned this pull request Jan 5, 2024
8 of 14 tasks
@deirdre-k
deirdre-k self-requested a review July 1, 2024 13:43

This branch has not been deployed

No deployments
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