Skip to content

Commit

Permalink
Merge branch 'master' into develop-new
Browse files Browse the repository at this point in the history
  • Loading branch information
AadilLatif committed Jan 6, 2024
2 parents b5cb9e8 + 8f47374 commit 16ebb5f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion PyDSS/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__version__ = "2.3.1"
__version__ = "3.0.1"


from PyDSS.utils.timing_utils import timer_stats_collector
from . import *
2 changes: 1 addition & 1 deletion PyDSS/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Optional, List, Union

import opendssdirect as dss
from pydantic import BaseModel, Field, validator
from pydantic.v1 import BaseModel, Field

from PyDSS.SolveMode import get_solver_from_simulation_type
from PyDSS.common import SimulationType
Expand Down
2 changes: 1 addition & 1 deletion PyDSS/node_voltage_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path
from typing import Dict, List, Union

from pydantic import BaseModel, Field
from pydantic.v1 import BaseModel, Field

from PyDSS.utils.simulation_utils import CircularBufferHelper

Expand Down
3 changes: 1 addition & 2 deletions PyDSS/pyControllers/Controllers/PvFrequencyRideThru.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import datetime
import math
import os
from pydantic import BaseModel, validator, conint, confloat
import pdb

class PvFrequencyRideThru(ControllerAbstract):
Expand Down Expand Up @@ -462,4 +461,4 @@ def __UpdateViolatonTimers(self):
self.__fViolationtime = (self.__dssSolver.GetDateTime() - self.__fViolationstartTime).total_seconds()


return fIn
return fIn
1 change: 0 additions & 1 deletion PyDSS/pyControllers/Controllers/PvVoltageRideThru.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import datetime
import math
import os
from pydantic import BaseModel, validator, conint, confloat

class PvVoltageRideThru(ControllerAbstract):
"""Implementation of IEEE1547-2003 and IEEE1547-2018 voltage ride-through standards using the OpenDSS Generator model. Subclass of the :class:`PyDSS.pyControllers.pyControllerAbstract.ControllerAbstract` abstract class.
Expand Down
2 changes: 1 addition & 1 deletion PyDSS/reports/feeder_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta
from typing import Dict

from pydantic import BaseModel, Field
from pydantic.v1 import BaseModel, Field

from PyDSS.reports.reports import ReportBase

Expand Down
4 changes: 2 additions & 2 deletions PyDSS/simulation_input_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from pathlib import Path
from typing import Any, Dict, List, Optional

from pydantic import BaseModel, Field, root_validator, validator
from pydantic.json import isoformat, timedelta_isoformat
from pydantic.v1 import BaseModel, Field, root_validator, validator
from pydantic.v1.json import isoformat, timedelta_isoformat

from PyDSS.common import (
ControlMode,
Expand Down
2 changes: 1 addition & 1 deletion PyDSS/thermal_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path
from typing import Dict, List, Union

from pydantic import BaseModel, Field
from pydantic.v1 import BaseModel, Field

from PyDSS.utils.simulation_utils import CircularBufferHelper
from PyDSS.utils.utils import dump_data, load_data
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ aiohttp~=3.8.2
aiohttp_swagger3>=0.4.3
requests
pymongo
pydantic~=1.10.11
pydantic~=2.5.2
matplotlib
pvder

0 comments on commit 16ebb5f

Please sign in to comment.