Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 22, 2024
1 parent cb13603 commit 2ff7f7b
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 47 deletions.
8 changes: 4 additions & 4 deletions docs/experiments/e230920_subcool/find_centers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"\n",
"paths = init()\n",
"\n",
"from boilercv_docs.nbs import HIDE, nowarn, style_df\n",
"from boilercv_pipeline.experiments.e230920_subcool import GBC, bounded_ax\n",
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm\n",
"from boilercv_pipeline.sets import get_contours_df, get_dataset\n",
"from geopandas import GeoDataFrame, points_from_xy\n",
"from matplotlib.pyplot import subplots\n",
"from myst_nb import glue\n",
Expand All @@ -45,6 +41,10 @@
"from shapely import LinearRing\n",
"\n",
"from boilercv.images import scale_bool\n",
"from boilercv_docs.nbs import HIDE, nowarn, style_df\n",
"from boilercv_pipeline.experiments.e230920_subcool import GBC, bounded_ax\n",
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm\n",
"from boilercv_pipeline.sets import get_contours_df, get_dataset\n",
"\n",
"COMPARE_WITH_TRACKPY = True\n",
"\"\"\"Whether to get centers using the Trackpy approach.\"\"\"\n",
Expand Down
8 changes: 4 additions & 4 deletions docs/experiments/e230920_subcool/find_objects.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@
"\n",
"paths = init()\n",
"\n",
"from boilercv_docs.nbs import HIDE, nowarn, style_df\n",
"from boilercv_pipeline.experiments.e230920_subcool import GBC, bounded_ax\n",
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm\n",
"from boilercv_pipeline.sets import get_contours_df, get_dataset\n",
"from geopandas import GeoDataFrame, points_from_xy\n",
"from numpy import pi, sqrt\n",
"from pandas import DataFrame, IndexSlice, NamedAgg\n",
"from seaborn import scatterplot\n",
"from shapely import LinearRing, Polygon\n",
"\n",
"from boilercv.images import scale_bool\n",
"from boilercv_docs.nbs import HIDE, nowarn, style_df\n",
"from boilercv_pipeline.experiments.e230920_subcool import GBC, bounded_ax\n",
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm\n",
"from boilercv_pipeline.sets import get_contours_df, get_dataset\n",
"\n",
"COMPARE_WITH_TRACKPY = True\n",
"\"\"\"Whether to get objects using the Trackpy approach.\"\"\"\n",
Expand Down
5 changes: 3 additions & 2 deletions docs/experiments/e230920_subcool/find_tracks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"\n",
"paths = init()\n",
"\n",
"from numpy import diff, linalg\n",
"from pandas import DataFrame, read_hdf\n",
"\n",
"from boilercv_docs.nbs import HIDE, display_dataframe_with_math, nowarn, style_df\n",
"from boilercv_pipeline.experiments.e230920_subcool import (\n",
" GBC,\n",
Expand All @@ -43,8 +46,6 @@
" transform_cols,\n",
")\n",
"from boilercv_pipeline.sets import get_dataset\n",
"from numpy import diff, linalg\n",
"from pandas import DataFrame, read_hdf\n",
"\n",
"with nowarn(capture=True):\n",
" from trackpy import link, quiet\n",
Expand Down
34 changes: 17 additions & 17 deletions docs/experiments/e230920_subcool/find_tracks_trackpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@
"\n",
"paths = init()\n",
"\n",
"from matplotlib.figure import Figure\n",
"from matplotlib.pyplot import subplot_mosaic, subplots\n",
"from numpy import diff, linalg, logspace\n",
"from pandas import CategoricalDtype, DataFrame, read_hdf\n",
"from seaborn import lineplot, move_legend, scatterplot\n",
"\n",
"from boilercv.data import apply_to_img_da\n",
"from boilercv.dimensionless_params import (\n",
" fourier,\n",
" jakob,\n",
" kinematic_viscosity,\n",
" prandtl,\n",
" reynolds,\n",
" thermal_diffusivity,\n",
")\n",
"from boilercv.images import scale_bool\n",
"from boilercv.images.cv import Op, Transform, transform\n",
"from boilercv_docs.nbs import HIDE, nowarn, style_df\n",
"from boilercv_pipeline.correlations.dimensionless_bubble_diameter import (\n",
" florschuetz_chao_1965,\n",
Expand All @@ -47,23 +64,6 @@
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm\n",
"from boilercv_pipeline.models.params import PARAMS\n",
"from boilercv_pipeline.sets import get_dataset\n",
"from matplotlib.figure import Figure\n",
"from matplotlib.pyplot import subplot_mosaic, subplots\n",
"from numpy import diff, linalg, logspace\n",
"from pandas import CategoricalDtype, DataFrame, read_hdf\n",
"from seaborn import lineplot, move_legend, scatterplot\n",
"\n",
"from boilercv.data import apply_to_img_da\n",
"from boilercv.dimensionless_params import (\n",
" fourier,\n",
" jakob,\n",
" kinematic_viscosity,\n",
" prandtl,\n",
" reynolds,\n",
" thermal_diffusivity,\n",
")\n",
"from boilercv.images import scale_bool\n",
"from boilercv.images.cv import Op, Transform, transform\n",
"\n",
"with nowarn(capture=True):\n",
" from trackpy import batch, link, locate, quiet\n",
Expand Down
5 changes: 3 additions & 2 deletions docs/experiments/e230920_subcool/get_thermal_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
"\n",
"paths = init()\n",
"\n",
"from boilercv_docs.nbs import HIDE\n",
"from boilercv_pipeline.experiments.e230920_subcool import ALL_THERMAL_DATA\n",
"from pandas import DataFrame, read_csv\n",
"from seaborn import scatterplot\n",
"\n",
"from boilercv_docs.nbs import HIDE\n",
"from boilercv_pipeline.experiments.e230920_subcool import ALL_THERMAL_DATA\n",
"\n",
"BOILING = 97.33 # (C) inferred from mean pressure over the time span\n",
"TIME = \"time\"\n",
"BASE_TEMP = \"T0cal (C)\"\n",
Expand Down
30 changes: 15 additions & 15 deletions docs/experiments/e230920_subcool/plot_tracks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
"from boilercv_docs.nbs import init\n",
"\n",
"paths = init()\n",
"from matplotlib.figure import Figure\n",
"from matplotlib.pyplot import subplot_mosaic, subplots\n",
"from numpy import diff, log10, logspace\n",
"from pandas import DataFrame, Series, read_hdf\n",
"from seaborn import lineplot, move_legend, scatterplot\n",
"\n",
"from boilercv.dimensionless_params import (\n",
" fourier,\n",
" jakob,\n",
" kinematic_viscosity,\n",
" prandtl,\n",
" reynolds,\n",
" thermal_diffusivity,\n",
")\n",
"from boilercv.images import scale_bool\n",
"from boilercv_docs.nbs import HIDE\n",
"from boilercv_pipeline.correlations.dimensionless_bubble_diameter import (\n",
" akiyama_1973,\n",
Expand All @@ -57,21 +72,6 @@
")\n",
"from boilercv_pipeline.experiments.e240215_plotting import cool, warm12\n",
"from boilercv_pipeline.sets import get_dataset\n",
"from matplotlib.figure import Figure\n",
"from matplotlib.pyplot import subplot_mosaic, subplots\n",
"from numpy import diff, log10, logspace\n",
"from pandas import DataFrame, Series, read_hdf\n",
"from seaborn import lineplot, move_legend, scatterplot\n",
"\n",
"from boilercv.dimensionless_params import (\n",
" fourier,\n",
" jakob,\n",
" kinematic_viscosity,\n",
" prandtl,\n",
" reynolds,\n",
" thermal_diffusivity,\n",
")\n",
"from boilercv.images import scale_bool\n",
"\n",
"S = Series\n",
"\n",
Expand Down
7 changes: 4 additions & 3 deletions scripts/preview_sympy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
},
"outputs": [],
"source": [
"from docs.boilercv_docs.nbs import HIDE\n",
"from sympy import sympify\n",
"from tomlkit import parse\n",
"\n",
"from boilercv_pipeline.correlations.dimensionless_bubble_diameter.equations import (\n",
" EQUATIONS_TOML,\n",
" SYMPY_REPLS,\n",
Expand All @@ -25,9 +29,6 @@
" LOCALS,\n",
" SUBS,\n",
")\n",
"from docs.boilercv_docs.nbs import HIDE\n",
"from sympy import sympify\n",
"from tomlkit import parse\n",
"\n",
"NAME = \"florschuetz_chao_1965\"\n",
"\"\"\"Name of the equation to preview.\"\"\"\n",
Expand Down

0 comments on commit 2ff7f7b

Please sign in to comment.