Skip to content

Commit

Permalink
Pull version info from module level definition (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdefever authored Oct 12, 2020
1 parent 7da368c commit 56f17d1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mosdef_cassandra/writers/inp_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import datetime
import numpy as np
import unyt as u
import mosdef_cassandra

import mosdef_cassandra.utils.convert_box as convert_box

from unyt import dimensions

import mosdef_cassandra.utils.convert_box as convert_box
from mosdef_cassandra.utils.units import validate_unit, validate_unit_list


Expand Down Expand Up @@ -61,13 +63,12 @@ def generate_input(
# Check/convert kwargs units
_check_kwarg_units(kwargs)
_convert_kwarg_units(kwargs)

# Construct an input file section by section

inp_data = """
! Generated by mosdef_cassandra version 0.2.1 on {}
! Generated by mosdef_cassandra version {} on {}
""".format(
datetime.datetime.now()
mosdef_cassandra.__version__,
datetime.datetime.now(),
)

# Extract some basic info
Expand Down

0 comments on commit 56f17d1

Please sign in to comment.