Dear Mike,
After running the first two examples of pitlakq (i.e. pilakq_tut, pitlakq_tut_qual), I've been stuck with pitlakq_gwh project for several days. The problems are related to the sript in the file gwh.py. (C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\submodels\gw\gwh.py)
At the beggining I received error messages when python was trying to read the flows, zones and conc sheets from the gwh.xlsx file, but I was able to fix this. Apparently you wrote the script using another syntaxis (an old one?) to get the information from the generator-type objects that are created when using the openpyxl toolbox. In the attached file you can see what I did.
The sad part of the story is that I received another error message from the same file (gwh.py), and I do not know how to fix it: File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\submodels\gw\gwh.py", line 156, in _make_zone_mapping TypeError: 'NoneType' object is not iterable
Could you give me a hand with this, please?
I'm using WIN7-64b.
Cheers,
Oscar
PS: The following is what appears in my comsol when trying to run the project:
(pitlakq34) C:\Users\obenavente\pitlakq_work\models\pitlakq_tut_gwh>pitlakq run
pitlakq_tut_gwh
Using C:\Users\obenavente\.pitlakq
setting new values for couplings
setting new values for general
setting new values for gw
setting new values for erosion
setting new values for phreeqc
setting new values for dual_porosity
setting new values for modmst
setting new values for lake
setting new values for loading
setting new values for sediment
setting new values for sediment
setting new values for output
setting new values for treatment
setting new values for phreeqc
setting new values for general
setting new values for gw
setting new values for couplings
setting new values for lake
init lake
start of module lake
setting new values for transport_scheme
setting new values for tributaries
setting new values for hydraulic_coefficients
setting new values for calculations
setting new values for waterbody_coordinates
setting new values for times
setting new values for wind
setting new values for ice_cover
setting new values for interpolations
setting new values for general
setting new values for dead_sea
setting new values for branch_geometry
setting new values for bounds
setting new values for constituent_computations
setting new values for active_constituents
setting new values for sediment
setting new values for coliform
setting new values for inorganic_carbon
setting new values for phosphorus
setting new values for cbod
setting new values for sediment_oxygen_demand
setting new values for algae
setting new values for oxygen_limit
setting new values for dissolved_organic_matter
setting new values for suspended_solids
setting new values for stoichiometry
setting new values for ammonia
setting new values for iron
setting new values for nitrate
setting new values for extinction_coefficients
setting new values for particulate_organic_matter
setting new values for suspended_solids
setting new values for extinction_coefficients
setting new values for sediment
setting new values for coliform
setting new values for inorganic_carbon
setting new values for stoichiometry
setting new values for constituent_computations
setting new values for phosphorus
setting new values for cbod
setting new values for ammonia
setting new values for sediment_oxygen_demand
setting new values for nitrate
setting new values for active_constituents
setting new values for iron
setting new values for algae
setting new values for oxygen_limit
setting new values for dissolved_organic_matter
setting new values for particulate_organic_matter
setting new values for bathymetry
setting new values for meteorology
setting new values for precipitation
setting new values for precipitation_temperature
setting new values for precipitation_concentration
setting new values for tributary_inflow
setting new values for tributary_temperature
setting new values for tributary_concentration
setting new values for branch_inflow
setting new values for branch_outflow
setting new values for branch_inflow_concentration
setting new values for branch_inflow_temperature
setting new values for initial_conditions
setting new values for initial_concentrations
setting new values for general
setting new values for bounds
setting new values for times
setting new values for bathymetry
updated starting_water_level: with 165
setting new values for ice_cover
setting new values for calculations
setting new values for tributaries
setting new values for initial_conditions
setting new values for waterbody_coordinates
setting new values for branch_geometry
setting new values for constituent_computations
setting new values for active_constituents
setting new values for suspended_solids
setting new values for sediment
setting new values for coliform
setting new values for inorganic_carbon
setting new values for stoichiometry
setting new values for phosphorus
setting new values for cbod
setting new values for ammonia
setting new values for sediment_oxygen_demand
setting new values for nitrate
setting new values for algae
setting new values for iron
setting new values for oxygen_limit
setting new values for dissolved_organic_matter
setting new values for particulate_organic_matter
setting new values for suspended_solids
setting new values for sediment
setting new values for coliform
setting new values for inorganic_carbon
setting new values for stoichiometry
setting new values for constituent_computations
setting new values for phosphorus
setting new values for cbod
setting new values for ammonia
setting new values for sediment_oxygen_demand
setting new values for nitrate
setting new values for active_constituents
setting new values for iron
setting new values for algae
setting new values for oxygen_limit
setting new values for dissolved_organic_matter
setting new values for particulate_organic_matter
setting new values for initial_concentrations
setting new values for meteorology
setting new values for precipitation
setting new values for precipitation_temperature
setting new values for precipitation_concentration
one branch only
notused ctr
notused cpr
deleted tributary_concentration
deleted precipitation_concentration
deleted tributary_temperature
deleted meteorology
deleted precipitation
deleted branch_inflow_concentration
deleted branch_inflow
deleted precipitation_temperature
deleted branch_outflow
deleted tributary_inflow
deleted branch_inflow_temperature
str title
str wtype
elws [ 165. 165. 165. 165. 165. 165. 165. 165. 165. 165. 165. 165.
165. 165. 165. 165. 165. 165. 165. 165. 165.]
ds [11]
us [6]
uhs [0]
dhs [0]
kt 37
kb [ 0 0 0 0 38 38 45 50 50 45 41 41 0 0 0 0 0 0 0 0 0]
charge balancing solution...
mean water level: 165.000002212
runtime: 0:00:09.343534
Traceback (most recent call last):
File "C:\Anaconda3\envs\pitlakq34\Scripts\pitlakq-script.py", line 11, in <mod
ule>
load_entry_point('PITLKAQ==1.3.2', 'console_scripts', 'pitlakq')()
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\metamodel\running\
run_pitlakq.py", line 517, in main
args.func(args)
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\metamodel\running\
run_pitlakq.py", line 450, in run_project
run(args.project_name)
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\metamodel\running\
run_pitlakq.py", line 539, in run
config.mineral_rates)
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\metamodel\running\
run_pitlakq.py", line 100, in __init__
self.init_sub_models()
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\metamodel\running\
run_pitlakq.py", line 305, in init_sub_models
self.gwh.read_data()
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\submodels\gw\gwh.p
y", line 48, in read_data
File "C:\Anaconda3\envs\pitlakq34\lib\site-packages\pitlakq\submodels\gw\gwh.p
y", line 156, in _make_zone_mapping
TypeError: 'NoneType' object is not iterable
(pitlakq34) C:\Users\obenavente\pitlakq_work\models\pitlakq_tut_gwh>