Skip to content

Commit

Permalink
Merge pull request #10 from perceptualrobots/add-config-file-contents…
Browse files Browse the repository at this point in the history
…-method

Add method to return config file contents in PCTExamples class
  • Loading branch information
perceptualrobots authored Jan 3, 2025
2 parents 27100a2 + 932ff96 commit 8d28bdd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nbs/19_pct_examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,13 @@
"\n",
" return None\n",
"\n",
" \n",
" \n",
" def get_config_file_contents(self):\n",
" \"\"\"\n",
" Reads and returns the contents of the config file.\n",
" \"\"\"\n",
" with open(self.config_file, 'r') as file:\n",
" return file.read()\n",
"\n",
" def plot_history(self, plots=None, title_prefix='', plots_dir=None, plots_figsize=(12, 6), history_data=None):\n",
" \"\"\"\n",
" Plots the history of the hierarchy.\n",
Expand Down

0 comments on commit 8d28bdd

Please sign in to comment.