Skip to content

Commit adf7785

Browse files
committed
Fix pytest utilities
1 parent 1b6b39e commit adf7785

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

rocketpy/utilities.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def save_to_rpy(flight: Flight, filename: str, include_outputs=False):
626626
file = Path(filename).with_suffix(".rpy")
627627

628628
with open(file, "w") as f:
629-
data = {"date": str(date.today()), "version": version("rocketpy")}
629+
data = {"date": str(date.today()), "version": version("activerocketpy")}
630630
data["simulation"] = flight
631631
json.dump(
632632
data,
@@ -650,7 +650,7 @@ def load_from_rpy(filename: str, resimulate=False):
650650
651651
Returns
652652
-------
653-
rocketpy.Flight
653+
activerocketpy.Flight
654654
Flight object containing simulation information from the .rpy file
655655
"""
656656
ext = os.path.splitext(os.path.basename(filename))[1]
@@ -660,12 +660,12 @@ def load_from_rpy(filename: str, resimulate=False):
660660
with open(filename, "r") as f:
661661
data = json.load(f)
662662
if packaging_version.parse(data["version"]) > packaging_version.parse(
663-
version("rocketpy")
663+
version("activerocketpy")
664664
):
665665
warnings.warn(
666666
"The file was saved in an updated version of",
667-
f"RocketPy (v{data['version']}), the current",
668-
f"imported module is v{version('rocketpy')}",
667+
f"ActiveRocketPy (v{data['version']}), the current",
668+
f"imported module is v{version('activerocketpy')}",
669669
)
670670
simulation = json.dumps(data["simulation"])
671671
flight = json.loads(simulation, cls=RocketPyDecoder, resimulate=resimulate)

0 commit comments

Comments
 (0)