Project

General

Profile

Statistics
| Revision:

# Date Author Comment
979 02/14/2012 01:02 PM Aaron Marcuse-Kubitza

util.py: Added format_str() to use locale-specific formatting settings, including thousands separator. Use it in to_percent().

978 02/14/2012 12:48 PM Aaron Marcuse-Kubitza

bin/map: Use new ExPercentTracker to print error rate (% of # rows) when program exits

977 02/14/2012 12:47 PM Aaron Marcuse-Kubitza

exc.py: Added ExPercentTracker to track errors as % of iterations

976 02/14/2012 12:47 PM Aaron Marcuse-Kubitza

util.py: Added to_percent()

975 02/14/2012 12:07 PM Aaron Marcuse-Kubitza
974 02/14/2012 12:02 PM Aaron Marcuse-Kubitza

exc.py: print_ex(): Declare emph param as a keywork param instead of popping it from **format

973 02/14/2012 11:54 AM Aaron Marcuse-Kubitza

exc.py: print_ex(): Declare emph param as a keywork param instead of popping it from **format

972 02/13/2012 04:38 PM Aaron Marcuse-Kubitza

inputs/SALVIAS/maps/VegX.organisms.csv: Mapped OrigSpecies and OrigGenus combined to new plantlevel Binomial

971 02/13/2012 04:35 PM Aaron Marcuse-Kubitza

xpath.py: Fixed bug where value of XPath (used for copying to other branches) is retrieved after first XPath element is popped rather than before, which can sometimes leave an empty XPath for value() to run on

970 02/13/2012 03:33 PM Aaron Marcuse-Kubitza

mappings/DwC-VegBIEN.specimens.csv: Fixed bien.vegetation mapping to point to commconcept->commname. Fixed bien.substrate mapping to point to locationevent.landscapenarrative.

969 02/13/2012 03:25 PM Aaron Marcuse-Kubitza

inputs/NYBG/maps/DwC.specimens.csv: Mapped CoordinatePrecision using _noCV

968 02/13/2012 03:24 PM Aaron Marcuse-Kubitza

xml_func.py: Added _noCV func to check that non-ratio-scale data does not contain CV values

967 02/13/2012 02:34 PM Aaron Marcuse-Kubitza

mappings/DwC-VegBIEN.specimens.csv: Fixed locality fields mapping to go to location.locationnarrative

966 02/13/2012 02:05 PM Aaron Marcuse-Kubitza

input.Makefile: For all input types, including DB, import each table in a separate map invocation

965 02/13/2012 01:58 PM Aaron Marcuse-Kubitza

xml_func.py: _range: Treat a None from or to value as an unknown (a la SQL NULL) and return None instead of raising a SyntaxException

964 02/13/2012 01:57 PM Aaron Marcuse-Kubitza

xml_dom.py: NodeTextEntryIter: Convert empty entries (including entries containing error comments) to None

963 02/13/2012 01:48 PM Aaron Marcuse-Kubitza

xml_dom.py: replace(): Added support for new node that's None (deletes existing node)

962 02/13/2012 12:59 PM Aaron Marcuse-Kubitza

xml_func.py: Put SyntaxException's cause on same line as error message so that the whole error is treated as distinct by error_stats

961 02/13/2012 12:47 PM Aaron Marcuse-Kubitza

Added errors_filter_before and errors_filter_after to prepare `map` error messages for easy filtering and then restore line breaks

960 02/13/2012 12:46 PM Aaron Marcuse-Kubitza

error_stats: Fixed to work on Mac

959 02/13/2012 11:26 AM Aaron Marcuse-Kubitza

error_stats: Simplified to use uniq --count option

958 02/13/2012 11:21 AM Aaron Marcuse-Kubitza

input.Makefile: Print error message if no input file found (for file input type). This fixes a bug where map would just take input from stdin when no input file redirect or input DB env vars were specified.

957 02/13/2012 11:10 AM Aaron Marcuse-Kubitza

map: Map standard DB names to original DB names on nimoy

956 02/13/2012 10:29 AM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

955 02/13/2012 10:26 AM Aaron Marcuse-Kubitza

vegbien.sql: Added methodtrait and methodtraitname tables

954 02/13/2012 10:24 AM Aaron Marcuse-Kubitza

PostgreSQL-MySQL.csv: Handle array types

953 02/13/2012 09:54 AM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Recolored plant tables to all have the same color, distinct from the occurrence color

952 02/13/2012 09:32 AM Aaron Marcuse-Kubitza

mappings/VegX-VegBIEN.organisms.csv: Added mappings for SALVIAS fields with no join mapping. This fixes the last of the "no join mapping" errors.

951 02/13/2012 09:27 AM Aaron Marcuse-Kubitza

input.Makefile: svn_props: Set svn:ignore on maps subdirs

950 02/13/2012 09:26 AM Aaron Marcuse-Kubitza

inputs/SALVIAS-CSV/maps/VegX.plots.csv: Fixed mappings without a join mapping in VegX-VegBIEN.*.csv

949 02/13/2012 09:20 AM Aaron Marcuse-Kubitza

VegX mappings: Gentry DBH mapping: Use VegX's attribute and method tables

948 02/13/2012 09:05 AM Aaron Marcuse-Kubitza

mappings/VegX-VegBIEN.organisms.csv: Removed no longer used mapping to taxondetermination.determinationdate. This also prevents ever creating a taxondetermination without a plantconcept.

947 02/11/2012 07:31 PM Aaron Marcuse-Kubitza

bin/map: Added redo option to control whether the database is emptied before inserting new data. Can be used to turn off emptying the DB in test mode, because this is often slow and is not needed if you are running tests on an empty testing database.

946 02/11/2012 07:25 PM Aaron Marcuse-Kubitza

opts.py: env_flag(): Added support for default value if unset

945 02/11/2012 07:25 PM Aaron Marcuse-Kubitza

opts.py: env_flag(): Added support for default value if unset

944 02/11/2012 07:16 PM Aaron Marcuse-Kubitza

bin/map: Use env_flag()'s new env_names usage support to print flags usage

943 02/11/2012 07:16 PM Aaron Marcuse-Kubitza

opts.py: Added env_names usage support to env_flag()

942 02/11/2012 07:05 PM Aaron Marcuse-Kubitza

mappings/VegX-VegBIEN.organisms.csv: Removed no longer needed mapping for taxonDetermination/note

941 02/11/2012 07:03 PM Aaron Marcuse-Kubitza

inputs/SALVIAS-CSV/maps/VegX.organisms.csv: Map cfaff to taxonConcept/fit, which maps to taxondetermination.taxonFit

940 02/11/2012 06:59 PM Aaron Marcuse-Kubitza

inputs/SALVIAS/maps/VegX.organisms.csv: Map cfaff to taxonConcept/fit, which maps to taxondetermination.taxonFit

939 02/11/2012 06:39 PM Aaron Marcuse-Kubitza

join: Print a warning if no join mapping found (in addition to adding this warning to the comments column)

938 02/11/2012 06:27 PM Aaron Marcuse-Kubitza

Removed no longer needed inputs/NYBG/maps/VegX.organisms.csv because NYBG is now mapped via DwC

937 02/11/2012 06:26 PM Aaron Marcuse-Kubitza

mappings/VegX-VegBIEN.organisms.csv: Removed mappings used only by NYBG, because NYBG now maps via DwC

936 02/11/2012 06:11 PM Aaron Marcuse-Kubitza

Added ch_root_via to transform a map spreadsheet to use a different root, using a connecting root that links the input and output roots together

935 02/11/2012 06:02 PM Aaron Marcuse-Kubitza

Added cols to select columns from a spreadsheet

934 02/11/2012 06:02 PM Aaron Marcuse-Kubitza

util.py: Added list_subset()

933 02/11/2012 05:42 PM Aaron Marcuse-Kubitza

ch_root: Fixed detection of unset env vars so that usage message is printed when any option is missing

932 02/11/2012 05:41 PM Aaron Marcuse-Kubitza

opts.py: Call an error handler if an env var isn't set

931 02/11/2012 05:40 PM Aaron Marcuse-Kubitza

util.py: Added function wrappers for statements noop() and and_()

930 02/11/2012 05:07 PM Aaron Marcuse-Kubitza

inputs/NYBG-CSV: Map via DwC

929 02/11/2012 04:50 PM Aaron Marcuse-Kubitza

Added subtract to subtract map spreadsheets

928 02/11/2012 04:49 PM Aaron Marcuse-Kubitza

ch_root: Ignore empty lines

927 02/11/2012 04:06 PM Aaron Marcuse-Kubitza

Added intersect to intersect two map spreadsheets

926 02/11/2012 03:48 PM Aaron Marcuse-Kubitza

union: Clarified overwrite order of inputs in description

925 02/11/2012 03:31 PM Aaron Marcuse-Kubitza

Removed no longer needed mappings/review

924 02/11/2012 03:31 PM Aaron Marcuse-Kubitza

mappings/Makefile: Regenerate for_review maps automatically when a map changes

923 02/11/2012 03:17 PM Aaron Marcuse-Kubitza

mappings/review: Generalized to convert all mappings to VegBIEN, not just a specific listed set (which was out of date)

922 02/11/2012 03:16 PM Aaron Marcuse-Kubitza

mappings/for_review/DwC-VegBIEN.specimens.csv: Regenerated

921 02/11/2012 03:12 PM Aaron Marcuse-Kubitza

inputs/NYBG/maps/DwC.specimens.csv: Fixed CollectedDate mapping to use the _date XML func

920 02/11/2012 03:07 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped Substrate and Vegetation

919 02/11/2012 02:54 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped BoundingBox, footprintWKT to location.dsgpoly

918 02/11/2012 02:44 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped Notes and PlantFungusDescription to bien.specimenDescription, merged together

917 02/11/2012 02:41 PM Aaron Marcuse-Kubitza

xml_func.py: Added _merge and _label XML funcs

916 02/11/2012 02:12 PM Aaron Marcuse-Kubitza

vegbien.sql: Added specimenreplicate.description

915 02/11/2012 02:01 PM Aaron Marcuse-Kubitza

DwC mappings: Corrected mappings for CollectorNumber, individualID, recordNumber, and fieldNumber

914 02/11/2012 01:31 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped infraspecificEpithet to/from Subspecies

913 02/11/2012 01:22 PM Aaron Marcuse-Kubitza

DwC-VegBIEN mapping: merge decimalLatitude/Longitude with verbatimLatitude/Longitude

912 02/10/2012 05:55 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

911 02/10/2012 05:53 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Fixed lines. Repositioned elements.

910 02/10/2012 05:41 PM Aaron Marcuse-Kubitza

vegbien.sql: Added locationevent.parent_id for subplot events to point to their parent plot event

909 02/10/2012 05:21 PM Aaron Marcuse-Kubitza

vegbien.sql: Added plantconceptscope.namedplace_id

908 02/10/2012 05:14 PM Aaron Marcuse-Kubitza

vegbien.sql: Added taxonoccurrence.method_id

907 02/10/2012 05:00 PM Aaron Marcuse-Kubitza

vegbien.sql: Renamed plotmethod to method

906 02/10/2012 04:47 PM Aaron Marcuse-Kubitza

vegbien.sql: Added locationdetermination.identifier_id

905 02/10/2012 04:39 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Fixed lines

904 02/10/2012 04:35 PM Aaron Marcuse-Kubitza

VegBIEN: Renamed locationplace to locationdetermination

903 02/10/2012 04:18 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed morphospecies, instead using plantconcept and new table plantconceptscope to represent scoped morphospecies. Reorganized plant* tables in ERD.

902 02/10/2012 03:41 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Added plantcorrelation table to ERD

901 02/09/2012 07:08 PM Aaron Marcuse-Kubitza

mappings/VegX-VegBIEN.organisms.csv: Fixed TaxonomicRankBelowSubspeciesEnum mapping to use plantname instead of placing the name directly inside plantconcept. This bug was probably left over from the switch from linking directly to plantname rather than to a plantconcept which has a plantname.

900 02/09/2012 06:54 PM Aaron Marcuse-Kubitza

Renamed get_errors to error_stats and added counts of each error message

899 02/09/2012 06:24 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

898 02/09/2012 06:22 PM Aaron Marcuse-Kubitza

vegbien.sql: Added plotmethod table

897 02/07/2012 05:22 PM Aaron Marcuse-Kubitza

input.Makefile: Renamed $(test) variable (containing the command to run a test) so it wouldn't conflict with test environment variable

896 02/07/2012 05:10 PM Aaron Marcuse-Kubitza

mappings to VegBIEN: Don't map notes to taxondetermination because some organisms have notes but no species name

895 02/07/2012 05:08 PM Aaron Marcuse-Kubitza

mappings/Makefile: Fixed bug in rules for cleaning up core maps whenever they change, which had the target and prerequisite reversed

894 02/07/2012 04:39 PM Aaron Marcuse-Kubitza

input.Makefile: nolog option defaults to on when test is on

893 02/07/2012 04:36 PM Aaron Marcuse-Kubitza

input.Makefile: Fixed bug where no log file was being created, even when nolog was off

892 02/07/2012 04:11 PM Aaron Marcuse-Kubitza

Replaced all type(...) == str with util.is_str(...) to properly treat Unicode objects as strings

891 02/07/2012 04:08 PM Aaron Marcuse-Kubitza

xml_dom.py: minidom.Element.write_opening(): Use new Attr.__str__() method for printing attributes

890 02/07/2012 04:06 PM Aaron Marcuse-Kubitza

bin/map: For XML inputs, use xpath.get()'s new multiple result support to iterate over elements matching the root, rather than just iterating over the first matching element's siblings. This fixes the broken 2-step tests for stems, which didn't filter by the root's attributes.

889 02/07/2012 04:04 PM Aaron Marcuse-Kubitza

xpath.py: get(): Fixed bug where limit was not passed to recursive get() calls

888 02/07/2012 04:02 PM Aaron Marcuse-Kubitza

xml_dom.py: by_tag_name(): Iterate forwards over children unless last_only optimization turned on. Added Attr.__str__() and repr() for debug-printing Attrs.

887 02/07/2012 03:10 PM Aaron Marcuse-Kubitza

xpath.py: get(): Turn off last_only optimization when limit > 1

886 02/07/2012 03:07 PM Aaron Marcuse-Kubitza

xpath.py: get(): Added full support for returning multiple matches

885 02/07/2012 02:33 PM Aaron Marcuse-Kubitza

xpath.py: get(): Added basic structure for returning multiple matches. Added limit parameter to select one or many matches.

884 02/07/2012 02:13 PM Aaron Marcuse-Kubitza

input.Makefile: test/VegBIEN.%.2-step.xml: Use the core map specific to the test's table instead of the main core map

883 02/07/2012 02:10 PM Aaron Marcuse-Kubitza

bin/map: Print error if map root not found inXML input

882 02/07/2012 01:52 PM Aaron Marcuse-Kubitza

mappings/: Removed mappings used by old tester

881 02/07/2012 01:48 PM Aaron Marcuse-Kubitza

inputs/SALVIAS/maps/VegX.*.csv: Replaced symlinks with actual files

880 02/07/2012 01:45 PM Aaron Marcuse-Kubitza

Removed old tester