Skip to content

Move functions from notebooks to fusets packages #49

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

soxofaan
Copy link
Member

Issue #46 : move functions from notebooks to real fusets packages/modules

if i_test == 0:

for ind in range(noutput_timeseries):
out_mean[ind][:, None, x, y] = (Yp[:, None, 0] * Y_std_vec[ind] + Y_mean_vec[ind]) / Nt
Copy link
Member Author

Choose a reason for hiding this comment

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

@msalinero (FYI: I copied this from AI4FOOD_OpenEO_MOGPR_S1S2.ipynb )
this line (and 3 other lines) use a variable Nt that is not defined anywhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

as discussed with @msalinero L Nt should be nt here

import numpy as np


def create_empty_2D_list(nrows, ncols):
Copy link
Member Author

@soxofaan soxofaan Apr 14, 2022

Choose a reason for hiding this comment

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

@msalinero : is it necessary to define this function? can't we just use np.zeros((nrows, ncols)) or a python oneliner like [[0] * ncols for _ in range(nrows)] ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@soxofaan So sorry for the very very late response. Indeed it is not necessary. [[0] * ncols for _ in range(nrows)] is tested and works fine.

@soxofaan soxofaan mentioned this pull request Apr 14, 2022
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