[go: nahoru, domu]

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

Add Scipy example #474

Merged
merged 5 commits into from
Aug 24, 2016
Merged

Add Scipy example #474

merged 5 commits into from
Aug 24, 2016

Conversation

waprin
Copy link
Contributor
@waprin waprin commented Aug 23, 2016

I tried to keep this pretty simple just to demonstrate it works on Flex.

Could use GCS to make it a little less clumsy but leaned towards simplicity.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 23, 2016
@cloud-dpe-jenkins
Copy link

Hmm

@cloud-dpe-jenkins
Copy link

I also love scipy!

@waprin
Copy link
Contributor Author
waprin commented Aug 23, 2016

test3

@cloud-dpe-jenkins
Copy link

Starting a new build on Jenkins!

@cloud-dpe-jenkins
Copy link

test4

@cloud-dpe-jenkins
Copy link

Build finished.

@@ -19,3 +19,4 @@ secrets.tar
junit.xml
credentials.dat
.nox
appengine/flexible/scipy/assets/resized_google_logo.jpg
Copy link
Contributor

Choose a reason for hiding this comment

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

Just add this to the .gitignore in /appengine/flexible/scipy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@waprin waprin merged commit c8cfbe2 into master Aug 24, 2016
app_path = os.path.dirname(os.path.realpath(__file__))
image_path = os.path.join(app_path, 'assets/google_logo.jpg')
img = scipy.misc.imread(image_path)
img_tinted = scipy.misc.imresize(img, (300, 300))
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps img_resized instead? Also, update the comment in line 34

Copy link
Contributor

Choose a reason for hiding this comment

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

It's been merged and Bill's at burning man, man. Send a PR if you feel strongly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Just catching up on email 😅

@theacodes theacodes deleted the scipy2 branch August 29, 2016 18:09
img = scipy.misc.imread(image_path)
img_tinted = scipy.misc.imresize(img, (300, 300))
output_image_path = os.path.join(
app_path, 'assets/resized_google_logo.jpg')
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably unnecessary to have the resized file checked in, since that's what you're generating..

Sita04 pushed a commit that referenced this pull request Feb 7, 2023
* feat: Add support for python 3.11

chore: Update gapic-generator-python to v1.8.0
PiperOrigin-RevId: 500768693

Source-Link: googleapis/googleapis@190b612

Source-Link: https://github.com/googleapis/googleapis-gen/commit/7bf29a414b9ecac3170f0b65bdc2a95705c0ef1a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2JmMjlhNDE0YjllY2FjMzE3MGYwYjY1YmRjMmE5NTcwNWMwZWYxYSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants