Skip to content

Commit

Permalink
Simplify py structure
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelegissi committed Aug 27, 2023
1 parent 28fd3e1 commit bbe57d5
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
22 changes: 21 additions & 1 deletion lang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@

from .domain import Domain
from .fds_case import FDSCase
from .landuse import LanduseType
from .landuse_type import LanduseType
from .terrain import GEOMTerrain, OBSTTerrain
from .texture import Texture
from .wind import Wind
from .params import (
ChidParam,
OriginParam,
NMeshParam,
PixelSizeParam,
TexPixelSizeParam,
CellSizeParam,
StartTimeParam,
EndTimeParam,
FDSPathParam,
LanduseTypeFilepathParam,
TextFilepathParam,
WindFilepathParam,
DEMLayerParam,
LanduseLayerParam,
ExtentLayerParam,
FireLayer,
ExportOBSTParam,
)
from .utils import *
2 changes: 1 addition & 1 deletion lang/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__revision__ = "$Format:%H$" # replaced with git SHA1

from math import sqrt
from .. import utils
from . import utils


class Domain:
Expand Down
2 changes: 1 addition & 1 deletion lang/fds_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import time, os
from qgis.core import Qgis, QgsProject
from qgis.utils import pluginMetadata
from .. import utils
from . import utils


class FDSCase:
Expand Down
2 changes: 1 addition & 1 deletion lang/landuse.py → lang/landuse_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import csv, re, os
from qgis.core import QgsProcessingException
from .. import utils
from . import utils


class LanduseType:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lang/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
import numpy as np
from qgis.core import QgsProcessingException
from .. import utils
from . import utils


class GEOMTerrain:
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions qgis2fds_export_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
import processing
import time

from .qgis2fds_params import *
from .lang import FDSCase, Domain, OBSTTerrain, GEOMTerrain, LanduseType, Texture, Wind
from . import utils
from .lang import *

DEBUG = False

Expand Down

0 comments on commit bbe57d5

Please sign in to comment.