flopyarcade 0.7.4__tar.gz → 0.7.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flopyarcade-0.7.4/flopyarcade.egg-info → flopyarcade-0.7.6}/PKG-INFO +1 -1
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/__init__.py +1 -1
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/play.py +1 -1
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/render.py +46 -17
- {flopyarcade-0.7.4 → flopyarcade-0.7.6/flopyarcade.egg-info}/PKG-INFO +1 -1
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/pyproject.toml +1 -1
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/LICENSE +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/MANIFEST.in +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/README.md +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/actions.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/agent.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/arcade.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/archive_hdf5.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/benchmark.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/direct_solver.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/env_base.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/env_config.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/__init__.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/1s-d/1s-d +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/1s-d/1s-d.tune_metadata +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/2s-d/2s-d +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/2s-d/2s-d.tune_metadata +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/3s-d/3s-d +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/3s-d/3s-d.tune_metadata +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_dqn.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_neuroevolution.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_rllib_apexdqn.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_rllib_appo.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_rllib_impala.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/train_rllib_ppo.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/flopyarcade.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/mf6_mp7_runner.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/mf6_prt_runner.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/modflow_runner.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/modpath_runner.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/numba_solver.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/observations.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/play3d.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/play_againstai.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/play_split.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/render3d.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/reward.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/simulators/simulators_linux.zip +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/simulators/simulators_mac.zip +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/simulators/simulators_win32.zip +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/simulators/simulators_win64.zip +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/conftest.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_a10_overlap.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_agent_dqn.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_agent_neuroevolution.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_archive_hdf5.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_blit.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_c2_novelty_length.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_c7_action_space.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_agent2.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_agent_bench.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_big.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_envbase.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_final_push.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_final_push2.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_modflow_deep.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_play_actions_obs.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_play_archive.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_play_rl.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_push2.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_render.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_cov_runners_actions.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_90.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_deep.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_final.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_gaps.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_gaps2.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_max.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_coverage_push.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_fps.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_mf6_runners.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_mock_rllib.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_play.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_regression.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_regression_ci.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_render3d.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_reward_reset.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_rllib_cpu.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_smooth_trajectory.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/tests/test_split_screen.py +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade.egg-info/SOURCES.txt +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade.egg-info/dependency_links.txt +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade.egg-info/entry_points.txt +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade.egg-info/requires.txt +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade.egg-info/top_level.txt +0 -0
- {flopyarcade-0.7.4 → flopyarcade-0.7.6}/setup.cfg +0 -0
|
@@ -512,26 +512,52 @@ class RenderMixin:
|
|
|
512
512
|
except Exception:
|
|
513
513
|
pass
|
|
514
514
|
|
|
515
|
-
#
|
|
516
|
-
#
|
|
515
|
+
# The window manager applies the maximize asynchronously, so poll the
|
|
516
|
+
# real Tk toplevel geometry until it changes from the initial figure
|
|
517
|
+
# size. We then size the figure to the window's NATIVE aspect ratio
|
|
518
|
+
# (not forced square) so the equal-data-aspect grid is limited by the
|
|
519
|
+
# smaller axis and centered on the larger one -- this prevents both
|
|
520
|
+
# top/bottom clipping and the 'tiny plot in a big window' effect.
|
|
521
|
+
import time
|
|
522
|
+
dpi = self.fig.dpi
|
|
523
|
+
win = self.figManager.window
|
|
524
|
+
initial_w = initial_h = None
|
|
517
525
|
try:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
canvas = self.fig.canvas
|
|
521
|
-
w_px, h_px = canvas.get_width_height()
|
|
522
|
-
if w_px > 0 and h_px > 0:
|
|
523
|
-
dpi = self.fig.dpi
|
|
524
|
-
# 5% safety margin for window decorations / taskbar
|
|
525
|
-
margin = 0.95
|
|
526
|
-
new_w = (w_px / dpi) * margin
|
|
527
|
-
new_h = (h_px / dpi) * margin
|
|
528
|
-
# Keep square if window is roughly square
|
|
529
|
-
side = min(new_w, new_h)
|
|
530
|
-
self.fig.set_size_inches(side, side)
|
|
531
|
-
self.fig.tight_layout(pad=0.)
|
|
526
|
+
initial_w = win.winfo_width()
|
|
527
|
+
initial_h = win.winfo_height()
|
|
532
528
|
except Exception:
|
|
533
529
|
pass
|
|
534
530
|
|
|
531
|
+
target_w = target_h = None
|
|
532
|
+
deadline = time.time() + 1.2
|
|
533
|
+
while time.time() < deadline:
|
|
534
|
+
try:
|
|
535
|
+
w = win.winfo_width()
|
|
536
|
+
h = win.winfo_height()
|
|
537
|
+
except Exception:
|
|
538
|
+
break
|
|
539
|
+
if w > 0 and h > 0 and (w != initial_w or h != initial_h):
|
|
540
|
+
target_w, target_h = w, h
|
|
541
|
+
break
|
|
542
|
+
time.sleep(0.05)
|
|
543
|
+
|
|
544
|
+
# Fallback to the canvas size if the toplevel query never resolved.
|
|
545
|
+
if target_w is None or target_h is None:
|
|
546
|
+
try:
|
|
547
|
+
cw, ch = self.fig.canvas.get_width_height()
|
|
548
|
+
if cw and ch:
|
|
549
|
+
target_w, target_h = cw, ch
|
|
550
|
+
except Exception:
|
|
551
|
+
target_w = target_h = None
|
|
552
|
+
|
|
553
|
+
if target_w and target_h:
|
|
554
|
+
margin = 0.98 # small safety margin for window decorations
|
|
555
|
+
new_w = (target_w / dpi) * margin
|
|
556
|
+
new_h = (target_h / dpi) * margin
|
|
557
|
+
if new_w > 1 and new_h > 1:
|
|
558
|
+
self.fig.set_size_inches(new_w, new_h)
|
|
559
|
+
self.fig.tight_layout(pad=0.)
|
|
560
|
+
|
|
535
561
|
def _finalize_figure(self):
|
|
536
562
|
"""Finalize the figure by removing axes and adjusting layout.
|
|
537
563
|
|
|
@@ -1372,7 +1398,10 @@ class RenderMixin:
|
|
|
1372
1398
|
# Slow path: single draw at final position (avoids artist leak)
|
|
1373
1399
|
# Remove any stale transition artists
|
|
1374
1400
|
for art in self._blit_artists.get('_transition_artists', []):
|
|
1375
|
-
|
|
1401
|
+
try:
|
|
1402
|
+
art.remove()
|
|
1403
|
+
except (NotImplementedError, Exception):
|
|
1404
|
+
pass
|
|
1376
1405
|
self._blit_artists['_transition_artists'] = []
|
|
1377
1406
|
# Draw a single line showing the transition path
|
|
1378
1407
|
art, = self.ax2.plot([x_prev, x_now], [y_prev, y_now],
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools >= 64", "wheel"]
|
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
[project]
|
|
5
5
|
name = "flopyarcade"
|
|
6
|
-
version = "0.7.
|
|
6
|
+
version = "0.7.6"
|
|
7
7
|
description="Simulated groundwater flow environments for reinforcement learning."
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
urls = {Homepage = "https://github.com/philipphoehn/flopyarcade", Documentation = "https://flopyarcade.readthedocs.io"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/1s-d/1s-d.tune_metadata
RENAMED
|
File without changes
|
|
File without changes
|
{flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/2s-d/2s-d.tune_metadata
RENAMED
|
File without changes
|
|
File without changes
|
{flopyarcade-0.7.4 → flopyarcade-0.7.6}/flopyarcade/examples/policymodels/3s-d/3s-d.tune_metadata
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|