Skip to content

Rename __init__.py from v1 folder as modules.py #541

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

Merged
Merged
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
2 changes: 1 addition & 1 deletion 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.component.v1 as fl
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.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

OM6wing.get_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/case_params_with_units.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from pprint import pprint

import flow360.component.v1 as fl
import flow360.v1 as fl
from flow360 import log
from flow360.component.v1 import units as u
from flow360.component.v1.services import validate_model
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.component.v1 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.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 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.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

fl.UserConfig.disable_validation()
Expand Down
4 changes: 2 additions & 2 deletions examples/dev/dev_use_unit_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import pydantic.v1 as pd
import unyt

import flow360.component.v1 as fl
from flow360.component.v1 import Geometry
import flow360.v1 as fl
from flow360.component.v1 import units as u
from flow360.component.v1.unit_system import (
AngularVelocityType,
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/list_cases_all_params.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.simulation.units as u
import flow360.component.v1 as fl
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.component.v1 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.component.v1 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.component.simulation.units as u
import flow360.component.v1 as fl
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.component.v1 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.component.v1 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/bet_disk.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

import flow360.component.v1 as fl
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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 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.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import OM6wing

# create folder in ROOT level
Expand Down
2 changes: 1 addition & 1 deletion examples/surface_mesh_airplane_from_files.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import Airplane

params = fl.SurfaceMeshingParams(Airplane.surface_json)
Expand Down
2 changes: 1 addition & 1 deletion examples/surface_mesh_airplane_from_inputs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import Airplane

params = fl.SurfaceMeshingParams(
Expand Down
2 changes: 1 addition & 1 deletion examples/surface_mesh_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 as fl
import flow360.v1 as fl

my_meshes = fl.MySurfaceMeshes()

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

params = fl.SurfaceMeshingParams(Airplane.surface_json)
Expand Down
2 changes: 1 addition & 1 deletion examples/volume_mesh_from_surface_mesh_inputs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flow360.component.v1 as fl
import flow360.v1 as fl
from flow360.examples import Airplane

params = fl.SurfaceMeshingParams(
Expand Down
Loading
Loading