Skip to content
Snippets Groups Projects

Re-exports for flat hierarchy

Merged Martin Lange requested to merge re-exports into main
1 unresolved thread
38 files
+ 367
276
Compare changes
  • Side-by-side
  • Inline
Files
38
@@ -22,9 +22,8 @@ from datetime import datetime, timedelta
import numpy as np
from finam.core.interfaces import ComponentStatus
from finam.core.sdk import ATimeComponent, Input, Output
from finam.data import Info, assert_type, tools
from finam import ATimeComponent, ComponentStatus, Info
from finam import data as tools
    • That seems strange to me. Maybe we use the subpackage tools then for the data-tools and call the current tools misc?

      • Yeah, maybe. Could also have left the as away, but data is just so common and was already used in the code I guess. In other places, I called it fmdata. But then, fm.data would be similarly long.

      • Why not use import finam as fm in the examples as single import? The other packages could follow that:

        import finam_netcdf as fm_nc
        import finam_plot as fm_plt
        import finam_graph as fm_grf
        import finam_mhm as fm_mhm
        import finam_ogs as fm_ogs
        import finam_formind as fm_for
        ...
      • Please register or sign in to reply
Please register or sign in to reply
class Formind(ATimeComponent):
Loading