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

Split images based on scene descriptions #27

Merged
merged 15 commits into from
Nov 19, 2015

Conversation

jodreen
Copy link
Contributor

@jodreen jodreen commented Nov 18, 2015

No description provided.

ss = scene_slicer.SceneSlicer(1, "")
ss.generate_scene_desc_dict()
for i in ss.scene_desc:
len(ss.scene_desc[i]) == 2
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this line accomplish? The boolean expression is not being used

@AlonDaks
Copy link
Contributor

Please make sure all files are yapf formatted yapf -i <filename>.py this will fix the >80 character lines

@AlonDaks
Copy link
Contributor

Travis CI is failing bc you are referencing files that are not in the repo. You should create data files specific for testing, and refactor functions so that when u need a file, it's passed in to just the function where its being used that way you can modularly test it

AlonDaks added a commit that referenced this pull request Nov 19, 2015
Split images based on scene descriptions
@AlonDaks AlonDaks merged commit e0f989b into berkeley-stat159:master Nov 19, 2015
[[5, 4], [4, 3]]]])
img = nib.Nifti1Image(data, affine=np.diag([1, 1, 1, 1]))
nib.save(img, 'test_data.nii')
with open('scene.csv', 'w') as csvfile:
Copy link
Contributor

Choose a reason for hiding this comment

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

should be scenes.csv, same on line 23

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

Successfully merging this pull request may close these issues.

None yet

3 participants