Skip to content

Add math tutorials to the main tutorials branch #1910

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 19 commits into
base: doc/new-tutorials-section
Choose a base branch
from

Conversation

luisaFelixSalles
Copy link
Contributor

@luisaFelixSalles luisaFelixSalles commented Nov 19, 2024

Adds the tutorials of the math section

List of tutorials:

  • Basic maths

Preview on how it renders:

Mathematics section main page

image

Basic maths

_D__ANSYSdev_pydpf-core_doc_build_html_user_guide_tutorials_mathematics_basic_maths html (1)

@luisaFelixSalles luisaFelixSalles self-assigned this Nov 19, 2024
@luisaFelixSalles luisaFelixSalles changed the base branch from master to doc/new-tutorials-section November 19, 2024 14:06
@PProfizi
Copy link
Contributor

@luisaFelixSalles can we scroll down in the out section here?
image
If not then some prints are missing

@PProfizi
Copy link
Contributor

It seems there mismatches between code and output
image

How come?

@luisaFelixSalles luisaFelixSalles mentioned this pull request Nov 19, 2024
36 tasks
Copy link

codecov bot commented Nov 19, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
26101 1 26100 3491
View the top 1 failed test(s) by shortest run time
tests/test_cff.py::test_results_cfx[ansys-grpc-dpf]
Stack Traces | 1.59s run time
cfx_heating_coil = <function cfx_heating_coil.<locals>.return_ds at 0x7f3600104430>
server_type = <ansys.dpf.core.server_types.LegacyGrpcServer object at 0x7f3601597640>

    @pytest.mark.skipif(
        not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0,
        reason="CFF source operators where not supported before 7.0,",
    )
    def test_results_cfx(cfx_heating_coil, server_type):
>       model = dpf.Model(cfx_heating_coil(server=server_type), server=server_type)

tests/test_cff.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/conftest.py:309: in return_ds
    files = examples.download_cfx_heating_coil(server=server)
..../test-api/lib/python3.10.../core/examples/downloads.py:1596: in download_cfx_heating_coil
    "dat": _download_file(
..../test-api/lib/python3.10.../core/examples/downloads.py:115: in _download_file
    local_path = _retrieve_file(url, filename, directory)
..../test-api/lib/python3.10.../core/examples/downloads.py:109: in _retrieve_file
    _, resp = urlretrieve(url, local_path)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:241: in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:216: in urlopen
    return opener.open(url, data, timeout)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:525: in open
    response = meth(req, response)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:634: in http_response
    response = self.parent.error(
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:557: in error
    result = self._call_chain(*args)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:496: in _call_chain
    result = func(*args)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:749: in http_error_302
    return self.parent.open(new, timeout=req.timeout)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:525: in open
    response = meth(req, response)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:634: in http_response
    response = self.parent.error(
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:563: in error
    return self._call_chain(*args)
.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:496: in _call_chain
    result = func(*args)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <urllib.request.HTTPDefaultErrorHandler object at 0x7f360011ef80>
req = <urllib.request.Request object at 0x7f3600103e20>
fp = <http.client.HTTPResponse object at 0x7f3600103e50>, code = 429
msg = 'Too Many Requests'
hdrs = <http.client.HTTPMessage object at 0x7f36001015d0>

    def http_error_default(self, req, fp, code, msg, hdrs):
>       raise HTTPError(req.full_url, code, msg, hdrs, fp)
E       urllib.error.HTTPError: HTTP Error 429: Too Many Requests

.../hostedtoolcache/Python/3.10.17..................................../x64/lib/python3.10/urllib/request.py:643: HTTPError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@luisaFelixSalles
Copy link
Contributor Author

luisaFelixSalles commented Nov 19, 2024

@luisaFelixSalles can we scroll down in the out section here? image If not then some prints are missing

Yes we can, I think is just not in the screenshot

@PProfizi PProfizi added the tutorials Related to PyDPF-Core tutorials label Nov 19, 2024
@luisaFelixSalles luisaFelixSalles force-pushed the tutorials/math/firsts-math-tutorials branch from ce9b1fc to cd37263 Compare November 20, 2024 12:41
@luisaFelixSalles luisaFelixSalles force-pushed the tutorials/math/firsts-math-tutorials branch from 4a1bf3b to 0b7935b Compare December 17, 2024 10:59
@luisaFelixSalles luisaFelixSalles force-pushed the doc/new-tutorials-section branch from 576cd9f to 627c2de Compare December 19, 2024 16:42
@luisaFelixSalles luisaFelixSalles force-pushed the tutorials/math/firsts-math-tutorials branch from 4606b6a to 939a805 Compare December 20, 2024 11:09
- The entities ids and location. Thus, the |Field| scoping

- If not specified, the location is *'nodal'* by default.
- Each entity (here, the nodes) must have a |Scoping| id. The ids allows DPF to apply an operator on the
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Each entity (here, the nodes) must have a |Scoping| id. The ids allows DPF to apply an operator on the
- Each node must have a |Scoping| id. The ids allows DPF to apply an operator on the

@rafacanton rafacanton self-requested a review March 27, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tutorials Related to PyDPF-Core tutorials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants