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

Minor update to first two Nutils examples #273

Merged
merged 2 commits into from
May 10, 2022

Conversation

scdivi
Copy link
Contributor

@scdivi scdivi commented Apr 26, 2022

The current active & stable nutils version is v7.0 (28ae68f3). With this pull request the first two examples are updated to nutils v7.0. At the moment the only change in this update is the way the libraries are imported. In order to have backward compatibility to previous nutils version, i.e., v6.3 (87281a0b), one needs to change only the importing style. The two styles of library import associated to the nutils version is demonstrated below.

nutils v7.0 (28ae68f3):

from nutils import cli, solver

def main()
      lhs = solver(...)

cli.run(main)

nutils v6.3 (87281a0b):

import nutils

def main():
      lhs = nutils.solver(...)

nutils.cli.run(main)

@MakisH MakisH requested a review from IshaanDesai April 27, 2022 09:05
Copy link
Member

@IshaanDesai IshaanDesai 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 👍

@IshaanDesai IshaanDesai merged commit 3b8e786 into precice:develop May 10, 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