Skip to content

Commit

Permalink
addressing pylint hints
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Sep 11, 2024
1 parent c0c7146 commit f5d7fe4
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"import os\n",
"import string\n",
"import subprocess\n",
"import platform\n",
"import pathlib\n",
"\n",
"import numpy as np\n",
"\n",
Expand Down Expand Up @@ -162,6 +164,7 @@
"outputs": [],
"source": [
"class SpinUp:\n",
" \"\"\" enables freezing dynamic after a given number of steps \"\"\"\n",
" def __init__(self, particulator, spin_up_steps):\n",
" self.spin_up_steps = spin_up_steps\n",
" particulator.observers.append(self)\n",
Expand All @@ -172,10 +175,10 @@
" if self.particulator.n_steps == self.spin_up_steps:\n",
" self.set(Freezing, \"enable\", True)\n",
"\n",
" def set(self, dynamic, attr, value):\n",
" key = dynamic.__name__\n",
" if key in self.particulator.dynamics:\n",
" setattr(self.particulator.dynamics[key], attr, value)"
" def set(self, dynamic, attr, val):\n",
" name = dynamic.__name__\n",
" if name in self.particulator.dynamics:\n",
" setattr(self.particulator.dynamics[name], attr, val)"
]
},
{
Expand Down Expand Up @@ -6637,10 +6640,8 @@
}
],
"source": [
"from pathlib import Path\n",
"\n",
"if not ('CI' in os.environ and platform.system() == 'Windows'):\n",
" for path in Path('output').glob(\"*\"):\n",
" for path in pathlib.Path('output').glob(\"*\"):\n",
" for args in (\n",
" [path, '--anim_path_suffix=_cld', '--surface_var=n_c', '--surface_color_range=[0, 300]', '--particles_var=radius', \n",
" '--particles_var_multiplier=1e6', '--particles_color_range=[0.5,10]', '--particles_logscale=True', \n",
Expand Down

0 comments on commit f5d7fe4

Please sign in to comment.