A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of aguaclara

aguaclara - Updated dependencies to fix import error

  • Removing string from the beginning of unit_definitions.txt.
  • Fixed the SyntaxWarning by changing is to == with string comparisons
  • Updated dependencies so that package installation works correctly

Natural Resources - Water Supply and Quality - Python
Published by fletchapin about 2 years ago

aguaclara - Bumped Dependencies and Updates to pipes.py

Dependencies:

  • Upgraded urllib3 to 1.26.4.
    Fixed: "Using default SSLContext for HTTPS requests in an HTTPS proxy doesn't verify certificate hostname for proxy connection [high severity]."
  • Upgraded pillow to 8.1.2.
    Fixed: "Denial of Service by Uncontrolled Resource Consumption [high severity]."

Pipes module (PR #289)

  • Addressed Issue #279
  • module now includes schedules 80, 120, and 120
  • methods that give the schedule and ND that fit requirements of a pipe

Natural Resources - Water Supply and Quality - Python
Published by annabel48lin about 4 years ago

aguaclara - Documentation Site Upgrade

The aguaclara documentation has now been updated to consist of two main parts: an API reference (which was the bulk of the old documentation site) and a developer guide for helping new contributors. The README.md has also been updated to resemble the new documentation homepage, with installation instructions, basic code examples, and links to the API reference and developer guide.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi about 4 years ago

aguaclara - Python >=3.8 Requirement and Migration to Github Actions

aguaclara now requires Python versions 3.8 and higher. Also, the package has migrated from Travis CI and Appveyor to Github Actions for continuous integration.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi about 4 years ago

aguaclara - Documented CDC and deprecated estimated coagulant stock concentrations

This release:

  • adds the cdc.py module to the Sphinx documentation
  • deprecates estimated coagulant stock concentration and flow rate (coag_stock_conc_est and coag_q_max_est) in cdc.py and replaces them with exact concentration and flow rate (coag_stock_conc and coag_q_max)
  • updates the utilities.ceil_nearest and utilities.floor_nearest functions to handle unsorted arrays and raise errors when values are out of range
  • updates the environmental_processes_analysis.E_Advective_Dispersion function to return 0 instead of NaN when t=0
  • updates the physchem viscosity functions to accept temperatures of 0ºC

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 4 years ago

aguaclara - Additional onshape_parser functionality

Added processes variable which is returned by get_parsed_measurements() in addition to measurements and templates.

Also fixes a bug which occurred when creating a folder in onshape_parser

Natural Resources - Water Supply and Quality - Python
Published by fletchapin over 4 years ago

aguaclara - Refactored onshape_parser

Extended test coverage and generalized the logic of onshape_parser.py so that it can work for both validation and documentation.

This is accomplished through the for_docs flag. By default this flag is true, so variables will be parsed into human readable strings.
When false, variables are returned as Pint quantities.

Natural Resources - Water Supply and Quality - Python
Published by fletchapin over 4 years ago

aguaclara - Introduction of onshape_parser

We are moving what was parse.py in aide_design_specs to the aguaclara package because it's being used by aide_validation as well, and Monroe would like to have it available for student use when he teaches at Ohio State this spring.

It's not fully tested, but that it is still experimental and will be refactored before being used publicly, at which point we'll ensure 100% test coverage.

Natural Resources - Water Supply and Quality - Python
Published by fletchapin over 4 years ago

aguaclara - Updates to procoda_parser

The following updates have been made to aguaclara.research.procoda_parser:

  • addition of an intersect function for locating the intersections between two sets of data
  • ability to read data from folder paths that are Github URLs
  • addition of an elapsed time option to the get_data_by_time function

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 4 years ago

aguaclara - Made max and min number of LFOM rows configurable

Added min and max rows to LFOM expert inputs (#280).

To use them, simple pass in the arguments min_row_n or max_row_n like so: LFOM(q=1 * u.L / u.s, hl=10 * u.cm, min_row_n=6)

Natural Resources - Water Supply and Quality - Python
Published by fletchapin over 4 years ago

aguaclara - ProCoDA data file name update in procoda_parser.py

The get_data_by_time and get_data_by_state functions in the procoda_parser module have been updated to read ProCoDA data logs and state logs named "datalog_M-D-YYYY" and "statelog_M-D-YYYY", respectively, as opposed to the previous naming convention, "datalog M-D-YYYY" and "statelog M-D-YYYY".

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 4 years ago

aguaclara - Getting version numbers right

Fixing issue with version numbers (#274 )

Natural Resources - Water Supply and Quality - Python
Published by marcin-sawczuk almost 5 years ago

aguaclara - gamma_humic_acid_to_coag has correct units on max value of 1

Fixed units on max value of 1 in gamma_humic_acid_to_coag (#272)

Release updated to 0.2.2, fixed pint version (#273)

Getting Travis to work

Natural Resources - Water Supply and Quality - Python
Published by marcin-sawczuk almost 5 years ago

aguaclara - Updated wall thickness for ND 12" to 20"

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung almost 5 years ago

aguaclara - Update in Matplotlib version; Removed support for Python 3.5

  • updated all dependencies to use the latest version of Matplotlib
  • removed support for Python 3.5 because most users have migrated to use of it in Google Colab, which supports Python 3.6

Natural Resources - Water Supply and Quality - Python
Published by alicezha0 about 5 years ago

aguaclara - Change in Matplotlib Version

  • The only change in this release is the update in pipfile for the Matplotlib version to the most recent one rather than implementing an older version of it to fix errors thrown when running !pip install aguaclara in Google Colab.

Natural Resources - Water Supply and Quality - Python
Published by alicezha0 over 5 years ago

aguaclara - Widely implemented list handler, removed unit wrapper, updated physchem

  • The core.utility.list_handler() function decorator has been widely applied to functions in the research and core subpackages, allowing them to accept and output either scalar or array quantities.
  • The u.wraps() unit wrapper, which was causing poor programming practice and many bugs, has been removed from the entire package.
  • Documentation and naming of functions in core.physchem have been improved and standardized. Deprecation warnings have been included for functions and parameters that are changing names.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Fix Gran data extraction function

The Gran function in environmental_processes_analysis.py now correctly passes header=None to pandas.read_csv() instead of header=-1.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Fixed broken equations in floc model

All functions in research.floc_model are now tested and dimensionally consistent. diam_floc_max and ener_dis_diam_floc are deprecated.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Fix last row index and column_of_time in ProCoDA Parser

This release corrects the default last row index for research.procoda_parser's column_of_data() and column_of_time() functions. In addition, rather than raising an exception, column_of_time ignores rows of notes after the starting row.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Addition of 1.5 inch pipe to pipe database

The 1.5" pipe (in nominal diameter) is now available for use in core.pipes.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Documentation for Unit Registry

The AguaClara package documentation now lists common units and constants available in the package's unit registry! This list is found in the documentation page for core.units.

Several constants in core.constants have also been marked as deprecated due to irrelevance or redundancy with Pint package units and constants.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Improved documentation and inclusion of set_sig_figs() in imports

This release includes three updates:

  • aguaclara.core.pipes is now included in the AguaClara package documentation
  • The documentation site homepage has instructions on installing, contributing to, and using the package
  • aguaclara.core.units has been added to package level imports, so set_sig_figs() can be accessed like so:
    import aguaclara as ac
    ac.set_sig_figs(3)
    

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Hidden documentation fix

All functions in physchem now have visible documentation on the aguaclara documentation website.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - ProCoDA Parser Enhancements

In the aguaclara.research.procoda_parser module, the default file extension for ProCoDA data files is now ".tsv" instead of ".xls". There are two functions in the module, plot_columns() and iplot_columns(), for quickly plotting columns of data in a ProCoDA data file. Additionally, columns_of_data() and columnn_of_time() now silently ignore notes instead of raising an error.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 5 years ago

aguaclara - Python/Onshape Integration of the Flocculator

This release provides the ability to design an Onshape flocculator using the values calculated by our Python design code.

To design a flocculator, run the following in a Colab notebook:

!pip install aguaclara

import aguaclara as ac
from aguaclara.core.units import u

floc = ac.Flocculator()
floc.onshape_url_configured

The URL to the configured Onshape model with then appear, which you can navigate to and view. This early stage implementation does not provide the ability to resize the entrance tank in tandem with the flocculator, although, that functionality (as well as functionality for all other plant components) will come soon.

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung over 5 years ago

aguaclara - Pipeline Design Features

This release provides functionality for designing pipelines of linear, continuous flow.

  • Each pipeline (component) that is created is ensured to have a valid nominal size that is constructable.
  • Each pipeline has the ability to find a head loss from a target flow rate, and vice-versa.

There are three concrete classes (Pipe, Tee, Elbow) which can be instantiated, and one abstract class that can be used to make custom components (PipelineComponent). To create a pipeline, chain together multiple components like you would with a linked list:

import aguaclara as ac
from aguaclara.core.units import u

pipeline = ac.Pipe(next = ac.Elbow(next = ac.Pipe(next = ac.Tee())))
pipeline.headloss_pipeline()
pipeline.flow_pipeline(target_headloss = 20 * u.cm)

Important notes:

  • Tee currently only has functionality to simulate a tee fitting with one (and only one) socket being covered by a stopper. However, there is the option to choose which socket is covered by the stopper.
  • The old aguaclara.core.pipes module still works the same, but we encourage you to use the new classes as shown above.

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung over 5 years ago

aguaclara - New import structure, flocculator design code fixes

This release implements the new import structure touched upon in #214. Now, the standard NumPy-like import structure is available in addition to the old module-based import structure:

import aguaclara as ac
from aguaclara.core.units import u
ac.viscosity_kinematic(30 * u.deg)

This release also changes the behavior of the Flocculator design code:

  • Fixed calculation of channel number and width
  • Can now specify the parity (odd, even, any) of the channel number

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung over 5 years ago

aguaclara - Add deprecation warning for round_sf

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung almost 6 years ago

aguaclara - Sedimentor design code, Component class fixes

  • Added new physchem functions for designing manifolds and channels
  • Added design code for the Sedimentor
  • Refined Component class for fine-tuning plant designs
  • Refactored and improved utility functions

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung almost 6 years ago

aguaclara - Entrance Tank/Flocculator assembly, generalized Component class

  • Add Component class for sharing design inputs and serializing object properties
  • Write classes for the Entrance Tank/Flocculator assembly (ETF) and all of its subcomponents
  • Add tests and documentation for all new classes
  • Update Plant class to include the ETF
  • Update Python version to 3.6 due to Colab support
  • Fix dependencies and add onshape_client for future use
  • Add outer diameter functions for pipes

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung almost 6 years ago

aguaclara - Air density function, procoda_parser bug fix

Version 0.1.0 adds a function, density_air(), in aguaclara.core.physchem for calculating air density in replacement of an air density constant that neglected pressure and temperature.
This release also patches a file path bug in aguaclara.research.procoda_parser, in which a path was incorrectly joined for Windows operating systems.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi almost 6 years ago

aguaclara - Fixes to units and change in num_clay in research.floc_model

Functions in aguaclara.research.floc_model no longer coerce units to avoid problems with units on units. The num_clay() function has also been changed to particle_number_concentration() to extend to generic materials.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi about 6 years ago

aguaclara - Rebuild of version 24.1

Natural Resources - Water Supply and Quality - Python
Published by HannahSi about 6 years ago

aguaclara - Fixed floc_model, added peristaltic_pump and stock_qc, improved documentation site

In this release,

  • units are added to material properties in aguaclara.research.floc_model
  • the "rev" (abbreviation for revolutions) unit is defined in the unit registry
  • aguaclara.research.tube_sizing is split into two improved modules, peristaltic_pump and stock_qc
  • documentation pages are added for most of the aguaclara.research and aguaclara.core modules

Natural Resources - Water Supply and Quality - Python
Published by HannahSi about 6 years ago

aguaclara - remove onshapepy requirements for floc.py

Natural Resources - Water Supply and Quality - Python
Published by monroews about 6 years ago

aguaclara - Bug fix try #2

Debugging the release process.

Natural Resources - Water Supply and Quality - Python
Published by eak24 about 6 years ago

aguaclara - Environmental_processes_analysis

Fixed epa aeration import
added bounds for finding the Pe for advection dispersion

Natural Resources - Water Supply and Quality - Python
Published by monroews about 6 years ago

aguaclara - Flocculator design code update, PhysChem bug fixes

  • Resolve pc.fric() failing due to its list handler
  • Resolve pc.density_water() returning a 1 x 1 NumPy array rather than a plain scalar
  • Rewrite floc.py to include entrance tank calculations
  • Optimize play.py's imports and improve documentation

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung about 6 years ago

aguaclara - Updates to LFOM code

  • Add new inputs to the class constructor
  • Simplify array creation

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung about 6 years ago

aguaclara - Rounding significant figures, matplotlib backend

  • ut.round_sf() now rounds Pint quantities with units to specified significant
  • Fix minor bug with matplotlib backend

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung about 6 years ago

aguaclara - Adding Caching Layer and Minor Bug Fixes

Updates in the release:

  • Introduced caching ayer and associated test cases
  • Extended metric drill series
  • pc.nu() renamed to pc.viscosity_kinematic()
  • ut.list_handler() reintroduced as wrapper to physchem.py functions
  • Unit definition in units.py fixed

Natural Resources - Water Supply and Quality - Python
Published by fletchapin over 6 years ago

aguaclara - Add Flocculator class

The Flocculator class has been added to aguaclara.design.floc. Instances of this class contain properties for all of the required physical dimensions of an AguaClara flocculator.

Natural Resources - Water Supply and Quality - Python
Published by oliver-leung over 6 years ago

aguaclara - Updated ProCoDA parsing functions

aguaclara.research.procoda_parser now contains functions for extracting data from ProCoDA datalogs according to given times or states.

Natural Resources - Water Supply and Quality - Python
Published by HannahSi over 6 years ago

aguaclara - Fixed data file releases

Natural Resources - Water Supply and Quality - Python
Published by eak24 over 6 years ago

aguaclara - Changed name to "aguaclara" and other BREAKING changes

This is a major release where files have been completely reorganized. Aguaclara_research is incorporated. And tests now work.

Natural Resources - Water Supply and Quality - Python
Published by eak24 over 6 years ago

aguaclara - fised scipy requirement

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara -

correctly updated the setup.py

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara -

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara -

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara -

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara - Testing a single-deploy travis scheme.

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara -

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara - A lot of additional testing and fine tuning.

Natural Resources - Water Supply and Quality - Python
Published by eak24 almost 7 years ago

aguaclara - 0.0.3

Natural Resources - Water Supply and Quality - Python
Published by eak24 over 7 years ago