Skip to content

[Tracking] Python client beta release #527

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

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: unit testing
on:
workflow_dispatch:
push:
branches: [ develop, main, release-candidate/* ]
branches: [ develop, main, release-candidate/*, BenY/OrganizingAndDocumentation ]
pull_request:
branches: [ develop, main, release-candidate/* ]
branches: [ develop, main, release-candidate/*, BenY/OrganizingAndDocumentation ]
workflow_call:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions examples/case_from_multiple_files/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

import flow360 as fl
import flow360.component.flow360_params.units as u
import flow360.component.v1.units as u
import flow360.v1 as fl
from flow360.examples import OM6wing

here = os.path.dirname(os.path.abspath(__file__))
Expand Down
2 changes: 1 addition & 1 deletion examples/case_from_yaml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
6 changes: 3 additions & 3 deletions examples/case_params_with_units.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import json
from pprint import pprint

import flow360 as fl
import flow360.v1 as fl
from flow360 import log
from flow360 import units as u
from flow360.component.flow360_params.services import validate_model
from flow360.component.v1 import units as u
from flow360.component.v1.services import validate_model

log.set_logging_level("DEBUG")

Expand Down
2 changes: 1 addition & 1 deletion examples/change_account_and_submit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

fl.Env.dev.active()
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/dev/dev_run_case_from_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

fl.Env.dev.active()
Expand Down
2 changes: 1 addition & 1 deletion examples/dev/dev_run_case_from_files_no_validation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

fl.UserConfig.disable_validation()
Expand Down
2 changes: 1 addition & 1 deletion examples/dev/dev_update_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from flow360.component.flow360_params.flow360_params import Flow360ParamsLegacy
from flow360.component.v1.flow360_params import Flow360ParamsLegacy

here = os.path.dirname(os.path.abspath(__file__))
path = os.path.join(here, "../../flow360/examples/rotatingSpheres/flow360.json")
Expand Down
8 changes: 4 additions & 4 deletions examples/dev/dev_use_unit_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
import pydantic.v1 as pd
import unyt

import flow360 as fl
from flow360 import Geometry
from flow360 import units as u
from flow360.component.flow360_params.unit_system import (
import flow360.v1 as fl
from flow360.component.v1 import units as u
from flow360.component.v1.unit_system import (
AngularVelocityType,
AreaType,
BaseSystemType,
Expand All @@ -23,6 +22,7 @@
VelocityType,
ViscosityType,
)
from flow360.v1 import Geometry


class DataWithUnits(pd.BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion examples/dev/dev_validate_params.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import re

from flow360.component.flow360_params.flow360_params import Flow360ParamsLegacy
from flow360.component.v1.flow360_params import Flow360ParamsLegacy

rootdir = "../../tests/data/cases/"
regex = re.compile(r"(case_.*\.json$)")
Expand Down
2 changes: 1 addition & 1 deletion examples/dev/dev_webservice_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import re

from flow360.component.flow360_params.services import get_default_fork
from flow360.component.v1.services import get_default_fork

# Webservice examples

Expand Down
2 changes: 1 addition & 1 deletion examples/dev/list_cases_all_params.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.exceptions import Flow360ValidationError

for case in fl.MyCases(limit=10000):
Expand Down
2 changes: 1 addition & 1 deletion examples/display_mesh_info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl

meshes = fl.MyVolumeMeshes()
mesh = meshes[0]
Expand Down
56 changes: 0 additions & 56 deletions examples/geometry_id_surface_volume_case_airplane_v1_from_csm.py

This file was deleted.

56 changes: 0 additions & 56 deletions examples/geometry_id_surface_volume_case_airplane_v1_from_egads.py

This file was deleted.

2 changes: 1 addition & 1 deletion examples/list_cases.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl

# get all cases:
my_cases = fl.MyCases()
Expand Down
2 changes: 1 addition & 1 deletion examples/new_workbench_project_from_geometry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.component.geometry import Geometry
from flow360.examples import Airplane

Expand Down
2 changes: 1 addition & 1 deletion examples/new_workbench_project_from_volume_mesh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time

import flow360 as fl
import flow360.component.simulation.units as u
import flow360.v1 as fl
from flow360.component.simulation.cloud import run_case
from flow360.component.simulation.models.surface_models import (
Freestream,
Expand Down
2 changes: 1 addition & 1 deletion examples/project_from_file_geometry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.component.project import Project
from flow360.component.simulation.meshing_param.params import (
MeshingDefaults,
Expand Down
2 changes: 1 addition & 1 deletion examples/project_from_file_geometry_multiple_runs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.component.project import Project
from flow360.component.simulation.meshing_param.params import (
MeshingDefaults,
Expand Down
2 changes: 1 addition & 1 deletion examples/project_from_file_volume_mesh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from matplotlib.pyplot import show

import flow360 as fl
import flow360.component.simulation.units as u
import flow360.v1 as fl
from flow360.component.project import Project
from flow360.component.simulation.models.surface_models import (
Freestream,
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/actuator_disk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

import flow360 as fl
import flow360.units as u
import flow360.v1 as fl
from flow360.examples import ActuatorDisk

ActuatorDisk.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/alpha_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pylab import plot, show, xlabel, ylabel

import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
4 changes: 2 additions & 2 deletions examples/retrieve_results/bet_disk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

import flow360 as fl
import flow360.component.flow360_params.units as u
import flow360.component.v1.units as u
import flow360.v1 as fl
from flow360.examples import BETDisk

BETDisk.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/convergence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import Convergence

Convergence.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/forces.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/monitors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import MonitorsAndSlices

MonitorsAndSlices.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/user_defined_dynamics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pylab import show

import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wingUserDefinedDynamics

OM6wingUserDefinedDynamics.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/retrieve_results/volumetric_and_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import tarfile
import tempfile

import flow360 as fl
import flow360.v1 as fl
from flow360.examples import MonitorsAndSlices

MonitorsAndSlices.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_from_example_mesh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

vm = fl.VolumeMesh.copy_from_example("2ad77a88-1676-4f89-8652-13bd7e34f257")
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_from_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_from_inputs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_no_submit_warning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_unsteady_from_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import Cylinder2D

Cylinder2D.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_with_fork.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/run_case_with_retry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/show_storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl

fl.Env.preprod.active()

Expand Down
2 changes: 1 addition & 1 deletion examples/submit_case_to_folder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

# create folder in ROOT level
Expand Down
Loading
Loading