Skip to content
Snippets Groups Projects
  1. Sep 24, 2022
  2. Sep 22, 2022
  3. Jun 17, 2022
  4. May 05, 2022
    • Arin Wongprommoon's avatar
      Absolute imports for modules in routines directory · 7614f487
      Arin Wongprommoon authored
      When the plotting routines in postprocessor.routines are imported in a
      different script or module, it raises an error that indicates that
      `plottingabc` or `single_plot` are not found.
      
      This is because I attempted to use relative imports without accounting
      for how Python usually imports things, especially in a project with
      multiple directories and multiple layers.  Relative imports can be done
      via:
      
          from .foo import bar
      
      But I opted against that in favour of absolute imports (the solution
      implemented) because it conforms to PEP8.
      
      This should not affect anywhere else in the code base as these are the
      only bits where `plottingabc` and `single_plot` are used.
      7614f487
  5. Apr 13, 2022
Loading