Skip to content

Conversation

@momchil-flex
Copy link
Collaborator

No description provided.

"""
center = tuple((pt_min + pt_max / 2.0) for pt_min, pt_max in zip(rmin, rmax))
size = tuple((pt_max - pt_max) for pt_min, pt_max in zip(rmin, rmax))
center = tuple((pt_min + pt_max) / 2.0 for pt_min, pt_max in zip(rmin, rmax))
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch on this 🤦

# pylint:enable=line-too-long

version: str = '0.2.0' # will make this more automated later
version: str = "0.2.0" # will make this more automated later
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do you think of hardcoding the version number here, I think eventually we might want it somewhere else but this was a quick fix I made for the GUI guys

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to discuss separately, I don't understand all the implications and needs...

"""

type: Literal["PlaneWave"] = "PlaneWave"
pol_angle: float = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we constraining pol_angle at all? to 0 -2pi or just letting it wrap?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Doesn't matter on the backend so I guess no need to constrain?

"z": plane_coords.z,
"f": np.array([self.freq]),
}
data_dict[field_name] = xr.DataArray(field, coords=coords)
Copy link
Collaborator

Choose a reason for hiding this comment

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

so, did this end up working? seems to suffer from the 'single data point in one dimension' issue we discussed yesterday? or is it fixed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm assuming we just need to make sure field has dimensions (Nx, Ny, Nz, Nf) and we should be good to go?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes to your second comment. This currently passes tests. The modes part of the code is yet to change significantly, these are just some leftover changes from when I first looked at it some time ago. The issue yesterday was in another part of the code on the backend.

Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

looks good, just want to clear up the things I commented about, otherwise we can merge if tests pass. Thanks!

@tylerflex tylerflex merged commit 2539c89 into develop Jan 11, 2022
@momchil-flex momchil-flex deleted the core/modes branch January 17, 2022 22:46
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