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

Main user interface #45

Closed
cmp0xff opened this issue Mar 27, 2024 · 0 comments · Fixed by #75
Closed

Main user interface #45

cmp0xff opened this issue Mar 27, 2024 · 0 comments · Fixed by #75
Assignees
Labels
help wanted Extra attention is needed meta

Comments

@cmp0xff
Copy link
Collaborator

cmp0xff commented Mar 27, 2024

Let us say we have a model of electromagnetic field $A(t, \vec{x})$. I would imagine a user generate a sample of space-time points ${(t, \vec x)}$ him/herself as a numpy array samp, and call the instance of our model by inserting samp into the __call__ method of our model.

From this perspective, it is sufficient for our harmonic oscillator, or pendulum, to have one parameter $t$, and let the user insert either one time quantity, or an array of time quantities, generating the position.

We can make alternative interfaces, e.g. in the pendulum, I can imagine we insert the angle $\theta$, and generate the auxiliary variable $u$ and time $t$. Or inserting $u$, generating $\theta$ and $t$.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed meta
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants